Article ID: 000059163 Content Type: Error Messages Last Reviewed: 05/20/2022

Error: “CAP_IMAGES: Can’t Find Starting Number” When Running Object Detection Python* Demo with Pi4 Camera V2

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

How to execute object_detection_demo.py to use the camera as the input for the Object Detection Python Demo

Description
  1. Executed the command: python3 object_detection_demo.py -m person-vehicle-bike-detection-2001.xml -at ssd -d MYRIAD -i cam
  2. Encountered error messages: 
    • CAP_IMAGES: can't find starting number (in the name of file): cam in function 'icvExtractPattern'
    • Can't find the image by cam
Resolution
  • The input for this demo must be a single image, a folder of images, video file or camera id.
  • Use "0" as the input for the camera.
  • Execute the command:
    python3 object_detection_demo.py -m <Path_to_model.xml> -at <type_of_model_architecture> -d MYRIAD -i 0
Additional information

Refer to object_detection_demo.py.

Related Products

This article applies to 2 products