Public prototype · Computer vision
Camera Focuses on a Person
Estimating the most centered subject’s position for automated framing.

Context
The project
This Python prototype detects people in a video stream with YOLOv10s, selects the person closest to the image center, and returns their offset. This information can feed motorized framing or drone tracking.
Objectives
Design challenges
- 01
Identify the most relevant person for center-based framing.
- 02
Produce geometric output that another system can use directly.
- 03
Work on both video files and live streams.
Visual evidence
The project in view
Architecture
Technical flow
Video stream → YOLOv10s detection → person centers → subject selection → center offset → framing command
Scroll through the flow
Approach
Working steps
- 01
Detect every person present in each frame.
- 02
Compute each bounding-box center’s distance from the image center.
- 03
Display the selection and expose the offset for a future tracking device.
Public repository
What the sources document
- The repository provides an annotated video example and a command-line interface.
- Planned improvements, such as hysteresis and batch processing, remain explicitly listed.