Questions tagged «opencv»

3
在CentOS中安装OpenCV
我正在尝试在CentOS 6中安装OpenCV。 [root@cosmas opt]# sudo yum install libtiff4-dev libjpeg-dev libjasper-dev 它返回以下内容: Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile * epel: mirror.fraunhofer.de * rpmforge: nl.mirror.eurid.eu Setting up Install Process No package libtiff4-dev available. No package libjpeg-dev available. No package libjasper-dev available. Error: Nothing to do 我做错了什么?谁能帮我?
8 centos  yum  opencv 

2
在与图像匹配的视频中查找帧
我正在尝试使用opencv查找与图像匹配的帧。我还想找到找到图像的时间范围。该视频是一个蒙面视频。到目前为止的代码: def occurence_counter(self): img = cv2.imread('ref_img.jpg', cv2.IMREAD_COLOR) # shrink img = cv2.resize(img, (10, 10)) # convert to b&w img = color.rgb2gray(img) similarities=[] result=self.parse_video(img,str(self.lineEdit.text()).strip(),1,False) print result def parse_video(self,image, video, n_matches, break_point=False, verbose=False): similarities = [{'frame': 0, 'similarity': 0}] frame_count = 0 cap = cv2.VideoCapture(video) while (cap.isOpened()): ret, frame = cap.read() if …
-1 python  opencv 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.