Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text_detection_db/demo.py #57

Closed
the-star-sea opened this issue May 30, 2022 · 3 comments · Fixed by #58
Closed

text_detection_db/demo.py #57

the-star-sea opened this issue May 30, 2022 · 3 comments · Fixed by #58
Assignees
Labels
bug Something isn't working

Comments

@the-star-sea
Copy link
Contributor

There are two bugs
64 to 72,69 line needs a '',"

model = DB(modelPath=args.model,
               inputSize=[args.width, args.height],
               binaryThreshold=args.binary_threshold,
               polygonThreshold=args.polygon_threshold,
               maxCandidates=args.max_candidates,
               unclipRatio=args.unclip_ratio
               backendId=args.backend,
               targetId=args.target
    )

83 to 85,the score is a float in line 85

   print('{} texts detected.'.format(len(results[0])))
        for idx, (bbox, score) in enumerate(zip(results[0], results[1])):
            print('{}: {} {} {} {}, {:.2f}'.format(idx, bbox[0], bbox[1], bbox[2], bbox[3], score[0]))
@fengyuentau
Copy link
Member

Thanks for locating the bugs! You are welcome to make a pull request to fix it.

@fengyuentau fengyuentau self-assigned this May 31, 2022
@fengyuentau fengyuentau added the bug Something isn't working label May 31, 2022
@fengyuentau fengyuentau assigned zihaomu and unassigned fengyuentau May 31, 2022
@zihaomu
Copy link
Member

zihaomu commented Jun 1, 2022

Hi Tong @the-star-sea, it would be nice if you could submit a PR to fix this bug.

Some potentially useful information:
CPP demo of DB model

@the-star-sea
Copy link
Contributor Author

ok.I will do it today

@fengyuentau fengyuentau linked a pull request Jun 6, 2022 that will close this issue
1 task
@fengyuentau fengyuentau added this to the 4.9.0 (first release) milestone Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants