Log in or register to post comments

detecting black and white or color on marker

January 21, 2020 - 7:21am #1

Hi there. I wonder, can the system detect the paper (marker) with black & white or color? If can detect, How can I integrate it?

 

if(paper is black and white)

{

 the paper is black and white

}

else

{

  the paper is color.

}

detecting black and white or color on marker

January 21, 2020 - 9:49am #2

No it can't, Vuforia only sees in grayscale.  This is what I'd try, first get the camera frame:

https://library.vuforia.com/content/vuforia-library/en/articles/Solution/Working-with-the-Camera.html

Scale it down, maybe 100x100 pixels or less, then average the color across all the pixels.

Then experiment and find a black/white vs color threshold.

Put your check for color in OnTrackingFound.

 

Log in or register to post comments