java - How to get a camera preview's pixels in Android? -
i want know how array of pixels preview webcam (which run in service). i've heard preview has displayed on surface, there no surface if use service.
i new android development, sorry misconceptions.
thanks.
parameters parameters = camera.getparameters(); display display = ((windowmanager)getsystemservice(window_service)).getdefaultdisplay(); if(display.getrotation() == surface.rotation_0) { parameters.setpreviewsize(640, 480); camera.setdisplayorientation(90); } camera.setparameters(parameters); camera.setpreviewdisplay(camerasurfaceholder); camera.startpreview(); previewing = true;
Comments
Post a Comment