Normalize image metadata before OCR inference
Camera files can store pixels in one orientation and rely on metadata for display rotation. OCR decoders may therefore read a sideways image even when the UI shows it upright. Validate decoded dimensions and pixel count first, then apply orientation metadata before color conversi…