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 ArticleOption: 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 ArticleOpenCV 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 ArticleImage 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 ArticleAttributeError: 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 ArticleOpenCV 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 ArticleMultilevel 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 Articlesamples.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 ArticleHow 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 ArticleHow 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 ArticleImportError: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 Articlehow 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 
View ArticleDICOM 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 Articleedge 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!  library. I am successful in getting the...
View ArticleA 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 ArticleCalculate 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 ArticleHow 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 ArticleProblem 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 Articlepython 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