How to create a simple custom camera

0 votes
asked May 27, 2020 by roarmot (170 points)
I'm trying to create a simple custom camera. I want to pass in my own image (byte array) to be processed by EasyAR. I've used the Custom Camera sample as a starting point, and I can take the pixels from Unity's WebCamTexture and pass them into the ImageFrameSink. The video background renders correctly, so I am confident the data is getting passed through.

However, although my ImageTarget is detected its content does not appear. I can see the GameObject becomes active, but in the Unity editor scene view I can see it is on the back of the target rather than the front. Something is flipped around. I have tried various settings but I'm unable to get the content to display correctly. Any ideas? Thanks.

Please log in or register to answer this question.

Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.