Log in or register to post comments

Vuforia provides red texture on Android

May 13, 2020 - 6:13pm #1

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

AttachmentSize
Image icon red2.jpg77.43 KB

Vuforia provides red texture on Android

March 6, 2021 - 11:12am #6

How did you fix it later?

Vuforia provides red texture on Android

May 29, 2020 - 10:36am #5

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. So in Unity there should be an override for passing in a texture format when you first create the temp texture just try a few different texture formats I don't remember exactly which one worked for me at this point.

Vuforia provides red texture on Android

May 16, 2020 - 3:30am #4

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. If I try to access the texture (from VideoBackground or from Cube I created by your example, it is still red.

Any other advice? 

Thanks

Vuforia provides red texture on Android

May 14, 2020 - 1:51am #3

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

Vuforia provides red texture on Android

May 14, 2020 - 1:11am #2
Log in or register to post comments