Object Storage Configuration
Overview
ObjectStorageConfig from degirum_tools is used for storing and managing files in S3-compatible storage. Supports AWS S3, MinIO, local filesystem, and any S3-compatible service.
Where It's Used
FaceTracker -
clip_storage_configfor saving video clipsFaceClipManager - Managing saved clips
Parameters
endpoint
str
Yes
Storage endpoint (URL for S3/MinIO, or local path)
bucket
str
Yes
Bucket name or folder name
access_key
str
No
Access key ID (required for S3/MinIO)
secret_key
str
No
Secret access key (required for S3/MinIO)
url_expiration_s
int
No
Presigned URL expiration in seconds (default: 3600)
Configuration Examples
Local Storage
Store files in a local directory:
Files are saved to: ./clips/alerts/
Use for:
Development and testing
Single-machine deployments
Simple file storage needs
AWS S3
Store files in AWS S3 bucket:
Best practices:
Use environment variables for credentials
Prefer IAM roles when running on AWS EC2
Never hardcode credentials in code
Use bucket policies for access control
Use for:
Production deployments
Multi-region access
Scalable cloud storage
MinIO
Store files in MinIO (self-hosted S3):
Use for:
Development and testing
On-premise deployments
Data sovereignty requirements
S3-compatible storage without cloud costs
S3-Compatible Services
Works with any S3-compatible service (Wasabi, DigitalOcean Spaces, Backblaze B2, etc.):
Use for:
Cost-optimized storage (Wasabi, Backblaze)
Regional storage providers
Alternative cloud providers
Usage Examples
FaceTracker with Clip Storage
FaceClipManager
Environment-Specific Configurations
Development
Staging
Production
Last updated
Was this helpful?

