How to push points to array

asked 2016-06-08 01:44:40 -0600

Oxenden gravatar image

Hello ! I want to make Braille's translator. Letter in Braille is in an array[2][3]. For example: image description

I want to find points where dots are which make a letter and then push it to two dimensional array to compare it with arrays which contain schema of letters in the same way and save found letter to file.

I have a problem because I don't know how to push found dots to array in proper way. Is there any solution or function to make this ?

I write in C++.

edit retag flag offensive close merge delete

Comments

Following your example image, just make a 3x2 Mat of type 8UC1, initialize it to 255 (white), and set to 0 (black) the coordinates <row, col=""> that correspond to a dot

LorenaGdL gravatar imageLorenaGdL ( 2016-06-08 05:15:46 -0600 )edit

I don't exactly know if you understand my intentions. I want to read Braille image and then detect where dots and push to array to compare it. Actually, Im new in OpenCV and maybe I don't understand properly your comment.

Oxenden gravatar imageOxenden ( 2016-06-08 16:06:50 -0600 )edit

I have a problem because I don't know how to push found dots to array in proper way - I did understand you, but you said you had problems in pushing to array already found results. If you don't even know how to find/identify the dots, well that's a totally different issue.

LorenaGdL gravatar imageLorenaGdL ( 2016-06-08 17:11:59 -0600 )edit

Yes, my bad, but thank you for responding me. I think that your idea for pushing dots coordinates to array is also the hint how to find them.

Oxenden gravatar imageOxenden ( 2016-06-09 04:47:21 -0600 )edit