Android digit classifier that works with a python http server
- Clone the repo, import project in android studio, build and run on your phone or emulator.
- Open
pythonScriptsfolder and runserver.pyby using commandpython server.py PORT_NUMBER. ReplacePORT_NUMBERby some feasible port number, say8800. - run
ngrok.exeand use commandngrok http PORT_NUMBER. ReplacePORT_NUMBERby same port number used in step 2. - Inside the app set URL same as the one you receive in step 3, something like
http://abcdefgh.ngrok.io. - Capture an Image using the
SELECTbutton, and then useSENDbutton to send the image as aPOSTrequest to the python server and receive final image as aGETrequest.
POST image Forward Forward
`Andoroid App` -------------> `ngrok server` -------------> `python server` -------------> `perform recognition`
^ | ^ | ^ |
|__________________________| |_______________________| |_____________________________|
GET image Forward Write final image


