tinesight 0.0.11.dev1__py3-none-any.whl → 0.0.13__py3-none-any.whl
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/_api.py
CHANGED
|
@@ -10,5 +10,5 @@ class TinesightApiMixin:
|
|
|
10
10
|
|
|
11
11
|
@property
|
|
12
12
|
def public_ux_api_uri(self) -> str:
|
|
13
|
-
api_ref = "17bx575oxl" if os.getenv("TINESIGHT_DEV") else "
|
|
13
|
+
api_ref = "17bx575oxl" if os.getenv("TINESIGHT_DEV") else "nj9x61m0pc"
|
|
14
14
|
return f"https://{api_ref}.execute-api.us-east-1.amazonaws.com"
|
tinesight/client.py
CHANGED
|
@@ -79,8 +79,6 @@ class TinesightClient(TinesightApiMixin):
|
|
|
79
79
|
|
|
80
80
|
Args:
|
|
81
81
|
video_source: Video source - can be device index (0 for default camera),
|
|
82
|
-
RTSP URL (e.g., "rtsp://192.168.1.100:8554/stream"),
|
|
83
|
-
or HTTP stream URL
|
|
84
82
|
frame_skip: Classify every Nth frame (default: 10). Higher values = faster but less frequent updates
|
|
85
83
|
probability_threshold: Minimum confidence threshold to display classification (default: 0.55)
|
|
86
84
|
window_name: Name of the display window
|
|
@@ -89,8 +87,6 @@ class TinesightClient(TinesightApiMixin):
|
|
|
89
87
|
>>> client = TinesightClient(key_path, cert_path)
|
|
90
88
|
>>> # Local camera
|
|
91
89
|
>>> client.classify_video_stream(0)
|
|
92
|
-
>>> # Raspberry Pi RTSP stream
|
|
93
|
-
>>> client.classify_video_stream("rtsp://raspberrypi.local:8554/stream")
|
|
94
90
|
>>> # With custom threshold
|
|
95
91
|
>>> client.classify_video_stream(0, probability_threshold=0.75)
|
|
96
92
|
"""
|
|
@@ -107,10 +103,10 @@ class TinesightClient(TinesightApiMixin):
|
|
|
107
103
|
|
|
108
104
|
if isinstance(video_source, int) and self._is_raspberry_pi():
|
|
109
105
|
from picamera2 import Picamera2
|
|
106
|
+
|
|
110
107
|
use_picamera2 = True
|
|
111
108
|
print("Detected Raspberry Pi - using picamera2 for CSI camera")
|
|
112
109
|
|
|
113
|
-
|
|
114
110
|
# Initialize camera
|
|
115
111
|
if use_picamera2:
|
|
116
112
|
picam2 = Picamera2()
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: tinesight
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.13
|
|
4
4
|
Summary: Tinesight SDK
|
|
5
|
-
Requires-Dist: cryptography>=
|
|
5
|
+
Requires-Dist: cryptography>=44
|
|
6
6
|
Requires-Dist: pycognito>=2024.5.1
|
|
7
7
|
Requires-Dist: opencv-python>=4.13.0.90 ; extra == 'video'
|
|
8
8
|
Requires-Python: >=3.12
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
tinesight/__init__.py,sha256=lLndcGHtfbe4Yx0SIouPh8qgYbtpNdfZNnf1xbKLqNc,52
|
|
2
|
+
tinesight/_api.py,sha256=Ur0SnRqHhue0rtZmuUddsom8qLEO4gLWfdmCgzNWDD4,422
|
|
3
|
+
tinesight/client.py,sha256=9-ipO64E__dFjcdpFL6lCw6FlLm7v6jWnr0BGhRJ0rY,9957
|
|
4
|
+
tinesight/registrar.py,sha256=aotccLdDsLh22WfFq1O9gKUrNHdWHPj1xoWyxJdvDlQ,6398
|
|
5
|
+
tinesight-0.0.13.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
|
|
6
|
+
tinesight-0.0.13.dist-info/METADATA,sha256=avHTNigpxa7NVYbdR1ANYDiyhBeoEliyzHLc3odkCws,457
|
|
7
|
+
tinesight-0.0.13.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
tinesight/__init__.py,sha256=lLndcGHtfbe4Yx0SIouPh8qgYbtpNdfZNnf1xbKLqNc,52
|
|
2
|
-
tinesight/_api.py,sha256=9F6bdcXgx6XWTT_5LnAan-vh1_sEPI3kuARBdbQdbEw,415
|
|
3
|
-
tinesight/client.py,sha256=oZTkeIQekLGIpTMHZvN0KvV5prwlqHoyqftwpElGhrI,10207
|
|
4
|
-
tinesight/registrar.py,sha256=aotccLdDsLh22WfFq1O9gKUrNHdWHPj1xoWyxJdvDlQ,6398
|
|
5
|
-
tinesight-0.0.11.dev1.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
|
|
6
|
-
tinesight-0.0.11.dev1.dist-info/METADATA,sha256=asctyQXCG_iY8LZkPBKSepn75RYOUu-B998Do0_W2XI,466
|
|
7
|
-
tinesight-0.0.11.dev1.dist-info/RECORD,,
|
|
File without changes
|