Giter Site home page Giter Site logo

cctdecode's Introduction

CCTDecode

Detect and decode the CCT (Circular Coded Target).

Requirements:

<1> python 3.7 (I don't know whether other python version would work correctly, you can have a try.)
<2> opencv-python
<3> pillow
<4> numpy
<5> matplotlib
<6> progress
<7> ... (maybe others, you can follow the error infomation to 'pip install xxx' them.)

The main function is listed as following:

  1. Draw CCT images: DrawCCT.py
    usage:
    <1> cd root_path 
    <2> python DrawCCT.py --bit_n=9 --size=400 --color=black      

Image text

  1. Detect and decode CCT: CCTDecodeRelease.py
    which can decode CCT from the signal image, or you can use it to decode the CCT images in the same folder.
    usage:
    <1> cd root_path    
    <2> python CCTDecodeRelease.py --filename=cct12_6.png 
                                   --bit_n=12                                        
                                   --threshold=0.7   // for single image   
                                   --color=black     // select the color of CCT mark (white over black / black over white)                                     
        python CCTDecodeRelease.py --batch=True 
                                   --bit_n=8                              
                                   --save_folder=./result/                                    
                                   --threshold=0.93  // for images in same folder
                                   --color=black 

Image text

Actually, there are some args are default value which can be ignored if you follow my data construction. The whole args are listed as follows:

   batch=False,                // batch processing 
   bit_n=12,                   // the bit number of CCT image 
   filename=None,              // image name 
   save_folder='./result/',    // the folder for saving the processed images 
   src_folder='./data/',       // the folder which contains the source images 
   threshold=0.8               // the threshold for CCT detecion, which is between 0 and 1. 
   color=white                 // the color of CCT mark (white over black / black over white)

So, you can change these args as you whish. But remember to write it correctly and don't foget the '--' before each arg.

  1. Decode CCT from video: DecodeCCTFromVideo.py
    usage:
    <1> cd root_path 
    <2> python DetectCCTFromVideo.py --bit_n=12 --threshold=0.7 --color=white

Image text

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.