2018-05-01 07:12:36 -0600 | received badge | ● Notable Question (source) |
2017-09-08 13:07:51 -0600 | received badge | ● Notable Question (source) |
2016-07-13 09:55:14 -0600 | received badge | ● Student (source) |
2016-07-03 22:08:09 -0600 | received badge | ● Popular Question (source) |
2015-09-02 13:37:08 -0600 | received badge | ● Popular Question (source) |
2013-10-13 13:09:26 -0600 | commented answer | Detect faces on an image in Android OpenCV java I have checked the logcat and It says detection method is not selected. There must be something wrong with loading the cascade file. I also manage to check the imwrite when converting the img to graysacle and its worked fine. I uploaded my code for loading cascade file please take a look. Much appreciated. |
2013-10-13 01:42:35 -0600 | commented answer | Detect faces on an image in Android OpenCV java for (Rect rect : faceDetections.toArray()){ Core.rectangle(a, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height), new Scalar(0, 255, 0)); } this is suppose to draw circle on the detected faces. It worked on my opencv with java desktop. But my problem now is that highgui.imwrite does not write the image file into the sdcard. |
2013-10-12 05:13:06 -0600 | commented answer | Detect faces on an image in Android OpenCV java Thanks Daniil, I didn't notice that. I changed it to Mat a, but It still not showing the rect. I'm not sure whats wrong. I modified a little by putting the detection inside onTouch method. Please take a look, If there is any problem. Thanks again. |
2013-10-12 00:27:24 -0600 | asked a question | Detect faces on an image in Android OpenCV java When touch on the screen, this method is invoked, highgui.imwrite is suppose to overwrite the previous store into sdcard method. Then this method will create fileName for storing in external storage and takes the picture. This method takes bytes array and store into sdcard. There are 2 constructor for the class and the cascade file loaders Now I believe I have converted to type Mat with highgui.imread(directory). But now I want to able to detect faces ... (more) |
2013-10-11 08:28:52 -0600 | received badge | ● Editor (source) |
2013-10-11 07:02:16 -0600 | asked a question | convert byte array to mat in java public void onPictureTaken(byte[] data, Camera camera) { Error: Cannot invoke detectMultiScale(Mat, MatofRect) on primitive type intThe image data will be passed into this method so I can convert it to Mat so i can use the detect multi scale to detect faces on the image. But I do not know how to convert it. Any idea or suggestions is greatly appreciated. Thank you. |
2013-09-26 11:56:36 -0600 | received badge | ● Scholar (source) |
2013-09-25 12:39:32 -0600 | asked a question | Opencv for desktop Java port into Android development Hi, I have managed to do face detection in desktop using the libraries provided by opencv for java development. It includes functions like draw rectangle around the face, crop image and resize image. Is it possible to port into android? Are the methods to open camera, grab and retrieve image the same as in android? Besides that, is loading the opencv library different as well? Or do I have to do everything from scratch again in android? Thanks in advance. All answers are welcome and much appreciated. |