37 {
38 ASSERT_HOST(pix !=
nullptr && pixGetDepth(pix) == 32 && blob !=
nullptr);
39 const TBOX &tbox = blob->bounding_box();
40 int height = pixGetHeight(pix);
41 const int box_width = 5;
42
43
44
45 Box *box = boxCreate(tbox.left(), height - tbox.top(), tbox.width(), tbox.height());
46 switch (blob->special_text_type()) {
48 pixRenderBoxArb(pix, box, box_width, 255, 0, 0);
49 break;
51 pixRenderBoxArb(pix, box, box_width, 0, 255, 255);
52 break;
54 pixRenderBoxArb(pix, box, box_width, 0, 255, 0);
55 break;
57 pixRenderBoxArb(pix, box, box_width, 0, 255, 0);
58 break;
60 default:
61
62 pixRenderBoxArb(pix, box, box_width, 255, 255, 0);
63 break;
64 }
65 boxDestroy(&box);
66}