"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Vuforia provides red texture on Android

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,

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

ODDT

Thu, 05/14/2020 - 08:51

In reply to by mcotora

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

ODDT

Sat, 05/16/2020 - 10:30

In reply to by mcotora

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.

livinghistory

Fri, 05/29/2020 - 17:36

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.

Attachment