BlobDetector.preprocess() returns the wrong frame