Checkpoint in autocropping/binarization #26

Merged
ewellenr merged 9 commits from autocropper into main 2023-12-05 17:06:10 -05:00
Owner

Leaving it at just the cropping/rotation point of the pre-processing process. I reached a point where I just needed to move on for now to get stuff done. Can come back later to try and get a good binarization out of the receipts but some just gave very mixed results due to lighting causing the white receipt to be a bit too gray and some of the printing not being that dark/thick.

Leaving it at just the cropping/rotation point of the pre-processing process. I reached a point where I just needed to move on for now to get stuff done. Can come back later to try and get a good binarization out of the receipts but some just gave very mixed results due to lighting causing the white receipt to be a bit too gray and some of the printing not being that dark/thick.
ewellenr added 8 commits 2023-12-05 17:04:45 -05:00
Changed the technique to find the edges because it proved inconsistent.

Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
Using lab a and b channels (although it hasn't worked too well yet.

Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
For autocropping/deskewing, need the rotation to not have
the black fill spots since they tend to mess up the later
background whiteing-out.

Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
Need to make sure that houghlinepcrop still works
correctly after the adjustments.

Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
Adjusted the process so that the black lines left after the houghline
cropping and rotating are no longer there.

Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
Have to move on to training and working on the app.
have it crop and rotate and will let yolov7 train on that
and I would imagine it will work fine. Don't have the time to try
figure out the whiteout still.

Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
ewellenr added 1 commit 2023-12-05 17:05:24 -05:00
ewellenr closed this pull request 2023-12-05 17:05:45 -05:00
ewellenr reopened this pull request 2023-12-05 17:05:54 -05:00
ewellenr merged commit 233c84e61e into main 2023-12-05 17:06:10 -05:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ewellenr/receipt_indexer#26
No description provided.