Closed pinakinathc closed 5 years ago
Yes, your problem is the size of the input image, please resize it to have a height of 150px
and a width of 600px
, then it should work.
okay. I did that after going through the code and log file. I added a resize function which would resize an image to height: 150px
and width: 600px
but then for the following image:
please click this link to view the image
I got no recognition and also the output of OrderedDict
is:
(see) pinaki@Krishna:~/research/dl/see/see/chainer$ python fsns_demo.py models/model model_35000.npz position.jpg ../datasets/fsns/fsns_char_map.json --gpu=0
OrderedDict([('',
OrderedDict([('bottom_right',
(76.75752258300781, 79.74514770507812)),
('top_left',
(56.44001388549805, 68.8976058959961))]))])
hence, I thought that I screwed up somewhere. @Bartzi
Well, the model won't work with such an image. Did you have a look at the FSNS Dataset?
For your image, you should try the file text_recognition_demo.py
.
Thanks @Bartzi i downloaded a sample image from fsns dataset and now it is giving results.
You are welcome =)
hi I am trying to run a sample image with
fsns_demo.py
using the following command:I am getting the following Error:
Now, I know that in #24 mentioned about resizing of the image.
Can someone please help me fix this issue? It seems impossible to trace the source of the error.
@Bartzi