python
MonicaUp
路虽远,行则可至;事虽难,做则可成。
展开
-
提取图片中红框矩形内容(python)
【代码】提取图片中红框矩形内容(python)原创 2022-12-26 15:01:05 · 941 阅读 · 2 评论 -
opencv实时在图片上画矩形框并输出坐标(python版)
# -*- coding:utf-8 -*-'''test.py'''import cv2import randomimport argparseclicked = Falseg_rectangle = [0, 0, 0, 0]g_startPoint = [0, 0]def onMouse(event, x, y, flags, param): global clicked global g_rectangle global g_startPoint原创 2021-05-28 10:14:52 · 2904 阅读 · 2 评论 -
在实时rtsp视频上画出区域(python版)
# -*- coding:utf-8 -*-'''test.py'''import cv2import randomimport argparseclicked = Falseg_rectangle = [0, 0, 0, 0]g_startPoint = [0, 0]def onMouse(event, x, y, flags, param): global clicked global g_rectangle global g_startPoint if eve...原创 2020-07-14 17:51:22 · 2894 阅读 · 0 评论