Search code examples
opencverlangerlang-ports

OpenCV on Erlang


I would like to use OpenCV in my Erlang application. One solution would be to write an Erlang port etc., but I'm sure it has been done before.

The ideal result would be to be able to configure OpenCV from Erlang, and never touch a line of C code. But is this possible ? How would you do that ?


Solution

  • Why not wrap the specific OpenCV configuration in a C application using the OpenCV C lib and call that app using Result = os:cmd('myapp'). That way you don't have to mess around with possible interoperability issues and have a clear separation between you C and Erlang code.