Home
last modified time | relevance | path

Searched refs:cv2 (Results 1 - 1 of 1) sorted by relevance

/test/testfwk/xdevice/plugins/devicetest/controllers/tools/
H A Dscreen_agent.py169 import cv2 namespace
171 pic = cv2.imdecode(np.fromfile(img_path, dtype=np.uint8), -1)
174 pic = cv2.resize(pic, (int(width), int(height)))
175 params = [cv2.IMWRITE_JPEG_QUALITY, quality]
176 cv2.imencode('.jpeg', pic, params=params)[1].tofile(img_path)
211 import cv2 namespace
213 video_info = cv2.VideoCapture(file_path)
214 width = int(video_info.get(cv2.CAP_PROP_FRAME_WIDTH))
215 height = int(video_info.get(cv2.CAP_PROP_FRAME_HEIGHT))

Completed in 1 milliseconds