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

kmeans in Android (Java)-

Hi, I've tried to use kmeans function, but something is not clear to me. Lets say that I have an array of points and I want to center all of them to four points : topLeft, topRight, bottomeft,...

View Article


Recording Video of an Event

Hello, I am a test engineer and I am performing a continuous test on a product. I am reading a parameter of the product from a sensor and when that parameter is within a certain range the test fails....

View Article


Do I need to calculate hist at prediction time in SVM?

I am training my dataset with the below code: for file in glob.glob('C:\*.png'): image = cv2.imread(file, 1) image = cv2.resize(img, (60, 120)) hog = cv2.HOGDescriptor((60,120), (8,8), (4,4), (4,4), 9)...

View Article

I can not install ArUco globally

Ubuntu 19.04. I have installed OpenCV 4.1.1 like this https://github.com/milq/milq/blob/master/scripts/bash/install-opencv.sh But, when I install ArUco via cmake, the following happens ![image...

View Article

CvException

Caused by: CvException [org.opencv.core.CvException: cv::Exception: OpenCV(3.4.6) C:\build\3_4_winpack-bindings-win64-vc14-static\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion...

View Article


copyTo don't work

I want to make app which swap faces in picture. The mat of the picture is picMat, and I want to copy a mat of detected face on picmat, but the function copyTo don't work. here is the code: Bitmap...

View Article

installed Opencv 4 from source, C++ headers not linked correctly

I jusst installed Opencv 4.1.1 from source, with python 3 bindings. My Python installation seems to work correctly, because if I run: import cv2 cv2.__version__ I get '4.1.1' However, I also want to...

View Article

Which are color blind safe palettes?

I am looking to use a color spectrum safe for color vision impaired viewers. Are there color vision impaired safe palettes on ColorMaps in OpenCV? An example palette I would like to use is found in...

View Article


How to make transparent background While Stitching using homography

I have 2 images, I want to stitch them using homography. But I want there won't be any black border in the result image. So I should use transparency. Do I need a create transparent background/mask?...

View Article


How to use CV_FOURCC in version 4.1.0?

Hi, i am new with openCV. i'm trying to paste a code snippet from old versions. But i get lots of error. VideoWriter parlakVideo("videoParlak.avi", CV_FOURCC(‘M’, ‘P’, ‘4’, ‘2’), 20, boyut, true);...

View Article

Using OpenCV in Windows 10 with Visual Studio Code

I'm having a nightmare trying to get OpenCV to work. I've installed it with no issues, but when I try running an example code it can't find the include files. I'm using Visual Studio Code (different...

View Article

identifying multiple leds

Hello I want to write a program to check the presence of multiple objects, for example leds, of different classes (like led colors) in an rigid environment, for example on an PCB, when the camera...

View Article

Mask and image

Hi all ! I have an image in true colors and a mask black and white, I want to make an image which white pixels of the mask become red in the result image and the black pixels of the mask become true...

View Article


Any functions like numpy.polyfit in OpenCV?

i am trying to implement or kinda of 'porting' a Udacity Advanced LaneDetection project in C++ code this project has been originally implemented in Python but i would like to implement in C++...

View Article

Gpu memory leak when resizing asynchronously

I'm facing some problem with gpu resize using opencv. Here is my code: #define MX 500 #define ASYNC 0 class job { public: cv::cuda::GpuMat gpuImage; cv::cuda::Stream stream; cv::Mat cpuImage; ~job() {...

View Article


Difficulty building OpenCV with MinGW

I'm trying to build OpenCV 4.1.1 with MinGW32 from the source (in Windows 10 and for C++). I've been following the instructions at the bottom of this page:...

View Article

Segmentation fault while using createTrackBar in OpenCV-Python

I am using OpenCV 4.1.1. When I try to run the trackbar tutorial code, I get the segmentation fault (core dumped) error. It seems that the crash occurs when the trackbar is created in an existing...

View Article


Using inpaint to restore old photo

I am trying to use OpenCV's built-in "inpaint" function to restore "damaged" areas of a photo (i.e: crease). However, after using the "inpaint" function, the resulting image contains a distortion in...

View Article

Jupyter kernel crashes after running "train" for decision tree classifier

I tried to perform training on my data and on toy example too. Command prompt doesnt show anything but the message about restarting. segm_features = np.array([[1,0], [1,1], [0,1]]) labels =...

View Article

Opencv 4.1.1 and Android Studio

Hello, i tried since three days to create a new project including opencv4.1.1 on Android Studio 3.4.2 I follow a lot of article but nothing append : when my app is starting, the opencv library won't...

View Article
Browsing all 41027 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>