Git Product home page Git Product logo

rpi_digitrecognition's Introduction

RPi_DigitRecognition

Digit Recognition project based on Raspberry Pi

Requirments

of course Raspberry Pi with Debian or Raspbian latest updates.

Usage

  • Download / Clone / Unpack
  • Create dirs:
    • ~mkdir capture
    • ~touch data.txt
    • ~cd capture
    • ~mkdir crop
    • ~mkdir clean
  • Run : ./capture.sh

Additional info

Changind sleep value in camera.sh you can manipulate with script running intervals in seconds.

Main functionalities

  • captureImage() - captures and image (352x288) with light gain value (0.1 .. 1)(Note: GAIN support by device)
    • Captured image coverted to GRAY, threshhold applied, inverted and saved to /caputre/TIMESTAMP_capture.png;
  • cropImage() - crops captured image with a specified box and saves to /caputre/crop/cropped_TIMESTAMP.png;
  • cleanImage() - cleans black spaces between digits and saves to /caputre/clean/cleaned_TIMESTAMP.png (Note: use if needed);
  • recognizeData() - recognizes data from each cleaned file, *.TXT results in /capture/clean/output_TIMESTAMP.txt
  • Several verification steps:
    • if valid string recognized -> added to dataList -> converted to INT -> added to numberList;
    • if 10 not valid attempts -> break execution;
    • if numberList not EMPTY -> mean value computed and checked with previous result;
    • if mean value exists -> sent to TELECONTROL SERVER.
  • Cleaning opperations performed, to clean /capture/ folder.

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.