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

Application not working and errors #5

Open
farhanchoudhary opened this issue Sep 13, 2018 · 5 comments
Open

Application not working and errors #5

farhanchoudhary opened this issue Sep 13, 2018 · 5 comments
Labels

Comments

@farhanchoudhary
Copy link

Hi, I've been trying to reproduce the results from this app and enhance on it, but I'm unable to run it over the flask framework. Once I upload the image, it redirects to a page not found error and stops. Other than that, the sys.args[1] throws an out of bound error. Can we connect over here or some other medium to discuss?

@dilippuri
Copy link
Owner

I think the same problem with everyone who going to use this app. Even I exactly don't know whether the error is coming due to the version of the used language or something else. Try to use the same version which i have used

@farhanchoudhary
Copy link
Author

So at the moment, I have made some slight modifications to the code along with some extra pre-processing, such as padding etc. The sys.args[1] argument is to be used on the command line with the name of the input text image to be passed into the python program, with an output processed image which will be used for image to text conversion. In the new version of cv2, wherever there's contour, hierarchy, it has to be replaced by _, contour, hierarchy since the function returns 3 arguments and not 2.
I am still struggling to operate it through the Flask framework application. Any inputs on that? My objective is to make 3 subsequent applications for Aadhar, Voter ID and PAN Card Image detection and storing it in a database or exporting a ready-to-use JSON. It would be great if we could collaborate.

P.S. For anyone else facing issues, I have made a slightly modified version on Python 3.6, Windows 10, with PyCharm and Spyder IDEs.

@dilippuri
Copy link
Owner

i am also new to flask and heroku. But if u will use your machine as host then it should work fine.

@farhanchoudhary
Copy link
Author

I'm using my machine as a host on the Flask app. Once I've uploaded the file it gives me a 404 error post upload. I think the upload is not working. How did you get the app running on the local host?

Did you get both the Aadhar & PAN Card extractions via command line or by running from the IDE? It would be helpful if you could recall the procedure to get the app up and running. I've also sent you a LinkedIn connection request, it would be great if we could network as well.

Thanks

@dilippuri dilippuri added help wanted Hacktoberfest For Hacktoberfest labels Oct 1, 2018
@SriHarshaNagulakonda
Copy link

I'm getting 404 error and saying like, upload.php not found.

I have gone through the code and saw that there is an action to "upload.php" in the form tag.
But there is no upload.php file in this repository.

Can you please help me resolve this error.

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

No branches or pull requests

3 participants