Object detection custom application on imx8mpevk board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Object detection custom application on imx8mpevk board

1,433 Views
kenizgandhi
Contributor III

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

Labels (1)
0 Kudos
1 Reply

1,355 Views
Ramson
Contributor IV

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

0 Kudos