reintroduce opencv code with commands to arduino at the same time