Closed CarlosEco closed 5 years ago
The issue template is important - please don't delete it.
Specifically:
For this case, check the resolution sizes in the the logs (adb logcat). The relevant section should look something like this:
I/PreviewScalingStrategy: Viewfinder size: 1920x1080
I/PreviewScalingStrategy: Preview in order of preference: [1920x1080, 1280x720, 1280x960, 864x480, 768x432, 800x480, 720x480, 640x480, 576x432, 480x320, 384x288, 352x288, 320x240, 240x160, 176x144, 160x120]
I/CameraManager: Final camera parameters: 4k2k-video-snapshot-supported=false;ae-bracket-hdr=Off;ae-bracket-hdr-values=Off,AE-Bracket;antibanding=off;antibanding-values=off,60hz,50hz,auto;auto-exposure=frame-average;auto-exposure-lock=false;auto-exposure-lock-supported=true;auto-exposure-values=frame-average,center-weighted,spot-metering,center-weighted,spot-metering-adv,center-weighted-adv;auto-hdr-supported=true;auto-whitebalance-lock=false;auto-whitebalance-lock-supported=true;avtimer=disable;brightness-step=1;camera-mode=0;contrast=5;contrast-step=1;denoise=denoise-off;denoise-values=denoise-off,denoise-on;dis=disable;dis-values=enable,disable;effect=none;effect-values=none,mono,negative,solarize,sepia,posterize,whiteboard,blackboard,aqua,emboss,sketch,neon;exposure-compensation=0;exposure-compensation-step=0.166667;face-detection=off;face-detection-values=off,on;flash-mode=off;flash-mode-values=off,auto,on,torch;flip-mode-values=off,flip-v,flip-h,flip-vh;focal-length=3.86;focus-areas=(0, 0, 0, 0, 0);focus-distances=Infinity,Infinity,Infinity;focus-mode=auto;focus-mode-values=auto,infinity,macro,continuous-video,continuous-picture,manual;hdr-need-1x=false;hdr-need-1x-values=false,true;hfr-size-values=1920x1080,864x480,864x480;histogram=disable;histogram-values=enable,disable;horizontal-view-angle=62.4;internal-restart=true;iso=auto;iso-values=auto,ISO_HJR,ISO100,ISO200,ISO400,ISO800,ISO1600,ISO3200;jpeg-quality=85;jpeg-thumbnail-height=288;jpeg-thumbnail-quality=85;jpeg-thumbnail-size-values=512x288,480x288,256x154,432x288,320x240,176x144,0x0;jpeg-thumbnail-width=512;lensshade=enable;lensshade-values=enable,disable;long-shot=off;longshot-supported=true;luma-adaptation=3;manual-exposure-modes=off;manual-focus-modes=off;manual-wb-modes=off,color-temperature,rbgb-gains;max-brightness=6;max-contrast=10;max-exposure-compensation=12;max-exposure-time=0.000000;max-focus-pos-dac=1023;max-focus-pos-diopter=0;max-focus-pos-index=1023;max-focus-pos-ratio=100;max-iso=0;max-num-detected-faces-hw=5;max-num-detected-faces-sw=5;max-num-focus-areas=1;max-num-metering-areas=5;max-saturation=10;max-sce-factor=100;max-sharpness=36;max-wb-cct=8000;max-wb-gain=4;max-zoom=78;mce=enable;mce-values=enable,disable;metering-areas=(0, 0, 0, 0, 0);min-brightness=0;min-contrast=0;min-exposure-compensation=-12;min-exposure-time=0.000000;min-focus-pos-dac=0;min-focus-pos-diopter=0;min-focus-pos-index=0;min-focus-pos-ratio=0;min-iso=0;min-saturation=0;min-sce-factor=-100;min-sharpness=0;min-wb-cct=2000;min-wb-gain=1;num-snaps-per-shutter=1;picture-format=jpeg;picture-format-values=jpeg,bayer-mipi-10rggb,bayer-ideal-qcom-10rggb,bayer-qcom-10rggb,yuv422sp;picture-size=320x240;picture-size-values=4160x3120,4000x3000,3264x2448,3200x2400,2592x1944,2048x1536,1920x1080,1600x1200,1280x960,1280x768,1280x720,1024x768,800x600,800x480,720x480,640x480,320x240;preferred-preview-size-for-video=1920x1080;preview-flip=off;preview-format=yuv420sp;preview-format-values=yuv420sp,yuv420p,nv12-venus;preview-fps-range=7500,30000;preview-fps-range-values=(7500,30000);preview-frame-rate=30;preview-frame-rate-values=8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30;preview-size-values=1920x1080,1280x960,1280x720,864x480,800x480,768x432,720x480,640x480,576x432,480x320,384x288,352x288,320x240,240x160,176x144,160x120;qc-camera-features=34175;qc-max-num-requested-faces=5;raw-size=4208x3120;redeye-reduction=disable;redeye-reduction-values=enable,disable;saturation=5;saturation-step=1;sce-factor-step=10;scene-detect=off;scene-detect-values=off,on;scene-mode=auto;scene-mode-values=auto,asd,landscape,snow,beach,sunset,night,portrait,backlight,sports,steadyphoto,flowers,candlelight,fireworks,party,night-portrait,theatre,action,AR,hdr;see-more=off;see-more-values=off,on;selectable-zone-af=auto;selectable-zone-af-values=auto,spot-metering,center-weighted,frame-average;sharpness=12;sharpness-step=6;skinToneEnhancement=0;skinToneEnhancement-values=enable,disable;smooth-zoom-supported=false;snapshot-picture-flip=off;supported-live-snapshot-sizes=4128x30
I/CenterCropStrategy: Preview: 1080x1920; Scaled: 1080x1920; Want: 1080x1920
The most likely issue is that a suitable preview size isn't found, but the logs should confirm whether that is the case.
I´m not using this library, sorry I was wrong
Hi, i´m using ZXingScannerView and screen looks blurry only in some huawei devices like you can see in this image:
https://s50.photobucket.com/user/CarlosEco/media/IMG_20190927_123724_zps4q8dlvmb.jpg.html
The library import is:
The tag that i´m using on my xml is: