Back to projects

Public prototype · Computer vision

Camera Focuses on a Person

Estimating the most centered subject’s position for automated framing.

Detection of a centered person in aerial video
Project previewGitHub

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

  1. 01

    Identify the most relevant person for center-based framing.

  2. 02

    Produce geometric output that another system can use directly.

  3. 03

    Work on both video files and live streams.

Architecture

Technical flow

Video stream → YOLOv10s detection → person centers → subject selection → center offset → framing command

Scroll through the flow

Video stream
YOLOv10s detection
person centers
subject selection
center offset
framing command
  • Python
  • YOLOv10
  • Ultralytics
  • OpenCV
  • Computer Vision

Approach

Working steps

  1. 01

    Detect every person present in each frame.

  2. 02

    Compute each bounding-box center’s distance from the image center.

  3. 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.
github.com/SylvJalbExplore the repository

Let’s talk CONTACT / 01

Let’s talk about your next product.

Share a little context. I will reply to you directly by email.

contact@sylvain-jalbert.com

This information is used only to reply to your message. It is not stored on this website.