feat(hand): add hand pose estimator

This commit is contained in:
Syd Xu
2021-10-28 19:23:02 +08:00
parent 953128f19f
commit 36ec68d4ee

View File

@@ -144,6 +144,15 @@ int Nanodet::Detect(const unsigned char* rgbdata,
rois->push_back(roi);
}
// sort objects by area
struct
{
bool operator()(const HandROI& a, const HandROI& b) const
{
return a.rect.area() > b.rect.area();
}
} objects_area_greater;
std::sort(rois->begin(), rois->end(), objects_area_greater);
return 0;
}
}