2015-10-04 15 views
0

我正在開發一個應用程序,使用手機相機來點擊圖片。在少數手機上,拍攝的照相機圖像具有方形圖案,如圖所示。我以前使用默認的相機意圖打開相機。現在我使用https://github.com/commonsguy/cwac-cam2庫。此外,只有在縱向模式下才會出現問題,而不是在橫向模式下。從Android應用程序中的相機點擊圖像模糊,並有方形圖案遍佈它

**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); 

enter image description here

回答

0

這是因爲圖像是從電視屏幕插值。 如果你想從一張紙上拿這個圖像,例如這是不會發生的

相關問題