mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-25 18:13:21 +08:00
Validate all backends for detection models and add demo code & docs (#94)
* Validate all backends for detection models and add demo code and doc * Delete .README.md.swp
This commit is contained in:
@@ -20,10 +20,10 @@ void BindVisualize(pybind11::module& m) {
|
||||
.def(pybind11::init<>())
|
||||
.def_static("vis_detection",
|
||||
[](pybind11::array& im_data, vision::DetectionResult& result,
|
||||
int line_size, float font_size) {
|
||||
float score_threshold, int line_size, float font_size) {
|
||||
auto im = PyArrayToCvMat(im_data);
|
||||
auto vis_im = vision::Visualize::VisDetection(
|
||||
im, result, line_size, font_size);
|
||||
im, result, score_threshold, line_size, font_size);
|
||||
FDTensor out;
|
||||
vision::Mat(vis_im).ShareWithTensor(&out);
|
||||
return TensorToPyArray(out);
|
||||
|
||||
Reference in New Issue
Block a user