Skip to content

Commit

Permalink
Typo solved
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Canas committed Jul 27, 2023
1 parent ea7035a commit ed2a83f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='webcam',
version='1.15',
version='1.16',
author='Eric-Canas',
author_email='[email protected]',
url='https://github.com/Eric-Canas/webcam',
Expand Down
1 change: 1 addition & 0 deletions webcam/_video_webcam.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def read(self):
current_frame = int((time.time() - self.start_timestamp) * self.fps) % self.video_length
return self.get_required_frame(target_frame=current_frame)
else:
# TODO: Adjust the frame rate if max_fps is set
return self.cap.read()

def get_required_frame(self, target_frame: int) -> tuple[bool, None | np.ndarray]:
Expand Down
5 changes: 2 additions & 3 deletions webcam/webcam.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ def __init__(
on_aspect_ratio_lost: str = CROP,
homography_matrix: np.ndarray | list[list[float], ...] | None = None,
crop_on_warping: bool = True,
boundaries_color: tuple[int, int, int] | list[int, int, int] = (0, 0, 0)
simulate_webcam: bool = True
):
boundaries_color: tuple[int, int, int] | list[int, int, int] = (0, 0, 0),
simulate_webcam: bool = True):
"""
Initialize the WebcamReader.
Expand Down

0 comments on commit ed2a83f

Please sign in to comment.