Open connorourke opened 11 months ago
I too encountered a similar issue. My problem was the formatting of my bounding box coordinates which should be in the format (x1,y1,x2,y2,x3,y3,x4,y4) with 1 being the top left corner, 2 being the top right corner, 3 being the bottom right corner and 4 being the bottom left corner. Make sure you have entered the bounding box coordinates in the correct format. If you are interested, I also wrote an article on fine-tuning the CRAFT model on TowardsAI https://medium.com/towards-artificial-intelligence/how-to-fine-tune-the-craft-model-in-easyocr-f9fa0ac5cc9d, which can hopefully be of further help.
I am hitting a divide by zero exception in
make_char_box.py
when training the craft recognition model where it tries to crop an image by the bounding box, but the bounding box has an area of zero.Stack trace below: