Skip to content
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

crnnport.py IndexError: tuple index out of range #50

Open
LuWei6896 opened this issue Jan 2, 2019 · 0 comments
Open

crnnport.py IndexError: tuple index out of range #50

LuWei6896 opened this issue Jan 2, 2019 · 0 comments

Comments

@LuWei6896
Copy link

three is some errors on the below:
please input file name:1755.jpg
text_recs: [((16.0, 768.6111), (159.0, 790.30804)), ((48.0, 579.4411), (511.0, 690.03076)), ((528.0, 790.0657), (591.0, 800.4505))]
rec: ((16.0, 768.6111), (159.0, 790.30804))
pt1: (16.0, 768.6111)
pt2: (159.0, 790.30804)
Traceback (most recent call last):
File "demo.py", line 26, in
crnnRec(model,converter,img,text_recs)
File "/home/luwei/ML/CRNN/sceneReco-master/crnnport.py", line 57, in crnnRec
pt3 =(rec[6],rec[7])
IndexError: tuple index out of range

Q:waht is the fuction of this block?
pt3 =(rec[6],rec[7])
pt4 =(rec[4],rec[5])
partImg = dumpRotateImage(im,degrees(atan2(pt2[1]-pt1[1],pt2[0]-pt1[0])),pt1,pt2,pt3,pt4)
mahotas.imsave('%s.jpg'%index, partImg)

thanks for your contribution!
Best Reagrd!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant