|
|
|
|
@ -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")
|
|
|
|
|
|