blob: f2868dfa5c89df7186c7cbb0f3f8d61dadac616c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
*** a/ccmain/baseapi.cpp
--- b/ccmain/baseapi.cpp
***************
*** 954,960 ****
for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) {
OUTLINE *outline = it.data();
outline->compute_bb();
! result.bounding_union(outline->bounding_box());
}
return result;
}
--- 954,960 ----
for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) {
OUTLINE *outline = it.data();
outline->compute_bb();
! result = result.bounding_union(outline->bounding_box());
}
return result;
}
***************
*** 966,972 ****
for (c_it.mark_cycle_pt(); !c_it.cycled_list(); c_it.forward()) {
C_BLOB *blob = c_it.data();
//bboxes.push(tessy_rectangle(blob->bounding_box()));
! result.bounding_union(blob->bounding_box());
}
return result;
}
--- 966,972 ----
for (c_it.mark_cycle_pt(); !c_it.cycled_list(); c_it.forward()) {
C_BLOB *blob = c_it.data();
//bboxes.push(tessy_rectangle(blob->bounding_box()));
! result = result.bounding_union(blob->bounding_box());
}
return result;
}
***************
*** 1026,1032 ****
for (int i = 0; i < n; i++) {
PBLOB *blob = it.data();
TBOX current = pblob_get_bbox(blob);
! bln_rect.bounding_union(current);
TESS_CHAR *tc = new TESS_CHAR(rating_to_cost(word->best_choice->rating()),
str, *len);
--- 1026,1032 ----
for (int i = 0; i < n; i++) {
PBLOB *blob = it.data();
TBOX current = pblob_get_bbox(blob);
! bln_rect = bln_rect.bounding_union(current);
TESS_CHAR *tc = new TESS_CHAR(rating_to_cost(word->best_choice->rating()),
str, *len);
|