Ask Your Question

Caba's profile - activity

2018-03-15 05:09:24 -0500 commented question Separate Color regions using Open CV

I don't understand where the smoothing problem appears. Are you grouping the pixel simply by color? E.g. all black pixel

2017-09-06 03:49:31 -0500 received badge  Enthusiast
2017-09-05 14:15:45 -0500 commented question Failed to open FileStorage

Hi! have the same issue, did you manage to solve it?

2016-05-18 15:37:53 -0500 received badge  Teacher (source)
2015-07-16 04:35:29 -0500 commented question Use cv::saliency::ObjectnessBING

Thanks for the link! I had misunderstood the BING algorithm exatcly as the person of that discussion. I am interesting in detect how many objects (whatever objects) there are in an image; so now I'm not sure I can use BING for that purpose (since the objects are novel obejcts, I should use use more object detection). But in the paper, the author got an image of a person and a ship detecting both, so, how did they do that? Using two different detectors and evaluating all the ROI given by the BING?

About the missing files, I don't know. I didn't try because I don't have a video to work with, so I just copied the interesting part of code to use the BING algorithm. With the code I posted it is working perfectly.

2015-07-15 12:19:22 -0500 received badge  Student (source)
2015-07-15 10:42:24 -0500 received badge  Scholar (source)
2015-07-15 10:30:48 -0500 asked a question Use cv::saliency::ObjectnessBING

Hi all,

I am trying to use the cv::saliency::ObjectnessBING class to detect object in a frame, but I am not able to do it properly. There is an example of code here but with the BING algorithm, it does not display any result.

This is my code:

    String saliency_algorithm = "BING";
    String training_path = "../ObjectnessTrainedModel";
    vector<Vec4i> saliencyMap;

    Ptr<Saliency> saliencyAlgorithm = Saliency::create( saliency_algorithm );
    saliencyAlgorithm.dynamicCast<cv::saliency::ObjectnessBING>()->setTrainingPath( training_path );
    //saliencyAlgorithm.dynamicCast<cv::saliency::ObjectnessBING>()->setBBResDir( training_path + "/Results" );

if( saliencyAlgorithm->computeSaliency( image, saliencyMap ) )
       std::cout << "Objectness done" << std::endl;

        std::vector<float> values = saliencyAlgorithm.dynamicCast<cv::saliency::ObjectnessBING>()->getobjectnessValues();

for (int i = 0; i < saliencyMap.size(); ++i)
            cv::rectangle(image, Point (saliencyMap[i][0],saliencyMap[i][1]), Point(saliencyMap[i][2],saliencyMap[i][3]) , Scalar(255,0,0),1,8, 0);

 cv::namedWindow( "Saliency Map", WINDOW_AUTOSIZE );// Create a window for display.
 cv::imshow( "Saliency Map", image );                   // Show our image inside it.


So, saliencyMap is the vector containing all the rectangle, and my vector values contains the score of each reactangle. How can I use that information for drawing the result? I Tried to draw the rectangle with the highest score but the resutls made no sense. Have I to use some more options? There are more methods to use in the class but I don't understand what they are useful for, also reading the original paper of the algorithm.

2015-07-15 07:32:10 -0500 commented question Cannot install contributors modules for opencv 3 beta

Thanks, It worked perfectly. Both compilation and building with no errors, and the usr/locacl/include/opencv2 folder contains knwo the headers files of the modules.

I don't know very well how it works, but if you write it as an answer I will accept it!

2015-07-15 05:56:40 -0500 commented question Cannot install contributors modules for opencv 3 beta

Thanks, I will try in a while

2015-07-15 05:44:21 -0500 asked a question Cannot install contributors modules for opencv 3 beta

Hi all,

I'm facing several hours on installing opencv_contrib modules for opencv 3 beta. I can build and install opencv 3 beta correctly without problems and is working too. Then, looking at this answer I donwloaded the version of opencv_contrib for the opencv beta version. The to compile I run the command how specified in the repository of opencv_contrib, that is:

$ cmake -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules ..

Where the opencv_contrib folder is placed in the same folder where the opencv-3.0.0-beta is located. Doing that command I got the error:

  Unknown CMake command "ocv_include_modules_recurse".

The person on that question resolved this problem simply by donwloading the opencv_contrib for the beta version (before he was using the master). But for me this is not working (I tried also with both).

To resolve that error I found this question that suggests to use the command:

   $ cmake -DOPENCV_EXTRA_MODULES_PATH=opencv_contrib/modules .

This is working well, I can then build with make but it seems that is not building anything because it tries to build all the opencv "standards" modules that I have previously built. But, in the folder build/modules/ the folders of the modules of the opencv_contrib have appeared (then the cmake -DOP.......), but they are empty, the have no headers, also then the building.

2015-01-26 11:53:34 -0500 received badge  Necromancer (source)
2014-03-29 07:47:43 -0500 asked a question HDR Tutorial

Hi to everyone,

i was trying to do the tutorial HDR (using openCV 3.0):

and it works but the results, the fusion and the tonemapped image doesn't seem to be good, doesn't work like the tutorial.

I used a software to do an HDR on the same list of images and the result of the software is quite far from the images ldr,fusion of the HDR using OpenCV functions, moreover ldr and fusion images outputs are really different, no as in the tutorial that are "quite" similares.

Moreover i tried to run the program giving it as inputs images in .png and .jpg and the result with .jpg is a little bit more satisfactory ( you will find the both result in the file)

Images and result (35,21 MB):

I hope you can help me, Thanks!

2014-03-29 03:57:01 -0500 answered a question Failed to load OpenCL runtime

I got the same problem, i solved it installing the packet: ocl-icd-opencl-dev

2014-03-28 12:56:59 -0500 received badge  Supporter (source)