You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
376 B
25 lines
376 B
2 years ago
|
# -*- coding: utf-8 -*-
|
||
|
"""
|
||
|
@File : main.py.py
|
||
|
@Author: csc
|
||
|
@Date : 2022/7/20
|
||
|
"""
|
||
|
import pytest
|
||
|
import cv2
|
||
|
|
||
|
show_img = False
|
||
|
|
||
|
|
||
|
def display(name: str, img) -> None:
|
||
|
if show_img:
|
||
|
cv2.imshow(name, img)
|
||
|
cv2.waitKey(0)
|
||
|
try:
|
||
|
cv2.destroyWindow(name)
|
||
|
except Exception:
|
||
|
pass
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
pytest.main()
|