Is there is any way to set pixels on cameraPreview, like getting pixel or some other ways?
My requirement: I want to put some pixels on a particular positions on camera preview or convert some pixel value of some points in camera preview into another value.
Is there is any way to set pixels on cameraPreview, like getting pixel or
Share
I have solved this issue by placing a custom view in front of the surface view, on each
PreviewCallbackI draw an image and set it as background of that custom view. It feels drawing pixels on camera preview.I dont know this is the actual method, if I get optimal solution I will update hereCustom view
Create camera activity implements
PreviewCallbackTo set custom view infront of surfaceview
In
onPreviewFrameyou can do code for creating image according to preview display and set that image as background of the custom view.