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

Why 'imencode' taking so long ?

I'm encoding my image from a opencv "Mat" to a "vector" buffer in order to send it over a socket. int rows = 4096; int cols = 4096; vector buffer; Mat imageFrame(rows, cols, CV_8UC1, dataPointer ); /*...

View Article


Problem with cuda hog people detection

Hi, I am Using Cuda hog from OpenCV but the program is crashing at totalRect.size(). does anyone have an idea about this? int main(int argc, const char * argv[]) { VideoCapture cap("leftFront.avi");...

View Article


Conversion 16bit image to 8 bit image

Hello , How to convert 16bit image to 8bit image without loosing information. dst.convertTo(src, CV_8UC1); I used convertTo() function but it losses information , it is not same as src image. Is it...

View Article

openni_capture

Hi, I built opencv with openni2, and I succeeded to run the example 'openni_capture' which is in OpenCV.sln. But when I try to make my own project and run it, it says 'can not open a capture object'...

View Article

BackgroundSubtractor is not a member of 'cv' on VS17 C++

I'm building a background subtractor on Visual Studio 17. I've included the opencv_world.dll. When typing cv::Bac autofinish offers BackgroundSubtractor and moving poiter to it shows correct info...

View Article


SVM on CUDA

Hi, I am using SVM. I have trained SVM and stored matrix in .xml file. I want to predict the label for each row. So, I am using below snippet in cuda Kernel function. Ptr svm =...

View Article

and having three waitKey(0) but the third one is not working

do { cout << endl; cout << "Enter Your Blend Key from -11 to 10" << endl; beta = 1.0; cout << endl; cin >> alpha; if ((double)alpha >= (-11.0) && (double)alpha...

View Article

I try to use hog and svm to train my data and make it can calcify whether...

. import glob import sys PY3 = sys.version_info[0] == 3 if PY3: from functools import reduce import numpy as np import cv2 as cv import cv2 # built-in modules import os import itertools as it from...

View Article


Problem with imread function

Hello, I start with opencv with python and I do not suceed to load an image with the imread function. I try with the filename, with the path of the image, with \,\\,/ in the path but nothing works. I...

View Article


Face Landmarks and face identification

How I can use face landmark for face identification?

View Article

How to read sequence of .yml file and concatenate in a single yml file in rows

Hello all, i'm trying to read sequence of.yml files and reshape them in single a single row then trying to concatenate in a single .yml file. here is my snap of code... for (int i = 1; i <= 6; i++ )...

View Article

OpenCV bundle adjustment Assertion failed

I am stitching images using OpenCV 4.0.1 with C++ on Windows 10 Some images do not stitch and program stops with an error like this: Assertion failed: !err.empty(), file...

View Article

Draw a transparent green rectangle on onCameraFrame

Hello i was tried to draw a transparent green rectangle in onCameraFrame in my application. my application just tried to detect the rectangle and draw transparent green rectangle in onCameraFrame. how...

View Article


Assertion Failed error problem

While trying to compile the code given below, I got OpenCV Error: Assertion failed (((((sizeof(size_t)<<28)|0x8442211) >> ((DataType<_Tp>::depth) & ((1 << 3) - 1))*4) &...

View Article

I can use updateHistoryImage with a stereo image?

I am working with a 8UC3 stereo image, but the function updateHistoryImage works only with 8UC1 and 32UF1... The error: OpenCV(4.0.1-dev) Error: Assertion failed (_silhouette.type() == CV_8UC1...

View Article


CL Error when running OpenCV GoodFeaturesToTrack()

Hi All, the server marks my content as spam (?) so I'm attaching my txt as a pic. please assist. D![image description](/upfiles/15480780654332476.png)

View Article

error non-standard syntax; use '&' to create a pointer to membe

// void Blending::Blend(int, void*) { alpha = (double)defaultvalue / 100; addWeighted(img, alpha, img2, 1.0 - alpha, 0, des); imshow("Blendimage", des); } int main() { Blending ble;...

View Article


How to add Gaussian noise in JAVA

Mat img = new Mat(); Utils.bitmapToMat(grayBitmap,img); noiseBitmap = grayBitmap.copy(Bitmap.Config.RGB_565,true); Mat noiseMat = new Mat(img.size(),CvType.CV_64F); Mat result = new Mat();...

View Article

function "drawKeypoints" do not work in openCV 4.0.1

I want to use the drawKeypoints function in openCV 4.0.1, but Python writes an error: AttributeError: module 'cv2.cv2' has no attribute 'drawKeypoints' Maybe the latest version of openCV uses a...

View Article

OpenCV T-API (OpenCL) CL_Error

hi, I am running a Yocto Disto on IMX8 SOM with OpenCV 3.0 support. The Goal of this pilot is running the OpenCV function goodFeaturesToTrack() with OpenCL (using the Vivante on the IMX8). The OpenCL...

View Article
Browsing all 4615 articles
Browse latest View live


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