Comments (4)
Okay I wasn't doing that first part! Thanks, I'm excited for the project! Good work!
from swiftocr.
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.
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.
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
.
from swiftocr.
Related Issues (20)
- Cannot Build SwiftOCR with Swift 4.2 HOT 4
- Cannot build for macOS using CocoaPods
- How to install Swift OCR using Swift Package Manager?
- Can't Invoke NSimage image in method SwiftOCRInstance.recognize! HOT 1
- Any Wrapper for another programming language?
- Doesn't work on Xcode 10.2
- Low accuracy HOT 1
- Update recognizableCharacters not working
- Fix for crash in multithreaded apps
- crashed in FFNN.swift at line 228 HOT 1
- support for Xcode 11 Beta HOT 2
- Can SwiftOCR detect any language text or just english language ?
- No Output String HOT 4
- Statement about accuracy
- please support swift5.0 HOT 11
- Carthage not working
- Not compatible with Xcode 12 beta5 HOT 4
- cocoapods install error. not search tag 1.2.1
- No such module 'GPUImage' HOT 1
- Can the ios.deployment_target be lowered to 11.0?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftocr.