Giter VIP home page Giter VIP logo

airplane-detection-for-satellites's Introduction

AIRPLANE DETECTION FOR SATELLITES

Object detection is a computer technology related to computer vision and image processing that deals with detecting instances of semantic objects of a certain class (such as humans, buildings, or cars) in digital images and videos

There is a growing use of object detection in today's technology, be it face detection, face recognition, car detection, etc.

Ever since the inception of deep learning in computer vision, the object detection task has become relatively easy and less expensive in terms of computation. Also the results from deep learning models are far better than the previous approaches.

In this github repo I have implemented Faster RCNN to detect airplanes in images taken from satellites.

THE DATA

The data is taken from kaggle, you can find it here : https://www.kaggle.com/aceofspades914/cgi-planes-in-satellite-imagery-w-bboxes

The dataset contains 400 training images and 100 testing images, with bounding box coordinates present in both xml files or csv In this repo I have uploaded the modified train and test csv files.

THE APPROACH

The approach is discussed in brief here : https://medium.com/@shubhankarrawatsam.1999/airplanes-detection-for-satellite-using-faster-rcnn-d307d58353f1

Faster RCNN is one of the best object detection methods available till date. Being an advanced version of RCNN, FRCNN gives one of the best results in less time.

It is a well known fact that deep learning models(especially computer vision ones) are highly data driven and that their accuracy is proportional to the amount of training data. More the training data better the performance of the model.

In this problem we only have 400 images and so data augmentation is done.

augmentation.py file implements data augmentation, and saves the resulting images and bounding box coordinates in a csv.

Next the model(FRCNN) is implemented and run on the given data.

The resulting images are saved in a folder named results_imgs.

airplane-detection-for-satellites's People

Contributors

shubhankarrawat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

airplane-detection-for-satellites's Issues

Test Issue

I trained the fastRCNN with the following code and adjust the iteration number into 20 as your blog:
python train_frcnn.py -o simple -p annotate.txt --num_epochs 800.

However, after finishing the training, I test it but the model cannot recognize any plane according to images in the results_imgs folder. I am wondering what's wrong?
python test_frcnn.py -p test_images

Error

I am getting the errors -

It would be great help if you please help me !

[Errno 2] No such file or directory: 'G:/HURAProject/production/planerecognition/training/train\VOC2007\ImageSets\Main\trainval.txt'
[Errno 2] No such file or directory: 'G:/HURAProject/production/planerecognition/training/train\VOC2007\ImageSets\Main\test.txt'

Traceback (most recent call last):
File "C:/Users/nitur/PycharmProjects/Airplane-Detection-for-Satellites-master/train_frcnn.py", line 87, in
all_imgs, classes_count, class_mapping = get_data(options.train_path)
File "C:\Users\nitur\PycharmProjects\Airplane-Detection-for-Satellites-master\keras_frcnn\pascal_voc_parser.py", line 46, in get_data
annots = [os.path.join(annot_path, s) for s in os.listdir(annot_path)]
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'G:/HURAProject/production/planerecognition/training/train\VOC2007\Annotations'

Process finished with exit code 1

traning isuue

Using TensorFlow backend.
Parsing annotation files
Traceback (most recent call last):
File "train_frcnn.py", line 79, in
all_imgs, classes_count, class_mapping = get_data(options.train_path)
File "/content/drive/My Drive/Airplane-Detection-for-Satellites-master/keras_frcnn/simple_parser.py", line 37, in get_data
(rows,cols,_) = img.shape
AttributeError: 'NoneType' object has no attribute 'shape'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.