Closed icefox57 closed 6 years ago
i find out why . ARKit output pixelbuffer with kCVPixelFormatType_420YpCbCr8BiPlanarFullRange and we need 32BGRA.
Ah yes, easiest way to handle this is to add a compute kernel that converts YUV (2 textures) to RGBA (1 texture).
@hollance thank u ,and how can i do that ? any tips may help me a lot .
i tried use yolo in ARKit. i have implanted your code.
call predict in seesion delegate
and convert texture with CVPixelBuffer instead SampleBuffer
because arkit run camera with full screen ,and output 1280X720 so i changed height to 16/9
it can run . But not effect right . same bottle ,it can recog in your demo . but can't in my.
where am i missing ? please help me