opencv Questions

12

When I run !pip install imgaug==0.4.0 the following is the output Collecting imgaug==0.4.0 Using cached https://files.pythonhosted.org/packages/66/b1/af3142c4a85cba6da9f4ebb5ff4e21e2616309552caca...
Bookcase asked 31/8, 2020 at 11:14

20

Solved

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 r...
Lentil asked 15/9, 2018 at 23:20

2

Solved

OpenCV => 3.2 Operating System / Platform => Windows 64 Bit Compiler => Visual Studio 2015 I am currently working on my project which involves vehicle detection and tracking and estimating and o...
Johnsonian asked 22/5, 2017 at 4:23

30

Solved

I am using opencv2 in python with the code import cv2 cv2.namedWindow("output", cv2.WINDOW_NORMAL) cv2.imshow("output",im) cv2.resizeWindow('output', 400,400) cv2.waitKey(0) cv2.destroyAllWindows...
Callaway asked 27/9, 2017 at 13:59

3

Solved

I am currently doing a motion detection project that records down video when motion is detected. Right now there is no error when recording the video but when i check on the video, it is 0 bytes. A...
Coletta asked 12/7, 2017 at 4:6

3

Solved

What does the cv::normalize(_src, dst, 0, 255, NORM_MINMAX, CV_8UC1); do in OpenCV? I went through the documentation and was unable to understand what alpha, beta, NORM_MINMAX and CV_8UC1 actually...
Gentlefolk asked 19/8, 2012 at 3:19

14

This line: sift = cv2.xfeatures2d.SIFT_create() return error: Traceback (most recent call last): File "C:/Python27/openCVskrypty/GUI/SOLUTION2.py", line 11, in <module> sift = cv2.xfeat...
Cioban asked 4/5, 2016 at 22:36

21

Solved

I had installed OpenCV following these steps. After trying to compile one example, I got this error: OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windo...
Dreyer asked 27/2, 2015 at 23:24

15

I am using OpenCV 3 and python 2.7 and coding using PyCharm. The code works fine but PyCharm does not recognize cv2 as a module. It underlines it with a red line, so it doesn't display its function...
Ovary asked 18/12, 2015 at 22:43

7

Solved

How to smooth the edges of this binary image of blood vessels obtained after thresholding. I tried a method somewhat similar to this method but did not quite get the result I expected. Here...
Outdoors asked 24/5, 2016 at 9:40

7

import numpy as np import cv2 cap = cv2.VideoCapture('vtest.avi') fgbg = cv2.bgsegm.createBackgroundSubtractorMOG() while(1): ret, frame = cap.read() fgmask = fgbg.apply(frame) cv2.imshow('frame...
Brita asked 4/6, 2018 at 5:46

7

I'm having an error running simple code using cv2 module. It's just: import cv2 img = cv2.imread('sudoku.png',0) cv2.imshow('image',img) And it fails with the following error: QObject::moveT...
Annotate asked 14/9, 2018 at 19:2

6

I'm looking for the fastest and more efficient method of detecting an object in a moving video. Things to note about this video: It is very grainy and low resolution, also both the background and f...

21

I used the following page from OpenCV 3.0.0 tutorial: Tutorial in docs When I tried to use the example that saves videos, it doesn't work. It displays the content from the webcam, and also creates ...
Fiscal asked 28/3, 2015 at 18:31

7

Solved

I copied code from https://mcmap.net/q/325821/-python-how-to-capture-image-from-webcam-on-click-using-opencv and used with default (built-in) camera, it worked. Then I attached USB camera, tested i...
Coonhound asked 26/8, 2018 at 18:37

44

I'm trying to install OpenCV for Python through Anaconda, but I can't seem to figure this out. I tried conda install opencv conda install cv2 I also tried searching conda search cv No cigar....
Heartbreaker asked 16/4, 2014 at 20:23

10

Solved

I am trying to implement contours using the following code.. im = cv2.imread('C:\Users\Prashant\Desktop\T.jpg') imgray = cv2.cvtColor(im,cv2.COLOR_BGR2GRAY) ret,thresh = cv2.threshold(imgray,127,2...
Adigranth asked 31/12, 2013 at 3:41

4

Solved

I am working on pre-trained vgg16 model, for that I need to have input size of image file to be (224,224,3). The code I am working on is: from tensorflow.keras.preprocessing import image import cv2...
Cacciatore asked 14/1, 2021 at 11:27

4

Solved

I tried to use the following codes to play YouTube videos on Google Colab, !pip install pytube==9.1.0 from pytube import YouTube yt = YouTube('https://www.youtube.com/watch?v=-ncJV0tMAjE&t=72s...
Shcherbakov asked 28/8, 2018 at 5:42

9

This happened out of the blue, I was able to import cv2 but now I get 'AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a cir...
Ohalloran asked 21/6, 2022 at 19:17

7

Solved

PS C:\Windows\system32> npm install -g opencv4nodejs npm WARN cleanup Failed to remove some directories [ npm WARN cleanup [ npm WARN cleanup 'C:\\Users\\deepakv\\AppData\\Roaming\\npm\\node_mod...
Lelialelith asked 23/6, 2021 at 5:27

5

Solved

I would like to know how to write a function in Python 3 using OpenCV which takes in an image and a threshold and returns either 'dark' or 'light' after heavily blurring it and reducing quality (fa...
Iatrics asked 25/9, 2018 at 20:5

5

Solved

I'm trying to read a 16 bit grayscale image using OpenCV 2.4 in Python, but it seems to be loading it as 8 bit. I'm doing: im = cv2.imread(path,0) print im [[25 25 28 ..., 0 0 0] [ 0 0 0 ..., 0 ...
Cartilage asked 10/6, 2012 at 14:41

7

Solved

I've been working with code to display frames from a movie. The bare bones of the code is as follows: import cv2 import matplotlib.pyplot as plt # Read single frame avi cap = cv2.VideoCapture('si...
Kingkingbird asked 23/1, 2016 at 17:28

3

Solved

I have downloaded the source code of the face-analysis SDK from http://face.ci2cv.net/. Now I am trying to get it running. I downloaded all the necessary software and followed the installation inst...
Competency asked 25/11, 2014 at 12:46

© 2022 - 2024 — McMap. All rights reserved.