Skip to content

Commit

Permalink
fixed a bug causes text-recognizer to fail when (non-NULL) empty bbox…
Browse files Browse the repository at this point in the history
…es list is passed (open-mmlab#310)
  • Loading branch information
lzhangzz authored and zytx121 committed Apr 30, 2022
1 parent ac1e2d0 commit 816a8bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions csrc/apis/c/text_recognizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ int mmdeploy_text_recognizer_apply_bbox(mm_handle_t handle, const mm_mat_t *imag
}

result_index[i] = static_cast<int>(input_images.size());
mmdeploy::Mat _mat{images[i].height, images[i].width, PixelFormat(images[i].format),
DataType(images[i].type), images[i].data, Device{"cpu"}};
mmdeploy::Mat _mat{images[i].height, images[i].width, PixelFormat(images[i].format),
DataType(images->type), images[i].data, Device{"cpu"}};
input_images.push_back({{"ori_img", _mat}});
}

Expand Down

0 comments on commit 816a8bc

Please sign in to comment.