In the $(CTRMW_MGR_ROOT)/sampledemos
directory, run omake
.
An executable file is created in $(CTRMW_MGR_ROOT)/sampledemos/MGRLibDemo/images/CTR-TS.Process.MPCore.fast ( or small )/Development/MGRLibDemo.cci
.
This GUI application uses the MGR library to perform recognition operations on images input from the camera in MGRLibDemo
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.
When the window displayed in the upper display is selected, the title portion is rendered in blue and 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.
Note: 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 | Closes the application. |
The "Start up" window appears at first, and other windows appear when operations start.
Start up Window | Displayed when the applications starts. Select either QQVGA (160 × 120) or DS LCD (256 × 192) for the operation size, and then select Start to start the operation. |
---|---|
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 MGR library's recognition results. bodynum shows the number of objects sighted; if recognition is successful, it shows the value of each object. In order from the left, it shows the number, the object's top-left coordinates, the object's bottom-right coordinates,and the center coordinates. |
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, 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. 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 MGRLib menu
- You can change the value of the configuration values (HGConfig
structure) for the MGR library.
- For more information about the values, see the mw::mgr::MGConfig structure.
MG Mode | Changes the detection mode value. |
---|---|
Frame Param | Changes the 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.
- 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 | 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 the rendering to complete. |
CONFIDENTIAL