Vuforia creates BackgroundPlane with rendered Video background. I need to take this background and use it as image for OCR engine.
If I test it in Editor, all works fine. But when I try to take this texture, It has some red hue. It is problem, becuase I need fully colored texutre to apply some grafic filters to prepare image to OCR. Red color absolutely destroys my Threshold algorithm.
All worked fine even with Vuforia 7, then I needed to upgrade to 8, now to 9.1.
I have already seen this article, that says something about deleting some Vuforia folder.
https://developer.vuforia.com/forum/issues-and-bugs/solved-red-tinted-camera
I tried to delete everything about Vuforia and import it all again, but without a luck.
I'm not doing anything else then taking texture from renderer of BackgroundPlane and displaying it.
tempTexture = BackgroundPlane.material.mainTexture as Texture2D;
I would be glad for any response or tip to fix this.
Tested on multiple devices.
Images:
http://oddtgames.cz/tests/red1.jpg
http://oddtgames.cz/tests/red2.jpg
Thanks in Advance
Hi,
Hi,
Please go over below thread:
https://developer.vuforia.com/forum/unity/suggested-workaround-when-accessing-unity-materials-interferes-background-texture-updates
Thank you.
Vuforia Engine Support
Ok, this solution seems far
Ok, this solution seems far fetched, but ok. I'll look into it. Just tell me. In this thread is mentioned only vuforia 8.1 and 8.3. What about 9.1? Does it work the same?
Thanks
So I tried to do everything
So I tried to do everything by this workaround, but it is created to use Background video as a texture for another Renderer, It works fine, without red. But the the thing I need is to take the current image (like a screenshot) and use it as an image to OCR.
I don't know if this will
I don't know if this will help or not cause I don't remember exactly what I did but I had this issue once before and I had to change the texture format of my temp texture I was copying the camera feed into.
How did you fix it later?
How did you fix it later?