Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Browsing all 2088 articles
Browse latest View live
↧

Read a named pipe in opencv

Hi, I'm following this video guide (I'm using the last option presented in the video): https://www.youtube.com/watch?v=sYGdge3T30o Essentially my raspberry send a video stream with netcat, then a...

View Article


"Cutting open" a 3D .mrc file

![C:\fakepath\microtubule.jpg](/upfiles/14996753101826953.jpg) I have a 3D .mrc file of cilia microtubules which was generated using electron microscopy. It is a cylindrical image, and I am trying to...

View Article


help regarding MOG back ground subtraction using opencv

hi, i have been working ono mog background subtraction with the following program,if i use mog2 it is working but working on mog and gmg doesnt seem to work,i am using opencv3.2.0 the program is...

View Article

Import Error: cannot import name 'cv2'

I want to begin exploring OpenCV in Python but I'm stuck at importing the package `cv2`. I have installed the package through `pip3 install opencv-python` and it got installed at this location -...

View Article

OpenCV Python GPU support ? or faster variance convolution

Hi, I was wondering if the current OpenCV Python had GPU support yet ? OR is there a faster way to calculate convolved variance ? MaxFrom3DArray = numpy.amax(imgArray, axis=0) # where imgArray is a 3D...

View Article


OpenCV3 write text on video

I has raspberry pi 3 with raspbian jessie installed. Open CV3 and python 3.0 also installed. I get a python sample code which detect the face. I need write text on the screen but it's not write on it....

View Article

In opencv-python tutorials core operations basic operations on images...

Here is the code(with error as i am working directly on the shell as instructed by the website) same as on the website:>>> import cv2>>> import numpy as np>>> img =...

View Article

image ROIs in python

What are the numbers in the the bracket? Are they rows and columns of the pixel matrix.Also how come the person know the exact position to copy the image of a ball inside of an image as for that you...

View Article


Error using fisheye callibration in python binding OpenCV 3.2.0

System information (version) OpenCV => 3.2 Operating System / Platform => Linux / Ubuntu 15.04 Compiler => Python 3.4.3 (default, Mar 26 2015, 22:03:40) [GCC 4.9.2] on linux When I try the...

View Article


How to use waldboost detector in opencv-3.2 using python

import cv2 import numpy as np detector=cv2.createWaldBoost() but this code is showing me error >detector=cv2.createWaldBoost() AttributeError: module 'cv2' has no attribute 'createWaldBoost'

View Article

hello anyone answer me how to pass command line arguments through python and...

from scipy.spatial import distance as dist from imutils import perspective from imutils import contours import numpy as np import argparse import imutils import cv2 ... # construct the argument parse...

View Article

Draw good matches after RanSaC in green and discarded matches in red

For an image pair, I'd like first to draw all matches according to Lowe's distance ratio. Then, I'd like to filter them using a RanSaC homography. Up to this point I'm ok. But I'd like to represent...

View Article

Did they remove SVM's trainAuto in the newest OpenCV release?

I'm using python 3.5 with OpenCV 3.2 and this is the error I'm getting "Traceback (most recent call last): File...

View Article


Which method would be better for my purpose?

Hello, Im a civil engineering student, and I will do my thesis about recognizing structural failures on concrete walls. Im searching for information about which method/algorithm would be the better for...

View Article

Code to divide pizza into 8 equal slices by using Python Opencv

import cv2 import cv2.cv as cv import numpy as np def main(): img = cv2.imread('testpizza.png',0) #print(img) img = cv2.medianBlur(img,5) cimg = cv2.cvtColor(img,cv2.COLOR_GRAY2BGR) circles =...

View Article


how to get height of any object using python and opencv

import cv2 import numpy as np img = cv2.imread("C:\\Users\\User\\Desktop\\cc.png", cv2.IMREAD_GRAYSCALE) # read picture # imgray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) # BGR to grayscale ret, thresh =...

View Article

python matchShapes on images

In python, I am trying to exploit the affine invariance of matchShapes() (compared to matchTemplate()) to match my template to distorted candidate images. The template and candidate images are quite...

View Article


Calculating image moments after connected component labeling function

I need to calculate the Hu moments from an input image. The input image `input` consists of several objects so I need to pre-process it using the connected components labeling function: # input image...

View Article

Face detection not working on specific image

I am using the haarcascade_frontalface_default.xml classifier to detect faces in python 3 on Windows 7 with OpenCV 3.1.0 using the following code: import cv2 import sys classifier =...

View Article

is there any specific function to find width and height of any object in...

how to find width and height of any object using python and opencv

View Article
Browsing all 2088 articles
Browse latest View live