robotpy-cscore 2025.0.0b3__cp310-cp310-win_amd64.whl → 2025.2.1__cp310-cp310-win_amd64.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.

Potentially problematic release.


This version of robotpy-cscore might be problematic. Click here for more details.

Binary file
Binary file
Binary file
Binary file
cscore/_cscore.pyi CHANGED
@@ -2,6 +2,7 @@ from __future__ import annotations
2
2
  import numpy
3
3
  import typing
4
4
  import wpiutil
5
+ import wpiutil._wpiutil
5
6
  __all__ = ['AxisCamera', 'CameraServer', 'CvSink', 'CvSource', 'HttpCamera', 'ImageSink', 'ImageSource', 'MjpegServer', 'RawEvent', 'UsbCamera', 'UsbCameraInfo', 'VideoCamera', 'VideoEvent', 'VideoListener', 'VideoMode', 'VideoProperty', 'VideoSink', 'VideoSource', 'runMainRunLoop', 'runMainRunLoopTimeout', 'stopMainRunLoop']
6
7
  class AxisCamera(HttpCamera):
7
8
  """
@@ -329,6 +330,24 @@ class CvSink(ImageSink):
329
330
  with. The data is backed by data in the CvSink. It will be invalidated by
330
331
  any grabFrame*() call on the sink.
331
332
 
333
+ :returns: Frame time, or 0 on error (call GetError() to obtain the error
334
+ message); the frame time is in the same time base as wpi::Now(),
335
+ and is in 1 us increments.
336
+ """
337
+ def grabFrameDirectLastTime(self, image: numpy.ndarray, lastFrameTime: int, timeout: float = 0.225) -> int:
338
+ """
339
+ Wait for the next frame and get the image.
340
+ Times out (returning 0) after timeout seconds.
341
+ The provided image will have the pixelFormat this class was constructed
342
+ with. The data is backed by data in the CvSink. It will be invalidated by
343
+ any grabFrame*() call on the sink.
344
+
345
+ If lastFrameTime is provided and non-zero, the sink will fill image with
346
+ the first frame from the source that is not equal to lastFrameTime. If
347
+ lastFrameTime is zero, the time of the current frame owned by the CvSource
348
+ is used, and this function will block until the connected CvSource provides
349
+ a new frame.
350
+
332
351
  :returns: Frame time, or 0 on error (call GetError() to obtain the error
333
352
  message); the frame time is in the same time base as wpi::Now(),
334
353
  and is in 1 us increments.
@@ -354,6 +373,19 @@ class CvSink(ImageSink):
354
373
  message); the frame time is in the same time base as wpi::Now(),
355
374
  and is in 1 us increments.
356
375
  """
376
+ def lastFrameTime(self) -> int:
377
+ """
378
+ Get the last time a frame was grabbed. This uses the same time base as
379
+ wpi::Now().
380
+
381
+ :returns: Time in 1 us increments.
382
+ """
383
+ def lastFrameTimeSource(self) -> wpiutil._wpiutil.TimestampSource:
384
+ """
385
+ Get the time source for the timestamp the last frame was grabbed at.
386
+
387
+ :returns: Time source
388
+ """
357
389
  class CvSource(ImageSource):
358
390
  """
359
391
  A source for user code to provide OpenCV images as video frames.
cscore/version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # file generated by setuptools_scm
2
2
  # don't change, don't track in version control
3
- __version__ = version = '2025.0.0b3'
4
- __version_tuple__ = version_tuple = (2025, 0, 0)
3
+ __version__ = version = '2025.2.1'
4
+ __version_tuple__ = version_tuple = (2025, 2, 1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: robotpy-cscore
3
- Version: 2025.0.0b3
3
+ Version: 2025.2.1
4
4
  Summary: RobotPy bindings for cscore image processing library
5
5
  Home-page: https://github.com/robotpy/robotpy-cscore
6
6
  Author: RobotPy Development Team
@@ -9,9 +9,9 @@ License: BSD-3-Clause
9
9
  Requires-Python: >=3.8
10
10
  Description-Content-Type: text/x-rst
11
11
  License-File: LICENSE
12
- Requires-Dist: robotpy-wpiutil==2025.0.0b3
13
- Requires-Dist: robotpy-wpinet==2025.0.0b3
14
- Requires-Dist: pyntcore==2025.0.0b3
12
+ Requires-Dist: robotpy-wpiutil==2025.2.1
13
+ Requires-Dist: robotpy-wpinet==2025.2.1
14
+ Requires-Dist: pyntcore==2025.2.1
15
15
 
16
16
  robotpy-cscore
17
17
  ==============
@@ -0,0 +1,27 @@
1
+ cscore/__init__.py,sha256=xtJaSt6Uiihii-R_9XYbQVovx_D3Q-tqZpnyt6i2s0I,1119
2
+ cscore/__main__.py,sha256=No4nfyEHnbuyavQ9yInscvbiEGFPxxse9klZ-DSVMhc,4588
3
+ cscore/_cscore.cp310-win_amd64.pyd,sha256=edtKhJ8zYYRbLMGmxzwtJ5QRVByA4VrrDAiubhoD5fg,3597824
4
+ cscore/_cscore.pyi,sha256=02ElQ4WIlwvsuD9UQNoiBLmD0BpJ_H5ta9aqoy4D_Og,59323
5
+ cscore/_init_cscore.py,sha256=IJoWfQi1FpW48Uez-o9vS8SVCArHlmCAGt1BZkmbZmY,267
6
+ cscore/_logging.py,sha256=uv1Shlu49aPgQpRn5yD2ybT4N8ewJS3qUFOn8YTffwg,333
7
+ cscore/grip.py,sha256=qC6MbWvVllpnnsm10f31gqq4_PMWI_G9GKt3PfOaUpo,1042
8
+ cscore/imagewriter.py,sha256=RAWRRhL3DLNampZJjdd7Ye_8P1AmiYAZsWhnwov5id0,4537
9
+ cscore/pkgcfg.py,sha256=nkuqOy-Oy0Kw0pi8YXX9KfQCviwNliFZZlSOi2slsiw,791
10
+ cscore/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ cscore/version.py,sha256=a82wWIFHFd4GZZRzZGl_3NFMZ15xnKd0ucpeBGqWwUc,170
12
+ cscore/__pycache__/__init__.cpython-310.pyc,sha256=69wxAZ2vZaA_17m-tmPKvf5RoHV2qIQp2_l3YiCDNvM,911
13
+ cscore/__pycache__/_init_cscore.cpython-310.pyc,sha256=Z5fED5mZZjQOlhZECA6kMCKAHw3Wo_s1y9qhVW0q0-o,443
14
+ cscore/__pycache__/_logging.cpython-310.pyc,sha256=yY2Yhn1EO8nFc8SJwYHaPv2VE_q_wQXKN0ixqShwtRg,692
15
+ cscore/__pycache__/version.cpython-310.pyc,sha256=F3lxyx9o3r66FNUVU816DYTeGO5Bd2oEzBbSheOARuc,296
16
+ cscore/cvnp/README.md,sha256=197MQ-gG-pZf9YAUZqcHXLKk8au8WtxXrfFf7lnwHAo,1175
17
+ cscore/cvnp/cvnp.cpp,sha256=dE3cBEbVVXaEdULdxbzglt9elRCxhkcXjF69W_Ak6so,9216
18
+ cscore/cvnp/cvnp.h,sha256=021_w8fhAlnew4Nc88ypPAdT9sBPwPzXwGPRiGIY1_Q,14937
19
+ cscore/cvnp/cvnp_synonyms.cpp,sha256=ZpLZzmK5ZcrIgLfi_j7eJ_NXLNtcb8ymDWehYuVVHvo,2419
20
+ cscore/cvnp/cvnp_synonyms.h,sha256=MgU4yOOXMhGGLrKb06dX4nsQLtqkq_1gDE6ToR3mjFo,589
21
+ cscore/src/main.cpp,sha256=sXb-crcVv2JxivUGCqPkpYmjgeupf5-M9XXOrxkRiRw,737
22
+ robotpy_cscore-2025.2.1.dist-info/LICENSE,sha256=eday0nHMlO9Rc7a6n0ONgNEe6N20r5xNWivVL5n-fN4,3138
23
+ robotpy_cscore-2025.2.1.dist-info/METADATA,sha256=GW6tStDpmpkvdy47zhn3j2Fe2zwerbmz-bIn5xpLC-s,1088
24
+ robotpy_cscore-2025.2.1.dist-info/WHEEL,sha256=NVXpD7b4Gxps0cd2ds5rr5TG8W4ApEwx_i5J99qMZ5E,102
25
+ robotpy_cscore-2025.2.1.dist-info/entry_points.txt,sha256=ZOi1FKkpTmx8xBqUtdp6Z4IzoCKfwDOKJoVDAF9qjhE,38
26
+ robotpy_cscore-2025.2.1.dist-info/top_level.txt,sha256=yKRnfRQe07G2XO6XXYgsj9CN2obAQX3D3gsGvcewpVw,7
27
+ robotpy_cscore-2025.2.1.dist-info/RECORD,,
@@ -1,27 +0,0 @@
1
- cscore/__init__.py,sha256=xtJaSt6Uiihii-R_9XYbQVovx_D3Q-tqZpnyt6i2s0I,1119
2
- cscore/__main__.py,sha256=No4nfyEHnbuyavQ9yInscvbiEGFPxxse9klZ-DSVMhc,4588
3
- cscore/_cscore.cp310-win_amd64.pyd,sha256=hQHDdZMO6BXvArq7J_S1lUjEHMlT0v8Xuo0T2KStbjM,3591168
4
- cscore/_cscore.pyi,sha256=djn_9I0m4TldKRPlRrM9E1TLNHdubwvHU0HxUR_-Djg,57823
5
- cscore/_init_cscore.py,sha256=IJoWfQi1FpW48Uez-o9vS8SVCArHlmCAGt1BZkmbZmY,267
6
- cscore/_logging.py,sha256=uv1Shlu49aPgQpRn5yD2ybT4N8ewJS3qUFOn8YTffwg,333
7
- cscore/grip.py,sha256=qC6MbWvVllpnnsm10f31gqq4_PMWI_G9GKt3PfOaUpo,1042
8
- cscore/imagewriter.py,sha256=RAWRRhL3DLNampZJjdd7Ye_8P1AmiYAZsWhnwov5id0,4537
9
- cscore/pkgcfg.py,sha256=nkuqOy-Oy0Kw0pi8YXX9KfQCviwNliFZZlSOi2slsiw,791
10
- cscore/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- cscore/version.py,sha256=AySQrgNA7EFkaV6fNTruQBpHqXo3wEj0vWGo2ajwArA,172
12
- cscore/__pycache__/__init__.cpython-310.pyc,sha256=aEootWnyN4wq2Ycpelz0mw0HvNKvGKsMQGWDOmR8PKE,911
13
- cscore/__pycache__/_init_cscore.cpython-310.pyc,sha256=IZl-xwlkaRjsoZs8kA9fNPOiZpScQIbVjVpmDiIA9Hg,443
14
- cscore/__pycache__/_logging.cpython-310.pyc,sha256=ztqIHNf1RURM9oXENDC-b8Fp4qtEE-9exmyCUx4qKO4,692
15
- cscore/__pycache__/version.cpython-310.pyc,sha256=saGWBVPsrz8tnGpbq9cn5q_YgtyRj3roYwowDYejwko,298
16
- cscore/cvnp/README.md,sha256=197MQ-gG-pZf9YAUZqcHXLKk8au8WtxXrfFf7lnwHAo,1175
17
- cscore/cvnp/cvnp.cpp,sha256=dE3cBEbVVXaEdULdxbzglt9elRCxhkcXjF69W_Ak6so,9216
18
- cscore/cvnp/cvnp.h,sha256=021_w8fhAlnew4Nc88ypPAdT9sBPwPzXwGPRiGIY1_Q,14937
19
- cscore/cvnp/cvnp_synonyms.cpp,sha256=ZpLZzmK5ZcrIgLfi_j7eJ_NXLNtcb8ymDWehYuVVHvo,2419
20
- cscore/cvnp/cvnp_synonyms.h,sha256=MgU4yOOXMhGGLrKb06dX4nsQLtqkq_1gDE6ToR3mjFo,589
21
- cscore/src/main.cpp,sha256=sXb-crcVv2JxivUGCqPkpYmjgeupf5-M9XXOrxkRiRw,737
22
- robotpy_cscore-2025.0.0b3.dist-info/LICENSE,sha256=eday0nHMlO9Rc7a6n0ONgNEe6N20r5xNWivVL5n-fN4,3138
23
- robotpy_cscore-2025.0.0b3.dist-info/METADATA,sha256=85O-EGXkZDUugpauOtadZWCvRe3Y-ziBt9sBVLpoHrM,1096
24
- robotpy_cscore-2025.0.0b3.dist-info/WHEEL,sha256=NVXpD7b4Gxps0cd2ds5rr5TG8W4ApEwx_i5J99qMZ5E,102
25
- robotpy_cscore-2025.0.0b3.dist-info/entry_points.txt,sha256=ZOi1FKkpTmx8xBqUtdp6Z4IzoCKfwDOKJoVDAF9qjhE,38
26
- robotpy_cscore-2025.0.0b3.dist-info/top_level.txt,sha256=yKRnfRQe07G2XO6XXYgsj9CN2obAQX3D3gsGvcewpVw,7
27
- robotpy_cscore-2025.0.0b3.dist-info/RECORD,,