Ask Your Question

Compvis's profile - activity

2020-07-05 10:09:38 -0600 received badge  Famous Question (source)
2020-01-30 07:11:13 -0600 received badge  Popular Question (source)
2018-12-30 05:20:59 -0600 received badge  Notable Question (source)
2017-12-24 11:02:54 -0600 received badge  Popular Question (source)
2017-09-19 04:10:04 -0600 commented question Fail to buid opencv 3.3 with opencv_contrib and Cuda 8.0

Your right ! It works. Thank you so much !

2017-09-19 04:02:46 -0600 commented question Fail to buid opencv 3.3 with opencv_contrib and Cuda 8.0

I clean up the build folder and disable BUILD_opencv_world then reconfigure but still can't generate project files

2017-09-19 03:50:05 -0600 commented question Fail to buid opencv 3.3 with opencv_contrib and Cuda 8.0

Thank you, after disabling BUILD_opencv_world, I can configure but can't generate project files. I get this error: CMak

2017-09-19 03:49:52 -0600 commented question Fail to buid opencv 3.3 with opencv_contrib and Cuda 8.0

and this error: CMake Error: CMake can not determine linker language for target: opencv_contrib_world CMake Error in F:

2017-09-19 03:49:32 -0600 commented question Fail to buid opencv 3.3 with opencv_contrib and Cuda 8.0

Thank you, after disabling BUILD_opencv_world, I can configure but can't generate project files. I get this error: CMak

2017-09-19 03:47:49 -0600 commented question Fail to buid opencv 3.3 with opencv_contrib and Cuda 8.0

Thank you, after disabling BUILD_opencv_world, I can configure but can't generate project files. I get this error: CMak

2017-09-19 03:47:24 -0600 commented question Fail to buid opencv 3.3 with opencv_contrib and Cuda 8.0

Thank you, after disabling BUILD_opencv_world, I can configure but can't generate project files. I get this error: CMak

2017-09-19 03:44:55 -0600 edited question Fail to buid opencv 3.3 with opencv_contrib and Cuda 8.0

Fail to buid opencv 3.3 with opencv_contrib Hi, I just build opencv 3.3 from source with opencv_contrib and vs2017 .

2017-09-19 03:19:35 -0600 asked a question Fail to buid opencv 3.3 with opencv_contrib and Cuda 8.0

Fail to buid opencv 3.3 with opencv_contrib Hi, I just build opencv 3.3 from source with opencv_contrib and vs2017 .

2016-07-13 01:29:59 -0600 received badge  Popular Question (source)
2015-03-12 02:39:14 -0600 received badge  Taxonomist
2014-12-09 14:07:56 -0600 marked best answer Bug with GpuMat::GpuMat(const GpuMat& m, Rect roi)

Hi,

If you try to use this code:

Mat m = imRead("D:\\pic.jpg",1);
GpuMat gm;
gm.upload(m);
GpuMat roi(gm, Rect(0,0,gm.rows-1, gm.cols-1);

An error will raises !

2014-12-09 13:57:43 -0600 marked best answer GpuMat misses operators, and functions that compared with Mat

Hi, I build Opencv 3.0 from source. I want to implement operators: +, -, *, / with GpuMat but i can't find them.

GpuMat also misses function "at", "zeros" and else functions (compared to Mat). I want to implement:

GpuMat sm;

.... int id = sm.at<uchar>(x,y);

And also with "zeros" function

Thanks

2014-12-09 13:57:11 -0600 marked best answer OpenCV Error: Gpu Api Call <invalid device function>

hi, I build OpenCV 2.4.9 from source with Visual Studio 2012 + Cuda 5.5 + Cmake 2.8 on Windows 7 32bit. My computer with Gigabyte Gefore 9800 GTX+ (Compute capability = 1.1).

If i set CUDA_ARCH_BIN = 2.0 2.1 3.0 3.5, the OpenCV build is OK. I run the sample bgfg_segm of cuda, it raises an error: "OpenCV Error: Gpu Api Call <invalid device="" function="">, file .../gpubgsegm/src/cuda/mog.cu. line 328"

But if i set CUDA_ARCH_BIN = 1.1 1.2 1.3 2.0 2.1(2.0) 3.0 3.5, the OpenCV build will raises an error:__longlong_as_double" is undefined....

Could you pls tell me how to build OpenCV 2.4.9 from source with VS2012 + Cuda 5.5 + CMake 2.8 to run the samples with my card above.

Thanks,

2014-12-09 13:09:00 -0600 marked best answer Opencv 3.0 - erode is not a member of gpu namespace

hi,

After build Opencv 3.0 from source. I successffuly test MOG2. When try to implement erode function. It rises an error: erode is not a member of gpu namespace

I think this a bug.

2014-11-20 19:43:39 -0600 commented answer How can i recognize this text from image

Thanks, I try to run sample but it was not working. It always breaks with error: OpenCV Error: Assertion failed <y==0 !! <data && dím>=1 && <unsigned>y <<unsigned>size.p[0]>> in cv::Mat::ptr, file E:\opencv\modules\core\include\opencv2/core/mat.inl.hpp, line 750

The position of error in sample is: er_filter2->run(channels[c], regions[c]);

2014-11-19 23:00:45 -0600 commented answer Need dataset for: car, truck, bus, motorbikes

Thank you very much!

2014-11-19 23:00:09 -0600 commented question Need dataset for: car, truck, bus, motorbikes

Thank you very much!

2014-11-19 19:50:34 -0600 asked a question How can i recognize this text from image

Hi, Do you point me some hints to recognize a text from this image:

image description

Thank you in advance,

2014-11-12 01:27:11 -0600 asked a question How to check if pixel is near white color

Hi, I have an color image (BGR)in a Mat. How can i check if pixel near white color?

Thanks

2014-10-06 03:53:37 -0600 commented answer Strange memory leak using CvMat structure

Function, GetObject(h, sizeof(bmp), &bmp), allways returns 0. Anybody test?

2014-09-15 04:07:14 -0600 asked a question How to convert bitmap image to thermal image?

Hi, I want to simulate thermal image from bitmap image like this. Is there any way to convert bitmap image to thermal image by using OpenCV?

Thanks

2014-09-08 02:57:50 -0600 commented question opencv 3.0 alpha - opencv_adas300(d).lib not generated

I build a project from cmake that depends on opencv library. Problem is how i can use opencv_adas module if it don't have a lib file?

2014-09-06 04:20:37 -0600 asked a question opencv 3.0 alpha - opencv_adas300(d).lib not generated

Hi,

opencv_adas module don't generate opencv_adas300(d).lib but OpenCVModules.cmake import it. The CMake says:

CMake Error at D:/opencv/build/install/x86/vc11/lib/OpenCVModoules.cmake:187 (message): The imported target "opencv_adas" references the file "D:/opencv/build/install/x86/vc11/lib/opencv_adas300d.lib" but this file does not exist. Possible reasons include:....

Is this a opencv bug?

Anyone face this?

2014-07-29 10:36:31 -0600 asked a question Need dataset for: car, truck, bus, motorbikes

Hi,

I need dataset for car, truck, bus, motorbikes.

Pls share, thanks

2014-07-23 23:02:55 -0600 asked a question Build opencv 3.0 - error: "...only when targeting sm_20 or higher"

Hi,

I'm building latest opencv 3.0 from source with CUDA SDK 5.5. My graphics card is Gigabyte NVidia GeForce 9800GTX+ with 1.1 computability. When building opencv_core module, i get this error:

"*nvcc : fatal error : nvcc supports '--relocatable-device-code=true (-rdc=true)' , '--device-c (-dc)' and '--device-link (-dlink)' only when targeting sm_20 or higher
CMake Error at cuda_compile_generated_gpu_mat.cu.obj.cmake:264... *
"

CMake settings:
CUDA_ARCH_BIN: 1.1 1.2 1.3 2.0 2.2(2.0) 3.0.3.5
CUDA_ARCH_PTX: 3.0

Enviroment and tools:
Visual Studio C++ 2012
Windows 7

What i was wrong? I need your help. Thanks

2014-07-04 02:29:26 -0600 commented question Module opencv_cudaoptflow disabled because...

How to know if the bug is fixed ? in which branch? (2.4 or 3.0)

2014-07-02 04:58:28 -0600 commented question Module opencv_cudaoptflow disabled because...

I reported, thanks

2014-07-02 04:22:25 -0600 asked a question Module opencv_cudaoptflow disabled because...

Hi, I'm building latest opencv 3.0. The cmake shows me a text:

"Module opencv_cudaoptflow disabled because opencv_legacy dependency can't be resolved"

Can you tell me how to fix this problem?

Thanks you in advance,

2013-11-02 02:35:07 -0600 commented question How to convert from "const cv::cuda::GpuMat" to "const cv::cuda::PtrStepSz<uchar3>"

Solved!!!!!!!!!!!!!!!!!!!

2013-10-30 10:45:41 -0600 asked a question How to convert from "const cv::cuda::GpuMat" to "const cv::cuda::PtrStepSz<uchar3>"

Hi,

I tried to conver from "const cv::cuda::GpuMat" to "const cv::cuda::PtrStepSz<uchar3>" but i couldn't. In code below:

void FireDetectorCaller(const PtrStepSz<uchar3>& src, PtrStepSz<uchar3>& dst);
void FireDetector(const GpuMat& src, GpuMat& dst)
{
FireDetectorCaller(src,dst);
}

Compiler says: error : no suitable user-defined conversion from "const cv::cuda::GpuMat" to "const cv::cuda::PtrStepSz<uchar3>" exists

How can i fix this? Could you pls help me? Thank in advance,

2013-10-28 07:27:44 -0600 asked a question Where can i find Min, Max kernel function in Cuda?

Hi

Could you pls tell me where the Min, Max functions are defined?

Thanks

2013-10-28 02:35:11 -0600 asked a question How to get RGB value from uchar3 ?

hi,

I need to calculate values on R, G, B values in *.cu file. Like this:

__global__ void FireDetector(cv::cuda::PtrStepSz<uchar3> src, cv::cuda::PtrStepSz<uchar3> dst) {

int x =  threadIdx.x + blockIdx.x*blockDim.x;
int y =  threadIdx.y + blockIdx.y*blockDim.y;
if(x < src.rows && y < src.cols)
{
    uchar3 val = src(x,y); //bgr
}

}

How can i get values R,G, B channels from uchar3?

Thanks

2013-10-18 08:10:55 -0600 commented question A bug in GpuMat::setTo(Scalar s) function in bgfg_segm sample, line 284

I have tried to post full error but it seems the length of content exceeds the limitation permitted so it is truncated. Below i re-post:

"OpenCV Error: Assertion failed <!empty()> in unknown function, file E:/opencv/modules/core/src/cuda/gpu_mat.cu, line 284"

2013-10-18 03:20:46 -0600 edited question A bug in GpuMat::setTo(Scalar s) function in bgfg_segm sample, line 284

hi, I run the bgsg_segm samlple from Gpu. It has an error like this: OpenCV Error: Assertion failed

I'm sure this is a bug.