2014-08-12 08:05:52 -0600 | received badge | ● Editor (source) |
2014-08-12 04:34:28 -0600 | received badge | ● Student (source) |
2014-08-12 04:25:10 -0600 | asked a question | Resize the camera stream Hi, I'm trying to resize the camera stream in my android app. The default size is 720x480, and i want to rescale at the minimum supported size which is 320x240. My solution keeps the old aspect ratio, and don't find a way to redefine the new ratio. Does anyone know a solution? I use the bellow method to retrieve the matrice. Thanks, |
2014-07-25 10:12:18 -0600 | asked a question | Android - How get Mat from camera ? I'm trying to retrieve images (Mat) from camera on android device, and I have some problems. I first tried to use VideoCapture class with VideoCapture.read(Mat) method but i get error 11 (SIGSEGV) when i open the camera. I think this bug is caused by hardware camera management because it works on emulator/webcam. So, to avoid this bug, i choose to use CameraBridgeViewBase class. And the listener method. It works, I get a Mat for each frame displayed but I would like to hide the preview. I also have a ratio problem with Mat when I change the maxFrameSize (commented code). I have to minimize image size to improve image processing. The default size is 720x480 (ratio 3:2). My size is the minimum supported size : 320x240 (ratio 4:3). Do you have any idea to solve my problems ? |