I am using the in_memory_advanced_frame_differencing script and I would like to save the original picture that was obtained before the image subtraction.
So far my workaround was to take another snapshot after the trigger but this results in an unwanted delay.
Currently, I added this to the script:
if(triggered): img.save("triggered_%d.jpg" % frame_count)
But I find that the original img image seems to have been altered by calling the difference function? I use other languages where the difference result would have to be explicitly assigned to an object for that kind of behavior so I am clueless and haven’t found an easy way to do save my original img…