Posts

Showing posts with the label python

Image Weather Classification

Image
CNN based weather classifier Convolutional Neural Network also known as CNN are of grate use when it comes to image data. They can be used to get both low level features and high level features. CNN are used in many places now and is future of robotics. uses of CNN Robotic Vision Biometric identification object detection and tracking Self Driving Car Object Identification We are going to classify weather images using Convolutional Neural Network.  This task can be performed in multiple ways and we are going to classify weather using regression network. The Network I have created is given below. python libraries required numpy os glob OpenCV Tensorflow keras Pands Matplotlib For weather classification problem download the dataset from link( link )   Dataset description number of images 1025 size of images variable labels are mentioned in the name of images number of labels 4 ['cloudy' , 'rain', 'shine', 'sunrise'] Create a file labelgenerator.py to genera...

Convolutional network based Classification

Image
CNN based weather classifier CNN(convolutional neural network) are very powerful Computation Weapon made by multiple mathematical processes. CNN can be used by robots to see environment through camera and understand the state of environment. A single layer of CNN works as a filter much like gaussian blur or edge detector filters and when they are used in multiple layers they can understand much  more than just color or shape, they can understand story of the image and today we are going to learn how to train a CNN to predict weather through image. Weather-CNN Before we start make sure you have tensorflow,keras,OpenCV, Matplotlib and pandas. we have to download dataset for wether images. Link to image dataset link(https://md-datasets-public-files-prod.s3.eu-west-1.amazonaws.com/64a54851-f95a-439d-aff7-3334a684e532) dataset consist of 1025 images of weather, it consist of 4 labels 'cloudy','rain','shine','sunrise', image shape varies. Import dataset, read ...

Opencv python object detection Tutorial (part 1)

Image
OpenCV Python  OpenCV Python hand Tracking Series(Part-1) There are many reasons to detect object using camera which allows system to interact with the environment. Detecting obstacles by self driving car(to avoid them of course:) Can be used in gripping object with robotic arm Servaliance Purpose or may be your professor asked you to do it :( we will use OpenCV python to detect human arm with basic image processing techniques. For this method we require OpenCV and numpy library. In this tutorial we will use color as feature and detect objects. For now we will detect a ball but shape does not matter as we are usingcolor as feature and not shape. There are multiple ways to perform the Task such as Color Feature Background Subtraction Shape Features Sift Features SURF Features Deep learning we will cover all the methods but for now we focus on color features. To start we take a good photo of object you want to Track like the image given below Now let's Start Coding, First import nump...