Object detection custom application on imx8mpevk board

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Object detection custom application on imx8mpevk board

2,192件の閲覧回数
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 返信

2,114件の閲覧回数
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 件の賞賛