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

SyntaxError: invalid syntax #3

Closed
jl-yin opened this issue Jul 12, 2018 · 3 comments
Closed

SyntaxError: invalid syntax #3

jl-yin opened this issue Jul 12, 2018 · 3 comments

Comments

@jl-yin
Copy link

jl-yin commented Jul 12, 2018

yin@yin-00:~/text-detection-master/text-detection-master$ python3 text_detect.py -i ./images/scenetext01.jpg -f
File "text_detect.py", line 130
def getStrokes(self, (x, y, w, h)):
^
SyntaxError: invalid syntax

yin@yin-00:~/text-detection-master/text-detection-master$ python3 text_detect.py -i ./images/scenetext01.jpg -o ./output
File "text_detect.py", line 130
def getStrokes(self, (x, y, w, h)):
^
SyntaxError: invalid syntax

How should this problem be solved?

@azmiozgen
Copy link
Owner

When I execute the last committed version, I do not get such an error. It should be an indentation or parentheses error. Please give me the environment you run the code and larger code block where the error occurs.

@mit456
Copy link

mit456 commented Jul 16, 2018

@azmiozgen the errors are becuase of python3 I believe. I have raised a pull request to support python3.

Please have a look.

@azmiozgen
Copy link
Owner

Ok, thanks.

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

3 participants