add the opencv functions

Bring over the opencv functions file from the webapp