enabled debug opencv windows and changed main of scanner test to do automatic conversion