vidformer 1.0.1__py3-none-any.whl → 1.1.0__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.
vidformer/__init__.py
CHANGED
vidformer/cv2/__init__.py
CHANGED
@@ -88,7 +88,7 @@ def _server():
|
|
88
88
|
_global_cv2_server = vf.Server(server_endpoint, api_key)
|
89
89
|
else:
|
90
90
|
raise Exception(
|
91
|
-
"No server set for the cv2 frontend. Set VF_IGNI_ENDPOINT and VF_IGNI_API_KEY environment variables or use cv2.set_server() before use."
|
91
|
+
"No server set for the cv2 frontend (https://ixlab.github.io/vidformer/install.html). Set VF_IGNI_ENDPOINT and VF_IGNI_API_KEY environment variables or use cv2.set_server() before use."
|
92
92
|
)
|
93
93
|
return _global_cv2_server
|
94
94
|
|
@@ -315,6 +315,13 @@ def _inline_frame(arr):
|
|
315
315
|
return Frame(f, fmt)
|
316
316
|
|
317
317
|
|
318
|
+
def _check_opencv2(method_name):
|
319
|
+
if _opencv2 is None:
|
320
|
+
raise NotImplementedError(
|
321
|
+
f"{method_name} requires python OpenCV cv2. Either it's not installed or the import failed (such as a mission libGL.so.1)."
|
322
|
+
)
|
323
|
+
|
324
|
+
|
318
325
|
class VideoCapture:
|
319
326
|
def __init__(self, path: str):
|
320
327
|
server = _server()
|
@@ -779,8 +786,7 @@ def getFontScaleFromHeight(*args, **kwargs):
|
|
779
786
|
"""
|
780
787
|
cv.getFontScaleFromHeight( fontFace, pixelHeight[, thickness] )
|
781
788
|
"""
|
782
|
-
|
783
|
-
raise NotImplementedError("getFontScaleFromHeight requires the cv2 module")
|
789
|
+
_check_opencv2("getFontScaleFromHeight")
|
784
790
|
return _opencv2.getFontScaleFromHeight(*args, **kwargs)
|
785
791
|
|
786
792
|
|
@@ -788,8 +794,7 @@ def getTextSize(*args, **kwargs):
|
|
788
794
|
"""
|
789
795
|
cv.getTextSize( text, fontFace, fontScale, thickness )
|
790
796
|
"""
|
791
|
-
|
792
|
-
raise NotImplementedError("getTextSize requires the cv2 module")
|
797
|
+
_check_opencv2("getTextSize")
|
793
798
|
return _opencv2.getTextSize(*args, **kwargs)
|
794
799
|
|
795
800
|
|
@@ -0,0 +1,6 @@
|
|
1
|
+
vidformer/__init__.py,sha256=hFRhfcfKzS7ZMbAOkS8buKX85aXm7r1RvAiAZcp6jeM,29972
|
2
|
+
vidformer/cv2/__init__.py,sha256=CJ2XTwWEKKs-2Mk6rNqLWkxVawvbI2w4XD05orgx9PM,26991
|
3
|
+
vidformer/supervision/__init__.py,sha256=dRHAcHiZN68gUH_2m3o7Ohsv3NBGxF4XGPeI0pn2_K4,20346
|
4
|
+
vidformer-1.1.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
5
|
+
vidformer-1.1.0.dist-info/METADATA,sha256=yON6fgO2kRKCQfYobBhsQ8cQ0oh6ZePqYM6XALO-6MA,1776
|
6
|
+
vidformer-1.1.0.dist-info/RECORD,,
|
vidformer-1.0.1.dist-info/RECORD
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
vidformer/__init__.py,sha256=lTnRzfqleuEwb_mG4E0OZ1PgQ-8hUHiASERi_eXPiJc,29972
|
2
|
-
vidformer/cv2/__init__.py,sha256=cgnomW6xV7Ho7cCgbuw5EfS_2JJBmAwIyt-_gmtUTyY,26829
|
3
|
-
vidformer/supervision/__init__.py,sha256=dRHAcHiZN68gUH_2m3o7Ohsv3NBGxF4XGPeI0pn2_K4,20346
|
4
|
-
vidformer-1.0.1.dist-info/WHEEL,sha256=_2ozNFCLWc93bK4WKHCO-eDUENDlo-dgc9cU3qokYO4,82
|
5
|
-
vidformer-1.0.1.dist-info/METADATA,sha256=bw_C4C9EeVhsHDVywkyTwoTHPCiHJe6w3BJsWgvyAqI,1776
|
6
|
-
vidformer-1.0.1.dist-info/RECORD,,
|