tinesight 0.0.9.dev1__py3-none-any.whl → 0.0.11.dev1__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/client.py CHANGED
@@ -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
- try:
110
- from picamera2 import Picamera2
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:
@@ -1,12 +1,10 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: tinesight
3
- Version: 0.0.9.dev1
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
@@ -0,0 +1,7 @@
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,,
@@ -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=wzvHfPCdRNG_71cbRx-YZhjt11r8Pof_Ddu0OyY5WyY,10341
4
- tinesight/registrar.py,sha256=aotccLdDsLh22WfFq1O9gKUrNHdWHPj1xoWyxJdvDlQ,6398
5
- tinesight-0.0.9.dev1.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
6
- tinesight-0.0.9.dev1.dist-info/METADATA,sha256=sEMb0qkJMNqVABEPnj3Mf2kIYvR3oi1xmlCXYqBoqO8,612
7
- tinesight-0.0.9.dev1.dist-info/RECORD,,