File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 32
32
#include " tprintf.h"
33
33
#include " openclwrapper.h"
34
34
#include " osdetect.h"
35
+ #include " unicharset.h"
35
36
36
37
/* *********************************************************************
37
38
* main()
@@ -257,13 +258,17 @@ int main(int argc, char **argv) {
257
258
if (api.DetectOS (&osr)) {
258
259
int orient = osr.best_result .orientation_id ;
259
260
int script_id = osr.get_best_script (orient);
261
+ const char * script_name =
262
+ osr.unicharset ->get_script_from_script_id (script_id);
260
263
float orient_oco = osr.best_result .oconfidence ;
261
264
float orient_sco = osr.best_result .sconfidence ;
262
- tprintf (" Orientation: %d\n Orientation in degrees: %d\n " \
263
- " Orientation confidence: %.2f\n " \
264
- " Script: %d\n Script confidence: %.2f\n " ,
265
+ tprintf (" Orientation: %d\n "
266
+ " Orientation in degrees: %d\n "
267
+ " Orientation confidence: %.2f\n "
268
+ " Script: %s\n "
269
+ " Script confidence: %.2f\n " ,
265
270
orient, OrientationIdToValue (orient), orient_oco,
266
- script_id , orient_sco);
271
+ script_name , orient_sco);
267
272
} else {
268
273
ret_val = 1 ;
269
274
}
You can’t perform that action at this time.
0 commit comments