Skip to content

TV Ad blocker using OBS Studio and OpenCV (simple logo detection using template matching)

Notifications You must be signed in to change notification settings

mrx1518202/tvadblocker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TV Ad blocker

TV Ad blocker using OBS Studio and OpenCV (simple logo detection using template matching)

Requirements

Usage

  1. Run OBS Studio and create two scenes:
    • tv: This is the scene that will be shown when there is no ad
    • adbreak: This is the scene that will be shown when an ad is detected. Put anything you want here, a cute video, or a message saying "Ad break".
    • Add the NDI filter to the tv scene.
  2. Install the OBS Websocket plugin and configure it to use the default port (4444), and enable authentication (default script password is "secret"). Restart OBS and start the websocket server.
  3. Replace logo.png with the logo of the channel you want to block ads from. You can use any image format supported by OpenCV.
  4. Set the config file (config.ini) to your liking.
  5. Run the script: python main.py

About

TV Ad blocker using OBS Studio and OpenCV (simple logo detection using template matching)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%