CRAFT-pytorch icon indicating copy to clipboard operation
CRAFT-pytorch copied to clipboard

input image size

Open SkygirlLuna opened this issue 2 years ago • 1 comments

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

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

SkygirlLuna avatar Jan 06 '23 18:01 SkygirlLuna

@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

gnana70 avatar Feb 19 '24 15:02 gnana70