Ask Your Question

Uma's profile - activity

2020-10-04 14:18:27 -0600 received badge  Popular Question (source)
2017-08-16 09:25:38 -0600 asked a question OpenCL Support for QUALCOMM GPU

Hai ,

Does OpenCV OpenCL(cv::ocl) supports QUALCOMM GPU? In ocl.cpp source code , there are 4 vendor IDs (3 for Intel,AMD & Nvidia and 1 for UNKNOWN_VENDOR). Does OpenCV OpenCL supports other GPUs(Mobile GPUs).? If so How to check that?

What happens if Vendor is set to UNKNOWN_VENDOR?

2017-08-14 08:55:32 -0600 commented question clGetPlatformIds is failed for Mobile GPU (Adreno 405)

I am getting OpenCV unknown error - 202 (clGetPlatformids) for Adreno GPU 405. OpenCL version 1.2. And platform extensions are cl_img_egl_image cl_khr_byte_addressable_store cl_khr_egl_event cl_khr_egl_image cl_khr_fp16 cl_khr_gl_sharing cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_qcom_create_buffer_from_image cl_qcom_ext_host_ptr cl_qcom_ion_host_ptr cl_qcom_perf_hint cl_qcom_android_native_buffer_host_ptr..

Do I need to update my OpenCL driver?? or How to fix this ? It will be useful if i get any comments on this to proceed further . Thanks in advance.

2017-08-12 22:59:19 -0600 asked a question / libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4

Hai , I am using OpenCV 3.2.0 in Android studio. When I am trying to use initializecontextfromhandle() function for opencl I am getting this message / libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4. How to fix this??

2017-08-12 22:53:46 -0600 received badge  Editor (source)
2017-08-12 07:43:47 -0600 asked a question clGetPlatformIds is failed for Mobile GPU (Adreno 405)

Hai , I am developing an android application which involves processing a each frame from live input(video). For this I am using OPENCV and OPENCL. I have imported the OpenCV module 3.2.0 for android, I have linked the OpenCL lib from my test mobile. OpenCL version is 1.2.I have included corresponding OpenCL header files also. My Mobile GPU is QUALCOMM Adreno 405(32 bit ). I am facing OPENCV error -202 : clGetPlatformIDs failed ! form the function cv::ocl::attachContext(......) while running . How to fix this error?

Code:

    haveOpenCL = false;
    cl::Platform p = cl::Platform::getDefault();
    std::string ext = p.getInfo<CL_PLATFORM_EXTENSIONS>();
    if(ext.find("cl_khr_gl_sharing") == std::string::npos)
        LOGE("Warning: CL-GL sharing isn't supported by PLATFORM");
    props[5] = (cl_context_properties) p();

    theContext = cl::Context(CL_DEVICE_TYPE_GPU, props);
    std::vector<cl::Device> devs = theContext.getInfo<CL_CONTEXT_DEVICES>();
    LOGD("Context returned %d devices, taking the 1st one", devs.size());
    LOGD("Platform info :::: %s",p.getInfo<CL_PLATFORM_NAME>().c_str());
    ext = devs[0].getInfo<CL_DEVICE_EXTENSIONS>();
    if(ext.find("cl_khr_gl_sharing") == std::string::npos)
        LOGE("Warning: CL-GL sharing isn't supported by DEVICE");

    theQueue = cl::CommandQueue(theContext, devs[0]);

    cl::Program::Sources src(1, std::make_pair(oclProgI2I, sizeof(oclProgI2I)));
    theProgI2I = cl::Program(theContext, src);
    theProgI2I.build(devs);
cv::ocl::attachContext(p.getInfo<CL_PLATFORM_NAME>(), p(), theContext(), devs[0]());

I have separately used clgetplatformids function for which I am getting CL_SUCCESS . But when I tried to use attachcontext function I am getting above error message.

2017-07-25 10:29:51 -0600 asked a question VideoCapture Failed to open Camera in android

Hai I am trying create an android app which will process each frame from camera input and I need to display it. For this I tried VideoCapture. But it fails to open the camera . I have given all permission in manifest.xml file. Here is my code.

        mCameraCV = new VideoCapture(CV_CAP_ANDROID_BACK);
        //mCameraCV.open(CV_CAP_ANDROID_BACK);
        if (!mCameraCV.isOpened()) {
            mCameraCV.release();
            mCameraCV = null;
            Log.e(TAG, "Failed to open native camera");
            return false;
        }

I am using Opencv 2.4.9 sdk for android in windows. How to fix this ?

2017-07-19 02:52:05 -0600 answered a question ALL_BUILD error when building OpenCV from source

Disable "opencv_dnn_BUILD_TORCH_IMPORTER" option in cmake to get rid out of this linker issue. It's working for me.

2017-03-07 03:30:55 -0600 received badge  Enthusiast
2017-03-01 06:51:35 -0600 commented answer How to detect edges from particular area or portion of the image?

Thanks @steven. I will try this method.

2017-03-01 06:07:03 -0600 asked a question How to detect edges from particular area or portion of the image?

Hai, Is it possible to detect edges from particular area of image(For example , if a select the particular area from the image using Rectangular box, I need to find the edges of the objects that are covered by rectangular box). If so how to do that using OpenCV and C++ or python ? Please provide me steps I need to follow.

2016-12-27 04:59:41 -0600 commented answer Default color space for frames in video

Thanks @berak

2016-12-26 23:38:03 -0600 received badge  Supporter (source)
2016-12-26 23:37:54 -0600 commented answer Default color space for frames in video

Thanks..If suppose I am reading raw YUV frame using file read operation and then I need to write frame using imwrite means, what color space will be present when using imwrite function?

2016-12-26 07:27:32 -0600 asked a question Default color space for frames in video

Hai, I have a video which is having yuv color space and H264 codec. I am using Opencv videocapture function to read a frame. I just want to know whether the frame's mat object is in BGR or YUV color space pixels ?

Thanks in advance.....

2016-08-22 07:14:56 -0600 commented question I am getting different pixel values when i tried to read image using both opencv imread() and matlab imread() for same image. I would like to know the reason?

Thanks @berak & @LBerger

2016-08-22 07:05:07 -0600 commented question I am getting different pixel values when i tried to read image using both opencv imread() and matlab imread() for same image. I would like to know the reason?

Thanks all . @berak Yes it is jpeg image

2016-08-22 06:41:23 -0600 asked a question I am getting different pixel values when i tried to read image using both opencv imread() and matlab imread() for same image. I would like to know the reason?

I tried to process the image for my assignment. When I read the image using both Matlab imread() and opencv imread() function, I am getting different pixel value.

2016-08-22 06:41:21 -0600 asked a question Getting different values of pixels with Imread

When I am trying to read image using both opencv imread() and Matlab imread(), I am getting different pixel values for the same image. I would like to know the reason??