Detect people
Locate people in each image and associate detected faces with their bodies for subsequent identity matching.
PersonAnalysis
Detect people, match registered identities with face features first, and use body re-identification as a fallback when face matching is unavailable. Evaluate locally with the Python SDK.
Non-commercial academic research only. Commercial use requires a license.
01Registered reference
02Face match
03Body fallback
Core capabilities
Locate people in each image and associate detected faces with their bodies for subsequent identity matching.
Compare face features against registered references. Face matching takes priority when a suitable match is available.
Compare body appearance with stored references when face matching is unavailable. Clothing, viewpoint and occlusion can affect the result.
Identity matching
Your application supplies identities and reference images. PersonAnalysis compares detections against the gallery held by the current instance.
Add a reference image with an identity label to the in-memory gallery.
Run get() on an image, then match() to compare detections with registered identities.
After a reliable face match and a clear association between face and body, use update() to add a body reference.
Cheetah model packs
Two public packs combine person detection, face recognition and body ReID. Both support local inference with CPU or CUDA.
27.1 MBDownload size
Compact pack for local evaluation.
pp_det_small_320.onnxreid_0265 · 256D211.5 MBDownload size
Larger person detection and face recognition models.
pp_det_med.onnxreid_0265 · 256DBoth packs share reid_0265 with 256-dimensional body features. Public model weights are for non-commercial academic research only; commercial use requires a separate model license.
Local integration
PersonAnalysis is available in insightface 2.1 on PyPI. Use CPU or CUDA inference and connect the results to your application's own identity and storage logic.
python -m pip install --upgrade "insightface==2.1"Read the setup guideA multilingual desktop tool also supports local video, cameras and RTSP streams.
Python quick start
1import cv22from insightface.app import PersonAnalysis34with PersonAnalysis(name="cheetah_s") as app:5 registration = app.register("person_001", "reference.jpg")6 if registration.accepted == 0:7 raise ValueError(registration.rejected)89 image = cv2.imread("scene.jpg")10 if image is None:11 raise FileNotFoundError("scene.jpg")1213 matches = app.match(app.get(image))14 for result in matches:15 print(result.person_id, result.matched_by)No continuous tracking, anonymous IDs or historical event records are provided.
The reference gallery lives in the current instance's memory. A persistent identity database must be managed by your application.
Body ReID depends on appearance; changes in clothing, occlusion and camera viewpoint can affect matching.
PersonAnalysis adds person detection and body ReID to face-based identity matching. It associates faces with bodies and prioritizes face matches against your registered references.
It analyzes images and matches registered identities. Continuous tracking, anonymous track IDs and event history are outside the current scope.
The code is MIT-licensed. Public Cheetah model weights are for non-commercial academic research only. Commercial use requires a separate model license; contact us to discuss licensing and deployment terms.
Check detection and matching under your camera angles, face visibility, clothing changes and occlusion. Calibrate thresholds on representative inputs and measure processing speed on your target hardware.
Share your input sources, deployment environment and commercial requirements to discuss model licensing and integration.