fix aruco id-setting bug, add creater marker tool

This commit is contained in:
jario
2023-12-11 00:04:05 +08:00
parent e5c00087ed
commit dd3216e19e
3 changed files with 259 additions and 1 deletions

View File

@@ -94,7 +94,8 @@ void ArucoDetector::_load()
// _detector_params = aruco::DetectorParameters::create();
_detector_params = new aruco::DetectorParameters;
for (auto i : aruco_params_value) {
if ("_dictionary_id" == std::string(i->key)) {
if ("dictionaryId" == std::string(i->key)) {
// std::cout << "dictionary_id (old, new): " << _dictionary_id << ", " << i->value.toNumber() << std::endl;
_dictionary_id = i->value.toNumber();
}
else if ("adaptiveThreshConstant" == std::string(i->key)) {