UVCCamera icon indicating copy to clipboard operation
UVCCamera copied to clipboard

Need to crop dead lines ?

Open benjarn374 opened this issue 2 years ago • 0 comments

At the bottom of my preview i end up with 4 green lines of pixels it is a normal behavior (because camera support only this requestHeight).

But i need to remove those 4 lines :

  • i made a hack in UVCPreview.cpp / copyFrame() to NOT copy the last green lines, basicaly for this specific height i am changing the height : if(height == 292){ LOGD("CPP_HACK HIDING GREEN PIXELS: %d / %d",width,height); height = 288; }

but it's not a cropping solution...

Does anybody has crop a preview in a simple way allready (without openCV i mean) ?

benjarn374 avatar Oct 07 '22 10:10 benjarn374