Coder Social home page Coder Social logo

certificates's Introduction

object detection on certificates

  1. Set up YOLO with this repository -> https://github.com/AlexeyAB/darknet
  2. Put objectDetector.py and ocr.py inside x64 folder
  3. Make a folder named validation and put sequenceMatcher.py inside

about each file

objectDetector.py

  • for object detection
  • asks used to input the path of the image to test
  • you can change the command value depending on your need
    • darknet_no_gput.exe for windows with no gpu
    • darknet.exe for windows with gpu

ocr.py

  • for text recognition
  • asks user to input the path of the image to test (the same path you used for object detection)
  • change PATH and IMAGES_PATH values
    • PATH = whole path for the x64 folder
    • IMAGES_PATH = you can make another folder inside x64 to put all preprocessed images and final results`
    • line 64 is where you save the final result, please change the path in accordance to what you have
  • if you want to save denoised and grayscaled images, uncomment lines no. 17 and 21

sequenceMatcher.py

  • this code was used to test the 30 text recognition results (results are in text file for each image) in bulk
  • sample test filenames are TEST_1.txt, TEST_2.txt, TEST_30.txt`
  • depending on how many text files you want to test, you can change the
  • i value in line 7 = which file to start
  • while (i <= __): in line 9 = in the blank, change the number to until which file you want to stop testing
  • inside a test file are the class name (in number), original text, and actual result separated by the character |, a newline for each class

  • yolo-obj.cfg and data folder were used for training the detector
  • YOLO weights are available in https://bit.ly/2XA0fnW

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.