Article ID: 000088653 Content Type: Troubleshooting Last Reviewed: 05/20/2022

Unable to Control Motors after Detecting Multiple Faces with OpenVINO™ and OpenCV*

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Software design process flow.

Description
  1. Used OpenCV* with OpenVINO™ models for face detection.
  2. Used cv2.rectangle function and was able to obtain coordinates for detected faces.
  3. When multiple faces were detected, multiple coordinates were captured, causing both servo motor and stepper motor to go crazy.
Resolution

Create a coding flowchart to review and design the whole process. It will give a clear idea of what should happen for each sequence of code, e.g. about what servo motor and stepper motor specific tasks are, the relations between coordinates, who will trigger what, if something fails or some sequence is missing then do task X, etc.

Related Products

This article applies to 2 products

Show all