主权项 |
1. An interactive operation method of an electronic apparatus, the interactive operation method comprising:
capturing an image sequence by an image capturing unit; executing an image pre-processing on an image of the image sequence; obtaining a fingertip candidate region from the image; determining whether the fingertip candidate region is connected with a hand region; designating the fingertip candidate region as a target fingertip region if the fingertip candidate region is connected with the hand region; determining whether a click event occurs by continuously tracking the target fingertip region; and executing a corresponding function in the electronic apparatus when the click event occurs, wherein the step of determining whether the fingertip candidate region is connected with the hand region comprises:
obtaining a center point of the fingertip candidate region as a reference point;obtaining a first side point, a second side point, a third side point, and a fourth side point respectively in four directions of the reference point, wherein the first side point, the second side point, the third side point, and the fourth side point are located outside the fingertip candidate region;obtaining a first depth value, a second depth value, a third depth value, and a fourth depth value of the first side point, the second side point, the third side point, and the fourth side point respectively from depth information of the image;determining whether the first depth value, the second depth value, the third depth value, and the fourth depth value are larger than 0;determining that the fingertip candidate region is connected with the hand region in a situation that only one of the first depth value, the second depth value, the third depth value, and the fourth depth value is larger than 0; anddetermining that the fingertip candidate region is not connected with the hand region in other situations. |