Skip to content

Commit cab699b

Browse files
committed
Fix get(cv2.CAP_PROP_FPS); #8
1 parent ea1aa5b commit cab699b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

EasyPySpin/videocapture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def get(self, propId: "cv2.VideoCaptureProperties") -> any:
377377
if propId == cv2.CAP_PROP_FPS:
378378
# If this does not equal the AcquisitionFrameRate
379379
# it is because the ExposureTime is greater than the frame time.
380-
return self.get_pyspin_value("ResultingFrameRate")
380+
return self.get_pyspin_value("AcquisitionResultingFrameRate")
381381

382382
# Brightness
383383
if propId == cv2.CAP_PROP_BRIGHTNESS:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ In `set(propId, value)` and `get(propId)`, PySpin is used to set and get the cam
6262
| ---- | ---- | ---- | ---- |
6363
| cv2.CAP_PROP_FRAME_WIDTH | int | `Width` = value | value = `Width` |
6464
| cv2.CAP_PROP_FRAME_HEIGHT | int | `Height` = value | value = `Height` |
65-
| cv2.CAP_PROP_FPS | float | `AcquisitionFrameRateEnable` = `True` <br> `AcquisitionFrameRate` = value | value = `ResultingFrameRate`|
65+
| cv2.CAP_PROP_FPS | float | `AcquisitionFrameRateEnable` = `True` <br> `AcquisitionFrameRate` = value | value = `AcquisitionResultingFrameRate`|
6666
| cv2.CAP_PROP_BRIGHTNESS | float | `AutoExposureEVCompensation` = value | value = `AutoExposureEVCompensation` |
6767
| cv2.CAP_PROP_GAIN | float | if value != -1 <br> &nbsp; `GainAuto` = `Off` <br> &nbsp; `Gain` = value <br> else <br> &nbsp; `GainAuto` = `Continuous` | value = `Gain` |
6868
| cv2.CAP_PROP_EXPOSURE | float | if value != -1 <br> &nbsp; `ExposureAuto` = `Off` <br> &nbsp; `ExposureTime` = value <br> else <br> &nbsp; `ExposureAuto` = `Continuous` | value = `ExposureTime` |

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="EasyPySpin",
8-
version="2.0.0",
8+
version="2.0.1",
99
description="cv2.VideoCapture like wrapper for FLIR Spinnaker SDK",
1010
long_description=long_description,
1111
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)