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

Global Name CV2 is not defined

I am not a coder by any means so if I fail to present enough information for my question to make sense please let me know. I am trying to display images one after the other selected from a directory...

View Article


How to output a mat object as an XYZ file with Python

I am writing a program that will do 3D sensing and I am currently at the last step. I have a grayscale 1280x720 image, and in order to create and visualize a point cloud, I need to convert it to an...

View Article


I am learning Open CV using Python, and after doing some tutorials I found...

Traceback (most recent call last): File "F:\David\Varios\OPENCV\hand gestures.py", line 11, in contours, hierarchy = cv2.findContours(th,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE) ValueError: too many...

View Article

Fail to divide circle into 8 equal parts

I was trying to write code which detects circle in a pizza and divide circles into 8 equal parts (i.e 8 equal slices angle of 45 degrees). I try using cv2.line() but it is not working. Can anyone help...

View Article

Need help with a opencv program written in python

I got a code on the internet which works with raspberry pi 3 and Pi camera. I want to modify a portion of it. I want to display on the camera the distance the colored object the code identifies is...

View Article


why the uninstalling of opencv is abort by terminal?

I am uninstalling OpenCV-2.4.9 from ubuntu and it is giving me abort after asking You are about to do something potentially harmful. To continue type in the phrase 'Yes, do as I say!'. how can i...

View Article

get specific frame from m3u8 stream using opencv

Hello! I'm new to OpenCV and read that it handles streams, videos pretty well. I installed it on my raspberry pi and I'd like to know if I can solve this using OpenCV or are there easier ways? I would...

View Article

how to make make bounding box around object?

I am working on background subtraction using this function cv2.absdiff(img1, img2). I want to make bounding box around the objects obtained in result but i am unable to find any function. my opencv...

View Article


python openCV - Assertion failed (npoints >= 0 && (depth == CV_32F || depth...

I am trying to run the code you see below based on [this C++ code][1]. The goal of this piece of code is to know the orientation of ones head and draw a line from his nose to some arbitrary plane. The...

View Article


Detect fire/flame using HSV filter to contours.

I want to detect fires/flames, in realtime camera stream, is it possible to do this using HSV color space and apply mask and filters to appropriately detect contours in given HSV colorspace, so what...

View Article

Best method for multiple particle tracking with noise and possible overlap?

Hello, I am working on a school project where I want to track the number, direction, and velocity of particles moving across a flow chamber. I have a series of timestamped images which were taken under...

View Article

I am trying to extract points of the circumference of a circle

Here I have created two arrays to store X and Y coordinates of the circumference (full 360 degrees) #360 degree points of the circle x_Pos = np.array(360) y_Pos = np.array(360) loop to to draw the...

View Article

Fast Radial Symmetry Transform Implementation

Hello all! I am curious to know if anyone has attempted or knows of projects using fast radial symmetry transform in OpenCV. The algorithm detects radially symmetric points of interest. It is...

View Article


How do I set exposure time of Logitech C922 webcam on OpenCV?

Hello I am writing a code for a project, and it requires some color segmentation which seems to be quite sensitive to the camera settings. I can get the frame size, brightness, autofocus, contrast and...

View Article

Structured_light Sinusoidal

I want to learn programming Python on a 3D-Scanning project. Im using Win10 64. I want to try opencv contrib structured_light sinusoidal pattern. But in Python version...

View Article


Snap to grid cropping

This may be called "Region of Interest" I'm not exactly sure. But, what I'd like to do is rather easy to explain. I have a photo that I need to align to a grid. https://snag.gy/YaAWdg.jpg For...

View Article

Book for learning face recognition in python

Hi all, I see OpenCV provide 3 methods for face recognition this is Eigenfaces, Fisherfaces and LBHPfaces. But I want to learn deeper about this methods or how to create new sophisticated method. Guys...

View Article


cv2.videoCapture(filename) assigning filename dynamically

I am trying to access `filename` dynamically from user and then pass it to `videoCapture(filename)` and then process it. code : import cv2 import numpy as np import os import sqlite3 import pickle...

View Article

How to use cuda in pyhton?

I want to use cuda with python. So I build opencv3.2.0 with cuda, pytho3.5 and success it. But i cannot find any module using cuda.cv2.cuda module have no function without Global Variables. on the...

View Article

How to run OpenCV feature homography program from PHP exec() function?

I have installed OpenCV 3.3.0 version in ubuntu 16.04 by cloning the git repository with python 3.5. I want to run the feature homography program using PHP exec() function. The sample provided in the...

View Article
Browsing all 2088 articles
Browse latest View live