Skip to content

Experiment with various possible methods of Contour Extraction of OpenCV #102

@RohitDhankar

Description

@RohitDhankar
  • Experiment with various possible methods of Contour Extraction of OpenCV

experiment with various possible methods of Contour Extraction
RETR_EXTERNAL -- all_contours_RETR_EXTERNAL >> only PARENT Contours
RETR_CCOMP
RETR_LIST -- No hierarchy - flat LIST of all CNTRS
RETR_TREE --

experiment with Other OPTIONS for PARAMS --
cv2.CHAIN_APPROX_SIMPLE (DONE)
cv2.CHAIN_APPROX_NONE (TODO)

current code as below within --

def get_contours_main(img_clahe_1,img_contrs,img_name,dict_colors):
    """
    TODO - experiment with various possible methods of Contour Extraction 
    RETR_EXTERNAL -- all_contours_RETR_EXTERNAL >> only PARENT Contours
    RETR_CCOMP
    RETR_LIST -- No hierarchy - flat LIST of all CNTRS
    RETR_TREE -- 
    
    TODO - experiment with Other OPTIONS for PARAMS --
    cv2.CHAIN_APPROX_SIMPLE (DONE)
    cv2.CHAIN_APPROX_NONE (TODO)

    """
    img_contrs_1 = img_contrs.copy()
    img_contrs_2 = img_contrs.copy()
    yellow = dict_colors["color_yellow"] 
    green = dict_colors["color_green"] 
    white = dict_colors["color_white"] 
    red = dict_colors["color_red"] 
    #invert  image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions