camera上面有寫 "raspberry pi camera rev 1.3
看 這邊 的表格,v1 是 ov5647
所以到 /sys/module/ 下,果然有 ov5647 這個folder
然後看 這一篇,v1 的 camera support libcamera/raspicam
因為是 v1,所以好像不用修改 boot 的 config
測試:
$ sudo libcamera-hello -t 0 Preview window unavailable [1:33:11.091798541] [1024] INFO Camera camera_manager.cpp:297 libcamera v0.0.5+83-bde9b04f [1:33:11.156468415] [1026] INFO RPI vc4.cpp:437 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media3 and ISP device /dev/media0 [1:33:11.156605706] [1026] INFO RPI pipeline_base.cpp:1101 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml' [1:33:11.158376798] [1024] INFO Camera camera.cpp:1033 configuring streams: (0) 1296x972-YUV420 [1:33:11.159185495] [1026] INFO RPI vc4.cpp:565 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x 972-pGAA #0 (0.00 fps) exp 33222.00 ag 8.00 dg 1.00 #1 (30.02 fps) exp 33222.00 ag 8.00 dg 1.00 #2 (30.02 fps) exp 33222.00 ag 8.00 dg 1.00 #3 (30.01 fps) exp 33222.00 ag 8.00 dg 1.00 #4 (30.02 fps) exp 33222.00 ag 8.00 dg 1.00 #5 (30.02 fps) exp 33222.00 ag 8.00 dg 1.00 #6 (30.02 fps) exp 33222.00 ag 8.00 dg 1.00 #7 (30.01 fps) exp 33222.00 ag 8.00 dg 1.00 ..試拍照:
$ libcamera-jpeg -o aaa.jpg Preview window unavailable [0:09:19.152281879] [3180] INFO Camera camera_manager.cpp:297 libcamera v0.0.5+83-bde9b04f [0:09:19.216393888] [3181] INFO RPI vc4.cpp:437 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media3 and ISP device /dev/media0 [0:09:19.216530450] [3181] INFO RPI pipeline_base.cpp:1101 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml' [0:09:19.218294460] [3180] INFO Camera camera.cpp:1033 configuring streams: (0) 1296x972-YUV420 [0:09:19.219118835] [3181] INFO RPI vc4.cpp:565 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA #0 (0.00 fps) exp 9983.00 ag 1.31 dg 1.53 #1 (30.02 fps) exp 9983.00 ag 1.31 dg 1.54 #2 (30.02 fps) exp 10284.00 ag 2.00 dg 1.00 ,... #138 (30.02 fps) exp 14603.00 ag 2.00 dg 1.00 #139 (30.02 fps) exp 14626.00 ag 2.00 dg 1.00 #140 (30.02 fps) exp 14672.00 ag 2.00 dg 1.00 #141 (30.02 fps) exp 14672.00 ag 2.00 dg 1.00 [0:09:24.419749856] [3180] INFO Camera camera.cpp:1033 configuring streams: (0) 2592x1944-YUV420 (1) 2592x1944-SGBRG10_CSI2P [0:09:24.426256104] [3181] INFO RPI vc4.cpp:565 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 2592x1944-SGBRG10_1X10 - Selected unicam format: 2592x1944-pGAA Still capture image received然後 aaa.jpg 就是。
沒有留言:
張貼留言