mirror of
https://github.com/bububa/openvision.git
synced 2025-09-26 17:51:13 +08:00
feat(hand): add hand pose estimator
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user