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

Help For OpenCV Smoothing Contours

Hi, I need the code about detecting shapes and colours of the shapes in the photo and the colors of the shapes. Now I coded in the PyCharm, but I can't get correct result from the my program because...

View Article


Option: BUILD_opencv_python3 missing from cmake-gui

I've downloaded versions of OpenCV 4.1.2 a few days apart. The earlier version has a cmake-gui option: BUILD_opencv_python3:BOOL=ON It is not present in today's version (2019 nov 04). It's not that...

View Article


OpenCV does not read Logitech C920 .wmv files

System used: OpenCV = 4.1.1 (through opencv-python) Operating System / Platform => Windows 10 64 Bit and Linux Mint 19.1 Detailed description: Properties and frame indexes from videos recorded by...

View Article

Image blending results as a noise

I'm trying to blend 3 images. 1. First i overlay [photo.png](https://i.imgur.com/ZQSl4i9.png) over [base.png](https://i.imgur.com/i6o77oR.png) with some positioning. And it works....

View Article

AttributeError: module 'cv2' has no attribute 'calibrateHandEye'

I see the function prototype in the `__init__.py` file, but it doesn't seem to be available. Is it only supported in C++? How do I call such function in Python? cv2.__version__ Out[35]: '4.0.1'

View Article


OpenCV using Movidius NCS2 error using Darknet

I am trying to perform my custom object detector using the Intel Movidius Neural Compute Stick 2. The network that I am using is based on YOLO, and therefore has the graph structure saved as a .cfg...

View Article

Multilevel otsu thresholding

Hi I am trying to achieve a multi-level thresholding meaning in an image different levels of thresholding for different regions. Using thresh.otsu I can implement global thresholding but I want to...

View Article

samples.findfile for loading photos

Hello, I've downloaded openCV for python and am using it on Microsoft Visual Studio and am trying to use the tutorials. Often, they fetch a picture, src2 =...

View Article


How can i detect trees in Aerial Images?

I am new in this field and i looked at face detection tutorial with Haar cascade. 1-How can i get Haar cascade for trees detection or is there any way to generate it. 2-Is there better approach to...

View Article


How to fix error error: (-215:Assertion failed) size.width>0 && size.height>0...

I use the simplest code: import cv2 import time import numpy as np cv2.namedWindow("video") cap = cv2.VideoCapture(1) time.sleep(3) while cv2.waitKey(1)!= 30: flag, frame = cap.read()...

View Article

ImportError:python2.7/dist-packages/RPIO-2.0: undefined symbol: makedev

Hi. I don't know if this is the right place to ask. I am running a face recognition using OpenCV python on Raspberry Pi. pi@raspberrypi:~/facerec-pi/code $ sudo python capture-positives.py Tradeback...

View Article

how to crop these areas from image ??

HI How to separate these colored areas ?? I mean cropping them one by one and then showing them as a separate image ![image description](/upfiles/1573714772968730.jpg)

View Article

DICOM Image segmentation and 3d construction using VTK

Hello , I am working on .dcm image (dicom image) In my case there are 152 image slices. I have used https://www.raddq.com/dicom-processing-segmentation-visualization-in-python/ link for segmentation ....

View Article


edge detection and contour extraction

I want to measure the size of the welding. The image of welding is attached below. At first I need to extract the edge of the object. I got some problem! ![image...

View Article

How to Detect Speaker from facial landmarks of mouth using face_recognition

I am trying to find a speaker from a webcam using facial land marks which i can get using the [face_recognition](https://github.com/ageitgey/face_recognition) library. I am successful in getting the...

View Article


A configuration problem of OpenCV4

I built the OpenCV4 by Cmake and installed the opecv4.0 using anaconda3 with its python 3.7 verison. My platform is Ubuntu 18.04 LTS. However, when testing the installation, I encounter the following...

View Article

Calculate histogram for collored image

hello, I'm trying to create my own function to calculate histograms for colored images. I wrote my function it returns a message " tuple' object cannot be interpreted as an integer" Bellow is my code...

View Article


How to write this kmeans python code in c++?

I have tried converting this much till now and not able to understand how to convert the rest of it. def segment_by_angle_kmeans(lines, k=3, **kwargs): default_criteria_type = cv2.TERM_CRITERIA_EPS +...

View Article

Problem with opencv installation

ello I try to use opencv on ubuntu.18.04.3 I get this message when I import cv2 in anaconda notebook 55 if required: ---> 56 raise ImportError('OpenCV loader: missing configuration file: {}. Check...

View Article

python cv2.imread .tif image problem

I use cv2.imread a .tif image from experiment cameras and find the ndarray is always uniform.When I use matpltlib it is ok. It's really strange.[C:\fakepath\EM()(26.10.2018_13-01)...

View Article
Browsing all 2088 articles
Browse latest View live