opencv_tutorials icon indicating copy to clipboard operation
opencv_tutorials copied to clipboard

The binary mode of fromstring is removed, use frombuffer instead

Open munruf opened this issue 6 months ago • 0 comments

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.

munruf avatar Jul 01 '25 20:07 munruf