Issue I installed caffe from this site on Ubuntu 16.04, python 2.7 is default and there is python 3.5.2 on system,too. I installed apollocaffe,too. When I was trying to run my code, an error occured: ImportError: No module named cv2
Continue readingTag: cv2
[SOLVED] Error: !_img.empty() in function 'imwrite'
Issue I want to create frames from the video named project.avi and save them to frameIn folder. But some type of errors are not let me done. How can I solve this problem. Here is the code: cap = cv2.VideoCapture(‘project.avi’)
Continue reading[SOLVED] convert numpy.ndarray into video
Issue In my code i’m looping over frames of a video, and trying to generate another mp4 video. This is my code: cap = cv2.VideoCapture(args.video) frame_width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) frame_height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) fps = int(cap.get(cv2.CAP_PROP_FPS)) fourcc = cv2.VideoWriter_fourcc(*’mp4v’) out = cv2.VideoWriter(‘output_video.mp4’,
Continue reading[SOLVED] increase opencv webcam speed
Issue i need to capture a video with my webcam. I would like to use open cv for my usage. The skript you can find down under needs a bunch of time to start the capturing. Does any of you
Continue reading[SOLVED] "DLL load failed" when import cv2 (opencv)
Issue In [windows server 2012 R2 x64, python 3.7 64x] pip install opencv-contrib-python installed without any error . and when I try to import it import cv2 show me this error : Traceback (most recent call last): File “test.py”, line
Continue reading[SOLVED] OpenCV AttributeError module 'cv2.cv2' has no attribute 'Tracker_create'
Issue I have tried to run this code but get an Attribute Error. Any help would be greatly appreciated. import cv2 import sys (major_ver, minor_ver, subminor_ver) = (cv2.__version__).split(‘.’) if __name__ == ‘__main__’: # Set up tracker. # Instead of MIL,
Continue reading[SOLVED] OpenCV AttributeError module 'cv2.cv2' has no attribute 'Tracker_create'
Issue I have tried to run this code but get an Attribute Error. Any help would be greatly appreciated. import cv2 import sys (major_ver, minor_ver, subminor_ver) = (cv2.__version__).split(‘.’) if __name__ == ‘__main__’: # Set up tracker. # Instead of MIL,
Continue reading[SOLVED] How to recalculate the coordinates of a point after scaling and rotation?
Issue I have the coordinates of 6 points in an image (170.01954650878906, 216.98866271972656) (201.3812255859375, 109.42137145996094) (115.70114135742188, 210.4272918701172) (45.42426300048828, 97.89037322998047) (167.0367889404297, 208.9329833984375) (70.13690185546875, 140.90538024902344) I have a point as center [89.2458, 121.0896]. I am trying to re-calculate the position of points
Continue reading[SOLVED] How to recalculate the coordinates of a point after scaling and rotation?
Issue I have the coordinates of 6 points in an image (170.01954650878906, 216.98866271972656) (201.3812255859375, 109.42137145996094) (115.70114135742188, 210.4272918701172) (45.42426300048828, 97.89037322998047) (167.0367889404297, 208.9329833984375) (70.13690185546875, 140.90538024902344) I have a point as center [89.2458, 121.0896]. I am trying to re-calculate the position of points
Continue reading[SOLVED] CV2 cap.set(1,idx); cap.read(), Does it Read Frame idx or Frame idx+1
Issue In CV2 will this chunk of code read the frame for the given frame number or the next frame? desiredFrames = [3,5,7,n] cap = cv2.VideoCapture("somefile") for idx in desiredFrames: cap.set(cv2.CAP_PROP_POS_FRAMES,idx); cap.read() #Does it Read Frame idx or Frame idx+1
Continue reading