å æ¥å±ç¤ºä¼ã®ããã«ä½æããããã°ã©ã ã§ã¯ãããã輪éæ½åºãã¦ãã¾ãã ãã®ã¨ãã¯ã¾ã£ã¦ãã¾ã£ãæ¥ãããããã¤ã³ããã¾ã¨ãã¦ããã¾ãã OpenCVã§è¼ªéæ½åºãããµã³ãã«ããã°ã©ã ãµã³ãã«ããã°ã©ã ã¯ãã®ããããåèã«ãªãã£ã¦ãã ãã opencv.jp - OpenCV: æ¨ï¼Treesï¼ãµã³ãã«ã³ã¼ã - cvFindContours (tmp_img, storage, &contours, sizeof (CvContour), CV_RETR_TREE, CV_CHAIN_APPROX_SIMPLE); ããã輪éæ½åºããã®ã¯ãããã ããªãã§ããããã ãã ç½é»2å¤åãããtmp_imgã®è¼ªéã·ã¼ã±ã³ã¹ãCvSeqåã®contoursã«æ½åºãã¾ãã åé¡ãçºçããæ¡ä»¶ 輪éãæ½åºããããã«ã¯ã輪éã«ä½ããã®å¦çãå ãããã¨æãã®ãä¸ã®å¸¸ã§ãã ç¹ã«ãããã°ã©ã ä¸ã§ä½åº¦ãä½åº¦ã輪é
{{#tags}}- {{label}}
{{/tags}}