Skip to content

Commit

Permalink
Fix get(cv2.CAP_PROP_FPS); #8
Browse files Browse the repository at this point in the history
  • Loading branch information
elerac committed Oct 5, 2021
1 parent ea1aa5b commit cab699b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion EasyPySpin/videocapture.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def get(self, propId: "cv2.VideoCaptureProperties") -> any:
if propId == cv2.CAP_PROP_FPS:
# If this does not equal the AcquisitionFrameRate
# it is because the ExposureTime is greater than the frame time.
return self.get_pyspin_value("ResultingFrameRate")
return self.get_pyspin_value("AcquisitionResultingFrameRate")

# Brightness
if propId == cv2.CAP_PROP_BRIGHTNESS:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ In `set(propId, value)` and `get(propId)`, PySpin is used to set and get the cam
| ---- | ---- | ---- | ---- |
| cv2.CAP_PROP_FRAME_WIDTH | int | `Width` = value | value = `Width` |
| cv2.CAP_PROP_FRAME_HEIGHT | int | `Height` = value | value = `Height` |
| cv2.CAP_PROP_FPS | float | `AcquisitionFrameRateEnable` = `True` <br> `AcquisitionFrameRate` = value | value = `ResultingFrameRate`|
| cv2.CAP_PROP_FPS | float | `AcquisitionFrameRateEnable` = `True` <br> `AcquisitionFrameRate` = value | value = `AcquisitionResultingFrameRate`|
| cv2.CAP_PROP_BRIGHTNESS | float | `AutoExposureEVCompensation` = value | value = `AutoExposureEVCompensation` |
| cv2.CAP_PROP_GAIN | float | if value != -1 <br> &nbsp; `GainAuto` = `Off` <br> &nbsp; `Gain` = value <br> else <br> &nbsp; `GainAuto` = `Continuous` | value = `Gain` |
| cv2.CAP_PROP_EXPOSURE | float | if value != -1 <br> &nbsp; `ExposureAuto` = `Off` <br> &nbsp; `ExposureTime` = value <br> else <br> &nbsp; `ExposureAuto` = `Continuous` | value = `ExposureTime` |
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="EasyPySpin",
version="2.0.0",
version="2.0.1",
description="cv2.VideoCapture like wrapper for FLIR Spinnaker SDK",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit cab699b

Please sign in to comment.