79576536

Date: 2025-04-16 06:31:56
Score: 1.5
Natty:
Report link

Something wrong occurred when I import cv2

main screen_img = capture_screenshot_to_memory(device_serial) File Bot.py", line 38, in capture_screenshot_to_memory img = cv2.imdecode(image_data, cv2.IMREAD_COLOR) cv2.error: OpenCV(4.10.0) D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:813: error: (-215:Assertion failed) !buf.empty() in function 'cv::imdecode_'

how do you fixx

import cv2
import numpy as np
import subprocess
import os
import time
import datetime
import requests
Reasons:
  • Blacklisted phrase (1): how do you
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: วีระชัย ไกรทอง