Structure to connect OpenCV application to various input devices