Ask Your Question

stiv-yakovenko's profile - activity

2020-04-28 01:28:33 -0600 received badge  Editor (source)
2020-04-28 01:28:33 -0600 edited question invalid use of incomplete type struct cv::DefaultDeleter<CvHaarClassifierCascade>

invalid use of incomplete type ?struct cv::DefaultDeleter<cvhaarclassifiercascade> I am trying to build this c++ s

2020-04-28 01:28:11 -0600 asked a question invalid use of incomplete type struct cv::DefaultDeleter<CvHaarClassifierCascade>

invalid use of incomplete type ?struct cv::DefaultDeleter<cvhaarclassifiercascade> I am trying to build this c++ s

2020-04-15 16:52:35 -0600 commented answer destroywindow and destroyallwindows not working.

thank you dear friend!

2019-11-08 04:26:09 -0600 marked best answer How to resize image with nvidia GPU?

I am running this simple application to perform image resize on GTX1080ti GPU:

#include <opencv2/opencv.hpp>
#include "opencv2/cudaimgproc.hpp"
#include "opencv2/cudawarping.hpp"
using namespace std;
using namespace cv;
using namespace cv::cuda;
static void gpuResize(Mat in, Mat out){
    double k = in.cols/416.;
    cuda::GpuMat gpuInImage;
    cuda::GpuMat gpuOutImage;
    gpuInImage.upload(in);
    const Size2i &newSize = Size(416, in.rows / k);
    cout << "newSize " << newSize<< endl;
    cuda::resize(gpuInImage, gpuOutImage, newSize);
    gpuOutImage.download(out);
}

int main(){
    Mat im = Mat::zeros(Size(832,832),CV_8UC3);
    Mat out;
    if (getCudaEnabledDeviceCount() == 0){
        return cerr << "No GPU found or the library is compiled without CUDA support" << endl, -1;
    }
    cv::cuda::printShortCudaDeviceInfo(cv::cuda::getDevice());
    gpuResize(im,out);
    cout << "real size="<<out.size() <<endl;
}

the output I'm getting:

Device 0:  "GeForce GTX 1080 Ti"  11177Mb, sm_61, Driver/Runtime ver.10.10/10.10
newSize [416 x 416]
real size=[0 x 0]

why output matrix has 0x0 size, how should I fix that?

2019-11-08 04:26:09 -0600 received badge  Scholar (source)
2019-11-07 16:14:21 -0600 answered a question How can I "Set OPENCV_ENABLE_NONFREE CMake option and rebuild the library in function 'create'"?

To use SIFT you have to downgrade to 3.4.2.16: more details here

2019-11-07 13:57:13 -0600 asked a question How to resize image with nvidia GPU?

How to resize image with nvidia GPU? I am running this simple application to perform image resize on GTX1080ti GPU: #in

2019-10-18 07:43:02 -0600 commented answer gstreamer output with VideoWriter?

it gives me: no element "v4l2video1h264enc"

2019-08-25 16:24:57 -0600 commented answer How to run OpenCV DNN on NVidia GPU

I confirm same behavior as of today (OPENCL + jetson nano)

2019-07-27 16:00:38 -0600 asked a question undefined reference to cv::cuda::dft

undefined reference to cv::cuda::dft I've build opencv with CUDA support on my CentOS linux with NVIDIA with CUDA suppor

2019-06-21 03:47:08 -0600 received badge  Necromancer (source)
2018-12-16 12:52:36 -0600 commented question Opencv textdetector false positives

I also tried using samples from cv::text and they all work stably only on example data

2018-12-12 09:07:49 -0600 asked a question Poor performance of cv::text

Poor performance of cv::text I need to locate all letters on this screenshot: Tried https://github.com/opencv/opencv_

2018-12-12 07:45:18 -0600 commented answer number detection in opencv

1st link is a deadlink

2018-09-05 00:20:47 -0600 commented answer Counting the Total number of Frames in a video file ?

@StevePuttemans, CAP_PROP_FRAME_COUNT is unreliable, for some files it gives huge negative value and iterating frames is

2018-08-25 19:07:59 -0600 answered a question Counting the Total number of Frames in a video file ?

Going through each frame with VideoCapture might be slow. You can get 3x perfomance boost if you invoke ffprobe.exe, ass

2018-08-17 15:33:47 -0600 commented question 'channel_type': is not a member of 'cv::DataType<_Tp>'

I have same problem with debug build made with vcpkg.

2018-04-06 03:22:34 -0600 received badge  Supporter (source)
2018-03-25 13:14:06 -0600 received badge  Student (source)
2018-03-25 01:14:27 -0600 asked a question stereoRectify doesn't work sometimes

stereoRectify doesn't work sometimes I have many shots of object on aruco board: All images in the folder are undisto

2018-03-15 16:26:19 -0600 asked a question How can I convert cordinates from rectified stereo to original coordinates in opencv?

How can I convert cordinates from rectified stereo to original coordinates in opencv? I am using this code to rectify st

2017-12-25 00:08:25 -0600 received badge  Enthusiast
2017-12-19 22:03:29 -0600 answered a question How do I load an OpenCV generated yaml file in python?

To load camera calibration matrix like this: %YAML:1.0 --- image_width: 4000 image_height: 3000 camera_matrix: !!opencv

2017-12-09 02:22:24 -0600 asked a question Output from solvePnP doesn't match projectPoints

Output from solvePnP doesn't match projectPoints I get strange data from solvePnP, so I tried to check it with projectPo

2017-09-17 15:09:57 -0600 commented answer Opencv 2.4.9 Viz module not there.

for opencv 3 it should be not path-to-build-directory-of-VTK, but vtk cmake file folder

2017-09-17 14:08:19 -0600 commented answer Opencv 2.4.9 Viz module not there.

Sorry, this doesn't help me on windows, with vtk and successfull cmake for it, there still no opencv_viz.dll after build