Fix Hardsubx OCR#1741
Conversation
eb97424 to
858925a
Compare
858925a to
4c5d001
Compare
4c5d001 to
83483c4
Compare
CCExtractor CI platform finished running the test files on linux. Below is a summary of the test results, when compared to test for commit 4b5f68a...:
All tests passing on the master branch were passed completely. Check the result page for more info. |
CCExtractor CI platform finished running the test files on windows. Below is a summary of the test results, when compared to test for commit 4b5f68a...:
NOTE: The following tests have been failing on the master branch as well as the PR:
Congratulations: Merging this PR would fix the following tests:
All tests passing on the master branch were passed completely. Check the result page for more info. |
|
Since this doesn't appear to be an exact port from C to RUST, some of the thresholds have changed and consequently the accuracy of the OCR has changed. i.e. you will see different results on C vs OCR builds. So here my question, how does one tune the OCR thresholds? If the C version was working better than the RUST port there should be some way to tweak the thresholds. |
If the C version was working better then the Rust version is not ready, that's all. Feel free to share samples and how to compare both versions, that's the best way to help getting us where we want to be. |
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
closes #1723
Hardsubx is currently broken on the master branch on Rust.
Fixed a segmentation faults on Linux which was caused by a null pointer dereference in
dispatch_classifier_function, I've added proper error handling to fix this. While here, I also noticed that the values in the match statement for the classifier functions are incorrect, see here. ThepixDilateGray()function also had an incorrect argument, see here.While CCextractor seemed to run after this, the output seemed to be garbled. On running some tests, I found out that the luminance mask was fully white. This is because the Srgb::new() function expects values in the range of
0.0-1.0, however we were passing values from0.0-255.0.I've also enabled hardsubx for the test builds. This is to facilitate adding regression tests on the sample platform.