mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
[PR #1741] Fix Hardsubx OCR #2470
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1741
State: closed
Merged: Yes
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.