mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
JsonCpp to QTJson (Part 3) (#257)
* Update BlackBorderProcessor.h * Update Hyperion.h * Update ImageProcessor.h * Update ImageProcessorFactory.h * Update LedString.h * Update BlackBorderProcessor.cpp * Update ImageProcessor.cpp * Update ImageProcessorFactory.cpp * Update Hyperion.cpp * Update hyperiond.cpp * Update TestImage2LedsMap.cpp * Update TestBlackBorderProcessor.cpp * Update Hyperion.cpp * Update Hyperion.cpp
This commit is contained in:
committed by
redPanther
parent
d6a34edfb2
commit
f146894799
@@ -8,14 +8,14 @@
|
||||
|
||||
using namespace hyperion;
|
||||
|
||||
BlackBorderProcessor::BlackBorderProcessor(const Json::Value &blackborderConfig)
|
||||
: _enabled(blackborderConfig.get("enable", true).asBool())
|
||||
, _unknownSwitchCnt(blackborderConfig.get("unknownFrameCnt", 600).asUInt())
|
||||
, _borderSwitchCnt(blackborderConfig.get("borderFrameCnt", 50).asUInt())
|
||||
, _maxInconsistentCnt(blackborderConfig.get("maxInconsistentCnt", 10).asUInt())
|
||||
, _blurRemoveCnt(blackborderConfig.get("blurRemoveCnt", 1).asUInt())
|
||||
, _detectionMode(blackborderConfig.get("mode", "default").asString())
|
||||
, _detector(blackborderConfig.get("threshold", 0.01).asDouble())
|
||||
BlackBorderProcessor::BlackBorderProcessor(const QJsonObject &blackborderConfig)
|
||||
: _enabled(blackborderConfig["enable"].toBool(true))
|
||||
, _unknownSwitchCnt(blackborderConfig["unknownFrameCnt"].toInt(600))
|
||||
, _borderSwitchCnt(blackborderConfig["borderFrameCnt"].toInt(50))
|
||||
, _maxInconsistentCnt(blackborderConfig["maxInconsistentCnt"].toInt(10))
|
||||
, _blurRemoveCnt(blackborderConfig["blurRemoveCnt"].toInt(1))
|
||||
, _detectionMode(blackborderConfig["mode"].toString("default").toStdString())
|
||||
, _detector(blackborderConfig["threshold"].toDouble(0.01))
|
||||
, _currentBorder({true, -1, -1})
|
||||
, _previousDetectedBorder({true, -1, -1})
|
||||
, _consistentCnt(0)
|
||||
|
Reference in New Issue
Block a user