Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV for unity template matching

Hi everyone,

I am working with OpenCV unity package with Vuforia and there's this issue with familiarizing with the API of OpenCV.

I am getting Camera Frames through Vuforia's API whenever the Image target is detected. In this frame, I also get the environment around my Image Target.

What I want to do is to discard the pixels (that is environment) other than my Image Target and modify the Image accordingly.

Is there any specific method to do this? Or any method which detects the area of Image Target like any BoundingBox property of Image Target?

I think we can do this by Template Matching using OpenCV but I am not getting the right way to do it.

Kindly help if anyone knows the solution to it.

OpenCV for unity template matching

Hi everyone,

I am working with OpenCV unity package with Vuforia and there's this issue with familiarizing with the API of OpenCV.

I am getting Camera Frames through Vuforia's API whenever the Image target is detected. In this frame, I also get the environment around my Image Target.

What I want to do is to discard the pixels (that is environment) other than my Image Target and modify the Image accordingly.

Is there any specific method to do this? Or any method which detects the area of Image Target like any BoundingBox property of Image Target?

I think we can do this by Template Matching using OpenCV but I am not getting the right way to do it.

Kindly help if anyone knows the solution to it.