Comments (6)
After updated the other.py
file, it ran success on my laptop. Thanks.
from scenereco.
I didn't have this problem, Is there something wrong with your input
from scenereco.
@bear63 I also faced the problem, the error is as follows:
<ipython-input-17-823099543ec4> in <module>()
----> 1 partImg = dumpRotateImage(im,degrees(atan2(pt2[1]-pt1[1],pt2[0]-pt1[0])),pt1,pt2,pt3,pt4)
TypeError: only length-1 arrays can be converted to Python scalars
the text_recs
is an array:
In [7]: text_recs
Out[7]:
array([[[126, 145, 153],
[137, 156, 164],
[138, 157, 165],
...,
[ 69, 82, 68],
[ 72, 85, 71],
[ 71, 84, 70]],
[[132, 153, 161],
[139, 160, 168],
[138, 158, 165],
...,
[ 58, 71, 57],
[ 61, 74, 60],
[ 61, 74, 60]],
[[130, 151, 159],
[137, 158, 166],
[135, 156, 164],
...,
[ 57, 70, 56],
[ 61, 74, 60],
[ 62, 75, 61]],
Indexing the first element gets the followings:
In [11]: rec = text_recs[0]
In [12]: rec
Out[12]:
array([[126, 145, 153],
[137, 156, 164],
[138, 157, 165],
...,
[ 69, 82, 68],
[ 72, 85, 71],
[ 71, 84, 70]], dtype=uint8)
I'm just on the way to get it running and has not fully read the project code.
from scenereco.
@bear63 I have the same problem, It looks like that the function math.atan2 can not accept parameters with list type. and may i ask How do you handle the detection results (such as tilt box)?
from scenereco.
@willard-yuan I have the same problem,can you tell me how to updated the other.py file ,ths
from scenereco.
use this other.py would be ok, It is different from the code in tianzhi0549/CTPN
from scenereco.
Related Issues (20)
- CTPN的链接失效了 HOT 2
- CRNN CPU model file HOT 2
- the link of model file is invalid, can you update it? Thanks. HOT 1
- 怎么训练新的数据 HOT 1
- IndexError: index 6 is out of bounds for axis 0 with size 5 HOT 1
- The link of words file is invalid, can you update it? Thanks.
- Cannot use GPU in CPU-only Caffe: check mode HOT 1
- can not recognize Chinese words in the picture
- Training dataset HOT 4
- I cannot run it on windows--cpu HOT 1
- how to deal with the angle when making dataset?
- run demo.py wrong HOT 5
- crnnport.py IndexError: tuple index out of range
- something about the ortated images
- repeated sequence of characters
- python demo.py
- 请问下netcrnn63.pth是在您的博客下的那些样本下训练的吗
- run demo.py wrong on windows--cpu
- ctpn detect tilted numbers HOT 2
- Trying to get in touch regarding a security issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scenereco.