主权项 |
1. A method of generating 3D coordinates, comprising:
acquiring a target image including a finger region with a camera of a terminal; detecting the finger region in the target image using a morphological gradient image including maximum morphological gradients among R channel, G channel and B channel at each pixel of the target image; detecting a fingertip region in the finger region; and calculating 3D coordinate values using the fingertip region, wherein the detecting of the finger region comprises: detecting the morphological gradient image from the target image using RGB gradient information; detecting a finger image resulting from removing a background from the target image using YCbCr color information; and combining the morphological gradient image with the finger image to detect the finger region, wherein the detecting of the morphological gradient image comprises combining pixels with the maximum morphological gradients with each other with respect to individual R, G, and B channels using the following equation:MMGC=∑heightj∑iwidthmax(MGr(j,i),MGg(j,i),MGb(j,i)), where i and j represent pixel coordinates, MGr represents pixels with a maximum morphological gradient in the R channel, MGg represents pixels with a maximum morphological gradient in the G channel, and MGb represents pixels with a maximum morphological gradient in the B channel. |