Skip to content

The binary mode of fromstring is removed, use frombuffer instead #21

Description

@munruf

Hi.

First i would like to say thank you for your good job.
And would like to report the issue that I got.

004_window_capture\main.py
Traceback (most recent call last):
File "004_window_capture\main.py", line 19, in
screenshot = wincap.get_screenshot()
File "004_window_capture\windowcapture.py", line 55, in get_screenshot
img = np.fromstring(signedIntsArray, dtype='uint8')
ValueError: The binary mode of fromstring is removed, use frombuffer instead
I have change it
img = np.fromstring(signedIntsArray, dtype='uint8')
but instead of video I see only the static image.

Looks the issue in numpy version.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions