Chris Pollett > Students > Geetika

    Print View

    [Bio]

    [Blog]

    [CS297 Proposal]

    [Edge Detection-PDF]

    [Deliverable #1 Edge Detection program in python]

    [Deliverable #2 -Captchas Literary view- PDF]

                          

    [Deliverable #3 Sample Segmentor]

    [CS297 Report- PDF]

    [CS298 Proposal]

    [CS298 Report-PDF]

    [CS298 Slides - PDF]

























Image Segmentation(Trivial Case)

Description: The aim for this deliverable was to segment an image based on window size. Right now I have manually set the window width and size t operate on particular type of Captcha so that I can start working on training sample neural network.

Script: img = cv2.imread(filename) x = 40 y = 10 height = 100 width = 40 i = 1 while width < len(img[0]): y = width width = y + 30 crop_img = img[x:height, y:width] cv2.imwrite('cropped'+ str(i)+'.png', crop_img) i += 1

Example:This is what my code outputs on following inputs.

Input Image

Input Image

Output Image1

Output Image1

Output Image2

Output Image2

Output Image3

Output Image3

Output Image4

Output Image3

Output Image4

Output Image3

Output Image4

Output Image3

Output Image4

Output Image3