feat(hand): add hand detecter

This commit is contained in:
Syd Xu
2021-10-28 18:53:32 +08:00
parent e528d802ba
commit 92260a6952
79 changed files with 1571 additions and 150 deletions

View File

@@ -31,7 +31,7 @@ void FreeTrackedFaceInfoVector(TrackedFaceInfoVector *p) {
}
}
namespace ov {
namespace ovface {
float CalculateSimilarity(const std::vector<float>&feature1, const std::vector<float>& feature2) {
if (feature1.size() != feature2.size()) {
@@ -41,7 +41,7 @@ float CalculateSimilarity(const std::vector<float>&feature1, const std::vector<f
float feature_norm1 = 0.0f;
float feature_norm2 = 0.0f;
#ifdef OV_OPENMP
#pragma omp parallel for num_threads(threads_num)
#pragma omp parallel for num_threads(ov::threads_num)
#endif
for(int i = 0; i < kFaceFeatureDim; ++i) {
inner_product += feature1[i] * feature2[i];