Skip to main content

Image Recognizer App (WIP)



This was done for image identification of any particular classification of images that are identified by a script trained on data sets and has the intelligence to identify a good number of objects and give generic info about it.
The overview of the idea is to create an image that captures an image and delegates it to a server where the script(ML trained script) is present and get the processed result and publish it to the user. The delegation method is via a rest call from the app to the server port where the script is running.

The current plan is to run a python flask app in a certain port in the localhost and make Rest calls from the app(In the form of threads that run in the background.) and process information obtained from the server and store it in the database.

Step 1: Building a simple hello world flask app.

Step 2: RestFul API supported android application.
Watching a tutorial on lynda.com - https://www.lynda.com/Android-tutorials/Integrating-Android-Apps-RESTful-Web-Services/560057-2.html

I didn't have a subscription to lynda.com. But there is a workaround to get access to a good set of tutorials for free.
You can go ahead and pay the subscription and use the services. But just in case you want to try the workaround. Please watch the following video and create a free subscription account on lynda.com
Link: https://www.youtube.com/watch?v=P9iPbB0vmNA

Note: Started working on it and currently put on hold due to other commitments. Will write follow up update posts when I get back to working on it. Until then, see you. Happy coding! :) 

Comments

Popular posts from this blog

Concurrency in Go - Visualization

In this blog, let us discuss a program to visualize concurrency in Golang. Reference and source: Program 1: import " fmt " import " time " func main () { var Ball int Ball = 5 table := make ( chan int ) go player (table, 1 ) go player (table, 2 ) fmt. Println ( " mainstart: " , Ball) table <- Ball time. Sleep ( 1 * time. Second ) endres := <- table fmt. Println ( " mainend: " , endres) } func player ( table chan int , playernumber int ){ for { ball := <- table fmt. Println (playernumber, " : " ,ball) ball++ time. Sleep ( 100 * time. Millisecond ) table <- ball } } /* ---------------------------------------------------------------------------------------------------------- Explanation: Please try to visualize on your own before reading the explanation. We will name the two goroutines that are called as player1_goroutine ...

Implementing a file monitoring script using python.

The idea is to implement a method where a user will be able to modify an xml file and the modifications will trigger a certain action in the script. This has to be implemented in python. WatchDogs is a python library that helps in file system monitoring. API reference : https://pythonhosted.org/watchdog/quickstart.html#quickstart Useful link :  http://brunorocha.org/python/watching-a-directory-for-file-changes-with-python.html The example scripts provided in the above links give a good headstart to play around with the file system and figure what is the exact use case that you want to achieve. Current use case:  The python script that I run is bundled as a container. There are mounted volumes in the container. So using an external script I am planning to modify the xml file and since the same file is modified inside the container, the python thread that is listening to the file modification event will trigger an action like sending a mail, make an entry to ...

Python run watchdog along with a flash app

The pre-requisite for understanding this blog post would be the following post. Please go through the following to set the context to understand what is discussed in this post. https://rkinsideout.blogspot.in/2017/10/implementing-file-monitoring-script.html Problem : The flask app was running and was responding to a bunch of curl commands. This was single process thread that was working. When the watchdog api was integrated and initiated with the flask program, the problem was that the watchdog thread was started and the flask app was never started. It was started only when the watchdog thread ended. Since we want both the threads to be running, the watchdog process has to run in the background and the flask app to should run normally so that both functionalities are available for use. Python thread and threading are the options available. The "thread" starts a thread and waits for it to complete before proceeding with the rest of the flow to get execute...