Overview
ThePerson model represents an individual person in the face recognition system. It contains a unique identifier (name) and a URL to their face image.
Rust Definition
TypeScript Definition
Fields
A unique identifier or name for the person. This value is used to identify the person in match results. It can be a full name, username, user ID, or any other unique identifier relevant to your application.
A publicly accessible URL to an image containing the person’s face. The image should clearly show the person’s face for accurate recognition. Supported formats include JPEG, PNG, and other common image formats.
Example JSON
Array Example
When used in a CompareRequest, multiple Person objects are provided:Best Practices
Image Requirements
- Face Visibility: Ensure the face is clearly visible and not obscured
- Image Quality: Use high-resolution images for better accuracy
- Lighting: Well-lit images produce more accurate results
- Frontal View: Face-forward images work best, though slight angles are acceptable
- Single Face: Images should contain only one face or have the target face prominent
Naming Conventions
- Use consistent naming patterns across your application
- Consider using unique identifiers (UUIDs, database IDs) for guaranteed uniqueness
- Avoid special characters that might cause issues in your system
Image URL Requirements
- URLs must be publicly accessible (or accessible to the API service)
- Use HTTPS for security when possible
- Ensure images are hosted on reliable infrastructure
- Consider URL expiration times if using signed URLs
Related Models
- CompareRequest - Uses an array of Person objects
- MatchResult - References the person’s name in match results