05 2024 档案
摘要:python-openCV展示图像不全的问题 这通常是由于图像分辨率过高导致的问题,有以下解决方案 使用cv2.namedWindow(该方法会导致图像失真严重) cv2.namedWindow("image", cv2.WINDOW_GUI_NORMAL) cv2.imshow("image",
阅读全文
摘要:Netty发送消息无法接收问题 原因: 参考官网案例代码,继承ChannelHandlerAdapter类,则writeAndFlush只接受ByteBuf对象,因此需要将需要发送的数据转换成ByteBuf 其他 字符串转ByteBuf String str = "haha"; ByteBuf by
阅读全文
摘要:使用mss模块截取屏幕图像 # 安装mss pip install mss import mss # 获取屏幕尺寸 with mss.mss() as sct: monitor = sct.monitors[0] screen_width = monitor["width"] screen_heig
阅读全文

浙公网安备 33010602011771号