Skip to content

noumanschaudhry/ROI_Extraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROI_Extraction

In this script we load the file into python framework using opencv's cv2 and then make a grayscale varient of that. On that greyscale varint we apply thresholding keeping in veiw that ROI(region of intrest) has black background. we apply contouring and sort them in decreasing manner of area,for this problem we now required contour will have maximum area.After getting the required contour we apply ractangle function and get the starting coordinate(top-left) and width , height of the required area which we then crop from the actual colour image and then save that croped image back to the output directory.

We have these screenshots We are to extract this from this

About

this program uses the contours to extract the usefull ractngle ROI from an image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors