Qengineering / BananaPi-M2-Zero-OV5640

Banana Pi M2 zero with OV5640, WiringPi and OpenCV image.
https://qengineering.eu/deep-learning-with-raspberry-pi-and-alternatives.html
BSD 3-Clause "New" or "Revised" License
36 stars 5 forks source link

congrats on an image but camera is not working #2

Open t0c123 opened 2 years ago

t0c123 commented 2 years ago

pi@banana:~$ media-ctl -p -d /dev/media1 Media controller API version 5.10.43

Media device information driver sun6i-csi model Allwinner Video Capture Device serial
bus info platform:1cb0000.camera hw revision 0x0 driver version 5.10.43

Device topology

pi@banana:~$ lsmod Module Size Used by rfcomm 53248 16 cmac 16384 1 bnep 24576 2 snd_soc_hdmi_codec 20480 1 hci_uart 61440 0 lima 45056 0 brcmfmac 176128 0 btrtl 20480 1 hci_uart dw_hdmi_i2s_audio 16384 0 sun6i_csi 32768 0 dw_hdmi_cec 16384 0 btbcm 16384 1 hci_uart brcmutil 16384 1 brcmfmac input_leds 16384 0 gpu_sched 28672 1 lima bluetooth 413696 40 btrtl,hci_uart,bnep,btbcm,rfcomm ov5640 28672 1 ecdh_generic 16384 2 bluetooth ecc 28672 1 ecdh_generic cfg80211 491520 1 brcmfmac v4l2_fwnode 24576 2 ov5640,sun6i_csi sun4i_gpadc_iio 16384 0 industrialio 53248 1 sun4i_gpadc_iio sun8i_thermal 16384 0 rfkill 20480 7 bluetooth,cfg80211 sunxi_cedrus 32768 0 v4l2_mem2mem 20480 1 sunxi_cedrus videobuf2_dma_contig 20480 2 sunxi_cedrus,sun6i_csi videobuf2_memops 20480 1 videobuf2_dma_contig videobuf2_v4l2 20480 3 sunxi_cedrus,sun6i_csi,v4l2_mem2mem zram 24576 2 videobuf2_common 40960 4 sunxi_cedrus,sun6i_csi,v4l2_mem2mem,videobuf2_v4l2 evdev 20480 6 uio_pdrv_genirq 20480 0 display_connector 20480 0 uio 16384 1 uio_pdrv_genirq cpufreq_dt 20480 0 usb_f_acm 20480 1 u_serial 24576 3 usb_f_acm g_serial 16384 0 libcomposite 45056 2 g_serial,usb_f_acm ip_tables 24576 0 x_tables 24576 1 ip_tables autofs4 36864 2 pwrseq_simple 16384 1 sunxi 16384 0 phy_generic 20480 2 sunxi gpio_keys 20480 0

i don't know is this all good....

but when it comes to actual using of camera - it says something about "pipeline error, can not open pipeline..." (i can paste it here tomorrow)

i tried python app, from code-block, even downloaded gvcuview app, and vlc. Zero success :-\ and i lost like 6h today on that...

Qengineering commented 2 years ago

Did you initialize the camera before use? It is done by the command $ sudo media-ctl --device /dev/media1 --set-v4l2 '"ov5640 2-003c":0[fmt:YUYV8_2X8/<your width> x <your height>]'

Please, read more in the last section of README.md. Here you see also a screendump of the command $ v4l2-ctl --list-devices testing the camera.