implementation of the receiving side
This commit is contained in:
12
Decoder/decodeAllFiles.sh
Normal file → Executable file
12
Decoder/decodeAllFiles.sh
Normal file → Executable file
@@ -1,11 +1,11 @@
|
||||
#/bin/bash
|
||||
ls input/ | sort | while read f;do
|
||||
dta=$(zbarimg --raw --nodbus input/$f)
|
||||
while /bin/true;do
|
||||
fswebcam -q -r 800x800 a.png
|
||||
#dta=$(fswebcam -q -r 1280x720 - | zbarimg -q --raw --nodbus -)
|
||||
dta=$(zbarimg -q --raw --nodbus a.png)
|
||||
chunkNum=${dta/|*/}
|
||||
chunkData=${dta/*|/}
|
||||
echo ${chunkNum}
|
||||
|
||||
|
||||
# >> output.dat
|
||||
echo received: ${chunkNum}
|
||||
echo $chunkData | base64 -d > chunks/${chunkNum}.chunk
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user