Update fc_block_decode.py add .stdout

fc-fctelem
Alan Johnston 10 months ago committed by GitHub
parent 257a94e750
commit ea6730a448
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -65,10 +65,10 @@ if __name__ == "__main__":
# try:
filename = "image_file" + str(image_count) + "." + str(image_index) + ".jpeg"
# system("/home/pi/ssdv/ssdv -d -J image_file " + filename)
process_output = subprocess.run(["/home/pi/ssdv/ssdv","-d","-J", "image_file", filename], text=True)
process = subprocess.run(["/home/pi/ssdv/ssdv","-d","-J", "image_file", filename], text=True)
print("\n\n RESULT: \n")
print(process_output)
s = io.StringIO(process_output)
print(process)
s = io.StringIO(process.stdout)
for line in s:
if ((line.find("Image ID:")) > 0):
print("\nImage ID found!\n")

Loading…
Cancel
Save

Powered by TurnKey Linux.