How codesmith-23/copyright-detection-in-generative-ai works
This is a web application for detecting manipulated video and audio, protecting registered creator identities, and tracking analysis results. A user uploads media through the authenticated frontend; the video backend performs analysis, can request audio analysis and identity matching, combines findings, and records results for later review. Separate capabilities include account access, creator registration, licensing, and detailed evidence reporting. The README documents the service roles and orchestration; some frontend-to-service and audio-service internals are not shown in the excerpts, so those links are documented or left unverified rather than inferred from imports.
Main entry points: app.py Video Analysis Service · identity_service.py Identity Matching · orchestrator.py Service Launcher · api_audio.py Audio Analysis Service
Components 18
Frontend
- Detection Screen
DeepFake/frontend/src/app/detect/page.tsx - Detection Workflow
DeepFake/frontend/src/hooks/useDetection.ts - Detection API Client
DeepFake/frontend/src/lib/api.ts - Analysis Results
DeepFake/frontend/src/components/DetectionResults.tsx - History Screen
DeepFake/frontend/src/app/history/page.tsx - Creator Registration
DeepFake/frontend/src/app/creator-registration/page.tsx
Media Detection
- Video Analysis Service
DeepFake/backend/app.py - Audio Analysis Service
Voice Deepfake/api_audio.py - Audio Inference
Voice Deepfake/inference.py - Video Model Preparation
DeepFake/backend/train_model.py - Service Launcher
orchestrator.py
Identity Protection
- Identity Matching
DeepFake/backend/identity_service.py - Protected Identities And Licenses
DeepFake/backend/identity_service.py - Face Extraction
DeepFake/backend/extract_faces.py
Accounts And History
- Analysis Records
DeepFake/backend/app.py - Login And Registration
DeepFake/frontend/src/app/login/page.tsx - Authentication Helpers
DeepFake/frontend/src/lib/auth.ts
Other components
- Media User
Connections 20
- Media User → Detection Screen: uploads media
DeepFake/frontend/src/app/detect/page.tsx - Detection Screen → Detection Workflow: starts analysis
DeepFake/frontend/src/app/detect/page.tsx - Detection Workflow → Detection API Client: requests analysis
DeepFake/frontend/src/hooks/useDetection.ts - Detection API Client → Video Analysis Service: submits media
README.md - Video Analysis Service → Audio Analysis Service: requests audio analysis
DeepFake/backend/app.py - Audio Analysis Service → Audio Inference: runs inference
README.md - Video Analysis Service → Identity Matching: requests identity match
DeepFake/backend/app.py - Identity Matching → Protected Identities And Licenses: reads identities
DeepFake/backend/identity_service.py - Video Analysis Service → Analysis Records: saves analysis
DeepFake/backend/app.py - Video Analysis Service → Analysis Results: returns findings
README.md - Analysis Results → Media User: presents report
README.md - History Screen → Analysis Records: retrieves history
README.md - Creator Registration → Identity Matching: registers identity
README.md - Login And Registration → Authentication Helpers: uses authentication
- Video Analysis Service → Protected Identities And Licenses: logs violations
DeepFake/backend/app.py - Service Launcher → Video Analysis Service: starts service
README.md - Service Launcher → Audio Analysis Service: starts service
README.md - Service Launcher → Identity Matching: starts service
README.md - Video Model Preparation → Video Analysis Service: prepares model
- Face Extraction → Identity Matching: supports face processing