修复人脸识别问题,更换facerknn,修复崩溃1
Some checks are pending
CI / host-build (push) Waiting to run
CI / rk3588-cross-build (push) Waiting to run

This commit is contained in:
sladro 2026-01-08 15:23:16 +08:00
parent 43147788f3
commit 6d9b22517f

View File

@ -897,7 +897,9 @@ private:
in.type = RKNN_TENSOR_UINT8;
}
std::cerr << "[ai_face_recog] DEBUG: before InferBorrowed, in.size=" << in.size << " in.type=" << in.type << "\n";
auto r = AiScheduler::Instance().InferBorrowed(model_handle_, in);
std::cerr << "[ai_face_recog] DEBUG: after InferBorrowed, success=" << r.success << "\n";
if (!r.success || r.outputs.empty()) {
std::cerr << "[ai_face_recog] inference failed: " << (r.error.empty() ? "unknown" : r.error) << "\n";
continue;