# chinese_licence_plate_generator **Repository Path**: fireML/chinese_licence_plate_generator ## Basic Information - **Project Name**: chinese_licence_plate_generator - **Description**: A tool for generating Chinese license plate dataset for plate detecting - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-05-21 - **Last Updated**: 2020-12-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # chinese_licence_plate_generator A tool for generating Chinese license plate dataset for plate detecting   When you are working on a Automatic Number Plate Recognition(ANPR) project, you may need thoundands of samples to train. Heres is  my solution for generating chinese licence plate samples. ## First Stage: Generate the plate There are two kind of plates: 1 real plate are cutted from pictures 2 Fake plate are formed with several random characters ## Second Stage: Generate world(background) I named background with ‘world’ in my code. There are two kinds of world image: 1 image with only one color I used only blue image for blue plate, yellow and white image could be added. 2 Random image from some big datasets   ## Third Stage: Add objects to world I add some negative objects for hard nagative mining, and adds only one plate to one world. I put the position of the plate relative to the world in the image file name. You can read the position from the image file name as ground truth.   ##Prerequisites I used Python 3.5.2 (from Anaconda 4.2.0) python-opencv 3.1 ## Here are some examples: ![excmple](https://raw.githubusercontent.com/Nenger/chinese_licence_plate_generator/master/demo_output_train/01a7ml54_0091_0078_0082_0039.png)  ![excmple](https://raw.githubusercontent.com/Nenger/chinese_licence_plate_generator/master/demo_output_train/16D9170D_0074_0163_0129_0053.png)  ![excmple](https://raw.githubusercontent.com/Nenger/chinese_licence_plate_generator/master/demo_output_train/29x4bb7s_0356_0229_0115_0043.png)