Blobscanner based on edge detection