官术网_书友最值得收藏!

  • OpenCV 4 with Python Blueprints
  • Dr. Menua Gevorgyan Arsen Mamikonyan Michael Beyeler
  • 193字
  • 2021-06-24 16:50:02

Planning the app

The final app will consist of the following modules and scripts:

  • gestures: This is a module that consists of an algorithm for recognizing hand gestures.
  • gestures.process: This is a function that implements the entire process flow of hand gesture recognition. It accepts a single-channel depth image (acquired from the Kinect depth sensor) and returns an annotated Blue, Green, Red (BGR) color image with an estimated number of extended fingers.
  • chapter2: This is the main script for the chapter.
  • chapter2.main: This is the main function routine that iterates over frames acquired from a depth sensor that uses .process gestures to process frames, and then illustrates results.

The end product looks like this:

No matter how many fingers of a hand are extended, the algorithm correctly segments the hand region (white), draws the corresponding convex hull (the green line surrounding the hand), finds all convexity defects that belong to the spaces between fingers (large green points) while ignoring others (small red points), and infers the correct number of extended fingers (the number in the bottom-right corner), even for a fist.

Now, let's set up the application in the next section.

主站蜘蛛池模板: 雷山县| 延吉市| 太和县| 繁峙县| 扬中市| 当涂县| 汤阴县| 勃利县| 巩留县| 舟山市| 谢通门县| 临桂县| 芜湖市| 永兴县| 五家渠市| 桐梓县| 清镇市| 新田县| 察雅县| 平顺县| 涿鹿县| 尚义县| 涪陵区| 乃东县| 谢通门县| 荆州市| 松溪县| 巴马| 南通市| 庆城县| 天柱县| 商水县| 惠水县| 顺平县| 峡江县| 碌曲县| 尚志市| 遂溪县| 油尖旺区| 福州市| 仙居县|