"SECTION II.Methodology The whole process of hand gesture recognition contains five…
- User
"SECTION II.Methodology The whole process of hand gesture recognition contains five elements: data acquisition, dataset collection, preprocessing, feature extraction and classification. The workflow for hand gesture recognition is illustrated in Fig. 1. A. Data Acquisition The collected data are used for model training. The configuration of the computation unit uses Anaconda Spyder, Python 3.8 version and runs on MacOS PC with a dual-core Intel i5 1.6 GHz CPU and 16.0 GB of RAM. Data acquisition must be conducted with a leap motion controller for training the model for hand gesture recognition. By connecting a leap motion controller to the computer, it offers an API that enables the user to acquire information about hands and fingers, such as palm center position, fingertips position, hand sphere radius and so on. As the input sensor device, 3D real time hand gestures performed and captured by the controller will then translate into a 3D spatial skeleton [1]. The geometry, entire movement of the detected hand posture, vectors like the rotation and position of fingers and hands and joints in 3D coordinates can be contained.
B. Dataset Collection A dataset is collected under unconstrained environments such as different backgrounds, varying light intensity, skin color, hand shape, size, and geometry. The preformed hand gestures are obtained with the leap motion controller hardware. The custom dataset is loaded with 1600 samples with 5 different classes shown in Figure 4.1, where each class has an average of 320 images. 4-fold cross validation is applied, and the pixel size is 100×100. The train and test data account for 67% and 33% of the dataset, respectively.
C. Pre-Processing Pre-processing may have an impact on the recognition result. It can partly remove the noise from the obtained data in order to increase the accuracy of hand gesture recognition. In this phase, the images from the selected dataset should be applied for image segmentation and hand extraction that aims to prepare for further handling. Image processing, like converting images to grayscale images, skeletonize and resizing, are performed by the algorithms.
Skeletonization is also recognized as a result of the thinning processing. It is a significant procedure in the pre-processing stage that is enabled to remove pixels on the object margins in a binary image. The action of peeling the object contour continues until it achieves the most medial 1 pixel width or no more pixels can be removed [6]. In order to facilitate the accurate and fast image processing, skeletonization should be used.
The skeletonization algorithms are from OpenCV. OpenCV which is the Open-Source Computer Vision Library to conduct pre-processing. It is a library of programming functions basically aimed at real-time computer vision. A binary image is an image with the pixel value of between 0 to 255, where 0 indicates pure black and 255 represents pure white.
Images from the dataset are resized into 100 x100 pixels. In most of the cases, a digital image is a 2D plane of pixels that obtains the width and height. In the hope of resizing an image, the code of resize is (x,x), given the specified width and height.
- Assistant