2020-10-04 07:04:53 -0600 | received badge | ● Popular Question (source) |
2017-08-02 06:59:19 -0600 | received badge | ● Notable Question (source) |
2016-09-29 12:23:42 -0600 | received badge | ● Popular Question (source) |
2013-10-29 15:50:45 -0600 | commented question | Digit recognition with OpenCV 2.4.6 in Java ok no problem :), yes, its very tricky. i have a speciffic question: How can i read the training data so i can contain it in a Mat object?, and what format does the training data has to have? the training data is algorithm-specific? |
2013-10-29 14:41:39 -0600 | commented question | Digit recognition with OpenCV 2.4.6 in Java please don't get mad. yes, i know it isnt impossible, but for example in this code, there are operations like memset that i dont really know how to use in java, i don't know any c++. the author talks about the endianness of the processor, and uses operations with pointers, since java runs on a virtual machine i don't know how can handle this |
2013-10-29 13:56:34 -0600 | commented question | Digit recognition with OpenCV 2.4.6 in Java for example, look at this method: int DigitRecognizer::readFlippedInteger(FILE *fp) { int ret = 0; BYTE *temp; } |
2013-10-29 11:31:12 -0600 | asked a question | Digit recognition with OpenCV 2.4.6 in Java Im trying to implement a basic Digit recognition using java, the main issue is that i'm really new with the framework and i dont know how to implement this. i've read several c++ tutorials like this one: http://blog.damiles.com/2008/11/basic-ocr-in-opencv/ or this one: http://www.aishack.in/2010/08/sudoku-grabber-with-opencv/5/ and i know that i need a class with a train function that read a train file (which dictates what can be and what can not be recognized) , and a classify function using the k-nearest algorithm provided by opencv, im not so sure how to implement this, given that c++ tutorials use bitwise operations and operations that i can't replicate in java. the pre-procesing part is all done, i have a class that gives me a Mat object that contains the image of the digit, centered and without noise. i have to implement the part that actually takes that Mat object and turns it into an integer. Thanks a lot for all your help! |
2013-10-15 18:56:16 -0600 | answered a question | Mat_<uchar> translation in java, dilating i solved this by creating a 3x3 Mat and putting the data by myself |
2013-10-14 09:07:13 -0600 | received badge | ● Editor (source) |
2013-10-14 08:35:36 -0600 | asked a question | Finding the biggest blob with java Im trying to find the biggest blob with java, and came with a tutorial that uses this approach with c++ code: I know what this does is looping through the elements of a Mat object containing a black and white image and floodfilling all the white pixels with a 64-gray and then finding the biggest floodfilled area, here is the code i ported so far: Here, i dont know what outerbox.ptr(y) does and what is it used for. and i also don't know how can i use the CV_RGB(r, g, b) in java, using only the sdk provided by openCV. Note: i think i can use the following line as a translation for the floodfill part: but im not sure if this will give me the same results Thanks in advance for all your help, i really appreciate it ok, now i can iterate trough the image using the Get method from the Mat class, now i have an issue with the Imgproc.floodfill method, since the c++ example doesn't use a mask and the method in java needs it. i have a little idea of what the mask could be, but i don't really know how to create it so it satisfies the 2 pixel wider and 2 pixel taller condition. Again, thanks in advance |
2013-10-14 07:56:30 -0600 | commented question | Mat_<uchar> translation in java, dilating thanks a lot, that solved it, although i solved it by creating a 3x3 CV_8u matrix and putting the numbers one by one, you approach is much more elegant. |
2013-10-12 14:19:37 -0600 | asked a question | Mat_<uchar> translation in java, dilating Hello, im trying to translate this c++ code to java Mat kernel = (Mat_<uchar>(3,3) << 0,1,0,1,1,1,0,1,0); dilate(outerBox, outerBox, kernel); i figured up the dilate part, but i can't do the same with the Mat kernel object, i know that line is intended to create a 3x3 matrix of unsigned characters and fil it with 0,1,0,1,1,1,0,1,0 but i can't come up with the java equivalent of the Mat_<uchar> class, and i can't figure out how to assign 0,1,0,1,1,1,0,1,0 this vector to the matrix object thanks in advance! |