FPRINTF("[Line : %d][%s] Invalid value of g_nNumberOfPoses, g_nNumberOfPoses = %d \\n", __LINE__, API_NAMESPACE, g_nNumberOfPoses);
return 1;
}
- if(g_nLabel >= 0)
+ if(g_nLabel > 0)
{
FPRINTF("[Line : %d][%s] Invalid value of g_nLabel, g_nLabel = %d \\n", __LINE__, API_NAMESPACE, g_nLabel);
return 1;
"index" : [-1, -1, -1, -1],
"top_number" : 1,
"threshold" : 0.0,
- "score_type" : 0
+ "score_type" : "NORMAL"
}
],
"landmark" : [
{
"name" : "fanet8ss_inference/fully_connected_1/Sigmoid",
"index" : [-1, 1],
- "landmark_type" : 0,
- "landmark_coordinate" : 0,
+ "landmark_type" : "2D_SINGLE",
+ "landmark_coordinate" : "RATIO",
"landmark_offset" : 2,
- "decoding_type" : 0
+ "decoding_type" : "BYPASS"
}
]
}
"index" : [-1, 1, 1, 1],
"top_number" : 1 ,
"threshold" : 0.3,
- "score_type" : 0
+ "score_type" : "NORMAL"
}
],
"landmark" : [
{
"name" : "Convolutional_Pose_Machine/stage_5_out",
"index" : [-1, 1, 1, 1],
- "landmark_type" : 0,
- "landmark_coordinate" : 1,
- "decoding_type" : 1,
+ "landmark_type" : "2D_SINGLE",
+ "landmark_coordinate" : "PIXEL",
+ "decoding_type" : "HEATMAP",
"decoding_info" :
{
"heatmap" :
{
- "shape_type": 1
+ "shape_type": "NHWC"
}
}
}
"index" : [-1, -1, -1, -1],
"top_number" : 1,
"threshold" : 0.0,
- "score_type" : 0
+ "score_type" : "NORMAL"
}
],
"landmark" : [
{
"name" : "fanet8ss_inference/fully_connected_1/Sigmoid",
"index" : [-1, 1],
- "landmark_type" : 0,
- "landmark_coordinate" : 0,
+ "landmark_type" : "2D_SINGLE",
+ "landmark_coordinate" : "RATIO",
"landmark_offset" : 2,
- "decoding_type" : 0
+ "decoding_type" : "BYPASS"
}
]
}
"index" : [-1, 1, 1, 1],
"top_number" : 1 ,
"threshold" : 0.3,
- "score_type" : 0
+ "score_type" : "NORMAL"
}
],
"landmark" : [
{
"name" : "Convolutional_Pose_Machine/stage_5_out",
"index" : [-1, 1, 1, 1],
- "landmark_type" : 0,
- "landmark_coordinate" : 1,
- "decoding_type" : 1,
+ "landmark_type" : "2D_SINGLE",
+ "landmark_coordinate" : "PIXEL",
+ "decoding_type" : "HEATMAP",
"decoding_info" :
{
"heatmap" :
{
- "shape_type": 1
+ "shape_type": "NHWC"
}
}
}
assert_eq(true, gIsPoseLandmarkDetectCallBackInvoked);
assert_eq(MEDIA_VISION_ERROR_NONE, gPldResultErr);
assert_gt(gPldResultNumberOfPoses, 0);
- assert_lt(gPldResultLabel, 0);
+ assert_leq(gPldResultLabel, 0);
printf("Before return mv_inference_pose_get_label_p\n");
return 0;