After having spent a significant amount of time trying to programmatically detect whether a downloaded image is split/torn (as happens from time to time with the ASI120 when connected via USB to a Raspberry Pi) I have only been able to do this with about 90% accuracy. It would make the detection process MUCH easier if there was a way we could ask the camera to add a known value to a block of pixels. For example, if it was possible to add a 1 pixel wide white border around the entire image, we could simply check the left most column of pixels to make sure the average pixel is 255. Since split frames always shift the bottom of the image by a random amount, these frames would have an average pixel value lower than 255.
I'm not sure how feasible it would be to implement this into the SDK, but if it were possible it would give us a very easy way to simply discard these split frames.
Regards
Simon