Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

Monday, 15 October 2012

Why I Love Python....



        Out of 3 program loving nerds  you will find 1 who knows Python !! ..that's not an exaggeration ..a fact seen by me. When i was getting familiar with python I realized why its so popular and it's demanding among other versatile programming languages.

      I would like to say the first and highlighted benefit of Python Coding is that it Upholds The Basic Principle Of Internet = "Effective Sharing" . You heard it well!!..Python is on a open source platform..anyone can develop..anyone can share..anyone can contribute to the growth. Yeah, via python you can share the codes/program effectively among other users and programmers. This is because Python emphasizes on readability of the program. Instead of braces and all...it demands indentation.


                                 In other programming languages most of the lazy programmers keep indentation part at  last. Gradually laziness will put that part into trash..leading to the readability of the code restricted to only the creator..and that too with a time concern. After more than 6 months, when you take the program without any indentation or documentation you will have to lie on it for going back to the memories and some times you will end up in a big failure..atleast your time will be eaten because of your laziness at the time of creation. So this kinda programming will lead to restricted understanding of your program to other people. That's a big minus sign when it comes in sharing  and developing some wanna be code using multiple brains.

                                As a guardian Python makes our last worthy option into parallel one. While coding it parallely emphasizes on indentation instead of braces, semicolons etc. leading to  code which can be shared into multiple brains and can use the same for building up the mega program.

                Personally one more thing I have to point out in Python is that I don't waste time or struggle in specifying the type of variable and declaration. It's as simple as if am gonna make a Egg then i have to concentrate in the formation and shape of egg only. I don't want to waste time for specifying that the Egg is in solid form, it's made of calcium carbonate and the blah blah matter because the language understands automatically.

        Out of all these, I have to say one globally defining statement for python "Object oriented Scripting Language".  Python's development is taken care by a non profit organisation Python Software Foundation(PSF). Guido Van Rossum is the father of Python.

        Python is enriched by so many libraries like Open Cv..all the image enhancing libraries plus all kinda object/hardware controlling libraries like Pymouse (As the name says, mouse controlling library). With it's enrichment in efficiency, readability  library support etc It is being used in almost all fields..mobile apps, websites,  artificial intelligence etc.

Monday, 1 October 2012

Gesture Mouse - The Core Program in Sixth Sense




                   
Gesture recognition is a language technology with the goal of interpreting human gestures via mathematical algorithms. Gestures can originate from any bodily motion or state but commonly originate from the face or hand. Current focuses in the field include emotion recognition from the face and hand gesture recognition. Many approaches have been made using cameras and computer vision algorithms to interpret sign language. However, the identification and recognition of posture, gait, proxemics, and human behaviors is also the subject of gesture recognition techniques. “GESTURE MOUSE” is an invisible computer mouse that provides the acquaintance of interface of a physical mouse without actually needing a real hardware mouse. As we improve our computer vision algorithms, an extensive library of gestures could be implemented in addition to mouse movement and mouse clicks.


         Gesture recognition can be seen as a way for computers to begin to understand human body language, thus building a richer bridge between machines and humans than primitive text user interfaces or even GUIs (graphical user interfaces), which still limit the majority of input to keyboard and mouse. The proposed gesture mouse system consists of a camera to obtain the video and frames of the hand and a CPU for processing the video. The gesture recognition algorithms are quiet complex. A number of contending software tools can be used to implement Gesture recognition. The prospective candidates are MATLAB and Scientific Python (SciPy). Python has the advantage of better interfacing with system level operation, better memory management and efficiency over MATLAB. It was identified to use SciPy with OpenCV library for implementing Gesture Mouse.
     


         Gesture  Mouse  project got  it’s origin  under  the motivation  of  Pranav Mistry’s  Sixth Sense.  So  this is a part of  the big  project done  by Pranav Mistry with  5 years  effort. User  requirement   of  this  project is world  wide.  Sixth Sense is  a  wearable gestural interface that augments the physical world  around us  with digital information  and  lets us use natural hand gestures to interact with that  information. The main purpose of our project is to replace the hardware mouse with the gesture mouse. In gesture mouse we use our hand gestures to employ the mouse functions.

        

Saturday, 29 September 2012

Sixth Sense - The Future is Here !!



            Sixth Sense is an awesome project initiated by Pranav Mistry, a Reseach Assistant and Phd candidate at the Massachusetts Institute of Technology (M.I.T) Media Lab.

            Usually we go to ATM and interact with machine or when we go to railway station and search information in kiosk. So what we are doing here is moving our Physical world to the place where we get Digital information. But what sixth sense is offering is that we are able to interact with the digital world on the fly.



A Picture is worth a Thousand words. Moreover, A Video is worth a Thousand Pictures.

Just buffer out this video and you will see what is Sixth Sense and Why everyone is assuring it's the future.

            

                                                                   
Simple definition is that "Sixth Sense is a wearable gestural interface that let us bring our physical world to interact with the digital world on the fly"

  So the core components behind this mega project are:

1>A smart phone capable of processing the data and program execution

2>A pico projector

3>Camera to capture the gestures

4>Colored Markers which will help to detect the fingers.



The Architecture on how the sixth sense works is given below:


Sensor captures the gestures/screen and then it is processed by the program. The result of the program is the decisions and the movement of mouse pointer based on the gesture movement. This result will be given to the applications using like games, web browser etc. User can have a display using projector or on a monitor.


             This Mega Project consists of simple components but an Intelligent Program Code.

Gesture Mouse or Air mouse is the major core in this project. It will be explained in the next post. Wait till then!!....

Friday, 28 September 2012

Birth of SIxth Sense in our B-tech Project


In my post Opening the doors of Linux I have mentioned the inspiration behind choosing python and being familiar with Linux OS for our last semester B-tech Project. Before all these storys we wanted to choose our project topic. Our team had a wish to choose an innovative topic rather than what our H.O.D says "reinventing the wheel".

                   Spend hours in net, went to our project institution Castalia Labs.. had talks with them. They had a list of topics what they  have did with students like stereo vision, traffic signal recognition, measurements using webcam etc. Though it were the best topics to choose we wanted something more. When we were having talk with Mirshad and Jemshid sir suddenly my team mate visakh got an idea from what he read in an article..."Sixth Sense"..Though it was a big master project..they didn't let us go down. They told they can help us with the project "Gesture Mouse".

                             Gesture Mouse is a small major  part of Sixth Sense project which needs digital image processing. So they supported us with two options either MATLAB or PYTHON. As i told later, we chose Python and Ubuntu 11.04 os.  We had a full support for choosing these as the castalia labs were the promoters of open source platform.

                           So..its time to know more about Sixth Sense. Got into the ocean of  net..searched a lot...got more information about Pranav Mistry's Sixth Sense.