picturecallback

Custom camera photos are not showing in Windows Explorer

ぐ巨炮叔叔 提交于 2019-12-02 09:54:39
问题 I've followed the instructions on android's website on how to create a custom camera application and so far i made it. I've created a layout with a take a picture button and it works fine, the images are saved on the sdcard using the Camera.PictureCallback . The thing is that while I have my phone connected to the PC with a cable, if I browse to the directory where I save the images from the app, they are not showing, even if I refresh the directory. If I use them in the app for something, it

How can I add thermal effect to YUV image

为君一笑 提交于 2019-11-28 01:44:13
After googling a lot. I find a way to change Preview of a single frame. Correct me if i am wrong. camera.setPreviewCallback(new PreviewCallback() callBack let you get the frame of a Camera in byte . Now you can save it or modify it. First of all i only want to add thermal or night effect to these byte. How can i add these color(Effects) to YUV Image or byte[] data. camera.setPreviewCallback(new PreviewCallback() { @Override public void onPreviewFrame(byte[] data, Camera camera) { // TODO Auto-generated method stub Camera.Parameters parameters = camera.getParameters(); Size size = parameters

How can I add thermal effect to YUV image

柔情痞子 提交于 2019-11-26 23:33:45
问题 After googling a lot. I find a way to change Preview of a single frame. Correct me if i am wrong. camera.setPreviewCallback(new PreviewCallback() callBack let you get the frame of a Camera in byte . Now you can save it or modify it. First of all i only want to add thermal or night effect to these byte. How can i add these color(Effects) to YUV Image or byte[] data. camera.setPreviewCallback(new PreviewCallback() { @Override public void onPreviewFrame(byte[] data, Camera camera) { // TODO Auto