Skip to content

Commit

Permalink
I forget to fix ./serve
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Mar 4, 2014
1 parent 20f0922 commit 0ae9f50
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion serve/bbf.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ int uri_bbf_detect_objects(const void* context, const void* parsed, ebb_buf* buf
{
char cell[128];
ccv_comp_t* comp = (ccv_comp_t*)ccv_array_get(seq, i);
snprintf(cell, 128, "{\"x\":%d,\"y\":%d,\"width\":%d,\"height\":%d,\"confidence\":%f}", comp->rect.x, comp->rect.y, comp->rect.width, comp->rect.height, comp->confidence);
snprintf(cell, 128, "{\"x\":%d,\"y\":%d,\"width\":%d,\"height\":%d,\"confidence\":%f}", comp->rect.x, comp->rect.y, comp->rect.width, comp->rect.height, comp->classification.confidence);
size_t len = strnlen(cell, 128);
while (buf->written + len + 1 >= buf->len)
{
Expand Down
4 changes: 2 additions & 2 deletions serve/dpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ int uri_dpm_detect_objects(const void* context, const void* parsed, ebb_buf* buf
{
char cell[128];
ccv_root_comp_t* comp = (ccv_root_comp_t*)ccv_array_get(seq, i);
snprintf(cell, 128, "{\"x\":%d,\"y\":%d,\"width\":%d,\"height\":%d,\"confidence\":%f,\"parts\":[", comp->rect.x, comp->rect.y, comp->rect.width, comp->rect.height, comp->confidence);
snprintf(cell, 128, "{\"x\":%d,\"y\":%d,\"width\":%d,\"height\":%d,\"confidence\":%f,\"parts\":[", comp->rect.x, comp->rect.y, comp->rect.width, comp->rect.height, comp->classification.confidence);
size_t len = strnlen(cell, 128);
while (buf->written + len >= buf->len)
{
Expand All @@ -194,7 +194,7 @@ int uri_dpm_detect_objects(const void* context, const void* parsed, ebb_buf* buf
buf->written += len;
for (j = 0; j < comp->pnum; j++)
{
snprintf(cell, 128, "{\"x\":%d,\"y\":%d,\"width\":%d,\"height\":%d,\"confidence\":%f}", comp->part[j].rect.x, comp->part[j].rect.y, comp->part[j].rect.width, comp->part[j].rect.height, comp->part[j].confidence);
snprintf(cell, 128, "{\"x\":%d,\"y\":%d,\"width\":%d,\"height\":%d,\"confidence\":%f}", comp->part[j].rect.x, comp->part[j].rect.y, comp->part[j].rect.width, comp->part[j].rect.height, comp->part[j].classification.confidence);
len = strnlen(cell, 128);
while (buf->written + len + 3 >= buf->len)
{
Expand Down
2 changes: 1 addition & 1 deletion serve/icf.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ int uri_icf_detect_objects(const void* context, const void* parsed, ebb_buf* buf
{
char cell[128];
ccv_comp_t* comp = (ccv_comp_t*)ccv_array_get(seq, i);
snprintf(cell, 128, "{\"x\":%d,\"y\":%d,\"width\":%d,\"height\":%d,\"confidence\":%f}", comp->rect.x, comp->rect.y, comp->rect.width, comp->rect.height, comp->confidence);
snprintf(cell, 128, "{\"x\":%d,\"y\":%d,\"width\":%d,\"height\":%d,\"confidence\":%f}", comp->rect.x, comp->rect.y, comp->rect.width, comp->rect.height, comp->classification.confidence);
size_t len = strnlen(cell, 128);
while (buf->written + len + 1 >= buf->len)
{
Expand Down
2 changes: 1 addition & 1 deletion serve/tld.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ int uri_tld_track_object(const void* context, const void* parsed, ebb_buf* buf)
"\"close_matches\":%d"
"}}\n",
parser->uri_params.tld,
box.rect.x, box.rect.y, box.rect.width, box.rect.height, box.confidence,
box.rect.x, box.rect.y, box.rect.width, box.rect.height, box.classification.confidence,
info.perform_track ? "true" : "false",
info.perform_learn ? "true" : "false",
info.track_success ? "true" : "false",
Expand Down

0 comments on commit 0ae9f50

Please sign in to comment.