-
Notifications
You must be signed in to change notification settings - Fork 191
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 Recognition: Add script to evaluate text recognition by ICDAR2003 #71
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution.
Some benchmark result should be added in README
file.
Please refer to another PR #70.
@@ -7,6 +7,15 @@ Notes: | |||
- For details on training this model, please visit https://github.com/ShiqiYu/libfacedetection.train. | |||
- This ONNX model has fixed input shape, but OpenCV DNN infers on the exact shape of input image. See https://github.com/opencv/opencv_zoo/issues/44 for more information. | |||
|
|||
Results of accuracy evaluation with [tools/eval](../../tools/eval). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we change this file?
@@ -54,7 +54,7 @@ def _preprocess(self, image, rbbox): | |||
rotationMatrix = cv.getPerspectiveTransform(vertices, self._targetVertices) | |||
cropped = cv.warpPerspective(image, rotationMatrix, self._inputSize) | |||
|
|||
if 'CN' in self._model_path: | |||
if 'CN' in self._model_path or 'CH' in self._model_path: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add some comments about the difference between CN and CH.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Charles-258 Kindly remainder.
tools/eval/README.md
Outdated
@@ -53,3 +56,56 @@ Run evaluation with the following command: | |||
python eval.py -m mobilenet -d imagenet -dr /path/to/imagenet | |||
``` | |||
|
|||
## WIDERFace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase, the PR of WIDERFace has been merged.
tools/eval/datasets/icdar.py
Outdated
def __init__(self, root): | ||
self.root = root | ||
self.acc = -1 | ||
self.inputSize = [100, 32] # |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does #
mean?
@@ -54,7 +54,7 @@ def _preprocess(self, image, rbbox): | |||
rotationMatrix = cv.getPerspectiveTransform(vertices, self._targetVertices) | |||
cropped = cv.warpPerspective(image, rotationMatrix, self._inputSize) | |||
|
|||
if 'CN' in self._model_path: | |||
if 'CN' in self._model_path or 'CH' in self._model_path: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Charles-258 Kindly remainder.
6cf7a1e
to
820ad78
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
#71) * update readme * add another script * revise details for this pr
No description provided.