TomerGibor / Final-Project-OCR

An algorithm that detects text in an image using ML and computer vision. The algorithm communicates with an app written in Flutter that serves as an easy-to-use GUI.
MIT License
15 stars 3 forks source link

server #1

Open Lilyane1 opened 1 year ago

Lilyane1 commented 1 year ago

Hi, my name is Lilian . I am doing the exact same project for my final year and i came across your code. My question is, after running the commands given for the server there is a link generated as below; INFO: Started server process [5276] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:80 (Press CTRL+C to quit)

but when i click on the link it just says this site can't be reached. Please provide some guidance on that

TomerGibor commented 1 year ago

Hi Lilian, great to hear that this repo may be of use to other people :). The ip address 0.0.0.0 has a special meaning - it means that the server is listening on all available interfaces, which is exactly what we want and need! It means that if a request reaches your computet in any way ln the specific port, the request will be routed to our server. However, 0.0.0.0 is not an ip you can surf to, and it only holds special meanings. To reach the server locally on your computer you would have to use another special ip address: 127.0.0.1 or simply type "localhost". Either will route the request back to your computer and to the server. So instead of http://0.0.0.0:80, use http://127.0.0.1:80 or http://localhost:80. If you have any other questions, please feel free to contact me and I'll try my best to help you😁.

PS, if you are running the server code on a different computer, you'll need to use the other computer's ip address.

Regards, Tomer

Lilyane1 commented 1 year ago

Hi Tomer, Thank you for your quick response I had a few other enquirers; How does your app do text recognition I understand your trained a model for the handwriting recognition, do you still have the notebook where you trained it? How did you create the server and what are all those many directories in it.. kindly break it down for me

This will be much appreciated

Regards,

Lilian On Sat, 22 Oct 2022 at 6:23 PM, Tomer Gibor @.***> wrote:

Hi Liliana, great to hear that this repo may be of use to other people :). The ip address 0.0.0.0 has a special meaning - it means that the server is listening on all available interfaces, which is exactly what we want and need! It means that if a request reaches your computet in any way ln the specific port, the request will be routed to our server. However, 0.0.0.0 is not an ip you can surf to, and it only holds special meanings. To reach the server locally on your computer you would have to use another special ip address: 127.0.0.1 or simply type "localhost". Either will route the request back to your computer and to the server. So instead of http://0.0.0.0:80, use http://127.0.0.1:80 or http://localhost:80. If you have any other questions, please feel free to contact me and I'll try my best to help you😁.

PS, if you are running the server code on a different computer, you'll need to use the other computer's ip address.

Regards, Tomer

— Reply to this email directly, view it on GitHub https://github.com/TomerGibor/Final-Project-OCR/issues/1#issuecomment-1287826316, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX367FKF7A5BJXPYXAADLNLWEQBH7ANCNFSM6AAAAAARL4EDFQ . You are receiving this because you authored the thread.Message ID: @.***>

TomerGibor commented 1 year ago

Hi Lilian, Sorry for the late reply, I haven't had much time recently... My app does OCR (text recognition using the python server which does all the heavy computation using Computer Vision, and Convolutional Neural Networks. The model is trained using the EMNIST database which you can find online. The Neural Network received a 64x64 pixel input of a character (after dividing the original input into individual lines and characters) and predicts the character in the image. The server is created using python libraries FastAPI and unicorn. I suggest you read more online on those libraries. I don't know what you are referring to with the directories in the server, as there is only one... To download the app to your phone you need to install Flutter and follow the instructions in the README on Github.

Happy to help😀

Regards, Tomer Gibor

On Tue, Oct 25, 2022 at 12:08 PM Lilyane1 @.***> wrote:

Hi Tomer ,

I am sorry for all these emails. I really need your help with one more thing. Could you be having the APK of your OCR application with you. If so would you kindly send it to me. I will really appreciate it

Regards, Lilian

On Tue, 25 Oct 2022 at 11:43 AM, Lilian Karimi @.***> wrote:

Hi Tomer,

Feel free to reach me via WhatsApp on +254 793677909 for faster communication since It is a bit urgent.

Looking forward to hearing from you:)

Regards, Lilian

On Sat, 22 Oct 2022 at 6:23 PM, Tomer Gibor @.***> wrote:

Hi Liliana, great to hear that this repo may be of use to other people :). The ip address 0.0.0.0 has a special meaning - it means that the server is listening on all available interfaces, which is exactly what we want and need! It means that if a request reaches your computet in any way ln the specific port, the request will be routed to our server. However, 0.0.0.0 is not an ip you can surf to, and it only holds special meanings. To reach the server locally on your computer you would have to use another special ip address: 127.0.0.1 or simply type "localhost". Either will route the request back to your computer and to the server. So instead of http://0.0.0.0:80, use http://127.0.0.1:80 or http://localhost:80. If you have any other questions, please feel free to contact me and I'll try my best to help you😁.

PS, if you are running the server code on a different computer, you'll need to use the other computer's ip address.

Regards, Tomer

— Reply to this email directly, view it on GitHub < https://github.com/TomerGibor/Final-Project-OCR/issues/1#issuecomment-1287826316 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AX367FKF7A5BJXPYXAADLNLWEQBH7ANCNFSM6AAAAAARL4EDFQ

. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/TomerGibor/Final-Project-OCR/issues/1#issuecomment-1290231558, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALCASKCZ4WFH2MXZ7G3KTIDWE6PQHANCNFSM6AAAAAARL4EDFQ . You are receiving this because you commented.Message ID: @.***>

Lilyane1 commented 1 year ago

Hi Tomer, Thanks for all the help. I was able to run the app successfully. However, lately the save button has been giving me an issue. when i try to save thee is an error on the application(error downloading file)and on the server side it brings an error 404 not found. Its like data is not being stored in the server for the app to access it. Ip address is okay and all other buttons work fine only the save button brings this error. My internet connection is okay too. I have run out of options.... Your help will be very much appreciated as soon as you can.

Regards, Lilian