@camera.ui/camera-ui-opencv 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/requirements.txt +1 -1
- package/src/camera_detector.py +3 -4
- package/src/main.py +10 -10
- /package/src/{defaults.py → detector_defaults.py} +0 -0
package/package.json
CHANGED
package/requirements.txt
CHANGED
package/src/camera_detector.py
CHANGED
|
@@ -12,9 +12,7 @@ from camera_ui_python_types import (
|
|
|
12
12
|
PluginAPI,
|
|
13
13
|
PluginLogger,
|
|
14
14
|
)
|
|
15
|
-
from
|
|
16
|
-
|
|
17
|
-
from .defaults import (
|
|
15
|
+
from detector_defaults import (
|
|
18
16
|
available_models,
|
|
19
17
|
defaultArea,
|
|
20
18
|
defaultAreaBs,
|
|
@@ -25,7 +23,8 @@ from .defaults import (
|
|
|
25
23
|
defaultThreshold,
|
|
26
24
|
defaultThresholdBs,
|
|
27
25
|
)
|
|
28
|
-
from
|
|
26
|
+
from opencv_utils import get_detections, get_detections_bs, get_detections_fd
|
|
27
|
+
from plugin_typings import CameraStorageValues
|
|
29
28
|
|
|
30
29
|
background_tasks = set[asyncio.Task[Any]]()
|
|
31
30
|
|
package/src/main.py
CHANGED
|
@@ -5,16 +5,7 @@ from concurrent.futures import ThreadPoolExecutor
|
|
|
5
5
|
from typing import Any, Union
|
|
6
6
|
|
|
7
7
|
import cv2
|
|
8
|
-
from camera_detector import
|
|
9
|
-
CameraDetector,
|
|
10
|
-
defaultArea,
|
|
11
|
-
defaultAreaBs,
|
|
12
|
-
defaultAreaFd,
|
|
13
|
-
defaultBlur,
|
|
14
|
-
defaultReferenceFrameFrequency,
|
|
15
|
-
defaultThreshold,
|
|
16
|
-
defaultThresholdBs,
|
|
17
|
-
)
|
|
8
|
+
from camera_detector import CameraDetector
|
|
18
9
|
from camera_ui_python_types import (
|
|
19
10
|
CameraDevice,
|
|
20
11
|
CameraExtension,
|
|
@@ -25,6 +16,15 @@ from camera_ui_python_types import (
|
|
|
25
16
|
PluginLogger,
|
|
26
17
|
RootSchema,
|
|
27
18
|
)
|
|
19
|
+
from detector_defaults import (
|
|
20
|
+
defaultArea,
|
|
21
|
+
defaultAreaBs,
|
|
22
|
+
defaultAreaFd,
|
|
23
|
+
defaultBlur,
|
|
24
|
+
defaultReferenceFrameFrequency,
|
|
25
|
+
defaultThreshold,
|
|
26
|
+
defaultThresholdBs,
|
|
27
|
+
)
|
|
28
28
|
from opencv_utils import get_detections, get_detections_bs, get_detections_fd
|
|
29
29
|
|
|
30
30
|
|
|
File without changes
|