Its working principle is mathematically heavy. Basically, it uses some input values, processes it using a function and then matches the value to a particular class.
In this post, I'll be sharing my notes on Argparse module on python. I've come across argparse module while working on my project. After googling, I've found this great tutorial at official python website: https://docs.python.org/2/howto/argparse.html . If you go through this, you'll get a very good idea about argparse and its usage. I'm just posting this as a summarized version of what I've understood from the tutorial. Anyone can go through this for quick reference. Introducing Positional Arguments : import argparse parser = argparse . ArgumentParser () parser . add_argument ( "square" , help = "display a square of a given number" , type = int ) args = parser . parse_args () print args . square ** 2 add_argument - To specify command line arguments the program is willing to accept parse_args() - returns some data from the options specified help - gives an idea about what the argument does a...
Today, the existing systems were to be studied. But it was found that the existing system for number plate recognition is still basically in pre-technological era. Most of the recognition work is done manually because of which the whole process is long, tedious and lacks any transparency. It is unable to take benefits of the present and future technological capabilities. Due to which most of the traffic and security applications are done through outdated or pedestrian methods which are slow, error-prone and impractical in current scenario. With the advent of information technologies, it has become an increasing necessity that all existing systems be upgraded and integrated with this new technology in order to make these systems more advanced, transparent, fast and better than before. Another motivation for this project was the heinous crime that was committed on 16 December, 2012 in Delhi. In which the 23 year old woman was brutally gang-raped in a moving bus. That bus did not h...
So, while I was exploring the infinite possibilities presented by Python. I found this great python package facepy . Using which you can update your facebook status from python terminal. The only prerequisite is that you must be facebook developer to gain access to GraphAPI. Following the steps given below, you can also update your status using python: 1. Download facepy and install it by running this command: python setup install 2. Create a new application or use an existing one previously created. 3. Run python.exe from command terminal (cmd in Windows). Use the user access token created in the previous step with facepy: >> from facepy import GraphAPI >>ACCESS_TOKEN = 'access-token-copied-from-graph-api-explorer-on-web-browser' >>graph = GraphAPI(ACCESS_TOKEN) >>graph.post('me/feed', message='Hello World!') That's it. You may further experiment with GraphAPI using facepy. Happy Experimenting!! MG
Comments
Post a Comment