mirror of
https://github.com/data-privacy-stack/presidio.git
synced 2026-07-23 11:20:55 -05:00
`verify_dicom_instance` already returns formatted ocr bboxes and analyzer bboxes (the result of calling `get_bboxes_from_ocr_results` and `get_bboxes_from_analyzer_results` internally). However, `eval_dicom_instance` was calling both formatters a second time on those already-formatted lists, causing a TypeError when list-of-dict results were indexed with a string key instead of an integer. Also fix the positional argument mismatch in the `verify_dicom_instance` call: `use_metadata` was passed as the 4th positional argument but the 4th parameter of `verify_dicom_instance` is `show_text_annotation`. Changed to a keyword argument to avoid ambiguity. Closes #1251 Signed-off-by: Oleksandr Sanin <alexaaander.sanin@gmail.com> Co-authored-by: Sharon Hart <sharonh.dev@gmail.com>