HGR Overview

Introduction

The HGR library provides applications with the functionality to recognize hand gestures.

The HGR library provides applications with the following functionality.

  • Recognizes fingers in an image and detects the position of the fingertips, and the direction and length of the fingers.
  • Basic Specifications

    Input Image Format YUV4:2:2 Color data
    Size 640 × 480 or 320 × 240 (pixels)
    Finger detection conditions Finger length 50 to 350 (pixels)
    Number of fingers Maximum of 10
    Finger direction 0 to 360 (degrees)
    Memory resources

    ROM: 278 KB (code and data)
    RAM: 2687 KB
    Work memory: 520 KB (for 640 × 480 images)

    Restrictions

    Images that meet the following conditions cannot be recognized.

  • Hands that are wearing gloves
  • Fingers that are bent
  • Images that are blurry because the focus was off or the finger was not still when the image was taken, or fingers without clearly discernible contours.
  • Using the Library

    Include the hgr.h header file in applications, and link to the libmw_hgr.*.a library.

    An application first calls the function to get working memory and gets the working memory required by the recognition engine. After that, the application allocates the working memory and calls the initialization function. After initialization is finished, the application repeatedly calls the recognition function.

    Implementation Notes

  • The working memory required by the recognition engine must be allocated on the application side.
  • Do not deallocate the working memory until the recognition process is no longer performed.

  • This library is not re-entrant and cannot be used at the same time by multiple applications or threads.
  • Revision History

    2014/05/28
    Initial version.

    CONFIDENTIAL