Open Yuehching opened 5 years ago
You need to compile opencv to enable v4l support. Please see below link: https://tinkerboarding.co.uk/wiki/index.php/CSI-camera-2.0.8
@topdjgod
I tried the c++ sample code in the link you give. and it always spit "Couldn't find camera". It's widely known that raspberry pi CSI camera cannot be directly used by VideoCapture() in opencv unless executing modprobe bcm2835-v4l2
to load a module for it ahead. So I think tiner board is probably the same. I want to know if there is a similar module to make CSI camera visible to opencv...
Btw, I want to challenge the author of tinkerboard-CSI-camera wiki about the reliability of the instructions he/she gives. I compiled v4l with opencv and it doesn't help at all. It's clear that the key problem is not in opencv installation but tinkeros kernel/drivers.
@Yuehching First, make sure your camera is good. Please use test-camera.sh in TinkerOS v2.0.8 to test your camera. Second, install opencv. Please see "OpenCV in python (Face Detection)" to install opencv. Then you can try c++ sample code.
Im using camera IMX219 on thinkerOS 2.0.8. I followed instructions on https://tinkerboarding.co.uk/wiki/index.php/CSI-camera-2.0.8 and it shows
after command
media-ctl -p
things just appear normal but when I test the camera with the following code, things go wrong.the result shows:
I tried many ways but cannot find a solution...before this, my raspberry pi 3B+ works well with IMX219 and opencv.