Skip to content

ReturnToFirst/KCAPTCHA-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KCAPTCHA-Solver

Simple KCAPTCHA solver using YOLOv8

Requirements

Usage

Training

  1. Install requirements with below command

    pip3 install ultralytics
    
  2. Generate KCAPTCHA dataset

    1. Generate Image-label set with kcaptcha-generator
      • Recommand to generate >50K image-label set for training
    2. Split them into train, test, val set
    3. Reformat BBOX label to YOLO label format using bbox2yolo.py
      python3 bbox2yolo.py --path <dataset root path>
      
  3. Configure your training config files as you want

  4. Train YOLO with below command

    python3 train.py
    

    There is also options for training. You can get option by this command.

    python3 train.py --help
    

Inference

Pretrained checkpoint available in this link.

  1. Inference KCAPTCHA with below command
    python3 inference.py --model-path <checkpoint path> \
                         --input-file <CAPTCHA image path>
    

Releases

No releases published

Packages

No packages published

Languages