Ask Your Question

Mary-Ann's profile - activity

2019-09-25 04:49:40 -0600 received badge  Notable Question (source)
2019-04-15 22:03:04 -0600 received badge  Popular Question (source)
2018-11-14 19:08:41 -0600 commented question AndroidStudio/NDK - finished with non-zero exit value2

Did anybody find a solution? I have currently the same problem :(

2018-11-14 19:05:56 -0600 commented question Android studio failed build NDK project: error finished with non-zero exit value 2 on windows

Hi, were you able to solve this problem? I have currently the same issue :(

2018-08-16 06:12:35 -0600 answered a question Unable to complete install of OpenCV. 'numpy/ndarrayobject.h' file not found

Hi, your numpy version is probably not up to date. I had the same error message and a simple update solved the problem!

2018-08-11 07:57:42 -0600 received badge  Student (source)
2018-08-08 09:06:28 -0600 asked a question Running DNN on GPU (Problems with OpenCL and Halide)

Running DNN on GPU (Problems with OpenCL and Halide) Hi, I am running a Caffe based network, called DetectNet (https://

2018-07-25 07:44:48 -0600 received badge  Supporter (source)
2018-07-06 04:06:31 -0600 marked best answer Create contour from corner points

Hi,

I would like to check, if a given point is inside or outside of a given shape. I have already found the pointPolygonTest() function for this purpose. But my problem is, that I only have the corners of the shape, and I know that the edges are straight. Is there a way to create contours[] straight form the corner points? The only solution I found is to render (write into Mat) the edges and detect the shape to get the contours. But I actually dont need the rendered shape, I only want to perform this test. So I would like to skip this step if possible...

Thank you for any answers! Mary-Ann

2018-07-06 04:06:29 -0600 commented answer Create contour from corner points

Right, only the corners are enough for the algorithm. You dont need every single contour point. But if somebody needs it

2018-07-04 10:37:16 -0600 commented answer Create contour from corner points

Hi! I thought that neighboring elements of the contour vector need to be connected pixels on the image (just like this a

2018-07-04 10:21:59 -0600 asked a question Create contour from corner points

Create contour from corner points Hi, I would like to check, if a given point is inside or outside of a given shape. I

2018-06-27 08:46:03 -0600 commented answer Assertion Error with Custom Trained Caffe

@dkurt your answer is correct and the application is finally running! I only needed to import math too. Thank you for yo

2018-06-27 08:43:59 -0600 marked best answer Assertion Error with Custom Trained Caffe

Hi,

I would like to use the OpenCV DNN framework with a custom trained Caffe network. I am using the newest OpenCV Version and contrib libs, I compiled two weeks ago, I guess. I have already checked the dnn samples, and with the precompiled SqueezeDet and SqueezeNet examples everything works just fine. But if I load my network I get the following exception:

OpenCV(3.4.1-dev) Error: Unspecified error (Can't create layer "cluster" of type "Python") in getLayerInstance, file opencv-master/modules/dnn/src/dnn.cpp, line 388 terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(3.4.1-dev) opencv-master/modules/dnn/src/dnn.cpp:388: error: (-2) Unspecified error: Can't create layer "cluster" of type "Python" in function getLayerInstance

The network should be fine, I have tested it outside the OpenCV framework. The caffe version is 0.15.14, digits version is 5.1-dev. I use OpenCV in C++ not in Python, could it be the error?

Thanks a lot for any answers! Mary

EDIT: Here is the last layer of the prototxt, that probably causes the problem:

layer {    
  name: "cluster"    
  type: "Python"    
  bottom: "coverage"    
  bottom: "bboxes"    
  top: "bbox-list"    
  python_param {    
    module: "caffe.layers.detectnet.clustering"    
    layer: "ClusterDetections"    
    param_str: "1248, 352, 16, 0.6, 3, 0.02, 22, 1"    
  }    
}
2018-06-26 06:38:03 -0600 commented answer Assertion Error with Custom Trained Caffe

Hi, I switched to Python to test the application, but I still get some error. I was following this tutorial: https://www

2018-06-26 04:24:17 -0600 commented answer Assertion Error with Custom Trained Caffe

Hi, I switched to Python to test the application, but I still get some error. I was following this tutorial: https://www

2018-06-13 03:17:04 -0600 received badge  Enthusiast
2018-05-28 03:18:52 -0600 received badge  Self-Learner (source)
2018-05-28 03:09:54 -0600 edited question How to use BING Objectness with self trained model?

How to use BING Objectness with self trained model? Hi, I would like to use the BING Objectness feature with a custom t

2018-05-28 03:07:56 -0600 answered a question How to use BING Objectness with self trained model?

This is actually the answer of @berak, but their post disappeared... One should only convert the .wS1 (etc) model files

2018-05-28 03:01:25 -0600 commented question How to use BING Objectness with self trained model?

I will post it then, it can be helpful for someone else too.

2018-05-28 02:55:13 -0600 commented question How to use BING Objectness with self trained model?

Please post your answer again, it was correct and solved my problem!

2018-05-28 02:49:27 -0600 commented answer How to use BING Objectness with self trained model?

It worked, thank you! :D

2018-05-28 02:48:40 -0600 marked best answer How to use BING Objectness with self trained model?

Hi, I would like to use the BING Objectness feature with a custom trained model. I am aware, that it is not possible inside of OpenCV, that is why I downloaded the Linux BING Objectness code (https://github.com/torrvision/Objectness) and trained the algorithm by myself. If the training is done, the code creates the following files:

  • Filter.png
  • ObjNessB2W8MAXBGR.idx
  • ObjNessB2W8MAXBGR.wS1
  • ObjNessB2W8MAXBGR.wS2
  • ObjNessB2W8MAXBGR.xN
  • ObjNessB2W8MAXBGR.xP
  • PerImgAll.m
  • PosNeg.m
  • PosNeg.png

and the proposed windows for the test data are also generated in an additional folder "BBoxesB2W8MAXBGR" . I thought I only need to set the training path to the newly generated model files but I get an error:

Can't load model: /ObjNessB2W8MAXBGR.wS1 or /ObjNessB2W8MAXBGR.idx
Can't load model: /ObjNessB2W8HSV.wS1 or /ObjNessB2W8HSV.idx
Can't load model: /ObjNessB2W8I.wS1 or /ObjNessB2W8I.idx

Since the original code managed to create the object proposals I assume, that the model files were generated correctly. But why is OpenCV not able to read them?

Thanks a lot for any help! Mary C:\fakepath\ObjNessB2W8MAXBGR.wS1.png

2018-05-28 02:48:40 -0600 received badge  Scholar (source)
2018-05-28 02:38:18 -0600 edited question How to use BING Objectness with self trained model?

How to use BING Objectness with self trained model? Hi, I would like to use the BING Objectness feature with a custom t

2018-05-28 02:33:01 -0600 edited question How to use BING Objectness with self trained model?

How to use BING Objectness with self trained model? Hi, I would like to use the BING Objectness feature with a custom t

2018-05-28 02:28:24 -0600 edited question How to use BING Objectness with self trained model?

How to use BING Objectness with self trained model? Hi, I would like to use the BING Objectness feature with a custom t

2018-05-25 07:36:53 -0600 commented question How to use BING Objectness with self trained model?

Yes, I want to use ObjectnessBing from Saliency

2018-05-25 07:12:29 -0600 asked a question How to use BING Objectness with self trained model?

How to use BING Objectness with self trained model? Hi, I would like to use the BING Objectness feature with a custom t

2018-05-09 09:45:47 -0600 commented answer Assertion Error with Custom Trained Caffe

Hi, does it mean, that it is not possible currently to solve this problem inside my C++ framework? Unfortunately I am st

2018-05-09 08:28:34 -0600 answered a question VideoCapture problem - Inappropriate ioctl for device

Take a look at this thread: https://github.com/opencv/opencv/issues/8097 , it solved the problem my similar me. Basicall

2018-05-07 03:24:42 -0600 commented answer Assertion Error with Custom Trained Caffe

Hi, I updated my OpenCV but I still get the error message saying: OpenCV(3.4.1-dev) Error: Unspecified error (Can't cr

2018-04-27 09:31:57 -0600 commented question Assertion Error with Custom Trained Caffe

I updated the question so that only the last layer can be seen. The network was trained using DIGITS (https://github.com

2018-04-24 11:09:12 -0600 edited question Assertion Error with Custom Trained Caffe

Assertion Error with Custom Trained Caffe Hi, I would like to use the OpenCV DNN framework with a custom trained Caffe

2018-04-24 08:32:27 -0600 commented question Assertion Error with Custom Trained Caffe

Hi, I updated the question, I hope it helps to solve my problem

2018-04-24 08:29:09 -0600 edited question Assertion Error with Custom Trained Caffe

Assertion Error with Custom Trained Caffe Hi, I would like to use the OpenCV DNN framework with a custom trained Caffe

2018-04-24 08:29:09 -0600 received badge  Editor (source)
2018-04-20 11:56:32 -0600 commented question Assertion Error with Custom Trained Caffe

Hi, I'm not sure that I get your question right, but here is how I use my network in my application: ReadNetFromCaffe(pr

2018-04-20 08:44:10 -0600 asked a question Assertion Error with Custom Trained Caffe

Assertion Error with Custom Trained Caffe Hi, I would like to use the OpenCV DNN framework with a custom trained Caffe

2017-05-03 03:21:07 -0600 commented question Failed assertion by saliency calculation

You were right! The training failed, I used in the training data path backslashes instead of normal slashes. Everything works just fine now. Thank you for your comments!

2017-05-02 15:49:37 -0600 commented question Failed assertion by saliency calculation

Yes, unfortunately it still fails, and I get the same message :/

2017-05-02 07:00:25 -0600 asked a question Failed assertion by saliency calculation

Hi everyone,

I would like to calculate the BING objectness of some images, but I can not get my code to run. I am using the example code, released here: https://gist.github.com/thorikawa/fea... but if I call computeSaliency() I get an assertion error:

OpenCV Error: Assertion failed (w1f.cols * w1f.rows == D && w1f.type() == CV_32F && w1f.isContinuous()) in cv::saliency::ObjectnessBING::FilterTIG::update, file \opencv_contrib-master\opencv_contrib-master\modules\saliency\src\BING\FilterTIG.cpp, line 74

I could imagine, that maybe the training fails, even though I set the training data path just like the example says. How could I check, that the training went well? Or does anyone have any idea, how I could get rid of this assertion error?

Thanks a lot for the help!