Coder Social home page Coder Social logo

apereiracv / cr-plates-generator Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 5.0 1.83 MB

Costa Rican license plate dataset generator

License: GNU General Public License v3.0

Python 100.00%
dataset dataset-generation dataset-creation computer-vision image-processing image-classification image-recognition text-recognition character-recognition license-plate-recognition

cr-plates-generator's Introduction

cr-plates-generator

Costa Rica license plate generator for computer vision

Features

  • Plate formats: car, motorcycle, trucks, taxi, disabled drivers.
  • Perspective rotations, size and random backgrounds.
  • Annotations with character bounding boxes (class, cx, cy, w, h)
  • configuration.cfg and templates.json files for customization.

Examples

[Pending]

Getting Started

Prerequisites

  • Python >= 3.6.0
  • Modules on requirements.txt pip3 install -r requirements.txt

Running sample code

  1. Add some images to ./backgrounds directory, these will work as random backgrounds for the plates. SUN Database is recommended.

  2. Run the main file python ./main.py

  3. Random plates will be generated on ./output directory

Settings

configuration.cfg

The following is a description of all the settings on this file.

Setting Description Value
[General]
dataset_size Quantity of images to generate int
templates_path Path to directory containing base plate images string
templates_config Path to JSON configuration for each type of plate string
[Image]
resize_plate Apply resizing to the base plate images setting bool
plate_scales List of scaling factors to be used list
resize_bg Apply resizing to background images to a fixed size bool
bg_sizes List of target (width,height) pairs to resize bgs list
draw_bboxes Whether to draw bounding boxes (Use for testing only) bool
bbox_padding Spacing between bbox and inner object (px) int
[Perspective]
theta_range Maximum angle (degrees) to rotate plate over z-plane float
phi_range Maximum angle (degrees) to rotate plate over y-plane float
gamma_range Maximum angle (degrees) to rotate plate over x-plane float

templates.cfg

[Pending]

Authors

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details

References

cr-plates-generator's People

Contributors

apereiracalvo avatar apereiracv avatar

Stargazers

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

Watchers

 avatar  avatar

cr-plates-generator's Issues

background folder

Trying to run your code, but says its missing a folder called backgrounds. Did you leave out a folder?

The templates folder is there. Thanks for any help.

I appreciate the work you did writing this.

--danny

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.