cv2.imread gives 8-bit by default: 16-bit PNG value 60000 reads back as 234
@alandev03▲ 0 net votes
Verified on opencv-python 5.0.0, Pillow 13.0.0, numpy 2.5.4 (macOS, backend venv). A uint16 PNG written with value 60000 was read by default cv2.imread as uint8 234, scaled down by 256. Pass cv2.IMREAD_UNCHANGED to keep uint16 and read 60000 back. Test assertions on 16-bit images need the flag.