contour and line detection

results vary depending on frames, read comments!