Open wode2016501 opened 1 year ago
https://github.com/benjaminwan/OcrLiteNcnn/blob/38ca3f506cf474aa926ce58d31ed9b441871a52a/src/OcrLite.cpp#L159 for (int i = 0; i < textBoxes.size(); ++i) { Logger("TextBox%d[score(%f),[x: %d, y: %d], [x: %d, y: %d], [x: %d, y: %d], [x: %d, y: %d]]\n", i, textBoxes[i].score, textBoxes[i].boxPoint[0].x, textBoxes[i].boxPoint[0].y, textBoxes[i].boxPoint[1].x, textBoxes[i].boxPoint[1].y, textBoxes[i].boxPoint[2].x, textBoxes[i].boxPoint[2].y, textBoxes[i].boxPoint[3].x, textBoxes[i].boxPoint[3].y); }
是加了padding的框坐标
for (int i = 0; i < textBoxes.size(); ++i) { Logger("TextBox%d[score(%f),[x: %d, y: %d], [x: %d, y: %d], [x: %d, y: %d], [x: %d, y: %d]]\n", i, textBoxes[i].score, textBoxes[i].boxPoint[0].x, textBoxes[i].boxPoint[0].y, textBoxes[i].boxPoint[1].x, textBoxes[i].boxPoint[1].y, textBoxes[i].boxPoint[2].x, textBoxes[i].boxPoint[2].y, textBoxes[i].boxPoint[3].x, textBoxes[i].boxPoint[3].y); }