mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #1446] [MERGED] [WIP] Port hardsubx classifier #2193
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?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1446
Author: @shashwat1002
Created: 7/27/2022
Status: ✅ Merged
Merged: 10/24/2022
Merged by: @PunitLodha
Base:
master← Head:port_hardsubx_classifier📝 Commits (10+)
19b0309add tesseract-sys in dependencies of rust modules1c296f9add appropriate feature flags and required packages to cargo tomldaf3d7bexpose classifiercc554abRedefine structs that are required for hardsubxf76df32write code to generate bindings for mprint334e216- write a function to convert rust strings to c strings3d57f86- add helper function to deal with tess strings in a memory safe manner4a89488improve conversion of C string to Rust string by using built-in functions6834328replace mprint usage with warn!03597b0port get_ocr_text_letterwise📊 Changes
10 files changed (+770 additions, -15 deletions)
View changed files
📝
src/lib_ccx/hardsubx_classifier.c(+2 -2)📝
src/lib_ccx/hardsubx_decoder.c(+10 -6)📝
src/rust/Cargo.lock(+56 -2)📝
src/rust/Cargo.toml(+5 -2)📝
src/rust/build.rs(+14 -3)➕
src/rust/src/hardsubx/classifier.rs(+285 -0)➕
src/rust/src/hardsubx/decoder.rs(+334 -0)📝
src/rust/src/hardsubx/mod.rs(+53 -0)📝
src/rust/src/utils.rs(+10 -0)📝
src/rust/wrapper.h(+1 -0)📄 Description
Starting port of the classifier module.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.