Sample Demos

Running Sample Demos

Navigate to the $(CTRMW_HGR_ROOT)/sampledemos directory and run omake.
An executable file is created in $(CTRMW_HGR_ROOT)/sampledemos/HGRLibDemo/images/CTR-TS.Process.MPCore.fast ( or small )/Development/HGRLibDemo.cci.

Overview

This GUI application uses the HGR library to perform recognition operations on images input from the camera in HGRLibDemo and show the results.
The top portion of the display shows the windows, while the bottom portion of the display shows the input image and the recognition results.

How to Use

When the window displayed in the upper display is selected, the title portion is rendered in blue and it is displayed at the front.
When the selected window is changed with the L/R Buttons and the Menu window is selected, the value can be changed by selecting the item with the Up/Down Buttons and changing the value with the A/B Buttons.
Also, the changed value is reflected immediately.

Up/Down Buttons Moves the cursor position up or down when the Menu window is selected.
A Button Changes the item selected with the cursor when the Menu window is selected.
B Button Changes the value of the item selected with the cursor when the Menu window is selected.
L/R Buttons Shows or hides the selected window.
Y Button Closes the application.

Contents of Each Window

The Start up window appears at first, and other windows appear when operations start.
Start up Window Displayed when the applications starts.
Select either VGA (640 × 480) or QVGA (320 × 240) for the process size, and then select Start to start the process.
Menu Window Makes various settings, such as for the library or the camera.
Debug Timer Window Checks the processing time of the various processes.
In order from the left, the process title name, process time (milliseconds), and overall percentages are displayed.
Also, a process that exceeds 10% of the overall percentage is displayed in red.
Result Window Enables you to check the HGR library's recognition results.
feanum shows the number of objects sighted; if recognition is successful, it shows the value of each object.
Starting from the left, it shows the number, the fingertip coordinates, direction, and length.

Menu Window Sub-item - Setting Application Menu
- You can change the configuration values related to the application.
Hand Gesture You can select whether to use the library.
When on, HGR processing is performed in each frame; when off, nothing is done.
Draw Quality Selects the render quality of the camera image displayed in the lower window.
When 1 is selected, the input image is left as is. When 2 is selected, the input image is converted to 1/2 size. When 3 is selected, the input image is converted to 1/4 size. Then the texture for rendering is created.
When the display image is larger, the rendered precision is higher but more processing time is required.
Note: Only rendering is changed by this setting. It has no bearing on the images processed by the library.
Exit Returns to the Main menu.

Menu Window Sub-item - Setting HGRLib menu
- You can change the value of the configuration values (HGConfig structure) for the HGR library.
- For more information about the values, see mw::hgr::HGConfig Structure.
HG Mode Changes the detection mode value.
Numb Param Changes the number of fingers to recognize.
Angle Param Changes the detection direction.
MinLen Param Changes the minimum finger value for fingers.
MaxLen Param Changes the maximum finger value for fingers.
Exit Returns to the Main menu.

Menu Window Sub-item - Setting Camera Menu
- You can change the configuration values related to the H camera.
- For more information about the values, see the nn::camera::CTR namespace in the SDK Function Reference.
Exit Returns to the Main menu.

Debug Timer Window display items
- Displays the time taken by each process in milliseconds.
recv camera Displays the time taken to get the image from the buffer.
create cimg Not currently used.
Proc exec Displays the processing time of the HGRLib recognition function.
draw disp0 Displays the time to render the upper display.
create texture Displays the time to create the texture to display the input image.
draw disp1 Displays the time to render the lower display.
other Displays the time taken for other processes.
swap buffer Displays the process time while waiting for the rendering to complete.

Revision History

2014/05/28
Initial version.

CONFIDENTIAL