@camera.ui/camera-ui-opencv 0.0.4 → 0.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "OpenCV",
3
3
  "name": "@camera.ui/camera-ui-opencv",
4
- "version": "0.0.4",
4
+ "version": "0.0.5",
5
5
  "description": "camera.ui opencv plugin",
6
6
  "author": "seydx (https://github.com/seydx/camera.ui)",
7
7
  "main": "./src/main.py",
@@ -12,9 +12,7 @@ from camera_ui_python_types import (
12
12
  PluginAPI,
13
13
  PluginLogger,
14
14
  )
15
- from opencv_utils import get_detections, get_detections_bs, get_detections_fd
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 .plugin_typings import CameraStorageValues
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