ArucoDetector detectMarkers 8-bit limitation reason

except, cameras aren’t 1-bit, and lighting is rarely perfect.

detection of markers isn’t performed on masks. if you at any point turn your camera picture into a “mask”, and present that to the aruco detection, you’ve just shot yourself in the foot.

the image processing preceding (included in) actual detection has to work on a camera picture, not “masks”. the detection involves thresholding that compensates for differences in exposure, also in the same picture.

one could desire to preserve as much as possible of the data from the sensor. one could desire higher dynamic range than provided by regular old camera types.

in some edge cases, that could provide an advantage in making markers detectable.

usually, there’s little to gain. usually, the solution to such problems is to correct the lighting and camera settings.