Open PPPiotr opened 7 years ago
Same issue with me also .... have you solved this problem?
No, I'm using smaller resolution instead.
Same issue...could be an AVFoundation issue?
not perfect point find face ...
Has anyone figured out why this issue arises yet? It's affecting me as well
Any solution, guys?
DlibWrapper.mm L57
size_t width = CVPixelBufferGetBytesPerRow(imageBuffer)/4;
same as below
size_t width = 1088;
worked on ipad pro front camera. (1080x1920)
There is a strange problem with this lib when working on images with resolution 1080x1920 (WIDTHxHEIGHT). It produces artefacts like this: Not only drawing is corrupted but also points positions.
To reproduce this bug You only need to add this:
Just before
session.commitConfiguration()
infunc openSession()
. Not every device will be able work in this resolution in front camera, so changing to back camera might help.Smaller images with resolution 720x1280 and 1280x720 works fine (I did not check smaller images than 720x1280). Even 2160x3840 and 3840x2160 works fine, so there is something wrong only with resolution 1080x1920. On other hand resolution 1920x1080 works correctly but it is for landscape and I need portrait orientation. So for now I'm using:
session.sessionPreset = AVCaptureSessionPreset1280x720
Do You know what could be wrong?