live working with image

This commit is contained in:
devdesk 2024-02-15 00:30:29 +02:00
parent fccc2ba2e5
commit d9cb5986ee
2 changed files with 5 additions and 1 deletions

View File

@ -179,4 +179,5 @@ else:
for frame in frames:
print('.')
Image.fromarray(np.frombuffer(frame, dtype='>H').reshape(WIDTH, HEIGHT)).save(f'live.png')
Image.fromarray(np.frombuffer(frame, dtype='>H').reshape(WIDTH, HEIGHT)).save(f'live.new.png')
os.rename('live.new.png', 'live.png')

3
run_live.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
cd $(dirname $0)
sudo ./venv/bin/python ./decode.py --live