JaidedAI / EasyOCR

Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.
https://www.jaided.ai
Apache License 2.0
24.42k stars 3.16k forks source link

post processing implementation of detector ONNX javascript implementation #1014

Open pashanitw opened 1 year ago

pashanitw commented 1 year ago

Hi this is a great repo thanks for open sourcing. i exported onnx model and trying to run detector in javascript. but seems der are lot of post processing involved for the outputs of onnx output. has anyone implemented how to obtain the boxes from the onnx outputs? or please shed some light on how to implement in javascript. thanks

MdotO commented 1 year ago

Not sure if this is useful but you can use this code in python : https://github.com/JaidedAI/EasyOCR/blob/master/easyocr/DBNet/DBNet.py You need to convert hmap2bbox python function to equivalent js function to get the bounding boxes