Skip to content

0LTSU0/ScreenLed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScreenLed

Live Mode

Description

Simple program to control addressable rgb strip based off of what's visible on screen. Values in the raspberry pi code (raspb.py) most likely require some tweaking before this works (amount of leds...). Relevant settings for pc side should be configurable through the gui.

Demo

Demo video of this running with some music videos here: https://youtu.be/UZCBObS5qF0

Usage

  1. Disable audio on your raspberry pi:

Disable audio

  1. Run rasb.py on raspberry pi with led-strip connected like this:

Connections

  1. Run pc/gui.py on your computer
    • single threaded: "python gui.py"
    • multi threaded: "python gui.py multith"

Preprocess Mode

Description

Taking screenshots for analysis is rather slow on python so there is also another option to preprosess a video and play it through the script. This has greatly better performance on slow computers!

Usage

  1. Process a video file with pc/preprocess_video.py (this will create a python pickle dump of the led information to a file in the same folder as source with the same filename)
  2. Run raspb.py
  3. Play processed video with pc/preprocess_videoplayer.py (the pickle dump is attempted to be found in the same folder as video file)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published