摘要 |
A method, a system, and a computer program product for providing augmented reality based on marker tracking are provided. In the method, an image is captured by an image capturing unit, and whether a quadrangle is present in the image is determined. If the quadrangle is found in the image, whether the quadrangle is a marker that complies with a marker definition is determined. If the quadrangle is the marker, an identity of the marker and four vertice coordinates of a marker image are identified. A rotation state of the marker is determined according to the vertex coordinates of the marker image, and a relative displacement between the marker and the image capturing unit is calculated. A three-dimensional object is combined into the image according to the relative displacement, the rotation state, and the identity of the marker, so as to provide an augmented reality image.
|