camera_tutorial icon indicating copy to clipboard operation
camera_tutorial copied to clipboard

Capture image was flipped horizontal and had green screen

Open AnhPC03 opened this issue 4 years ago • 6 comments

Thanks for your public code. I ran your code and had some issues that the image captured by Camera was flipped and had screen Screenshot_2021-01-07-17-20-28 Screenshot_2021-01-07-17-20-19

AnhPC03 avatar Jan 07 '21 10:01 AnhPC03

Interesting. I'll need to look into it then. It might be the C code that's causing it

ugu11 avatar Jan 09 '21 15:01 ugu11

@Hugand thanks for your fast reply. I had checked and realized that if i used android 7 or higher. It worked well excepted having green bar at the bottom, and that bar pushed the image. It seemed that the bar wasn't a part of image. If i used android 5, then the result was this issue i opened (green screen and flipped)

AnhPC03 avatar Jan 12 '21 04:01 AnhPC03

@Hugand please can take a look in that issue. I have the same issue

assanbayev avatar Mar 11 '21 11:03 assanbayev

@assanbayev Yes of course. Can you provide more details on the device you're using and the android version?

ugu11 avatar Mar 13 '21 00:03 ugu11

@Hugand Hi. Thank you for responce. On xiaomi divices image has green bottom bar. on some huawei with android 8, galaxy s20 with android 11, samsung a51 with android 10 works well. Bun on xiaomi note 8,note 9, and on some redmi with android 9,10 it has the issue. on working devices u or v array length is equal to ((y array length)/2 -1) and on not working devices there's lack of u and v array bytes. For example in working image y = 307200, u = 153599, v = 153599 and in not working image y = 168592, u = 184271, v = 184271 WhatsApp Image 2021-03-25 at 7 53 45 AM

assanbayev avatar Mar 25 '21 03:03 assanbayev

@Hugand Why there's additional bytes on xiaomi devices? I mean 480*720=345600 and its not what we have in y array 368592. I guess thats the problem

assanbayev avatar Mar 26 '21 03:03 assanbayev