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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -