Update fc_block_decode.py copy image to html dir

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

@ -61,18 +61,21 @@ if __name__ == "__main__":
except: except:
print("File error") print("File error")
try: try:
system("/home/pi/ssdv/ssdv -d -J image_file image_file" + str(image_count) + "." + str(image_index) + ".jpeg") filename = "image_file" + str(image_count) + "." + str(image_index) + ".jpeg"
image = Image.open("image_file" + str(image_count) + "." + str(image_index) + ".jpeg") system("/home/pi/ssdv/ssdv -d -J image_file " + filename)
image.show() system("sudo cp " + filename + " /home/pi/CubeSatSim/groundstation/public_html/image_file.jpeg")
# image = Image.open("image_file" + str(image_count) + "." + str(image_index) + ".jpeg")
# image.show()
except: except:
print("Image display error") print("Image display error")
image_index += 1 image_index += 1
else: else:
print("End of image") print("End of image")
filename = "image_file" + str(image_count) + ".jpeg"
system("/home/pi/ssdv/ssdv -d -J image_file image_file" + str(image_count) + ".jpeg") system("/home/pi/ssdv/ssdv -d -J image_file " + filename)
image = Image.open("image_file" + str(image_count) + ".jpeg") system("sudo cp " + filename + " /home/pi/CubeSatSim/groundstation/public_html/image_file.jpeg")
image.show() # image = Image.open("image_file" + str(image_count) + ".jpeg")
# image.show()
# system("sudo rm image_file") # system("sudo rm image_file")
system("sudo mv image_file image_file" + str(image_count)) system("sudo mv image_file image_file" + str(image_count))
print("Image count: ") print("Image count: ")

Loading…
Cancel
Save

Powered by TurnKey Linux.