Sample Demos

Running Sample Demos

Go to the $(CTRMW_MGR_ROOT)/sampledemos directory and run omake. An executable file will be created in $(CTRMW_MGR_ROOT)/sampledemos/MGRLibDemo/images/CTR-TS.Process.MPCore.fast ( or small )/Development/MGRLibDemo.cci.

Overview

MGRLibDemo is a GUI application that processes image input from the cameras for recognition, using the MGR library, and then displays the results.
The upper display shows each type of window, and the lower display shows the input image and 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 in 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. 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 Toggles the selected window.
Y Button Finalizes the application.

Content of each Window

The Start up window is displayed when starting up. When processing begins, other windows are displayed.
Start up Window Displayed when the application starts.
Select a process size of QQVGA (160x120) or DS LCD (256 x 192), and begin processing by selecting Start.
Menu Window Settings for libraries or cameras can be performed.
Debug Timer Window Processing times for each process can be confirmed.
In order from the left: the process title name, process time (milliseconds), and overall percentages are displayed. A process that exceeds 10% of the overall percentage is displayed in red.
Result Window MGR library recognition results can be confirmed.
When the visually confirmed number of objects is displayed in bodynum and recognition succeeds, the value of each object is displayed.
From the left: the number, the upper left coordinates of the object, the lower right coordinates of the object, and the center coordinates are displayed.

Menu Window Sub-item - Setting Application Menu
- The configuration values related to the application can be changed.
Motion Gesture You can select whether to use the library.
When on, MGR 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, and 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: This setting changes only the rendering and is not related to the image processed by the library.
Exit Returns to the Main Menu.

Menu Window Sub-item - Setting MGRLib menu
- You can change the value of the configuration values (HGConfig structure) for the MGR library.
- See mw::mgr::MGConfig Structure for details on the values.
MG Mode Changes the recognition movement mode value.
Frame Param Changes the value for difference sensitivity between frames.
Speed Param Changes the speed sensitivity value.
Skin Param Changes the value of the flesh-color filter.
Exit Returns to the Main Menu.

Menu Window Sub-item - Setting Camera Menu
- You can change the configuration values related to the H camera.
- See the nn::camera::CTR Namespace in the SDK Function Reference for details on the values.
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 Displays the processing time to create a Cimg image for MGRLib from the input image.
Proc exec Displays the processing time of the MGRLib 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 rendering to complete.

Revision History

2011/11/21
Version 1.0.9
  • Added detailed content about the sample demo

  • CONFIDENTIAL