Object detection custom application on imx8mpevk board

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Object detection custom application on imx8mpevk board

1,469 次查看
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

标签 (1)
0 项奖励
1 回复

1,391 次查看
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 项奖励