mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-12 23:39:50 +08:00
update OrbbecSDK version to v2.9.1_202607010300_01d0010
This commit is contained in:
@@ -2220,20 +2220,20 @@ public:
|
|||||||
*
|
*
|
||||||
* @param value The confidence threshold.
|
* @param value The confidence threshold.
|
||||||
*/
|
*/
|
||||||
void setConfidenceThreshold(float value) {
|
void setConfidenceThreshold(uint32_t value) {
|
||||||
setConfigValue("confidence_threshold", value);
|
setConfigValue("confidence_threshold", static_cast<double>(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get the property range of the confidence threshold range.
|
* @brief Get the property range of the confidence threshold range.
|
||||||
*/
|
*/
|
||||||
OBFloatPropertyRange getConfidenceThresholdRange() {
|
OBIntPropertyRange getConfidenceThresholdRange() {
|
||||||
OBFloatPropertyRange range{};
|
OBIntPropertyRange range{};
|
||||||
const auto &schemaVec = getConfigSchemaVec();
|
const auto &schemaVec = getConfigSchemaVec();
|
||||||
for(const auto &item: schemaVec) {
|
for(const auto &item: schemaVec) {
|
||||||
const char *name = "confidence_threshold";
|
const char *name = "confidence_threshold";
|
||||||
if(std::strcmp(item.name, name) == 0) {
|
if(std::strcmp(item.name, name) == 0) {
|
||||||
range = getPropertyRange<OBFloatPropertyRange>(item, getConfigValue(name));
|
range = getPropertyRange<OBIntPropertyRange>(item, getConfigValue(name));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user