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

input image size #187

Open
SkygirlLuna opened this issue Jan 6, 2023 · 1 comment
Open

input image size #187

SkygirlLuna opened this issue Jan 6, 2023 · 1 comment

Comments

@SkygirlLuna
Copy link

What is the maximal image input size for craft text detection?

Is the success rate for text detection dependent on the image size?

@gnana70
Copy link

gnana70 commented Feb 19, 2024

@SkygirlLuna , Inference time of the model increase when you increase the input image size. Also, this other parameters like
link_threshold, text_threshold, low_text plays a role in accurate text detection. I used below settings to get optimal speed and accuracy.

size = max(image.shape[0],image.shape[1],640)
# Reshaping to the nearest size
size = min(size,2560)

text_threshold=0.5,
link_threshold=0.1,
low_text=0.30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants