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:

gabi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.15.84-v7l+ #1613 SMP Thu Jan 5 12:01:26 GMT 2023 armv7l GNU/Linux
gabi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME=“Raspbian GNU/Linux 11 (bullseye)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“11”
VERSION=“11 (bullseye)”
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
gabi@raspberrypi:~ $ cat /ptoc/meminfo
cat: /ptoc/meminfo: No such file or directory
gabi@raspberrypi:~ $ 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
gabi@raspberrypi:~ $ cat /boot/config
cat: /boot/config: No such file or directory
gabi@raspberrypi:~ $ 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

#hdmi_safe=1

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

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

#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

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

overscan.

#framebuffer_width=1280
#framebuffer_height=720

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

#hdmi_force_hotplug=1

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

#hdmi_group=1
#hdmi_mode=1

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

DMT (computer monitor) modes

#hdmi_drive=2

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

no display

#config_hdmi_boost=4

uncomment for composite PAL

#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

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

dtparam=i2c_arm=on
dtparam=i2c_arm_baudrate=100000
#dtparam=i2s=on
dtparam=spi=on

Uncomment this to enable infrared communication.

#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

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

Enable audio (loads snd_bcm2835)

dtparam=audio=on

Automatically load overlays for detected cameras

camera_auto_detect=1

Automatically load overlays for detected DSI displays

display_auto_detect=1

Enable DRM VC4 V3D driver

dtoverlay=vc4-kms-v3d
max_framebuffers=2

Disable compensation for displays with overscan

disable_overscan=1

[cm4]

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.

otg_mode=1

[all]

[pi4]

Run as fast as firmware / board allows

arm_boost=1
dtoverlay=i2c-gpio,bus=3

[all]
enable_uart=1
gabi@raspberrypi:~ $

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


captureConfigCamera=picamera2.create_still_configuration()
previewConfigCamera=picamera2.create_preview_configuration()

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

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/i2c@1/imx477@1a - 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/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC

whenever I take an capture.