mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-30 15:39:05 +08:00
lstm.train: allow .box from .raw.png too
This commit is contained in:
parent
78bcc0d84c
commit
8f4aae70b8
@ -43,7 +43,7 @@ static std::string BoxFileName(const char *image_filename) {
|
||||
std::string box_filename = image_filename;
|
||||
size_t length = box_filename.length();
|
||||
std::string last = (length > 8) ? box_filename.substr(length - 8) : "";
|
||||
if (last == ".bin.png" || last == ".nrm.png") {
|
||||
if (last == ".bin.png" || last == ".nrm.png" || last == ".raw.png") {
|
||||
box_filename.resize(length - 8);
|
||||
} else {
|
||||
size_t lastdot = box_filename.find_last_of('.');
|
||||
|
Loading…
Reference in New Issue
Block a user