Hello,
I am trying to load JPEG files into processing while they are constantly being written onto my machine form an external camera. Problem is that sometimes, I load an image before it has finished being written to the machine. As a result, I load an image that is half gray, and is missing pixel data. When this happens, in the terminal, I get the warning message
"Premature end of JPEG file"
Which is good to know, but I need to check to see if the JPEG file is complete, before loading it, and if it is not a complete file, I need to wait for it to be finished written before I load it.
Any suggestions on how this can be achieved?
Thanks,
Jack
1