IOUMethod
KeyPointInfo
功能
面部关键点(左/右眼、鼻尖、左/右嘴角)坐标信息。
结构定义
struct KeyPointInfo {
float kPBefore[LANDMARK_LEN];
};
参数说明
| 参数名 | 输入/输出 | 说明 |
|---|---|---|
| kPBefore | 输入 | 关键点坐标数组。 |
父主题: 通用数据结构
HungarianHandle
功能
匈牙利算法,一种在多项式时间内求解任务分配问题的组合优化算法。
结构定义
struct HungarianHandle {
int rows;
int cols;
int max;
int* resX;
int* resY;
bool transpose;
std::shared_ptr<int> adjMat;
std::shared_ptr<int> xMatch;
std::shared_ptr<int> yMatch;
std::shared_ptr<int> xValue;
std::shared_ptr<int> yValue;
std::shared_ptr<int> slack;
std::shared_ptr<int> xVisit;
std::shared_ptr<int> yVisit;
};
参数说明
| 参数名 | 输入/输出 | 说明 |
|---|---|---|
| rows | 输入 | 匹配矩阵行。 |
| cols | 输入 | 匹配矩阵列。 |
| max | 输出 | 匹配矩阵行与列最大值。 |
| resX | 输出 | 点集x匹配结果。 |
| resY | 输出 | 点集y匹配结果。 |
| transpose | 输出 | 矩阵转置标识符。 |
| adjMat | 输入 | 权值矩阵。 |
| xMatch | 输出 | 点集x匹配值。 |
| yMatch | 输出 | 点集y匹配值。 |
| xValue | 输出 | 点集x顶标值。 |
| yValue | 输出 | 点集y值,默认为0。 |
| slack | 输出 | slack数组。 |
| xVisit | 输出 | 点集x匹配标识符。 |
| yVisit | 输出 | 点集y匹配标识符。 |
父主题: 通用数据结构
IOUMethod
功能
IOU计算方式。
结构定义
enum IOUMethod {
MAX = 0,
MIN = 1,
UNION = 2,
DIOU = 3
};
参数说明
| 参数名 | 输入/输出 | 说明 |
|---|---|---|
| MAX | 输入 | 重叠区域除以两者中面积大的。 |
| MIN | 输入 | 重叠区域除以两者中面积小的。 |
| UNION | 输入 | 重叠区域除以两者面积并集。 |
| DIOU | 输入 | 重叠区域除以两者面积并集减去距离的交并比。 |
父主题: 通用数据结构
EncodeH26xInfo
功能
视频编码回调传入数据。
结构定义
struct EncodeH26xInfo {
std::function<void(std::shared_ptr<uint8_t>, uint32_t)> func = {};
};
参数说明
| 参数名 | 输入/输出 | 说明 |
|---|---|---|
| func | 输入 | 用于视频编码回调处理的函数对象。 函数对象的第一个参数“std::shared_ptr<uint8_t>”为输出的视频流数据(Host侧的数据),第二个参数“uint32_t”为视频流数据大小。 |
父主题: 通用数据结构
VencConfig
功能
视频编码结构体。
结构定义
struct VencConfig {
uint32_t width = 0;
uint32_t height = 0;
MxbaseStreamFormat outputVideoFormat = MXBASE_STREAM_FORMAT_H264_MAIN_LEVEL;
MxbasePixelFormat inputImageFormat = MXBASE_PIXEL_FORMAT_YUV_SEMIPLANAR_420;
uint32_t keyFrameInterval = 30;
uint32_t deviceId = 0;
pthread_t encoderThreadId = 0;
bool stopEncoderThread = false;
uint32_t srcRate = 0;
uint32_t rcMode = 0;
uint32_t maxBitRate = 0;
uint32_t ipProp = 0;
std::function<void(std::shared_ptr<uint8_t>, uint32_t)>* userData;
};
参数说明
| 参数名 | 输入/输出 | 说明 |
|---|---|---|
| width | 输入 | 输入宽度。 |
| height | 输入 | 输入高度。 |
| outputVideoFormat | 输入 | 输出码流格式。 |
| inputImageFormat | 输入 | 输入图片格式。 |
| keyFrameInterval | 输入 | I帧间隔。 |
| deviceId | 输入 | 设备编号。 |
| encoderThreadId | 输入 | 回调线程编号。 |
| stopEncoderThread | 输入 | 回调线程是否在运行的标记位。 |
| srcRate | 输入 | 输入码流帧率,单位fps。 |
| rcMode | 输入 | 指定码率控制模式。 |
| maxBitRate | 输入 | 输出码率,单位kbps。 |
| ipProp | 输入 | 一个GOP内单个I帧bit数和单个P帧bit数的比例。 |
| userData | 输入 | 用户自定义数据。 |
父主题: 通用数据结构
在线提单