简体   繁体   English

从android应用内的“相机”中单击的图像模糊,并且整个图像上都有正方形图案

[英]Image clicked from Camera inside android app is blurred and has square pattern all over it

I am developing an app that uses phone camera to click pictures. 我正在开发一个使用手机摄像头单击图片的应用程序。 On a few phones the camera images captured has square pattern as shown in the picture. 如图所示,在几部手机上拍摄的相机图像具有正方形图案。 I was earlier using the default Camera intent for opening the camera. 我之前使用默认的“相机意图”打开相机。 Now I use the https://github.com/commonsguy/cwac-cam2 library. 现在,我使用https://github.com/commonsguy/cwac-cam2库。 Also ths problem occurs only in portrait mode and not in landscape. 同样,该问题仅在纵向模式下发生,而在横向模式下不发生。

 **strong text**photoFile = Camera.createImageFile(); Intent i=newCameraActivity.IntentBuilder(this) .skipConfirm() .facing(CameraActivity.Facing.BACK) .to(photoFile) .debug() .updateMediaStore() .build(); startActivityForResult(i, RESULT_CLICK_IMAGE); 

在此处输入图片说明

This happens because the image is interpolated from a TV screen. 发生这种情况是因为图像是从电视屏幕插入的。 If you would take this image from a paper for example this is would not happen 例如,如果您从纸上拍摄这张图片,则不会发生

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM