[Android] Support segmentation and facedet in Android (#567)

* [FlyCV] Add global SetProcLibCpuNumThreads method

* [Android] Support segmentation and facedet in Android

* [Android] add JNI instance check to j_runtime_option_obj

* [Model] fixed ppseg flycv resize error

* [FlyCV] fix FlyCV resize flags

* [cmake] remove un-need lite compile option

* [Android] add PaddleSegModel JNI and fix some bugs

* [Android] bind PaddleSegModel via JNI

* [Android] bind VisSegmentation via JNI

* [Android] bind YOLOv5Face and SCRFD via JNI

* [Android] fix NewJavaFaceDetectionResultFromCxx error
This commit is contained in:
DefTruth
2022-11-13 17:47:50 +08:00
committed by GitHub
parent 98cab48f8a
commit 6a368f3448
67 changed files with 3578 additions and 1733 deletions

View File

@@ -263,8 +263,8 @@ bool PaddleSegModel::Postprocess(
infer_result->shape, FDDataType::FP32,
static_cast<void*>(fp32_result_buffer->data()));
}
mat = new Mat(Mat::Create(*infer_result));
Resize::Run(mat, ipt_w, ipt_h, -1.0f, -1.0f, 1);
mat = new Mat(Mat::Create(*infer_result, ProcLib::OPENCV));
Resize::Run(mat, ipt_w, ipt_h, -1.0f, -1.0f, 1, false, ProcLib::OPENCV);
mat->ShareWithTensor(&new_infer_result);
result->shape = new_infer_result.shape;
} else {