Qt code for converting handwritten math to Latex (on a beaglebone and touchscreen)