@camera.ui/camera-ui-coreml 0.0.14 → 0.0.16

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": "CoreML",
3
3
  "name": "@camera.ui/camera-ui-coreml",
4
- "version": "0.0.14",
4
+ "version": "0.0.16",
5
5
  "description": "camera.ui coreml plugin",
6
6
  "author": "seydx (https://github.com/seydx/camera.ui)",
7
7
  "main": "./src/main.py",
@@ -21,8 +21,8 @@
21
21
  "url": "https://github.com/seydx/camera.ui/issues"
22
22
  },
23
23
  "engines": {
24
- "camera.ui": ">=0.0.30-alpha.1",
25
- "node": ">=18.12.0"
24
+ "camera.ui": ">=0.0.31-alpha.1",
25
+ "node": ">=20.17.0"
26
26
  },
27
27
  "homepage": "https://github.com/seydx/camera.ui#readme",
28
28
  "keywords": [
package/requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
1
  coremltools==7.2
2
- camera-ui-python-types==0.1.85
2
+ camera-ui-python-types==0.1.86
3
3
  requests==2.32.3
4
4
  Pillow==10.4.0
@@ -6,10 +6,10 @@ from camera_ui_python_types import (
6
6
  CameraDevice,
7
7
  CameraStorage,
8
8
  Detection,
9
+ LoggerService,
9
10
  MotionState,
10
11
  ObjectClass,
11
12
  PluginAPI,
12
- PluginLogger,
13
13
  )
14
14
  from object_detector import ObjectDetector
15
15
  from plugin_typings import CameraStorageValues
@@ -23,7 +23,7 @@ class CameraDetector:
23
23
  camera: CameraDevice,
24
24
  object_detector: ObjectDetector,
25
25
  api: PluginAPI,
26
- logger: PluginLogger,
26
+ logger: LoggerService,
27
27
  has_motion: list[str],
28
28
  ) -> None:
29
29
  super().__init__()
package/src/main.py CHANGED
@@ -6,10 +6,10 @@ from camera_ui_python_types import (
6
6
  CameraExtension,
7
7
  FormSubmitResponse,
8
8
  ImageMetadata,
9
+ LoggerService,
9
10
  ObjectDetectionPlugin,
10
11
  ObjectDetectionPluginResponse,
11
12
  PluginAPI,
12
- PluginLogger,
13
13
  RootSchema,
14
14
  )
15
15
  from detector_defaults import available_models, available_precision
@@ -17,7 +17,7 @@ from object_detector import ObjectDetector
17
17
 
18
18
 
19
19
  class CoreML(ObjectDetectionPlugin):
20
- def __init__(self, logger: PluginLogger, api: PluginAPI):
20
+ def __init__(self, logger: LoggerService, api: PluginAPI):
21
21
  self.api = api
22
22
  self.logger = logger
23
23
  self.camera_devices: dict[str, CameraDevice] = {}
@@ -7,7 +7,7 @@ from uuid import uuid4
7
7
  import coremltools as ct
8
8
  import numpy as np
9
9
  import requests
10
- from camera_ui_python_types import Detection, ImageMetadata, ObjectClass, PluginAPI, PluginLogger
10
+ from camera_ui_python_types import Detection, ImageMetadata, LoggerService, ObjectClass, PluginAPI
11
11
  from detector_defaults import available_models, available_precision
12
12
  from PIL import Image
13
13
  from utils import parse_labels
@@ -17,7 +17,7 @@ class ObjectDetector:
17
17
  def __init__(
18
18
  self,
19
19
  api: PluginAPI,
20
- logger: PluginLogger,
20
+ logger: LoggerService,
21
21
  ):
22
22
  self.api = api
23
23
  self.logger = logger