Sharing without a network through vision https://a.exozy.me/src/6_8301_Project.pdf
Find a file
2024-05-11 11:14:11 -04:00
checkpts Separate localize_corners but still different cropping 2024-05-07 17:28:56 -04:00
corner_training Preliminary CNN decoding 2024-05-07 14:02:26 -04:00
.gitignore Separate localize_corners but still different cropping 2024-05-07 17:28:56 -04:00
decoder.py More flexible grid sizes (non-square and not multiple of 80); calibrated vs gtruth diff plot in comments; 90kbps 2024-05-11 11:12:31 -04:00
decoding_utils.py More flexible grid sizes (non-square and not multiple of 80); calibrated vs gtruth diff plot in comments; 90kbps 2024-05-11 11:12:31 -04:00
encoder.py Remove unnecessary prints 2024-05-11 11:14:11 -04:00
README.md Determining colors by averaging over expected region 2024-05-07 22:07:15 -04:00
requirements.txt Use latest pre-release of reedsolo 2024-04-28 13:12:06 -04:00

6.8301 Project

Installation

pip install -r requirements.txt
# Compile reedsolo using Cython
pip install --upgrade reedsolo --no-binary "reedsolo" --no-cache --config-setting="--build-option=--cythonize" --use-pep517 --isolated --pre --verbose --force-reinstall

Usage

Encoding v0

Encode: python encoder.py -v 0 -i in

Play video (SEIZURE WARNING): mpv --scale=nearest --fullscreen --loop --no-keepaspect vid.mkv

Encoding v1

Encode: python encoder.py -v 1 -i in -x 80 -y 80

Play video (SEIZURE WARNING): mpv --scale=nearest --fullscreen --loop vid.mkv

Decoding

Copy the flags printed by the encoder and pass them to the decoder: python decoder.py FLAGS

Formatting: black -l 120 *.py

Use phone as webcam for higher quality video: scrcpy --v4l2-sink=/dev/video4 --video-source=camera --no-video-playback --camera-size 1920x1440