Skip to main content

Module ocr

Module ocr 

Source
Expand description

Recognized-text (OCR) overlay in the lightbox: loading boxes, mouse and touch selection, and copying.

Modulesยง

geometry ๐Ÿ”’
Geometry for OCR boxes: where the photo sits in the viewer, box hit-testing, and reading order.
layer ๐Ÿ”’
Drawing area that outlines OCR boxes over the lightbox photo.
state ๐Ÿ”’
Selection state for the OCR boxes of one photo.

Functionsยง

copy_button ๐Ÿ”’
Floating button over the photo that copies the selection, or all text when nothing is selected.
is_touch ๐Ÿ”’
Touch presses must not claim the sequence, or panning and pinch-zoom stop working.