Git Product home page Git Product logo

Comments (4)

Wilson-Micah avatar Wilson-Micah commented on May 23, 2024 1

Okay I wasn't doing that first part! Thanks, I'm excited for the project! Good work!

from swiftocr.

NMAC427 avatar NMAC427 commented on May 23, 2024

If you want to train another font, i would replace (in the SwiftOCR.swift file) internal let network = FFNN.fromFile(... with internal let network = FFNN(inputs: 321, hidden: 100, outputs: 36, learningRate: 0.7, momentum: 0.4, weights: nil, activationFunction: .Sigmoid, errorFunction: .CrossEntropy(average: false)) and try it again.
Maybe it will help if you set the errorThreshold in trainWithCharSet to a bigger number. Last but not least you have to set the path of your OCR-Network file in saveOCR.

Good luck :D

from swiftocr.

Wilson-Micah avatar Wilson-Micah commented on May 23, 2024

Hey Nicolas,

Another question for you, my main goal with this is to get the OCR to be able to read 7-Segment fonts. I noticed when looking through the code that this is extremely difficult because of the way it processes the images into separate characters. I would love to be able to use your project to read digital scales. This is the font I'm trying to get to to work with and ones similar to it. http://www.dafont.com/digital-7.font Let me know if there is anything I can do to get this working, or if I should look elsewhere. Thanks

from swiftocr.

NMAC427 avatar NMAC427 commented on May 23, 2024

In the extractBlobs function there are two variables called xMergeRadius and yMergeRadius. They are used to enlarge the merging radius of the detected blobs. If you set the yMergeRadius to 10, the bounding boxes of all detected blobs will be extended by 10 in the y dimension and if two bounding boxes are overlapping they get merged into one big bounding box. In your case I would increase the yMergeRadius.
example merge

from swiftocr.

Related Issues (20)

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.