PRC Demos

# Pattern Recognition Demo

## Location

`$TwlSDK/build/demos/prc`

## Compilation

Move to the `$TwlSDK/build/demos/prc` directory and enter the following:

> `% make`

Compiling will begin, and the SRL executable file and the NEF or TEF files having binary information will be generated in `$TwlSDK/build/demos/prc/(sample name)/bin/(platform)/(target)/`.

For example:

> `$TwlSDK/build/demos/prc/characterRecognition-1/bin/ARM9-TS/Release/main.srl`

will be the executable file for the `characterRecognition-1` demo.

## Execution

### For NITRO ROMs

If using the Ensata emulator:

- Execute NEF and SRL files with ensata

If using IS-NITRO-DEBUGGER:

- Load and execute an NLF file with IS-NITRO-DEBUGGER
- Execute an SRL file with IS-NITRO-DEBUGGER
- Execute an SRL file with IS-NITRO-DEBUGGER using the `loadrun.exe` tool from a command line

If using IS-TWL-DEBUGGER:

- Load and execute an NLF file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER using the `loadrun.TWL.exe` tool from a command line

### For TWL/NITRO Hybrid ROMs

If using IS-NITRO-DEBUGGER:

- Execute an SRL file with IS-NITRO-DEBUGGER
- Execute an SRL file with IS-NITRO-DEBUGGER using the `loadrun.exe` tool from a command line

If using IS-TWL-DEBUGGER:

- Load and execute a TLF file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER using the `loadrun.TWL.exe` tool from a command line

### For TWL Limited ROMs

If using IS-TWL-DEBUGGER:

- Load and execute a TLF file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER using the `loadrun.TWL.exe` tool from a command line

## Description

Name | Directory | Operation
--- | --- | ---
`characterRecognition-1` | `demos` | Recognizes input from the touch panel as characters. This sample program illustrates a procedure for running a time-consuming recognition API in the background with another thread.
`characterRecognition-2` | `demos` | Recognizes input from the touch panel as characters. It is possible to compare various recognition engines and parameters, and confirm recognition results and calculation times. It also has a simple tool that creates a pattern sample list.

## Operation

The `characterRecognition-1` and `characterRecognition-2` demos attempt to read touch panel calibration values from the non-volatile memory (NVRAM) in the retail product. If they cannot properly read, they will terminate in error. In this case, use the Nintendo DS startup menu to store calibration results in NVRAM.

When using `characterRecognition-2` as a simple tool for creating pattern sample lists, refer to the demo tool `pdic2c.pl`.

## See Also

PRC Function List

## Revision History

2008/07/11 Changed descriptions to support TWL.
2005/03/02 Revised descriptions to reflect current support environment conditions.
2004/08/17 Standardized the notation of IS-NITRO-EMULATOR.
2004/07/10 Changed from `.bin` to `.srl.`
2004/06/30 Initial version.

CONFIDENTIAL