tinesight 0.0.9.dev1__tar.gz → 0.0.11.dev1__tar.gz
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.
- {tinesight-0.0.9.dev1 → tinesight-0.0.11.dev1}/PKG-INFO +1 -3
- {tinesight-0.0.9.dev1 → tinesight-0.0.11.dev1}/pyproject.toml +3 -3
- {tinesight-0.0.9.dev1 → tinesight-0.0.11.dev1}/src/tinesight/client.py +4 -7
- {tinesight-0.0.9.dev1 → tinesight-0.0.11.dev1}/README.md +0 -0
- {tinesight-0.0.9.dev1 → tinesight-0.0.11.dev1}/src/tinesight/__init__.py +0 -0
- {tinesight-0.0.9.dev1 → tinesight-0.0.11.dev1}/src/tinesight/_api.py +0 -0
- {tinesight-0.0.9.dev1 → tinesight-0.0.11.dev1}/src/tinesight/registrar.py +0 -0
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: tinesight
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.11.dev1
|
|
4
4
|
Summary: Tinesight SDK
|
|
5
5
|
Requires-Dist: cryptography>=46.0.3
|
|
6
6
|
Requires-Dist: pycognito>=2024.5.1
|
|
7
7
|
Requires-Dist: opencv-python>=4.13.0.90 ; extra == 'video'
|
|
8
|
-
Requires-Dist: python-prctl ; sys_platform == 'linux' and extra == 'video'
|
|
9
|
-
Requires-Dist: picamera2 ; sys_platform == 'linux' and extra == 'video'
|
|
10
8
|
Requires-Python: >=3.12
|
|
11
9
|
Provides-Extra: video
|
|
12
10
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "tinesight"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.11.dev1"
|
|
4
4
|
description = "Tinesight SDK"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
@@ -12,8 +12,8 @@ dependencies = [
|
|
|
12
12
|
[project.optional-dependencies]
|
|
13
13
|
video = [
|
|
14
14
|
"opencv-python>=4.13.0.90",
|
|
15
|
-
"python-prctl; sys_platform == 'linux'",
|
|
16
|
-
"picamera2; sys_platform== 'linux'",
|
|
15
|
+
# "python-prctl; sys_platform == 'linux'",
|
|
16
|
+
# "picamera2; sys_platform== 'linux'",
|
|
17
17
|
]
|
|
18
18
|
|
|
19
19
|
[build-system]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import time
|
|
1
2
|
from collections.abc import Callable
|
|
2
3
|
from functools import partial
|
|
3
4
|
from pathlib import Path
|
|
4
|
-
import time
|
|
5
5
|
|
|
6
6
|
import requests
|
|
7
7
|
|
|
@@ -106,13 +106,10 @@ class TinesightClient(TinesightApiMixin):
|
|
|
106
106
|
picam2 = None
|
|
107
107
|
|
|
108
108
|
if isinstance(video_source, int) and self._is_raspberry_pi():
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
from picamera2 import Picamera2
|
|
110
|
+
use_picamera2 = True
|
|
111
|
+
print("Detected Raspberry Pi - using picamera2 for CSI camera")
|
|
111
112
|
|
|
112
|
-
use_picamera2 = True
|
|
113
|
-
print("Detected Raspberry Pi - using picamera2 for CSI camera")
|
|
114
|
-
except ImportError:
|
|
115
|
-
print("picamera2 not available, falling back to OpenCV")
|
|
116
113
|
|
|
117
114
|
# Initialize camera
|
|
118
115
|
if use_picamera2:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|