Hello,
I am using imx8mplus evk board. I have booted Linux version 5.10.9-1.0.0+g32513c25d8c7
I am developing my own object detection application using efficientdet_lite0 model. Below I am attaching the code files.
When I try to run the code in virtual env using the command python3 detect.py --model efficientdet_lite0.tflite, i am getting the following error : [ WARN:0] global /tmp/pip-req-build-h8zflkjv/opencv/modules/videoio/src/cap_v4l. cpp (890) open VIDEOIO(V4L2:/dev/video1): can't open camera by index
Without the virtual env, mipi camera is working fine but the model doesn't work. Can you please tell me how to solve this issue.
Thank You.
Kind Regards,
Keniz Gandhi
hi @kenizgandhi ,
I could see the following line in your code.
cap = cv2.VideoCapture(1)
Is there 2 cameras connected? Are you trying to open the second camera?
Regards,
Ramson Jehu K