2020-07-22 00:44:27 -0600 | received badge | ● Student (source) |
2019-08-23 17:55:06 -0600 | received badge | ● Popular Question (source) |
2015-05-10 10:05:05 -0600 | commented answer | Android app Force closed by memory leak I was try to allocate Mat only once,but fault(maybe i'm do something wrong) Now i solve the problem of memory leak by the command System.gc |
2015-05-09 11:06:02 -0600 | received badge | ● Supporter (source) |
2015-05-09 02:36:39 -0600 | asked a question | Android app Force closed by memory leak Hey everyone. I'm trying to build a app,which can detect red color form input image , and do Hough line transform ,after sent the result to screen. i think i finish the program,but the program will be Force closed,about every 30~50 sec. i'm using opencv 2.4.10 (for android),and eclipse to build the program; the program is revised from the OPENCV sample "example-tutorial-1-camerapreview", and i revised "public Mat onCameraFrame(CvCameraViewFrame inputFrame) " into below I think " Core.inRange(sourceimage, new Scalar(50, 70, 100), new Scalar(150, 250, 250), filter2);" will cause the program Force closed,because when i trying to avoid program Force closed,i have removed "Core.inRange(sourceimage, new Scalar(50, 70, 100), new Scalar(150, 250, 250), filter2);" from program,though program can't show image to screen ,but the program won't be Force closed. Does anyone know how to solve this problem? maybe the problem is not caused by "Core.inRange" finally ,i'm apology about my poor English,and thanks for your response. |