You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there are 4 classes all meant to store letter data all sharing similar methods (#getX(), #getY(), #getWidth(), #getHeight(), etc.). These 4 classes should be abstracted to a single character interface/superclass, with any necessary implementations made which should simplify a lot of code.
The classes in question are:
ImageLetter - Meant to store finalized data which is used by programs using the library
SearchCharacter - Stores the coordinate data and some calculated data created directly when an image is read
DatabaseCharacter - Averaged character sections and other trained data derived only from the database
TrainedCharacterData - Stores data during training to then average stored data and insert them into the database
I'm guessing these can probably be merged into 2, maybe 3 classes with better abstraction. This isn't currently a super high priority, but I'd like to see it done before the v2 release.
The text was updated successfully, but these errors were encountered:
I decided not to merge classes, because of the two abstract classes all
characters extend, it cleans up their code heavily and still allows for
necessary data separation.
This also cleans up the general code a bunch, one of which is making tests require a 98% or higher success rate.
Once testing is done and I have some people review it, it is release-ready.
Currently, there are 4 classes all meant to store letter data all sharing similar methods (
#getX()
,#getY()
,#getWidth()
,#getHeight()
, etc.). These 4 classes should be abstracted to a single character interface/superclass, with any necessary implementations made which should simplify a lot of code.The classes in question are:
I'm guessing these can probably be merged into 2, maybe 3 classes with better abstraction. This isn't currently a super high priority, but I'd like to see it done before the v2 release.
The text was updated successfully, but these errors were encountered: