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

  • 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.

主站蜘蛛池模板: 徐水县| 资源县| 汉源县| 修武县| 武平县| 长乐市| 南康市| 铜山县| 新邵县| 镇雄县| 孝感市| 安溪县| 安图县| 房山区| 铜川市| 阳信县| 南丹县| 建宁县| 伊宁市| 临武县| 承德市| 青川县| 华容县| 托克逊县| 柘荣县| 林周县| 扶余县| 大足县| 临西县| 天台县| 会泽县| 邳州市| 襄城县| 资阳市| 玛曲县| 柞水县| 东丽区| 泊头市| 滦南县| 化德县| 吴桥县|