Researchers have been studying the possibilities of giving machines the ability to distinguish and identify objects through vision for years now. This particular domain, called Computer Vision or CV, has a wide range of modern-day applications. From being used by autonomous cars for object detection on roads to complex facial and body language recognitions that can identify possible crimes or criminal activities, CV has numerous uses in today\u2019s world. There is no denying the fact that Object Detection is also one of the coolest applications of Computer Vision.\n\nModern-day CV tools can easily implement object detection on images or even on live stream videos.\u00a0In this article, we will look at a simple demonstration of a real-time object detector using TensorFlow.\u00a0\nSetting Up A Simple Object Detector\nPre-requisites:\n\nTensorflow >= 1.12.0\n\n \tInstall the latest version by executing\u00a0pip install tensorflow\n\nWe are now good to go!\nSetting Up The Environment\n1. Download or clone the TensorFlow Object Detection Code into your local machine from Github\nExecute the following command in the terminal :\n\ngit clone https:\/\/github.com\/tensorflow\/models.git\n\nIf you don't have git installed on your machine you can choose to download the zip file from here.\n2. Installing the dependencies\nThe next step is to make sure that we have all the libraries and modules that we need to run the object detector on our machine.\n\nHere is a list of libraries that the project depends on. (Most of the dependencies comes with Tensorflow by default)\n\n \tCython\n \tcontextlib2\n \tpillow\n \tlxml\n \tmatplotlib\n\nIn case if you find any of the module missing just execute\u00a0pip install in your environment to install.\n3. Installing Protobuf compiler\nProtobuf or Protocol buffers are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data. It helps us define how we want our data to be structured and once structured it lets us easily write and read the structured data to and from a variety of data streams and using a variety of languages.\n\nThis is also a dependency for this project. You can learn more about Protobufs here. For now, we will install Protobuf in our machine.\n\nHead to https:\/\/github.com\/protocolbuffers\/protobuf\/releases\n\nChoose the appropriate version for your OS and copy the download link.\n\nOpen your terminal or command prompt, change directory to the cloned repository and execute the following commands in your terminal.\n\ncd models\/research \\ \nwget -O protobuf.zip https:\/\/github.com\/protocolbuffers\/protobuf\/releases\/download\/v3.9.1\/protoc-3.9.1-osx-x86_64.zip \\ \nunzip protobuf.zip\n\nNote: Make sure that you decompress the protobuf.zip file inside models\/research directory\n4. Compiling the Protobuf compiler\nExecute the following command from the research\/ directory to compile the Protocol Buffer.\n\n.\/bin\/protoc object_detection\/protos\/*.proto --python_out=.\nImplement Object Detection in Python\nNow that we have all the dependencies installed, let's use Python to implement Object Detection.\n\nIn the downloaded repository, change directory to models\/research\/object_detection. In this directory, you will find an ipython notebook named object_detection_tutorial.ipynb. This file is a demo for Object detection which on execution will use the specified \u2018ssd_mobilenet_v1_coco_2017_11_17\u2019\u00a0 model to classify two test images provided in the repository.\n\nGiven below\u00a0 is one of the test outputs:\n\n\n\nThere are minor changes to be introduced to detect objects from a live stream video. Make a new Jupyter notebook with in the same folder and follow along with the code given below.\n\n\nWhen you run the Jupyter notebook, the system webcam will open up and will detect all classes of objects that the original model has been trained to detect.