Ask Your Question

Azwan's profile - activity

2017-09-26 07:24:16 -0600 received badge  Student (source)
2014-01-19 09:30:09 -0600 commented question Converting threshold image to binary data

thank you. i will try that. i need the binary value for my own neural network text recognition input.

2014-01-19 09:05:25 -0600 commented question Converting threshold image to binary data

sorry for the lack of details. i actually need to convert the threshold image as a binary value and save it to a text file

2014-01-19 09:03:49 -0600 received badge  Editor (source)
2014-01-19 08:54:51 -0600 commented question Converting threshold image to binary data

i did this:

Imgproc.threshold(picture1, picture2, 127, 1, THRESH_BINARY);

but then how do i save the text file?

2014-01-19 08:13:08 -0600 commented question Converting threshold image to binary data

What do you mean? does it directly threshold it to binary?

2014-01-19 08:03:43 -0600 asked a question Converting threshold image to binary data

I have a 19x19 image which have already been thresholded. now i need to read every pixel and determine if its black than output it as 1, if its white than output it as 0. please help ASAP. any help would be much appreciate.

Edited:

I need to output the binary to a text file

2014-01-18 10:20:45 -0600 asked a question Resizing image in opencv4android

How do i resize an image in opencv4android. please help. this is my code

public void onManagerConnected(int status) { 
switch (status) { 
case LoaderCallbackInterface.SUCCESS: 
{ 

/* Now enable camera view to start receiving frames */ 
File pictureFile = getOutputMediaFile(); 
img = Highgui.imread(pictureFile.getAbsolutePa... 

roi = new Rect(0, 0, 1920, 1920); 
cropped = new Mat(img, roi); 

Highgui.imwrite(pictureFile.getAbsolut... cropped); 

(Toast.makeText(getApplicationContext(... "Process Done !", Toast.LENGTH_LONG)).show(); 

} break; 
default: 
{ 
super.onManagerConnected(status); 
} break; 
} 
} 
};

As you see in the code, i already cropped the image. It produce a 1920x1920 image. Please give me the exact coding to resize the produced image to 171x171