Sharing without a network through vision https://a.exozy.me/src/6_8301_Project.pdf
Find a file
2024-04-28 21:35:46 -04:00
decoder.py Use cv2.warpPerspective instead of dumb interpolation 2024-04-28 21:35:46 -04:00
encoder.py Use cv2.warpPerspective instead of dumb interpolation 2024-04-28 21:35:46 -04:00
README.md Use cv2.warpPerspective instead of dumb interpolation 2024-04-28 21:35:46 -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

Encode: python encoder.py -i in

Play video: mpv --scale=nearest --fullscreen --loop --no-keepaspect vid.mkv

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