SMI / dicompixelanon

DICOM Pixel Anonymisation
3 stars 0 forks source link

dicom_ocr - check it handles rotated text #3

Closed howff closed 1 year ago

howff commented 1 year ago

readtext has rotation_info (list, default = None) - Allow EasyOCR to rotate each text box and return the one with the best confident score. Eligible values are 90, 180 and 270. For example, try [90, 180 ,270] for all possible text orientations.

Try also DBnet reader = easyocr.Reader(['en'], detect_network = 'dbnet18')

howff commented 1 year ago

Rotated text was often detected anyway, but this commit makes it much more reliable https://github.com/SMI/dicompixelanon/commit/8e151bde7869b954b3fe347835e3744bad45956f

(Not tried DBnet yet though)

howff commented 1 year ago

Will open a new issue to try DBnet