Skip to content

Commit c57920b

Browse files
committed
* 新增cv_show方法
1 parent 46e3396 commit c57920b

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
### 更新日志
22

33

4-
#### OpencvToolsV1.2.7 - 2023-03-13
5-
* CVShowBoxes支持线条尺寸参数
4+
#### OpencvToolsV1.2.8 - 2023-04-07
5+
* 新增cv_show方法
66
---
7-
87
<details onclose>
98
<summary>查看更多更新日志</summary>
109

10+
11+
#### OpencvToolsV1.2.7 - 2023-03-13
12+
* CVShowBoxes支持线条尺寸参数
13+
---
14+
1115
#### OpencvToolsV1.2.6 - 2023-03-13
1216
* 新增图片文件转base64方法
1317
---

opencv_tools/jade_opencv_process.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,10 @@ def capture_reader(self):
944944
def run(self):
945945
self.capture_reader()
946946

947-
947+
def cv2_show(image,window_name="result",waitKey=0):
948+
cv2.namedWindow(window_name,0)
949+
cv2.imshow(window_name,image)
950+
cv2.waitKey(waitKey)
948951
if __name__ == '__main__':
949952
from jade import JadeLogging
950953
JadeLog = JadeLogging("log",Level="DEBUG")

0 commit comments

Comments
 (0)