Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

newbie question: working with higher dimensional mat

Hello,

I found some c++ / python code for evaluating a text detection model -

c++ https://github.com/opencv/opencv/blob/master/samples/dnn/text_detection.cpp

const float* scoresData = scores.ptr<float>(0, 0, y);

python https://github.com/opencv/opencv/blob/master/samples/dnn/text_detection.py

scoresData = scores[0][0][y]

These two snippets do the same in different programming programming language - its get back an array with probabilities. I am trying to port this call to java - but i am failing hard here.

Can you give me a small hint how to port this line in question to java? Thank you very much + Greetings, Holger