parser.about("An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition (https://arxiv.org/abs/1507.05717)");
if(parser.has("help"))
{
parser.printMessage();
return0;
}
intbackendTargetid=parser.get<int>("backend");
StringmodelPath=parser.get<String>("model");
if(modelPath.empty())
{
CV_Error(Error::StsError,"Model file "+modelPath+" not found");
@@ -5,7 +5,7 @@ Make sure you have the following packages installed:
...
@@ -5,7 +5,7 @@ Make sure you have the following packages installed:
```shell
```shell
pip install tqdm
pip install tqdm
pip install scikit-learn
pip install scikit-learn
pip install scipy
pip install scipy==1.8.1
```
```
Generally speaking, evaluation can be done with the following command:
Generally speaking, evaluation can be done with the following command:
...
@@ -27,7 +27,7 @@ Supported datasets:
...
@@ -27,7 +27,7 @@ Supported datasets:
### Prepare data
### Prepare data
Please visit https://image-net.org/ to download the ImageNet dataset and [the labels from caffe](http://dl.caffe.berkeleyvision.org/caffe_ilsvrc12.tar.gz). Organize files as follow:
Please visit https://image-net.org/ to download the ImageNet dataset (only need images in `ILSVRC/Data/CLS-LOC/val`) and [the labels from caffe](http://dl.caffe.berkeleyvision.org/caffe_ilsvrc12.tar.gz). Organize files as follow: