- 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.
推薦閱讀
- Dynamics 365 for Finance and Operations Development Cookbook(Fourth Edition)
- PostgreSQL Cookbook
- Hands-On RESTful Web Services with Go
- 用戶體驗增長:數(shù)字化·智能化·綠色化
- Apache Mahout Clustering Designs
- SQL Server 2016數(shù)據(jù)庫應(yīng)用與開發(fā)
- Express Web Application Development
- Terraform:多云、混合云環(huán)境下實現(xiàn)基礎(chǔ)設(shè)施即代碼(第2版)
- Maker基地嘉年華:玩轉(zhuǎn)樂動魔盒學(xué)Scratch
- Java Web應(yīng)用開發(fā)項目教程
- Java Web從入門到精通(第2版)
- Python 3 Object:oriented Programming(Second Edition)
- Exploring SE for Android
- R語言實戰(zhàn)(第2版)
- Java RESTful Web Service實戰(zhàn)