Summary
Software design process flow.
Description
- Used OpenCV* with OpenVINO™ models for face detection.
- Used cv2.rectangle function and was able to obtain coordinates for detected faces.
- 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.