mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-11 01:48:03 +00:00

New detection added with tests: - bark detection - glass detection - line crossing detection - meow detection - vehicle detection
25 lines
658 B
Python
25 lines
658 B
Python
"""Implementation of person detection module."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import logging
|
|
|
|
from kasa.smartcam.detectionmodule import DetectionModule
|
|
|
|
_LOGGER = logging.getLogger(__name__)
|
|
|
|
|
|
class PersonDetection(DetectionModule):
|
|
"""Implementation of person detection module."""
|
|
|
|
REQUIRED_COMPONENT = "personDetection"
|
|
|
|
QUERY_GETTER_NAME = "getPersonDetectionConfig"
|
|
QUERY_MODULE_NAME = "people_detection"
|
|
QUERY_SECTION_NAMES = "detection"
|
|
|
|
DETECTION_FEATURE_ID = "person_detection"
|
|
DETECTION_FEATURE_NAME = "Person detection"
|
|
QUERY_SETTER_NAME = "setPersonDetectionConfig"
|
|
QUERY_SET_SECTION_NAME = "detection"
|