主权项 |
1. A method, comprising:
identifying, by the processor, a game piece color of a colored game piece to be used in an AR (augmented reality) game; generating, by the processor, an AR view of a field of play comprising thereon the colored game piece; determining, by the processor, HSV (hue, saturation and value) for view colors identified from the AR view; selecting, by the processor, hue values of the view colors that match the game piece color; generating, by the processor, respective masks corresponding to the selected hue values; unifying, by the processor, contours of at least one dominant color from one of the respective masks; identifying, by the processor, a base of the single contour; determining, by the processor, based on a location of the base in the field of play, if the respective colored game piece is positioned in conformance with game rules. |