added logic for edge detection using canny algorithm supplied by opencv (does not run)