Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
shy_201992
openpose
提交
3bd5ed1a
O
openpose
项目概览
shy_201992
/
openpose
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openpose
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3bd5ed1a
编写于
8月 25, 2017
作者:
G
gineshidalgo99
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added hand extractor API doc
上级
c2e5d5d2
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
32 addition
and
0 deletion
+32
-0
include/openpose/hand/handExtractor.hpp
include/openpose/hand/handExtractor.hpp
+32
-0
未找到文件。
include/openpose/hand/handExtractor.hpp
浏览文件 @
3bd5ed1a
...
...
@@ -11,17 +11,49 @@
namespace
op
{
/**
* Hand keypoint extractor class.
*/
class
OP_API
HandExtractor
{
public:
/**
* Constructor of the HandExtractor class.
* @param netInputSize Size at which the cropped image (where the hand is located) is resized.
* @param netOutputSize Size of the final results. At the moment, it must be equal than netOutputSize.
* @param modelFolder Folder where the models are located.
* @param gpuId The GPU index (0-based) which the deep net will use.
* @param numberScales Number of scales to run. The more scales, the slower it will be but possibly also more accurate.
* @param rangeScales The range between the smaller and bigger scale.
*/
explicit
HandExtractor
(
const
Point
<
int
>&
netInputSize
,
const
Point
<
int
>&
netOutputSize
,
const
std
::
string
&
modelFolder
,
const
int
gpuId
,
const
unsigned
short
numberScales
=
1
,
const
float
rangeScales
=
0.4
f
);
/**
* This function must be call before using any other function. It must also be called inside the thread in which the functions are going
* to be used.
*/
void
initializationOnThread
();
/**
* This function extracts the hand keypoints for each detected hand in the image.
* @param fpsMode handRectangles Location of the hands in the image. It is a length-variable std::vector, where each index corresponds to
* a different person in the image. Internally the std::vector, a std::array of 2 elements: index 0 and 1 for left and right hand
* respectively. Inside each array element, a op::Rectangle<float> (similar to cv::Rect for floating values) with the position of that hand
* (or 0,0,0,0 if some hand is missing, e.g. if a specific person has only half of the body inside the image).
* @param cvInputData Original image in cv::Mat format and BGR format.
* @param scaleInputToOutput Desired scale of the final keypoints. Set to 1 if the desired size is the cvInputData size.
*/
void
forwardPass
(
const
std
::
vector
<
std
::
array
<
Rectangle
<
float
>
,
2
>>
handRectangles
,
const
cv
::
Mat
&
cvInputData
,
const
float
scaleInputToOutput
);
/**
* This function returns the hand keypoins. VERY IMPORTANT: use getHandKeypoints().clone() if the keypoints are going to be edited
* in a different thread.
* @return And std::array with all the left hand keypoints (index 0) and all the right ones (index 1). Each Array<float> follows the pose
* structure, i.e. the first dimension corresponds to all the people in the image, the second to each specific keypoint, and the third
* one to (x, y, score).
*/
std
::
array
<
Array
<
float
>
,
2
>
getHandKeypoints
()
const
;
private:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录