tinesight 0.0.10.dev1__tar.gz → 0.0.12.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.
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: tinesight
3
- Version: 0.0.10.dev1
3
+ Version: 0.0.12.dev1
4
4
  Summary: Tinesight SDK
5
- Requires-Dist: cryptography>=46.0.3
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
@@ -1,19 +1,17 @@
1
1
  [project]
2
2
  name = "tinesight"
3
- version = "0.0.10.dev1"
3
+ version = "0.0.12.dev1"
4
4
  description = "Tinesight SDK"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
7
7
  dependencies = [
8
- "cryptography>=46.0.3",
8
+ "cryptography>=44",
9
9
  "pycognito>=2024.5.1",
10
10
  ]
11
11
 
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'",
17
15
  ]
18
16
 
19
17
  [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
 
@@ -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
  """
@@ -106,13 +102,10 @@ class TinesightClient(TinesightApiMixin):
106
102
  picam2 = None
107
103
 
108
104
  if isinstance(video_source, int) and self._is_raspberry_pi():
109
- try:
110
- from picamera2 import Picamera2
105
+ from picamera2 import Picamera2
106
+ use_picamera2 = True
107
+ print("Detected Raspberry Pi - using picamera2 for CSI camera")
111
108
 
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
109
 
117
110
  # Initialize camera
118
111
  if use_picamera2: