IMX477 High Quality Camera 12MPixel -Time Switching preview to capture image full resolution and back to preview too long

1)The time between preview (640*480) ,capture image full resolution 4056(H) x 3040(V) and back to preview is about 2.5 seconds. It is normal?
2)Is it possible to set camera to work monochrome?

I use this camera with an Raspberry Pi 4B

Bellow you will find the info need it:

[email protected]:~ $ uname -a
Linux raspberrypi 5.15.84-v7l+ #1613 SMP Thu Jan 5 12:01:26 GMT 2023 armv7l GNU/Linux
[email protected]:~ $ cat /etc/os-release
PRETTY_NAME=“Raspbian GNU/Linux 11 (bullseye)”
NAME=“Raspbian GNU/Linux”
VERSION=“11 (bullseye)”
[email protected]:~ $ cat /ptoc/meminfo
cat: /ptoc/meminfo: No such file or directory
[email protected]:~ $ cat /proc/meminfo
MemTotal: 3931052 kB
MemFree: 2131452 kB
MemAvailable: 3452616 kB
Buffers: 72268 kB
Cached: 1301084 kB
SwapCached: 0 kB
Active: 334716 kB
Inactive: 1153196 kB
Active(anon): 1640 kB
Inactive(anon): 178072 kB
Active(file): 333076 kB
Inactive(file): 975124 kB
Unevictable: 56876 kB
Mlocked: 7264 kB
HighTotal: 3264512 kB
HighFree: 1772128 kB
LowTotal: 666540 kB
LowFree: 359324 kB
SwapTotal: 2097148 kB
SwapFree: 2097148 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 171476 kB
Mapped: 163276 kB
Shmem: 62732 kB
KReclaimable: 173284 kB
Slab: 196004 kB
SReclaimable: 173284 kB
SUnreclaim: 22720 kB
KernelStack: 2144 kB
PageTables: 5644 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 4062672 kB
Committed_AS: 1348400 kB
VmallocTotal: 245760 kB
VmallocUsed: 6696 kB
VmallocChunk: 0 kB
Percpu: 448 kB
CmaTotal: 327680 kB
CmaFree: 304656 kB
[email protected]:~ $ cat /boot/config
cat: /boot/config: No such file or directory
[email protected]:~ $ cat /boot/config.txt

For more options and information see

Raspberry Pi Documentation - Configuration

Some settings may impact device functionality. See link above for details

uncomment if you get no picture on HDMI for a default “safe” mode


uncomment the following to adjust overscan. Use positive numbers if console

goes off screen, and negative if there is too much border


uncomment to force a console size. By default it will be display’s size minus



uncomment if hdmi display is not detected and composite is being output


uncomment to force a specific HDMI mode (this will force VGA)


uncomment to force a HDMI mode rather than DVI. This can make audio work in

DMT (computer monitor) modes


uncomment to increase signal to HDMI, if you have interference, blanking, or

no display


uncomment for composite PAL


#uncomment to overclock the arm. 700 MHz is the default.

Uncomment some or all of these to enable the optional hardware interfaces


Uncomment this to enable infrared communication.


Additional overlays and parameters are documented /boot/overlays/README

Enable audio (loads snd_bcm2835)


Automatically load overlays for detected cameras


Automatically load overlays for detected DSI displays


Enable DRM VC4 V3D driver


Disable compensation for displays with overscan



Enable host mode on the 2711 built-in XHCI USB controller.

This line should be removed if the legacy DWC2 controller is required

(e.g. for USB device mode) or if USB support is not required.




Run as fast as firmware / board allows


[email protected]:~ $

What command do you use?

The camera you bought is not used for monochrome. If you want to work monochrome, why don’t you choose a monochrome camera?

I use picamera2


self.fullImage=cv2.cvtColor(picamera2.capture_array(“main”)[:, :, :3], cv2.COLOR_BGR2GRAY)

And on the screen:

0:07:05.548976895] [1401] INFO Camera camera.cpp:1026 configuring streams: (0) 4056x3040-BGR888
[0:07:05.554131243] [1397] INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/[email protected]/[email protected] - Selected sensor format: 4056x3040-SBGGR12_1X12 - Selected unicam format: 4056x3040-pBCC
[0:07:07.321256451] [1401] INFO Camera camera.cpp:1026 configuring streams: (0) 640x480-XBGR8888
[0:07:07.332363329] [1397] INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/[email protected]/[email protected] - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC

whenever I take an capture.