1. A method comprising: capturing an image of a scene that includes a diagram; applying functional block recognition rules to image data of the image to recognize functional blocks of the diagram, wherein the functional blocks include at least a first functional block associated with a first computer operation; determining whether the functional blocks comply with functional block syntax rules; and computer-generating a functional graph corresponding to the diagram based on the functional blocks complying with the functional block syntax rules, wherein the functional graph includes the functional blocks.