1. An information processing apparatus comprising: a plurality of weak classifiers that are cascade-connected and that process data; a first storage unit that stores processing specification information specifying a processing to be executed by each of the weak classifiers; a second storage unit that stores a table in which is specified information for determining which of the weak classifiers are to be used in processing the data in correspondence with a condition for processing the data; a selection unit that selects the weak classifiers to be used in processing the data from among the weak classifiers by referring to the table based on a given condition; and a control unit that controls the weak classifiers selected by the selection unit to process the data based on the processing specification information corresponding to the selected weak classifiers.