This message was posted on behalf of Intel Corporation
Thanks for your interest in the Intel® Galileo Platform.
You can use WinSCP in order to transfer your code file to the Galileo or write it in the board and then compile it by using this command: g++ <filename>.cpp -I /usr/include/opencv -o <name of the output file>, you can check for more details here: Open CV on Intel galileo. Also, you can use Eclipse (take a look at: How to setup OpenCV on Intel System Studio IoT edition?) to compile your code. Moreover, maybe you can customize your code including for example Mraa library that helps to interact with the GPIO pins on the Galileo, however, we have not do it before but you can try and share your results.
Additionally, we would like to suggest you these links that have helpful information:
Hope this information helps.