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

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.

主站蜘蛛池模板: 建瓯市| 洮南市| 河间市| 团风县| 富裕县| 陇川县| 锡林浩特市| 衡南县| 江北区| 株洲市| 桐乡市| 砚山县| 屯留县| 县级市| 任丘市| 子长县| 遵义县| 西丰县| 邮箱| 龙井市| 黎平县| 麻城市| 加查县| 磐石市| 怀来县| 双峰县| 北安市| 龙江县| 靖安县| 张北县| 达日县| 铁岭县| 社会| 东辽县| 雷州市| 石城县| 和平区| 安溪县| 印江| 连江县| 环江|