robotpy-cscore 2025.3.1.0__cp311-cp311-win_amd64.whl → 2025.3.2.0__cp311-cp311-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
@@ -10,9 +10,6 @@ class AxisCamera(HttpCamera):
10
10
 
11
11
  :deprecated: Use HttpCamera instead.
12
12
  """
13
- @staticmethod
14
- def _pybind11_conduit_v1_(*args, **kwargs):
15
- ...
16
13
  @typing.overload
17
14
  def __init__(self, name: str, host: str) -> None:
18
15
  """
@@ -53,9 +50,6 @@ class CameraServer:
53
50
  """
54
51
  kBasePort: typing.ClassVar[int] = 1181
55
52
  @staticmethod
56
- def _pybind11_conduit_v1_(*args, **kwargs):
57
- ...
58
- @staticmethod
59
53
  @typing.overload
60
54
  def addAxisCamera(host: str) -> AxisCamera:
61
55
  """
@@ -118,7 +112,7 @@ class CameraServer:
118
112
  """
119
113
  @staticmethod
120
114
  @typing.overload
121
- def addServer(name: str, port: int) -> MjpegServer:
115
+ def addServer(name: str, port: typing.SupportsInt) -> MjpegServer:
122
116
  """
123
117
  Adds a MJPEG server.
124
118
 
@@ -142,7 +136,7 @@ class CameraServer:
142
136
  to switch the actual source of the stream.
143
137
  """
144
138
  @staticmethod
145
- def enableLogging(level: int | None = None) -> None:
139
+ def enableLogging(level: typing.SupportsInt | None = None) -> None:
146
140
  """
147
141
  Enable cscore logging
148
142
  """
@@ -214,7 +208,7 @@ class CameraServer:
214
208
  camera
215
209
  """
216
210
  @staticmethod
217
- def putVideo(name: str, width: int, height: int) -> CvSource:
211
+ def putVideo(name: str, width: typing.SupportsInt, height: typing.SupportsInt) -> CvSource:
218
212
  """
219
213
  Create a MJPEG stream with OpenCV input. This can be called to pass custom
220
214
  annotated images to the dashboard.
@@ -253,7 +247,7 @@ class CameraServer:
253
247
  """
254
248
  @staticmethod
255
249
  @typing.overload
256
- def startAutomaticCapture(dev: int) -> UsbCamera:
250
+ def startAutomaticCapture(dev: typing.SupportsInt) -> UsbCamera:
257
251
  """
258
252
  Start automatically capturing images to send to the dashboard.
259
253
 
@@ -264,7 +258,7 @@ class CameraServer:
264
258
  """
265
259
  @staticmethod
266
260
  @typing.overload
267
- def startAutomaticCapture(name: str, dev: int) -> UsbCamera:
261
+ def startAutomaticCapture(name: str, dev: typing.SupportsInt) -> UsbCamera:
268
262
  """
269
263
  Start automatically capturing images to send to the dashboard.
270
264
 
@@ -298,9 +292,6 @@ class CvSink(ImageSink):
298
292
  """
299
293
  A sink for user code to accept video frames as OpenCV images.
300
294
  """
301
- @staticmethod
302
- def _pybind11_conduit_v1_(*args, **kwargs):
303
- ...
304
295
  def __init__(self, name: str, pixelFormat: VideoMode.PixelFormat = ...) -> None:
305
296
  """
306
297
  Create a sink for accepting OpenCV images.
@@ -311,7 +302,7 @@ class CvSink(ImageSink):
311
302
  :param name: Source name (arbitrary unique identifier)
312
303
  :param pixelFormat: The pixel format to read
313
304
  """
314
- def grabFrame(self, image: numpy.ndarray, timeout: float = 0.225) -> tuple[int, numpy.ndarray]:
305
+ def grabFrame(self, image: numpy.ndarray, timeout: typing.SupportsFloat = 0.225) -> tuple[int, numpy.ndarray]:
315
306
  """
316
307
  Wait for the next frame and get the image.
317
308
  Times out (returning 0) after timeout seconds.
@@ -322,7 +313,7 @@ class CvSink(ImageSink):
322
313
  message); the frame time is in the same time base as wpi::Now(),
323
314
  and is in 1 us increments.
324
315
  """
325
- def grabFrameDirect(self, image: numpy.ndarray, timeout: float = 0.225) -> int:
316
+ def grabFrameDirect(self, image: numpy.ndarray, timeout: typing.SupportsFloat = 0.225) -> int:
326
317
  """
327
318
  Wait for the next frame and get the image.
328
319
  Times out (returning 0) after timeout seconds.
@@ -334,7 +325,7 @@ class CvSink(ImageSink):
334
325
  message); the frame time is in the same time base as wpi::Now(),
335
326
  and is in 1 us increments.
336
327
  """
337
- def grabFrameDirectLastTime(self, image: numpy.ndarray, lastFrameTime: int, timeout: float = 0.225) -> int:
328
+ def grabFrameDirectLastTime(self, image: numpy.ndarray, lastFrameTime: typing.SupportsInt, timeout: typing.SupportsFloat = 0.225) -> int:
338
329
  """
339
330
  Wait for the next frame and get the image.
340
331
  Times out (returning 0) after timeout seconds.
@@ -390,9 +381,6 @@ class CvSource(ImageSource):
390
381
  """
391
382
  A source for user code to provide OpenCV images as video frames.
392
383
  """
393
- @staticmethod
394
- def _pybind11_conduit_v1_(*args, **kwargs):
395
- ...
396
384
  @typing.overload
397
385
  def __init__(self, name: str, mode: VideoMode) -> None:
398
386
  """
@@ -402,7 +390,7 @@ class CvSource(ImageSource):
402
390
  :param mode: Video mode being generated
403
391
  """
404
392
  @typing.overload
405
- def __init__(self, name: str, pixelFormat: VideoMode.PixelFormat, width: int, height: int, fps: int) -> None:
393
+ def __init__(self, name: str, pixelFormat: VideoMode.PixelFormat, width: typing.SupportsInt, height: typing.SupportsInt, fps: typing.SupportsInt) -> None:
406
394
  """
407
395
  Create an OpenCV source.
408
396
 
@@ -461,9 +449,6 @@ class HttpCamera(VideoCamera):
461
449
  kCSCore: typing.ClassVar[HttpCamera.HttpCameraKind] # value = <HttpCameraKind.kCSCore: 2>
462
450
  kMJPGStreamer: typing.ClassVar[HttpCamera.HttpCameraKind] # value = <HttpCameraKind.kMJPGStreamer: 1>
463
451
  kUnknown: typing.ClassVar[HttpCamera.HttpCameraKind] # value = <HttpCameraKind.kUnknown: 0>
464
- @staticmethod
465
- def _pybind11_conduit_v1_(*args, **kwargs):
466
- ...
467
452
  def __eq__(self, other: typing.Any) -> bool:
468
453
  ...
469
454
  def __getstate__(self) -> int:
@@ -472,7 +457,7 @@ class HttpCamera(VideoCamera):
472
457
  ...
473
458
  def __index__(self) -> int:
474
459
  ...
475
- def __init__(self, value: int) -> None:
460
+ def __init__(self, value: typing.SupportsInt) -> None:
476
461
  ...
477
462
  def __int__(self) -> int:
478
463
  ...
@@ -480,7 +465,7 @@ class HttpCamera(VideoCamera):
480
465
  ...
481
466
  def __repr__(self) -> str:
482
467
  ...
483
- def __setstate__(self, state: int) -> None:
468
+ def __setstate__(self, state: typing.SupportsInt) -> None:
484
469
  ...
485
470
  def __str__(self) -> str:
486
471
  ...
@@ -490,9 +475,6 @@ class HttpCamera(VideoCamera):
490
475
  @property
491
476
  def value(self) -> int:
492
477
  ...
493
- @staticmethod
494
- def _pybind11_conduit_v1_(*args, **kwargs):
495
- ...
496
478
  @typing.overload
497
479
  def __init__(self, name: str, url: str, kind: HttpCamera.HttpCameraKind = ...) -> None:
498
480
  """
@@ -548,9 +530,6 @@ class ImageSink(VideoSink):
548
530
  """
549
531
  A base class for single image reading sinks.
550
532
  """
551
- @staticmethod
552
- def _pybind11_conduit_v1_(*args, **kwargs):
553
- ...
554
533
  def getError(self) -> str:
555
534
  """
556
535
  Get error string. Call this if WaitForFrame() returns 0 to determine
@@ -574,9 +553,6 @@ class ImageSource(VideoSource):
574
553
  """
575
554
  A base class for single image providing sources.
576
555
  """
577
- @staticmethod
578
- def _pybind11_conduit_v1_(*args, **kwargs):
579
- ...
580
556
  def createBooleanProperty(self, name: str, defaultValue: bool, value: bool) -> VideoProperty:
581
557
  """
582
558
  Create a boolean property.
@@ -587,7 +563,7 @@ class ImageSource(VideoSource):
587
563
 
588
564
  :returns: Property
589
565
  """
590
- def createIntegerProperty(self, name: str, minimum: int, maximum: int, step: int, defaultValue: int, value: int) -> VideoProperty:
566
+ def createIntegerProperty(self, name: str, minimum: typing.SupportsInt, maximum: typing.SupportsInt, step: typing.SupportsInt, defaultValue: typing.SupportsInt, value: typing.SupportsInt) -> VideoProperty:
591
567
  """
592
568
  Create an integer property.
593
569
 
@@ -600,7 +576,7 @@ class ImageSource(VideoSource):
600
576
 
601
577
  :returns: Property
602
578
  """
603
- def createProperty(self, name: str, kind: VideoProperty.Kind, minimum: int, maximum: int, step: int, defaultValue: int, value: int) -> VideoProperty:
579
+ def createProperty(self, name: str, kind: VideoProperty.Kind, minimum: typing.SupportsInt, maximum: typing.SupportsInt, step: typing.SupportsInt, defaultValue: typing.SupportsInt, value: typing.SupportsInt) -> VideoProperty:
604
580
  """
605
581
  Create a property.
606
582
 
@@ -653,14 +629,11 @@ class MjpegServer(VideoSink):
653
629
  """
654
630
  A sink that acts as a MJPEG-over-HTTP network server.
655
631
  """
656
- @staticmethod
657
- def _pybind11_conduit_v1_(*args, **kwargs):
658
- ...
659
632
  @typing.overload
660
633
  def __init__(self) -> None:
661
634
  ...
662
635
  @typing.overload
663
- def __init__(self, name: str, listenAddress: str, port: int) -> None:
636
+ def __init__(self, name: str, listenAddress: str, port: typing.SupportsInt) -> None:
664
637
  """
665
638
  Create a MJPEG-over-HTTP server sink.
666
639
 
@@ -669,7 +642,7 @@ class MjpegServer(VideoSink):
669
642
  :param port: TCP port number
670
643
  """
671
644
  @typing.overload
672
- def __init__(self, name: str, port: int) -> None:
645
+ def __init__(self, name: str, port: typing.SupportsInt) -> None:
673
646
  """
674
647
  Create a MJPEG-over-HTTP server sink.
675
648
 
@@ -684,7 +657,7 @@ class MjpegServer(VideoSink):
684
657
  """
685
658
  Get the port number of the server.
686
659
  """
687
- def setCompression(self, quality: int) -> None:
660
+ def setCompression(self, quality: typing.SupportsInt) -> None:
688
661
  """
689
662
  Set the compression for clients that don't specify it.
690
663
 
@@ -694,7 +667,7 @@ class MjpegServer(VideoSink):
694
667
 
695
668
  :param quality: JPEG compression quality (0-100), -1 for unspecified
696
669
  """
697
- def setDefaultCompression(self, quality: int) -> None:
670
+ def setDefaultCompression(self, quality: typing.SupportsInt) -> None:
698
671
  """
699
672
  Set the default compression used for non-MJPEG sources. If not set,
700
673
  80 is used. This function has no effect on MJPEG source cameras; use
@@ -702,7 +675,7 @@ class MjpegServer(VideoSink):
702
675
 
703
676
  :param quality: JPEG compression quality (0-100)
704
677
  """
705
- def setFPS(self, fps: int) -> None:
678
+ def setFPS(self, fps: typing.SupportsInt) -> None:
706
679
  """
707
680
  Set the stream frames per second (FPS) for clients that don't specify it.
708
681
 
@@ -710,7 +683,7 @@ class MjpegServer(VideoSink):
710
683
 
711
684
  :param fps: FPS, 0 for unspecified
712
685
  """
713
- def setResolution(self, width: int, height: int) -> None:
686
+ def setResolution(self, width: typing.SupportsInt, height: typing.SupportsInt) -> None:
714
687
  """
715
688
  Set the stream resolution for clients that don't specify it.
716
689
 
@@ -729,17 +702,11 @@ class RawEvent:
729
702
  """
730
703
  Listener event
731
704
  """
732
- @staticmethod
733
- def _pybind11_conduit_v1_(*args, **kwargs):
734
- ...
735
705
  class UsbCamera(VideoCamera):
736
706
  """
737
707
  A source that represents a USB camera.
738
708
  """
739
709
  @staticmethod
740
- def _pybind11_conduit_v1_(*args, **kwargs):
741
- ...
742
- @staticmethod
743
710
  def enumerateUsbCameras() -> list[UsbCameraInfo]:
744
711
  """
745
712
  Enumerate USB cameras on the local system.
@@ -750,7 +717,7 @@ class UsbCamera(VideoCamera):
750
717
  def __init__(self) -> None:
751
718
  ...
752
719
  @typing.overload
753
- def __init__(self, name: str, dev: int) -> None:
720
+ def __init__(self, name: str, dev: typing.SupportsInt) -> None:
754
721
  """
755
722
  Create a source for a USB camera based on device number.
756
723
 
@@ -773,7 +740,7 @@ class UsbCamera(VideoCamera):
773
740
  """
774
741
  Get the path to the device.
775
742
  """
776
- def setConnectVerbose(self, level: int) -> None:
743
+ def setConnectVerbose(self, level: typing.SupportsInt) -> None:
777
744
  """
778
745
  Set how verbose the camera connection messages are.
779
746
 
@@ -787,9 +754,6 @@ class UsbCameraInfo:
787
754
  """
788
755
  USB camera information
789
756
  """
790
- @staticmethod
791
- def _pybind11_conduit_v1_(*args, **kwargs):
792
- ...
793
757
  def __init__(self) -> None:
794
758
  ...
795
759
  @property
@@ -798,7 +762,7 @@ class UsbCameraInfo:
798
762
  Device number (e.g. N in '/dev/videoN' on Linux)
799
763
  """
800
764
  @dev.setter
801
- def dev(self, arg0: int) -> None:
765
+ def dev(self, arg0: typing.SupportsInt) -> None:
802
766
  ...
803
767
  @property
804
768
  def name(self) -> str:
@@ -830,7 +794,7 @@ class UsbCameraInfo:
830
794
  USB Product Id
831
795
  """
832
796
  @productId.setter
833
- def productId(self, arg0: int) -> None:
797
+ def productId(self, arg0: typing.SupportsInt) -> None:
834
798
  ...
835
799
  @property
836
800
  def vendorId(self) -> int:
@@ -838,7 +802,7 @@ class UsbCameraInfo:
838
802
  USB Vendor Id
839
803
  """
840
804
  @vendorId.setter
841
- def vendorId(self, arg0: int) -> None:
805
+ def vendorId(self, arg0: typing.SupportsInt) -> None:
842
806
  ...
843
807
  class VideoCamera(VideoSource):
844
808
  """
@@ -866,9 +830,6 @@ class VideoCamera(VideoSource):
866
830
  kFixedIndoor: typing.ClassVar[VideoCamera.WhiteBalance] # value = <WhiteBalance.kFixedIndoor: 3000>
867
831
  kFixedOutdoor1: typing.ClassVar[VideoCamera.WhiteBalance] # value = <WhiteBalance.kFixedOutdoor1: 4000>
868
832
  kFixedOutdoor2: typing.ClassVar[VideoCamera.WhiteBalance] # value = <WhiteBalance.kFixedOutdoor2: 5000>
869
- @staticmethod
870
- def _pybind11_conduit_v1_(*args, **kwargs):
871
- ...
872
833
  def __eq__(self, other: typing.Any) -> bool:
873
834
  ...
874
835
  def __getstate__(self) -> int:
@@ -877,7 +838,7 @@ class VideoCamera(VideoSource):
877
838
  ...
878
839
  def __index__(self) -> int:
879
840
  ...
880
- def __init__(self, value: int) -> None:
841
+ def __init__(self, value: typing.SupportsInt) -> None:
881
842
  ...
882
843
  def __int__(self) -> int:
883
844
  ...
@@ -885,7 +846,7 @@ class VideoCamera(VideoSource):
885
846
  ...
886
847
  def __repr__(self) -> str:
887
848
  ...
888
- def __setstate__(self, state: int) -> None:
849
+ def __setstate__(self, state: typing.SupportsInt) -> None:
889
850
  ...
890
851
  def __str__(self) -> str:
891
852
  ...
@@ -895,16 +856,13 @@ class VideoCamera(VideoSource):
895
856
  @property
896
857
  def value(self) -> int:
897
858
  ...
898
- @staticmethod
899
- def _pybind11_conduit_v1_(*args, **kwargs):
900
- ...
901
859
  def __init__(self) -> None:
902
860
  ...
903
861
  def getBrightness(self) -> int:
904
862
  """
905
863
  Get the brightness, as a percentage (0-100).
906
864
  """
907
- def setBrightness(self, brightness: int) -> None:
865
+ def setBrightness(self, brightness: typing.SupportsInt) -> None:
908
866
  """
909
867
  Set the brightness, as a percentage (0-100).
910
868
  """
@@ -916,7 +874,7 @@ class VideoCamera(VideoSource):
916
874
  """
917
875
  Set the exposure to hold current.
918
876
  """
919
- def setExposureManual(self, value: int) -> None:
877
+ def setExposureManual(self, value: typing.SupportsInt) -> None:
920
878
  """
921
879
  Set the exposure to manual, as a percentage (0-100).
922
880
  """
@@ -928,7 +886,7 @@ class VideoCamera(VideoSource):
928
886
  """
929
887
  Set the white balance to hold current.
930
888
  """
931
- def setWhiteBalanceManual(self, value: int) -> None:
889
+ def setWhiteBalanceManual(self, value: typing.SupportsInt) -> None:
932
890
  """
933
891
  Set the white balance to manual, with specified color temperature.
934
892
  """
@@ -936,9 +894,6 @@ class VideoEvent(RawEvent):
936
894
  """
937
895
  An event generated by the library and provided to event listeners.
938
896
  """
939
- @staticmethod
940
- def _pybind11_conduit_v1_(*args, **kwargs):
941
- ...
942
897
  def __init__(self) -> None:
943
898
  ...
944
899
  def getProperty(self) -> VideoProperty:
@@ -964,14 +919,11 @@ class VideoListener:
964
919
  An event listener. This calls back to a designated callback function when
965
920
  an event matching the specified mask is generated by the library.
966
921
  """
967
- @staticmethod
968
- def _pybind11_conduit_v1_(*args, **kwargs):
969
- ...
970
922
  @typing.overload
971
923
  def __init__(self) -> None:
972
924
  ...
973
925
  @typing.overload
974
- def __init__(self, callback: typing.Callable[[VideoEvent], None], eventMask: int, immediateNotify: bool) -> None:
926
+ def __init__(self, callback: typing.Callable[[VideoEvent], None], eventMask: typing.SupportsInt, immediateNotify: bool) -> None:
975
927
  """
976
928
  Create an event listener.
977
929
 
@@ -1016,9 +968,6 @@ class VideoMode:
1016
968
  kUnknown: typing.ClassVar[VideoMode.PixelFormat] # value = <PixelFormat.kUnknown: 0>
1017
969
  kY16: typing.ClassVar[VideoMode.PixelFormat] # value = <PixelFormat.kY16: 6>
1018
970
  kYUYV: typing.ClassVar[VideoMode.PixelFormat] # value = <PixelFormat.kYUYV: 2>
1019
- @staticmethod
1020
- def _pybind11_conduit_v1_(*args, **kwargs):
1021
- ...
1022
971
  def __eq__(self, other: typing.Any) -> bool:
1023
972
  ...
1024
973
  def __getstate__(self) -> int:
@@ -1027,7 +976,7 @@ class VideoMode:
1027
976
  ...
1028
977
  def __index__(self) -> int:
1029
978
  ...
1030
- def __init__(self, value: int) -> None:
979
+ def __init__(self, value: typing.SupportsInt) -> None:
1031
980
  ...
1032
981
  def __int__(self) -> int:
1033
982
  ...
@@ -1035,7 +984,7 @@ class VideoMode:
1035
984
  ...
1036
985
  def __repr__(self) -> str:
1037
986
  ...
1038
- def __setstate__(self, state: int) -> None:
987
+ def __setstate__(self, state: typing.SupportsInt) -> None:
1039
988
  ...
1040
989
  def __str__(self) -> str:
1041
990
  ...
@@ -1046,23 +995,40 @@ class VideoMode:
1046
995
  def value(self) -> int:
1047
996
  ...
1048
997
  __hash__: typing.ClassVar[None] = None
1049
- fps: int
1050
- height: int
1051
- pixelFormat: int
1052
- width: int
1053
- @staticmethod
1054
- def _pybind11_conduit_v1_(*args, **kwargs):
1055
- ...
1056
998
  def __eq__(self, arg0: VideoMode) -> bool:
1057
999
  ...
1058
1000
  @typing.overload
1059
1001
  def __init__(self) -> None:
1060
1002
  ...
1061
1003
  @typing.overload
1062
- def __init__(self, pixelFormat_: VideoMode.PixelFormat, width_: int, height_: int, fps_: int) -> None:
1004
+ def __init__(self, pixelFormat_: VideoMode.PixelFormat, width_: typing.SupportsInt, height_: typing.SupportsInt, fps_: typing.SupportsInt) -> None:
1063
1005
  ...
1064
1006
  def compareWithoutFps(self, other: VideoMode) -> bool:
1065
1007
  ...
1008
+ @property
1009
+ def fps(self) -> int:
1010
+ ...
1011
+ @fps.setter
1012
+ def fps(self, arg0: typing.SupportsInt) -> None:
1013
+ ...
1014
+ @property
1015
+ def height(self) -> int:
1016
+ ...
1017
+ @height.setter
1018
+ def height(self, arg0: typing.SupportsInt) -> None:
1019
+ ...
1020
+ @property
1021
+ def pixelFormat(self) -> int:
1022
+ ...
1023
+ @pixelFormat.setter
1024
+ def pixelFormat(self, arg0: typing.SupportsInt) -> None:
1025
+ ...
1026
+ @property
1027
+ def width(self) -> int:
1028
+ ...
1029
+ @width.setter
1030
+ def width(self, arg0: typing.SupportsInt) -> None:
1031
+ ...
1066
1032
  class VideoProperty:
1067
1033
  """
1068
1034
  A source or sink property.
@@ -1087,9 +1053,6 @@ class VideoProperty:
1087
1053
  kInteger: typing.ClassVar[VideoProperty.Kind] # value = <Kind.kInteger: 2>
1088
1054
  kNone: typing.ClassVar[VideoProperty.Kind] # value = <Kind.kNone: 0>
1089
1055
  kString: typing.ClassVar[VideoProperty.Kind] # value = <Kind.kString: 4>
1090
- @staticmethod
1091
- def _pybind11_conduit_v1_(*args, **kwargs):
1092
- ...
1093
1056
  def __eq__(self, other: typing.Any) -> bool:
1094
1057
  ...
1095
1058
  def __getstate__(self) -> int:
@@ -1098,7 +1061,7 @@ class VideoProperty:
1098
1061
  ...
1099
1062
  def __index__(self) -> int:
1100
1063
  ...
1101
- def __init__(self, value: int) -> None:
1064
+ def __init__(self, value: typing.SupportsInt) -> None:
1102
1065
  ...
1103
1066
  def __int__(self) -> int:
1104
1067
  ...
@@ -1106,7 +1069,7 @@ class VideoProperty:
1106
1069
  ...
1107
1070
  def __repr__(self) -> str:
1108
1071
  ...
1109
- def __setstate__(self, state: int) -> None:
1072
+ def __setstate__(self, state: typing.SupportsInt) -> None:
1110
1073
  ...
1111
1074
  def __str__(self) -> str:
1112
1075
  ...
@@ -1116,9 +1079,6 @@ class VideoProperty:
1116
1079
  @property
1117
1080
  def value(self) -> int:
1118
1081
  ...
1119
- @staticmethod
1120
- def _pybind11_conduit_v1_(*args, **kwargs):
1121
- ...
1122
1082
  def __init__(self) -> None:
1123
1083
  ...
1124
1084
  def get(self) -> int:
@@ -1221,7 +1181,7 @@ class VideoProperty:
1221
1181
 
1222
1182
  :returns: True if property is a string.
1223
1183
  """
1224
- def set(self, value: int) -> None:
1184
+ def set(self, value: typing.SupportsInt) -> None:
1225
1185
  """
1226
1186
  Sets property value.
1227
1187
 
@@ -1256,9 +1216,6 @@ class VideoSink:
1256
1216
  kMjpeg: typing.ClassVar[VideoSink.Kind] # value = <Kind.kMjpeg: 2>
1257
1217
  kRaw: typing.ClassVar[VideoSink.Kind] # value = <Kind.kRaw: 8>
1258
1218
  kUnknown: typing.ClassVar[VideoSink.Kind] # value = <Kind.kUnknown: 0>
1259
- @staticmethod
1260
- def _pybind11_conduit_v1_(*args, **kwargs):
1261
- ...
1262
1219
  def __eq__(self, other: typing.Any) -> bool:
1263
1220
  ...
1264
1221
  def __getstate__(self) -> int:
@@ -1267,7 +1224,7 @@ class VideoSink:
1267
1224
  ...
1268
1225
  def __index__(self) -> int:
1269
1226
  ...
1270
- def __init__(self, value: int) -> None:
1227
+ def __init__(self, value: typing.SupportsInt) -> None:
1271
1228
  ...
1272
1229
  def __int__(self) -> int:
1273
1230
  ...
@@ -1275,7 +1232,7 @@ class VideoSink:
1275
1232
  ...
1276
1233
  def __repr__(self) -> str:
1277
1234
  ...
1278
- def __setstate__(self, state: int) -> None:
1235
+ def __setstate__(self, state: typing.SupportsInt) -> None:
1279
1236
  ...
1280
1237
  def __str__(self) -> str:
1281
1238
  ...
@@ -1287,9 +1244,6 @@ class VideoSink:
1287
1244
  ...
1288
1245
  __hash__: typing.ClassVar[None] = None
1289
1246
  @staticmethod
1290
- def _pybind11_conduit_v1_(*args, **kwargs):
1291
- ...
1292
- @staticmethod
1293
1247
  def enumerateSinks() -> list[VideoSink]:
1294
1248
  """
1295
1249
  Enumerate all existing sinks.
@@ -1423,9 +1377,6 @@ class VideoSource:
1423
1377
  kConnectionAutoManage: typing.ClassVar[VideoSource.ConnectionStrategy] # value = <ConnectionStrategy.kConnectionAutoManage: 0>
1424
1378
  kConnectionForceClose: typing.ClassVar[VideoSource.ConnectionStrategy] # value = <ConnectionStrategy.kConnectionForceClose: 2>
1425
1379
  kConnectionKeepOpen: typing.ClassVar[VideoSource.ConnectionStrategy] # value = <ConnectionStrategy.kConnectionKeepOpen: 1>
1426
- @staticmethod
1427
- def _pybind11_conduit_v1_(*args, **kwargs):
1428
- ...
1429
1380
  def __eq__(self, other: typing.Any) -> bool:
1430
1381
  ...
1431
1382
  def __getstate__(self) -> int:
@@ -1434,7 +1385,7 @@ class VideoSource:
1434
1385
  ...
1435
1386
  def __index__(self) -> int:
1436
1387
  ...
1437
- def __init__(self, value: int) -> None:
1388
+ def __init__(self, value: typing.SupportsInt) -> None:
1438
1389
  ...
1439
1390
  def __int__(self) -> int:
1440
1391
  ...
@@ -1442,7 +1393,7 @@ class VideoSource:
1442
1393
  ...
1443
1394
  def __repr__(self) -> str:
1444
1395
  ...
1445
- def __setstate__(self, state: int) -> None:
1396
+ def __setstate__(self, state: typing.SupportsInt) -> None:
1446
1397
  ...
1447
1398
  def __str__(self) -> str:
1448
1399
  ...
@@ -1474,9 +1425,6 @@ class VideoSource:
1474
1425
  kRaw: typing.ClassVar[VideoSource.Kind] # value = <Kind.kRaw: 8>
1475
1426
  kUnknown: typing.ClassVar[VideoSource.Kind] # value = <Kind.kUnknown: 0>
1476
1427
  kUsb: typing.ClassVar[VideoSource.Kind] # value = <Kind.kUsb: 1>
1477
- @staticmethod
1478
- def _pybind11_conduit_v1_(*args, **kwargs):
1479
- ...
1480
1428
  def __eq__(self, other: typing.Any) -> bool:
1481
1429
  ...
1482
1430
  def __getstate__(self) -> int:
@@ -1485,7 +1433,7 @@ class VideoSource:
1485
1433
  ...
1486
1434
  def __index__(self) -> int:
1487
1435
  ...
1488
- def __init__(self, value: int) -> None:
1436
+ def __init__(self, value: typing.SupportsInt) -> None:
1489
1437
  ...
1490
1438
  def __int__(self) -> int:
1491
1439
  ...
@@ -1493,7 +1441,7 @@ class VideoSource:
1493
1441
  ...
1494
1442
  def __repr__(self) -> str:
1495
1443
  ...
1496
- def __setstate__(self, state: int) -> None:
1444
+ def __setstate__(self, state: typing.SupportsInt) -> None:
1497
1445
  ...
1498
1446
  def __str__(self) -> str:
1499
1447
  ...
@@ -1505,9 +1453,6 @@ class VideoSource:
1505
1453
  ...
1506
1454
  __hash__: typing.ClassVar[None] = None
1507
1455
  @staticmethod
1508
- def _pybind11_conduit_v1_(*args, **kwargs):
1509
- ...
1510
- @staticmethod
1511
1456
  def enumerateSources() -> list[VideoSource]:
1512
1457
  """
1513
1458
  Enumerate all existing sources.
@@ -1656,7 +1601,7 @@ class VideoSource:
1656
1601
 
1657
1602
  :param strategy: connection strategy (auto, keep open, or force close)
1658
1603
  """
1659
- def setFPS(self, fps: int) -> bool:
1604
+ def setFPS(self, fps: typing.SupportsInt) -> bool:
1660
1605
  """
1661
1606
  Set the frames per second (FPS).
1662
1607
 
@@ -1672,7 +1617,7 @@ class VideoSource:
1672
1617
 
1673
1618
  :returns: True if set successfully
1674
1619
  """
1675
- def setResolution(self, width: int, height: int) -> bool:
1620
+ def setResolution(self, width: typing.SupportsInt, height: typing.SupportsInt) -> bool:
1676
1621
  """
1677
1622
  Set the resolution.
1678
1623
 
@@ -1689,7 +1634,7 @@ class VideoSource:
1689
1634
  :param mode: Video mode
1690
1635
  """
1691
1636
  @typing.overload
1692
- def setVideoMode(self, pixelFormat: VideoMode.PixelFormat, width: int, height: int, fps: int) -> bool:
1637
+ def setVideoMode(self, pixelFormat: VideoMode.PixelFormat, width: typing.SupportsInt, height: typing.SupportsInt, fps: typing.SupportsInt) -> bool:
1693
1638
  """
1694
1639
  Set the video mode.
1695
1640
 
@@ -1700,11 +1645,11 @@ class VideoSource:
1700
1645
 
1701
1646
  :returns: True if set successfully
1702
1647
  """
1703
- def _setLogger(func: typing.Callable[[int, str, int, str], None], min_level: int) -> None:
1648
+ def _setLogger(func: typing.Callable[[typing.SupportsInt, str, typing.SupportsInt, str], None], min_level: typing.SupportsInt) -> None:
1704
1649
  ...
1705
1650
  def runMainRunLoop() -> None:
1706
1651
  ...
1707
- def runMainRunLoopTimeout(timeoutSeconds: float) -> int:
1652
+ def runMainRunLoopTimeout(timeoutSeconds: typing.SupportsFloat) -> int:
1708
1653
  ...
1709
1654
  def stopMainRunLoop() -> None:
1710
1655
  ...
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.3.1.0'
4
- __version_tuple__ = version_tuple = (2025, 3, 1, 0)
3
+ __version__ = version = '2025.3.2.0'
4
+ __version_tuple__ = version_tuple = (2025, 3, 2, 0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: robotpy-cscore
3
- Version: 2025.3.1.0
3
+ Version: 2025.3.2.0
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.3.1.0
13
- Requires-Dist: robotpy-wpinet==2025.3.1.0
14
- Requires-Dist: pyntcore==2025.3.1.0
12
+ Requires-Dist: robotpy-wpiutil==2025.3.2.0
13
+ Requires-Dist: robotpy-wpinet==2025.3.2.0
14
+ Requires-Dist: pyntcore==2025.3.2.0
15
15
 
16
16
  robotpy-cscore
17
17
  ==============
@@ -1,27 +1,27 @@
1
1
  cscore/__init__.py,sha256=xtJaSt6Uiihii-R_9XYbQVovx_D3Q-tqZpnyt6i2s0I,1119
2
2
  cscore/__main__.py,sha256=No4nfyEHnbuyavQ9yInscvbiEGFPxxse9klZ-DSVMhc,4588
3
- cscore/_cscore.cp311-win_amd64.pyd,sha256=H4UrlWzfTw6-PywiP49UxBqzELnbJ2Az5opwQsq4ZC8,3600384
4
- cscore/_cscore.pyi,sha256=02ElQ4WIlwvsuD9UQNoiBLmD0BpJ_H5ta9aqoy4D_Og,59323
3
+ cscore/_cscore.cp311-win_amd64.pyd,sha256=CqNeMREc84CMQ93j6rRuAvVC3fef2N1HLW99jQo0MmM,3608576
4
+ cscore/_cscore.pyi,sha256=2vGkN7ykv9SaJ_wV8ftTqGfJivc-p9Sv-i0yaEBSU6E,58745
5
5
  cscore/_init_cscore.py,sha256=IJoWfQi1FpW48Uez-o9vS8SVCArHlmCAGt1BZkmbZmY,267
6
6
  cscore/_logging.py,sha256=uv1Shlu49aPgQpRn5yD2ybT4N8ewJS3qUFOn8YTffwg,333
7
7
  cscore/grip.py,sha256=qC6MbWvVllpnnsm10f31gqq4_PMWI_G9GKt3PfOaUpo,1042
8
8
  cscore/imagewriter.py,sha256=RAWRRhL3DLNampZJjdd7Ye_8P1AmiYAZsWhnwov5id0,4537
9
9
  cscore/pkgcfg.py,sha256=nkuqOy-Oy0Kw0pi8YXX9KfQCviwNliFZZlSOi2slsiw,791
10
10
  cscore/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- cscore/version.py,sha256=1NNFQ55QKFMcGCinmVGoSmWi0AXAxpGDhL2eTi4IFK8,175
12
- cscore/__pycache__/__init__.cpython-311.pyc,sha256=kGUaGAXjU7bXohZ_5DldzlHP_YZkP6jI5EEkHT-n4_c,1321
13
- cscore/__pycache__/_init_cscore.cpython-311.pyc,sha256=QjOXSNsxvYtmGDjvkkJ25RVl0j2SXyCSBJYAZBamkUE,576
14
- cscore/__pycache__/_logging.cpython-311.pyc,sha256=fHqTIppf-uEPkt9b_SW1MuKVLyqlQMVxkmir-rVd06o,984
15
- cscore/__pycache__/version.cpython-311.pyc,sha256=FjgU_mdM5EgGRhesFxlZRLuowndnxhsrmgJ2m8_g3AE,334
11
+ cscore/version.py,sha256=GWrK3TOIID9GEo-Gd3zcGkP4k-6uRwyTVqPfVqDS9ss,175
12
+ cscore/__pycache__/__init__.cpython-311.pyc,sha256=RQy018D1d6PKoThNYUKoZLubiyvHorplRIzylNlFPFE,1321
13
+ cscore/__pycache__/_init_cscore.cpython-311.pyc,sha256=0eE_6LR2tAiUCj3IclcOmMSo6nrOHZWCFUvua_Xrtng,576
14
+ cscore/__pycache__/_logging.cpython-311.pyc,sha256=HLk1kX8UYwceHjCBD4JxLYFaAEGWswR1_bmTmf0hMjo,984
15
+ cscore/__pycache__/version.cpython-311.pyc,sha256=-chJBrD1dgwD0FTFZbde6RbdbMfUUc4b1kZqydqIMzo,334
16
16
  cscore/cvnp/README.md,sha256=197MQ-gG-pZf9YAUZqcHXLKk8au8WtxXrfFf7lnwHAo,1175
17
17
  cscore/cvnp/cvnp.cpp,sha256=dE3cBEbVVXaEdULdxbzglt9elRCxhkcXjF69W_Ak6so,9216
18
18
  cscore/cvnp/cvnp.h,sha256=021_w8fhAlnew4Nc88ypPAdT9sBPwPzXwGPRiGIY1_Q,14937
19
19
  cscore/cvnp/cvnp_synonyms.cpp,sha256=ZpLZzmK5ZcrIgLfi_j7eJ_NXLNtcb8ymDWehYuVVHvo,2419
20
20
  cscore/cvnp/cvnp_synonyms.h,sha256=MgU4yOOXMhGGLrKb06dX4nsQLtqkq_1gDE6ToR3mjFo,589
21
21
  cscore/src/main.cpp,sha256=sXb-crcVv2JxivUGCqPkpYmjgeupf5-M9XXOrxkRiRw,737
22
- robotpy_cscore-2025.3.1.0.dist-info/LICENSE,sha256=eday0nHMlO9Rc7a6n0ONgNEe6N20r5xNWivVL5n-fN4,3138
23
- robotpy_cscore-2025.3.1.0.dist-info/METADATA,sha256=FdShE6exzk91uj4vt6WUQl0qQXCRBV5txwRcJhBmMbU,1096
24
- robotpy_cscore-2025.3.1.0.dist-info/WHEEL,sha256=y4n9_669c4ZQLyT56MHjc_JUbnwtaZfMVMycweN557o,102
25
- robotpy_cscore-2025.3.1.0.dist-info/entry_points.txt,sha256=ZOi1FKkpTmx8xBqUtdp6Z4IzoCKfwDOKJoVDAF9qjhE,38
26
- robotpy_cscore-2025.3.1.0.dist-info/top_level.txt,sha256=yKRnfRQe07G2XO6XXYgsj9CN2obAQX3D3gsGvcewpVw,7
27
- robotpy_cscore-2025.3.1.0.dist-info/RECORD,,
22
+ robotpy_cscore-2025.3.2.0.dist-info/LICENSE,sha256=eday0nHMlO9Rc7a6n0ONgNEe6N20r5xNWivVL5n-fN4,3138
23
+ robotpy_cscore-2025.3.2.0.dist-info/METADATA,sha256=qhJdzNsc_5y0CdjCN6cHysmvu9Z5RvXLKSpub4cF6Pg,1096
24
+ robotpy_cscore-2025.3.2.0.dist-info/WHEEL,sha256=y4n9_669c4ZQLyT56MHjc_JUbnwtaZfMVMycweN557o,102
25
+ robotpy_cscore-2025.3.2.0.dist-info/entry_points.txt,sha256=ZOi1FKkpTmx8xBqUtdp6Z4IzoCKfwDOKJoVDAF9qjhE,38
26
+ robotpy_cscore-2025.3.2.0.dist-info/top_level.txt,sha256=yKRnfRQe07G2XO6XXYgsj9CN2obAQX3D3gsGvcewpVw,7
27
+ robotpy_cscore-2025.3.2.0.dist-info/RECORD,,