feat: intelligent CC suggestion pipeline — all 3 goals + Hindi support#13
Open
Naitik120gupta wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intelligent CC Suggestion Tool — DMP 2026 Demo
Contributor: Naitik | Issue: #2
What this PR contains
A single-file, end-to-end working pipeline covering all 3 goals from the ticket. No complex file structure is needed.
Architecture
Video → [Module 1: YAMNet SED] → audio events + timestamps → [Module 2: MediaPipe Reaction] → visual confidence scores → [Module 3: Decision Engine] → SRT / JSON output
What makes this submission different
1. Hindi CC label support (ticket requirement — others missed this)
The ticket explicitly targets "Hindi and regional-language content."
This pipeline is the only submission with native Hindi output:
2. Audio-only bypass for high-impact events
Safety-critical sounds (gunshot, explosion, siren, alarm) get approved
on strong audio confidence alone (≥ 0.75), even without a visible face reaction.
Rationale: a gunshot off-camera still warrants a CC. This is a named
--audio-only-threshflag the user can tune or disable.3. Freeze response detection in Module 2
Most implementations only detect motion spikes. This pipeline also scores
sudden stillness after an event — the startle freeze response — as a
reaction signal. This catches a class of reactions other visual models miss.
4. Transparent decision basis in JSON output
Every accepted CC includes a
decision_basisfield:"audio+visual","audio_only_high_confidence", or"high_impact_bypass"so editors know exactly why each CC was approved.
Sample output (Hindi mode, canva.mp4)
Files
intelligent_cc_pipeline.py— full pipeline, all 3 modulesREADME.md— installation, usage, design decisions, known limitationssample_output_en.srt— English CC outputsample_output_hi.srt— Hindi CC outputsample_report.json— full JSON report with decision_basis per eventDemo video
intelligent_cc_pipeline.mp4
Youtube link of the video https://youtu.be/zn3huIukfiY
Known limitations