A browser application which uses the webcam of your device to map LED positions.
The Browser expects to be able to send commands through a websocket to turn on a series of LEDs one at a time. It takes a photo before and after turning the light on using a webcam and compares the two frames to calculate the x & y position within the camera frame.
The left hand image shows the camera feed and the right hand image shows the position of the LED marked with a red square.
Clone the repo
git clone https://github.com/met-office-lab/led-mapper.git
Run a web server and view the index.html
page in a browser.
Dim the lights and point your webcam at the LED matrix you wish to map.
Watch the console output for a json object to be printed on completion.
Pro Tip: To run a simple web server in your current directory run python -m SimpleHTTPServer 8000
and visit http://localhost:8000
in your browser.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D