Ask Your Question

aguila's profile - activity

2020-07-09 02:56:51 -0600 marked best answer Android dnn in native C++

Hello, i succesfully linked opencv to my android c++ native app.. now I encountered a problem where i cannot read my models (ex. YOLO) I pasted them here: /storage/emulated/0/DCIM/ <model> but when running I see that the models cannot be found/read. The tutorial on the opencv page is for java implementation, I would like to implement something similar but using native C++.

What I have tried:

  • set permissions on my app to READ/WRITE: <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
  • similar approach than: question opencv answers

Has someone encountered the same issue? Or has some tips? Thaaaanks!

2020-07-09 02:53:16 -0600 answered a question Android dnn in native C++

Oh okay I managed to solve it, I will post the solution in case that helps someone. If you do not have your device "root

2020-07-09 02:09:31 -0600 asked a question Android dnn in native C++

Android dnn in native C++ Hello, i succesfully linked opencv to my android c++ native app.. now I encountered a problem

2019-03-12 02:31:03 -0600 commented question OpenCV 4.0.1 Cmake Windows does not configure correctly

Hallo Tilman, have you tried installing it through pip? i have it like that on my environment -> pip install opencv-p

2019-02-22 07:02:49 -0600 commented answer imshow data types?

thank you for the answer! okay i will update to the latest release..

2019-02-22 07:02:31 -0600 marked best answer imshow data types?

hello! i am havind a problem with the imshow function, according to the documentation it supports Mat of different types than CV_8U imshow_doc, i have been using it on other opencv versions and it works (example opencv 3.4.1).. The Mat that i want to show is CV_64F type, i tried also with CV_16U but i get the same assertion error, i checked the source file:

OpenCV(4.0.0) c:\build\master_winpack-build-win64-vc15\opencv\modules\highgui\src\window_w32.cpp:1230: error: (-215:Assertion failed) dst.data == (uchar*)dst_ptr in function 'cvShowImage'

and my temporary solution would be to comment that assertion but i am not sure if that would bring other problems. I see in the assertion that it is expecting a uchar data.. maybe thats why it gets error with other types?? Has someone experienced something similar? or has any ideas?

thanks!

2019-02-22 05:58:52 -0600 asked a question imshow data types?

imshow data types? hello! i am havind a problem with the imshow function, according to the documentation it supports Mat

2019-01-14 09:54:12 -0600 commented question Drawing a new coordinate system (B) based on other known coordinate system (A) in opencv 4.0.0

hello @MedoCV i was playing around and trying to implement something similar.. i get also some issues when i start rotat

2019-01-09 03:01:07 -0600 commented question Drawing a new coordinate system (B) based on other known coordinate system (A) in opencv 4.0.0

hello @MedoCV i was playing around and trying to implement something similar.. i get also some issues when i start rotat

2018-12-10 17:16:02 -0600 answered a question dnn resize_layer assertion 'getmemoryshapes'

Hello, i forgot to finish this example.. thanks for the hints @dkurt . I just made the modifications to the network. The

2018-11-12 07:59:40 -0600 commented question dnn resize_layer assertion 'getmemoryshapes'

ok i will try it later today and post my results here.. thanks!

2018-11-12 06:35:32 -0600 commented question dnn resize_layer assertion 'getmemoryshapes'

Hello @dkurt thank you for your help, sorry i did not checked in the past week the two different layers. I am looking no

2018-11-12 06:34:06 -0600 commented question dnn resize_layer assertion 'getmemoryshapes'

Hello @dkurt thank you for your help, sorry i did not checked in the past week the two different layers. I am looking no

2018-11-05 15:52:43 -0600 marked best answer dnn module caffe, weird output

Hello, i am porting an algorithm to opencv https://arxiv.org/pdf/1804.06039.pdf , the models are available here: https://github.com/Jack-CV/PCN-FaceDe... . I finished the first stage and while implementing the second, the outputs of the network are a bit weird:

Input Data: I: 1 C: 3 H: 24 W: 24

Scores Data: I: 1 C: 2 H: 299777088 W: 1

Regression Data: I: 1 C: 3 H: 309665792 W: 1

Rotate Data: I: 1 C: 3 H: 299780800 W: 1

The channels size of each output is correct, but the H,W are confusing me. I don't know if this has to be with the case that the model is the same for all the three networks?. Or maybe is an overflow issue? I tested it just forwarding a simple image with the secont network "PCN-2.prototxt" the output is similar.. has someone experienced something like this?

thanks!

2018-11-05 15:52:38 -0600 received badge  Self-Learner (source)
2018-11-05 13:54:09 -0600 answered a question dnn module caffe, weird output

solved... the error was accessing bad dimensions of blob

2018-11-05 13:39:27 -0600 commented question dnn resize_layer assertion 'getmemoryshapes'

Hi @berak, the prebuilt model i downloaded from the repo https://wywu.github.io/projects/LAB/support/WFLW_final.tar.gz a

2018-11-05 12:46:15 -0600 asked a question dnn resize_layer assertion 'getmemoryshapes'

dnn resize_layer assertion 'getmemoryshapes' hello! i was testing a model with the opencv dnn module to then implement t

2018-11-03 11:26:46 -0600 commented question dnn module caffe, weird output

hello! i just updated the repo.. maybe with some optimizations it could get to 40-FPS.. now is around 25-30 thanks @bera

2018-11-03 10:00:50 -0600 commented question dnn module caffe, weird output

heeey! aaah you are right.. my bad! i forgot that in the next networks just some regions are analyzed i just saw it with

2018-11-03 09:18:04 -0600 commented question dnn module caffe, weird output

@berak i uploaded my code to https://github.com/richipower/PCN-opencv is just the first two stages.. as soon as i finish

2018-11-03 08:35:36 -0600 commented question dnn module caffe, weird output

okay! i will just get some sushi and then create a github repo.. the names i defined as: ScoresData is the "cls_prob" l

2018-11-03 08:33:50 -0600 commented question dnn module caffe, weird output

okay! i will just get some sushi and then create a github repo.. the names i defined as: ScoresData is the "cls_prob" l

2018-11-03 08:33:40 -0600 commented question dnn module caffe, weird output

okay! i will just get some sushi and then create a github repo.. the names i defined as: ScoresData is the "cls_prob" la

2018-11-03 08:32:03 -0600 commented question dnn module caffe, weird output

okay! i will just get some sushi and then create a github repo.. the names i defined as: ScoresData is the "cls_prob" la

2018-11-03 08:10:09 -0600 commented question dnn module caffe, weird output

i have both running in caffe and ncnn.. but in mac os :( . caffe is about 30-FPS and ncnn around 7-FPS with the same con

2018-11-03 07:54:38 -0600 commented question dnn module caffe, weird output

yes, i was looking also in that one. I did the process of setting the inputs and reading the outputs of the networks sim

2018-11-03 07:53:33 -0600 commented question dnn module caffe, weird output

yes, i was looking also in that one. I did the process of setting the inputs and reading the outputs of the networks sim

2018-11-03 07:08:25 -0600 received badge  Nice Question (source)
2018-11-03 06:24:36 -0600 commented question dnn module caffe, weird output

uuuh shame :( . i will try to figure out what can be different there and post news if i get something. thanks!

2018-11-03 05:57:58 -0600 commented question dnn module caffe, weird output

yes! using the dnn module instead of caffe, i ported a lot of algorithms and while using the CPU, dnn is faster than the

2018-11-03 05:57:25 -0600 commented question dnn module caffe, weird output

yes! using the dnn module instead of caffe, i ported a lot of algorithms and while using the CPU is faster than the caff

2018-11-03 05:48:38 -0600 asked a question dnn module caffe, weird output

dnn module caffe, weird output Hello, i am porting an algorithm to opencv https://arxiv.org/pdf/1804.06039.pdf , the mod

2018-06-07 02:55:36 -0600 commented answer OpenCV 2.4.7 GPL Licensing Issue with mser.cpp

hello!, i am having the same issue with the version 3.4.1, the note is still there, i cannot find the file that it refe

2018-04-05 02:47:57 -0600 received badge  Nice Question (source)
2018-04-04 11:04:01 -0600 received badge  Supporter (source)
2018-04-04 11:03:56 -0600 marked best answer application stopped working with caffe network dnn module, forward()

Hello,

i am implementing a facedetector in opencv, Single Stage Headless detector SSH using the pretrained model provided, modifying the .prototxt file to be compatible without python layers accordingly to the example described in faster_rcnn_opencv which would be something like the following for each of the python proposal layers:

layer {
name: 'm2@ssh_proposal'
type: 'Proposal'
bottom: 'm2@ssh_cls_prob_reshape_output'
bottom: 'm2@ssh_bbox_pred_output'
bottom: 'im_info'
top: 'm2@ssh_boxes'
top: 'm2@ssh_cls_prob'
proposal_param {
feat_stride: 16
scale: 4
scale: 8
ratio: 1
}
}

and my code looks like:

String model = "SSH.caffemodel";
String proto = "SSH.prototxt";
Net SSH_net = readNetFromCaffe(proto, model);

Mat img = imread("test.jpg");
resize(img, img, Size(224, 224));
img = img - Scalar(102.9801, 115.9465, 122.7717);

Mat inputBlob = blobFromImage(img, 1.0f, Size(), Scalar(), true, false);
Mat imInfo = (Mat_<double>(1, 3) << 224, 224, 1);

SSH_net.setInput(inputBlob, "data");
SSH_net.setInput(imInfo, "im_info");

SSH_net.forward();

The network is being created succesfully, but at the moment of forwarding the network it just crashes.. I havent found any workaround for this, does anyone has any suggestions or ideas? or have been facing this issue? Any help is appreciated! thank you!

2018-04-04 11:03:56 -0600 received badge  Scholar (source)
2018-04-04 11:02:20 -0600 commented answer application stopped working with caffe network dnn module, forward()

@dkurt woow thank you for the very fast answer and solution, i just compiled with your PR and it works in both C++ and p

2018-04-03 10:02:40 -0600 asked a question application stopped working with caffe network dnn module, forward()

application stopped working with caffe network dnn module, forward() Hello, i am implementing a facedetector in opencv

2018-03-01 07:04:42 -0600 received badge  Student (source)
2018-03-01 03:27:37 -0600 asked a question Implementation of "MTCNN" with new dnn module using the caffe models

Implementation of "MTCNN" with new dnn module using the caffe models Hi, i am trying to implement the paper https://kpz

2016-08-11 08:13:53 -0600 received badge  Enthusiast
2016-08-10 09:43:14 -0600 commented answer Find all peaks for Mat() in OpenCV C++

@StevenPuttemans do you have maybe in the meantime your solution for the peak finder problem? :)

2016-06-28 12:34:16 -0600 answered a question [erfilter.cpp] nfa method

@dipesh could you explain how did you fixed it? i am having the same issue :( and i havent been able to solve it.. many thanks!