Notice
Recent Posts
Recent Comments
Link
목록openCV (1)
아미(아름다운미소)
파이썬에서 cv2 파일의 프레임 정보를 확인하는 법
파이썬에서 cv2 파일의 프레임 정보를 확인하는 법 - OpenCV - Python 설치 $ sudo apt-get install opencv - cv2 파일의 프레임 정보 확인 import cv2 cap = cv2.VideoCapture(fn) if not cap.isOpened(): print "could not open :",fn return length = int(cap.get(cv2.cv.CV_CAP_PROP_FRAME_COUNT)) width = int(cap.get(cv2.cv.CV_CAP_PROP_FRAME_WIDTH)) height = int(cap.get(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT)) fps = cap.get(cv2.cv.CV_CAP_PROP_FPS)
랭귀지/python
2018. 1. 20. 17:26