Skip to content

Image must be cloned in text spotting #23685

@LaurentBerger

Description

@LaurentBerger

System Information

Same problem in scene_text_spotting than in #23683

Detailed description

Image where result are printed must be a clone when --rgb is set to 1

recInput = frame;

putText(frame, recognitionResult, quadrangle[3], FONT_HERSHEY_SIMPLEX, 1, Scalar(0, 0, 255), 2);

Steps to reproduce

scene_text_spotting --rgb=1 -i="C:\lib\opencv_zoo\models\text_detection_db\examples\gsoc.jpg" --dmp=C:\dnn_models\DB_IC15_resnet50.onnx --rmp=C:\dnn_models\crnn_cs.onnx
0: 'program'
1: 'broar'
2: 'view'
3: 'announced'
4: 'program'
5: '2022'
6: 'code'
7: 'summer'
8: 'google'

Result with clone
0: 'program'
1: 'page'
2: 'view'
3: 'announced'
4: 'program'
5: '2022'
6: 'code'
7: 'summer'
8: 'google'

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions