Giter VIP home page Giter VIP logo

car_plate_number_projects's Introduction

Car_Plate_Number_Projects

An Object Detection project to detect plate numbers for cars in an image

Creating a new Dataset

The following steps are needed to create a dataset for training and testing a Object Detection Model in MMDetection

Section 1: Create the dataset folder structure

For this project, the files in the images directory are what we would be using to create the images in the train, test and valid dataset directory.

We put some images into the test2017 folder, some more images into the train2017 folder and some more into the val2017 folder.

We need to ensure that the data is in the COCO format, so we need to create the following folder structure

data 
	-> coco
	 	-> annotations
	 	-> test2017
	 	-> train2017
	 	-> val2017

We move 142 files from the images folder into the train2017, 20 files into the test2017 and also 20 files into the val2017 folder.

Section 2: Create Annotation Files

Then we have a python script that combines each of the annotations for each folder into a single annotation file. The python script is titled labelme2coco.py

Run the labelme2coco.py for each of the train2017, test2017 and val2017 folders. Ensure labelme is installed before running the commands

For train2017

python labelme2coco.py train2017

It creates a file named trainval.json, rename the file as instances_train2017.json, then put the file in the annotations folder

For test2017

python labelme2coco.py test2017

It creates a file named trainval.json, rename the file as instances_test2017.json, then put the file in the annotations folder

For val2017

python labelme2coco.py val2017

It creates a file named trainval.json, rename the file as instances_val2017.json, then put the file in the annotations folder

Section 3: Download and setup MMDetection

The framework MMDetection would be used for this project. We download MMDetection as follows:

git clone https://github.com/open-mmlab/mmdetection.git

car_plate_number_projects's People

Contributors

azibit avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

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.