Skip to content

doansangg/Object-Corner-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Object-Corner-Detection: Crop an object from four corners

License Plate Detection, ID Detection, Vietnam License Plate Detection
Idea: Corners as keypoints, a Centernet modify version

  • Different:
    • Modify from bounding box detection to keypoint detection
    • Add augmentations

~ By Hisiter-HUST ~

demo_1

Note:

  • This repository can apply to:
    • License Plate Detection
    • ID Detection
    • ...

Keywords: Vietnam License Plate Detection, ID Vietnam Detection

1. Set up environment and dependent packages

  • Step 1: Clone repository:
git clone https://github.com/hisiter97/Object-Corner-Detection.git
  • Step 2: Set up conda environment (require conda is installed, if not, install conda):
conda env create -f environment.yml
conda activate py36_torch1.4
  • Step 3: Build DCNv2:
sh build_dcnv2.sh

Note

* Build successfully if the output has line ***Zero offset passed*** or ***Passed gradient***
* If there is any error, try downgrade cudatoolkit  

2. Dataset format

  • Prepare custom dataset: DATA.md
  • Format data: COCO
  • Structure

${Object-Corner-Detection_ROOT}
|-- center
|-- data
`-- |-- plate
    `-- |-- annotations
            |-- train_plate.json
            |-- val_plate.json

        |---images
            |--img_1.jpg
            |--img_2.jpg

3. Training:

  • Edit config file at the center/config directory
cd center 
python train.py --config config/plate.yml 

4. Testing:

cd center
python detect.py --config config/plate.yml --image_path ../img_test/plate.jpg 

5. DEMO

demo_1 demo_2 demo_3

TODO

  • Generate point annotation from testing
  • Detect object from 2,3 points
  • Debugger
  • Invisible keypoint

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published