Reading an invented binary code using opencv