1. A method comprising: capturing an image of a scene that includes a portion of a diagram representing functional blocks, wherein the functional blocks include at least a first functional block associated with a first computer operation; applying functional block recognition rules to image data of the image to recognize the functional blocks; determining whether the functional blocks comply with functional block syntax rules, wherein the functional block syntax rules indicate a hierarchy of operations associated with the functional blocks; 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 a graphical representation of the functional blocks.