PoseEstimation-CoreML icon indicating copy to clipboard operation
PoseEstimation-CoreML copied to clipboard

AVLayerVideoGravity.resizeAspectFill

Open CoderBt opened this issue 5 years ago • 4 comments

if I set AVLayerVideoGravity.resizeAspectFill,then pose is wrong; what can I do ?please help me!

CoderBt avatar Jun 18 '19 10:06 CoderBt

Can you give me some screenshots? And If you tell me more detail about the "wrong", I can help you.

tucan9389 avatar Jun 18 '19 10:06 tucan9389

request?.imageCropAndScaleOption = .scaleFill; vsessionPreset: .iFrame960x540; previewLayer.videoGravity = AVLayerVideoGravity.resizeAspectFill; UNADJUSTEDNONRAW_thumb_22a UNADJUSTEDNONRAW_thumb_22b

if I change these property,the pose predicted will change; I wish predict keypoint under the full screen ;please help me,my English is poor,haha!

CoderBt avatar Jun 18 '19 11:06 CoderBt

@tucan9389 please give me some suggests,thank you;

CoderBt avatar Jun 19 '19 03:06 CoderBt

It looks like a conversion issue. You can check the conversion calculation on DrawingJointView.swift and definition of aspectFill option. If you have more question, comment below.

tucan9389 avatar Jun 19 '19 09:06 tucan9389