setCameraCommand method
Implementation
Future<void> setCameraCommand(StatusResult result) async {
if (humanTracking == null && result.support_humanDetect == "1") {
humanTracking = HumanTracking(this);
}
if (humanFraming == null && result.support_humanoidFrame == "1") {
humanFraming = HumanFraming(this);
}
if (humanZoom == null && result.support_humanoid_zoom == "1") {
humanZoom = HumanZoom(this);
}
if (customSound == null && result.support_voiceTypedef == "1") {
customSound = CustomSound(this);
}
if (aiDetect == null && result.support_mode_AiDetect != null) {
aiDetect = AiDetect(this);
}
}