This is a simple demo and tutorial of using pyside Qt with OpenCV for visual detection. I used Linux as it is easy to setup and run openCV and it is free. With pyside it is easy to create the GUI. As this app is not so complicated, to transform image from cv to qt, I just saved it to disk as jpg for Qt GUI to load it. The interface got several slides, lcd number display and buttons. The original image is on the left, and processed image is on the right. codes are quite straight forward.
What it does is to find straight lines and their coordination on the original image. And then draw them on top of the image.