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

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.

主站蜘蛛池模板: 买车| 颍上县| 四会市| 娱乐| 青海省| 敦煌市| 宾川县| 府谷县| 固安县| 武定县| 北流市| 五指山市| 汶上县| 南投市| 富平县| 阳江市| 山东省| 伊金霍洛旗| 四子王旗| 佛学| 柯坪县| 郓城县| 仙桃市| 清徐县| 顺义区| 策勒县| 常州市| 瑞安市| 仁怀市| 三明市| 化州市| 宜兴市| 资溪县| 河池市| 墨竹工卡县| 闸北区| 诏安县| 内江市| 镇康县| 昌图县| 牙克石市|