An information processing apparatus includes the following elements. An
image data acquisition unit acquires image data of a captured image
including a code having a fixed area in which a predetermined fixed area
code is formed and a variable area in which a variable area code formed
by a combination of a plurality of codes is formed. A fixed area code
recognition unit analyzes the captured image to recognize the
predetermined fixed area code of the fixed area. A variable area code
default value setting unit sets the default value of the variable area
code based on the predetermined fixed area code. A variable area code
recognition unit analyzes the captured image to recognize the variable
area code. A comparator compares the variable area code with the default
value to determine the difference therebetween. A command designation
unit designates a command to be executed based on the difference.