{"id":38776,"date":"2024-11-02T00:57:00","date_gmt":"2024-11-02T00:57:00","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38776"},"modified":"2024-11-26T06:43:22","modified_gmt":"2024-11-26T06:43:22","slug":"opencv-%ea%b0%95%ec%a2%8c-grabcut%ec%9d%84-%ec%9d%b4%ec%9a%a9%ed%95%9c-%ec%a0%95%ea%b5%90%ed%95%9c-%ea%b0%9d%ec%b2%b4-%eb%b6%84%eb%a6%ac","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38776\/","title":{"rendered":"OpenCV \uac15\uc88c, GrabCut\uc744 \uc774\uc6a9\ud55c \uc815\uad50\ud55c \uac1d\uccb4 \ubd84\ub9ac"},"content":{"rendered":"<p><body><\/p>\n<p>\n    \uac1d\uccb4 \uc778\uc2dd \ubc0f \ubd84\ub9ac\ub294 \ucef4\ud4e8\ud130 \ube44\uc804 \ubd84\uc57c\uc5d0\uc11c \uc911\uc694\ud55c \uacfc\uc81c\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 OpenCV\uc758 GrabCut \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc774\ubbf8\uc9c0\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \ubd84\ub9ac\ud558\ub294 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. GrabCut \uc54c\uace0\ub9ac\uc998\uc740 \ub9c8\uc2a4\ud06c \uae30\ubc18\uc758 \uc138\uadf8\uba58\ud14c\uc774\uc158 \uae30\ubc95\uc73c\ub85c, \uc0ac\uc6a9\uc790\uac00 \uc815\uc758\ud55c \ucd08\uae30 \ub9c8\uc2a4\ud06c\ub97c \ubc14\ud0d5\uc73c\ub85c \ubb3c\uccb4\ub97c \ubd84\ub9ac\ud569\ub2c8\ub2e4. \uc774 \uae30\ubc95\uc740 \uc9c1\uad00\uc801\uc774\uba70 \uac15\ub825\ud558\uc5ec \ub2e4\uc591\ud55c \uc751\uc6a9 \ubd84\uc57c\uc5d0 \ud65c\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n<\/p>\n<h2>GrabCut \uc54c\uace0\ub9ac\uc998\uc758 \uac1c\uc694<\/h2>\n<p>\n    GrabCut \uc54c\uace0\ub9ac\uc998\uc740 \uadf8\ub798\ud53d \ubaa8\ub378\uc5d0\uc11c\uc758 \ucd5c\uc801 \ubd84\ud560\uc744 \uc704\ud55c \uac15\ub825\ud55c \ubc29\ubc95\ub860\uc785\ub2c8\ub2e4. \uc8fc\ub85c \ub450 \uac00\uc9c0 \uc8fc\uc694 \ub2e8\uacc4\ub85c \uad6c\ubd84\ub429\ub2c8\ub2e4:\n<\/p>\n<ol>\n<li>\n<strong>\uc804\ucc98\ub9ac \ub2e8\uacc4:<\/strong> \uc0ac\uc6a9\uc790\uac00 \uad00\uc2ec \uc788\ub294 \uac1d\uccb4\uc758 \ub300\ub7b5\uc801\uc778 \uc704\uce58\ub97c \uc815\uc758\ud569\ub2c8\ub2e4. \uc774 \ub2e8\uacc4\uc5d0\uc11c \uc55e\uc11c \uc0ac\uc6a9\uc790\uac00 \uc9c0\uc815\ud55c \ub9c8\uc2a4\ud06c\ub294 \uac1d\uccb4\uc640 \ubc30\uacbd\uc744 \uad6c\ubd84\ud558\uae30 \uc704\ud55c \ucd08\uae30 \uae30\ubc18\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.\n    <\/li>\n<li>\n<strong>\ucd5c\uc801\ud654 \ub2e8\uacc4:<\/strong> \uc0ac\uc6a9\uc790\uac00 \uc9c0\uc815\ud55c \ub9c8\uc2a4\ud06c\ub97c \ubc14\ud0d5\uc73c\ub85c GrabCut \uc54c\uace0\ub9ac\uc998\uc740 \ucd5c\uc18c\ud654 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uc5ec \ucd5c\uc885\uc801\uc778 \uac1d\uccb4 \ubd84\ub9ac\ub97c \uc218\ud589\ud569\ub2c8\ub2e4. \uc774 \ucd5c\uc801\ud654 \uacfc\uc815\uc5d0\uc11c\ub294 \uc120\ud615 \uadf8\ub798\ud504 \uae30\ubc18\uc758 \ucd5c\uc801\ud654 \uc811\uadfc\ubc95\uc774 \uc0ac\uc6a9\ub429\ub2c8\ub2e4.\n    <\/li>\n<\/ol>\n<div class=\"note\">\n<strong>\ucc38\uace0:<\/strong> GrabCut \uc54c\uace0\ub9ac\uc998\uc740 \uc77c\ubc18\uc801\uc73c\ub85c \ub450 \uac00\uc9c0 \uc0c9\uc601\uc5ed(\uc55e\ucabd, \ub4a4\ucabd)\uc744 \uc815\uc758\ud568\uc73c\ub85c\uc368 \uc791\ub3d9\ud569\ub2c8\ub2e4. \ub530\ub77c\uc11c, \uc774 \uc54c\uace0\ub9ac\uc998\uc740 \ucd08\uae30 \uac1d\uccb4 \ubc0f \ubc30\uacbd\uc5d0 \ub300\ud55c \uc57d\uac04\uc758 \uc815\ubcf4\uac00 \ud544\uc694\ud569\ub2c8\ub2e4.\n<\/div>\n<h2>\ud658\uacbd \uc124\uc815<\/h2>\n<p>\n    GrabCut\uc744 \uc0ac\uc6a9\ud558\uae30 \uc704\ud574 OpenCV \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc124\uce58\ud574\uc57c \ud569\ub2c8\ub2e4. \uc544\ub798\uc758 \uba85\ub839\uc5b4\ub97c \ud1b5\ud574 \uc27d\uac8c \uc124\uce58\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n<\/p>\n<pre><code>pip install opencv-python opencv-python-headless<\/code><\/pre>\n<h2>\uc608\uc81c \ucf54\ub4dc<\/h2>\n<p>\n    \uc544\ub798 \uc608\uc81c\ub294 GrabCut\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc774\ubbf8\uc9c0\ub97c \ubd84\ub9ac\ud558\ub294 \uae30\ubcf8\uc801\uc778 \ud750\ub984\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4. \uba3c\uc800 \uc785\ub825 \uc774\ubbf8\uc9c0\ub97c \ub85c\ub4dc\ud558\uace0, \ucd08\uae30 \ub9c8\uc2a4\ud06c\ub97c \uc815\uc758\ud55c \ud6c4, GrabCut \uc54c\uace0\ub9ac\uc998\uc744 \uc2e4\ud589\ud558\uace0 \uacb0\uacfc\ub97c \uc2dc\uac01\ud654\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n<\/p>\n<pre><code>import cv2\nimport numpy as np\n\n# \uc774\ubbf8\uc9c0 \ub85c\ub4dc\nimage = cv2.imread('input.jpg')\n\n# \uc774\ubbf8\uc9c0\uc640 \ub3d9\uc77c\ud55c \ud06c\uae30\uc758 \ucd08\uae30 \ub9c8\uc2a4\ud06c \uc0dd\uc131 (0 - \ubc30\uacbd, 1 - \uc804\uacbd)\nmask = np.zeros(image.shape[:2], np.uint8)\n\n# \uc804\uacbd \ubc0f \ubc30\uacbd \ubaa8\ub378 \ucd08\uae30\ud654\nbgd_model = np.zeros((1, 65), np.float64)\nfgd_model = np.zeros((1, 65), np.float64)\n\n# \uc0ac\uac01\ud615 \uc815\uc758 (\uc804\uacbd \uc601\uc5ed)\nrect = (50, 50, 450, 290)\n\n# GrabCut \uc54c\uace0\ub9ac\uc998 \uc2e4\ud589\ncv2.grabCut(image, mask, rect, bgd_model, fgd_model, 5, cv2.GC_INIT_WITH_RECT)\n\n# \ub9c8\uc2a4\ud06c \ud6c4\ucc98\ub9ac\nmask2 = np.where((mask == 2) | (mask == 0), 0, 1).astype('uint8')\nresult = image * mask2[:, :, np.newaxis]\n\n# \uacb0\uacfc \ucd9c\ub825\ncv2.imshow('Input Image', image)\ncv2.imshow('Segmented Image', result)\ncv2.waitKey(0)\ncv2.destroyAllWindows()<\/code><\/pre>\n<h3>\ucf54\ub4dc \uc124\uba85<\/h3>\n<p>\n    \uc704 \ucf54\ub4dc\uc5d0\uc11c \uba87 \uac00\uc9c0 \uc8fc\uc694 \ub2e8\uacc4\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n<\/p>\n<ol>\n<li><strong>\uc774\ubbf8\uc9c0 \ub85c\ub4dc:<\/strong> OpenCV\uc758 <code>cv2.imread()<\/code> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc774\ubbf8\uc9c0\ub97c \ub85c\ub4dc\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ucd08\uae30 \ub9c8\uc2a4\ud06c \uc0dd\uc131:<\/strong> \uc785\ub825 \uc774\ubbf8\uc9c0\uc640 \ub3d9\uc77c\ud55c \ud06c\uae30\uc758 \ub9c8\uc2a4\ud06c\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4. \uc774 \ub9c8\uc2a4\ud06c\ub294 \uac1d\uccb4\uc640 \ubc30\uacbd\uc744 \uad6c\ubd84\ud558\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4.<\/li>\n<li><strong>\ubaa8\ub378 \ucd08\uae30\ud654:<\/strong> GrabCut \uc54c\uace0\ub9ac\uc998\uc744 \uc704\ud574 \uc0ac\uc6a9\ud560 \ubc30\uacbd \ubaa8\ub378\uacfc \uc804\uacbd \ubaa8\ub378\uc744 \ucd08\uae30\ud654\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\uc0ac\uac01\ud615 \uc815\uc758:<\/strong> \uac1d\uccb4\ub97c \ud3ec\ud568\ud558\ub294 \uc0ac\uac01\ud615 \uc601\uc5ed\uc744 \uc815\uc758\ud569\ub2c8\ub2e4. \uc774 \uc601\uc5ed\uc740 \ubd84\ub9ac\ud560 \uac1d\uccb4\uc758 \uc704\uce58\ub97c \uc9c0\uc815\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>GrabCut \uc2e4\ud589:<\/strong> <code>cv2.grabCut()<\/code> \ud568\uc218\ub97c \ud638\ucd9c\ud558\uc5ec \uac1d\uccb4\ub97c \ubd84\ub9ac\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\uacb0\uacfc \ub9c8\uc2a4\ud06c \ud6c4\ucc98\ub9ac:<\/strong> \ucd5c\uc885 \ub354 \uc720\uc6a9\ud55c \ud615\ud0dc\ub85c \ub9c8\uc2a4\ud06c\ub97c \ucc98\ub9ac\ud558\uc5ec \ucd5c\uc885 \uacb0\uacfc \uc774\ubbf8\uc9c0\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\uacb0\uacfc \ucd9c\ub825:<\/strong> <code>cv2.imshow()<\/code>\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc6d0\ubcf8 \ubc0f \ubd84\ub9ac\ub41c \uc774\ubbf8\uc9c0\ub97c \ud45c\uc2dc\ud569\ub2c8\ub2e4.<\/li>\n<\/ol>\n<h3>\uacb0\uacfc \uc608\uc2dc<\/h3>\n<p>\n    \uc704\uc758 \ucf54\ub4dc\uc640 \uac19\uc740 \ubc29\uc2dd\uc73c\ub85c \uc2e4\ud589\ud588\uc744 \ub54c, \uc6d0\ubcf8 \uc774\ubbf8\uc9c0\uc640 GrabCut\uc744 \ud1b5\ud574 \ubd84\ub9ac\ub41c \uc774\ubbf8\uc9c0\ub97c \uc2dc\uac01\uc801\uc73c\ub85c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uacb0\uacfc\ub294 \ucd08\uae30 \ub9c8\uc2a4\ud06c\uc640 \uc0ac\uac01\ud615\uc774 \uc81c\uc815\ub82c\ub418\uc5b4 \uc788\uc73c\uba74 \ub354\uc6b1 \uc815\uad50\ud558\uac8c \ub098\ud0c0\ub0a0 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n<\/p>\n<h2>\ub9c8\uc2a4\ud06c \uc870\uc815 \ubc0f \uc0ac\uc6a9\uc790 \uc785\ub825<\/h2>\n<p>\n    GrabCut \uc54c\uace0\ub9ac\uc998\uc758 \uc131\ub2a5\uc740 \ucd08\uae30 \ub9c8\uc2a4\ud06c\uc758 \ud488\uc9c8\uc5d0 \ud06c\uac8c \uc758\uc874\ud569\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\ub294 \ub9c8\uc6b0\uc2a4 \ud074\ub9ad\uc744 \ud1b5\ud574 \uac1d\uccb4\uc758 \uacbd\uacc4\ub97c \uc138\ubc00\ud558\uac8c \uc815\uc758\ud558\uc5ec \uc54c\uace0\ub9ac\uc998\uc758 \uc131\ub2a5\uc744 \ud5a5\uc0c1\uc2dc\ud0ac \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc544\ub798 \ucf54\ub4dc\ub294 \ub9c8\uc6b0\uc2a4 \uc774\ubca4\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc785\ub825\uc744 \ud1b5\ud574 \ub9c8\uc2a4\ud06c\ub97c \uc870\uc815\ud558\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud569\ub2c8\ub2e4.\n<\/p>\n<pre><code>def draw_circle(event, x, y, flags, param):\n    global drawing, mode\n\n    if event == cv2.EVENT_LBUTTONDOWN:\n        drawing = True\n        cv2.circle(mask, (x, y), 5, (1), -1)\n    elif event == cv2.EVENT_MOUSEMOVE:\n        if drawing:\n            cv2.circle(mask, (x, y), 5, (1), -1)\n    elif event == cv2.EVENT_LBUTTONUP:\n        drawing = False\n        cv2.circle(mask, (x, y), 5, (1), -1)\n\n# OpenCV \ucc3d\uc5d0 \ub9c8\uc6b0\uc2a4 \ucf5c\ubc31 \ud568\uc218 \ub4f1\ub85d\ncv2.namedWindow('image')\ncv2.setMouseCallback('image', draw_circle)\n\ndrawing = False\n\nwhile True:\n    cv2.imshow('image', image)\n    key = cv2.waitKey(1) &amp; 0xFF\n    if key == ord('g'):  # 'g' \ud0a4\ub97c \ub20c\ub7ec GrabCut \uc2e4\ud589\n        cv2.grabCut(image, mask, rect, bgd_model, fgd_model, 5, cv2.GC_INIT_WITH_MASK)\n        mask2 = np.where((mask == 2) | (mask == 0), 0, 1).astype('uint8')\n        result = image * mask2[:, :, np.newaxis]\n        cv2.imshow('segmented', result)\n    elif key == ord('q'):  # 'q' \ud0a4\ub97c \ub20c\ub7ec \uc885\ub8cc\n        break\n\ncv2.destroyAllWindows()<\/code><\/pre>\n<h3>\ud544\uc694\ud55c \ucd94\uac00 \uc815\ubcf4<\/h3>\n<p>\n    &#8211; \uc0ac\uc6a9\uc790 \uc785\ub825\uc744 \ud1b5\ud574 \ub9c8\uc2a4\ud06c\ub97c \ub3d9\uc801\uc73c\ub85c \uc870\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \ubc29\ubc95\uc73c\ub85c \ub9c8\uc6b0\uc2a4\ub97c \uc774\uc6a9\ud558\uc5ec \uac1d\uccb4\uc758 \uacbd\uacc4\uc5d0 \uc6d0\uc744 \uadf8\ub9b4 \uc218 \uc788\uc73c\uba70, \uc774 \uc815\ubcf4\ub97c GrabCut \uc54c\uace0\ub9ac\uc998\uc5d0 \uc804\ub2ec\ud558\uc5ec \ub354 \uc815\uad50\ud55c \ubd84\ub9ac\ub97c \uc218\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n<\/p>\n<h2>\uacb0\ub860<\/h2>\n<p>\n    \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 OpenCV\uc758 GrabCut \uc54c\uace0\ub9ac\uc998\uc744 \ud65c\uc6a9\ud558\uc5ec \uac1d\uccb4 \ubd84\ub9ac\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc \uc2e4\uc81c \uad6c\ud604 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. GrabCut\uc740 \ub9c8\uc2a4\ud06c \uae30\ubc18\uc758 \uc138\uadf8\uba58\ud14c\uc774\uc158 \uae30\ubc95\uc73c\ub85c\uc368, \uc0ac\uc6a9\uc790\uc758 \ucd08\uae30 \uc785\ub825\uc744 \ud1b5\ud574 \uadf8 \uacb0\uacfc\ub97c \uac1c\uc120\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uae30\ubc95\uc744 \ud1b5\ud574 \ub2e4\uc591\ud55c \uc774\ubbf8\uc9c0 \ucc98\ub9ac \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8\uc5d0\uc11c \ud65c\uc6a9\ud560 \uc218 \uc788\ub294 \uac00\ub2a5\uc131\uc774 \uc5f4\ub9bd\ub2c8\ub2e4.\n<\/p>\n<p>\n    GrabCut \uc678\uc5d0\ub3c4 OpenCV\uc5d0\ub294 \ub2e4\uc591\ud55c \uac1d\uccb4 \ubd84\ub9ac \ubc0f \uc778\uc2dd \uc54c\uace0\ub9ac\uc998\uc774 \uc874\uc7ac\ud569\ub2c8\ub2e4. \uac01 \uc54c\uace0\ub9ac\uc998\uc758 \ud2b9\uc9d5\uacfc \uac15\uc810\uc744 \uc798 \uc774\ud574\ud558\uace0 \ud544\uc694\uc5d0 \ub9de\ub294 \uc54c\uace0\ub9ac\uc998\uc744 \uc120\ud0dd\ud558\uc5ec \uac1c\ubc1c\uc5d0 \uc801\uc6a9\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4.\n<\/p>\n<p>\n    \ucd94\uac00\uc801\uc73c\ub85c, GrabCut\uc744 \ud65c\uc6a9\ud558\uc5ec \uc0dd\uc131\ub41c \ub9c8\uc2a4\ud06c\ub97c \ub2e4\ub978 \uc774\ubbf8\uc9c0 \ucc98\ub9ac \uae30\uc220\uacfc \uacb0\ud569\ud558\uba74, \ub354\uc6b1 \ub180\ub77c\uc6b4 \uacb0\uacfc\ub97c \uc5bb\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc774\ubbf8\uc9c0\uc758 \uc0c9\uc0c1 \uc870\uc815, \ud544\ud130 \ud6a8\uacfc \uc801\uc6a9, \ub610\ub294 \ubcf5\uc7a1\ud55c \uc7a5\uba74\uc5d0\uc11c\uc758 \ubb3c\uccb4 \uc778\uc2dd \ub4f1\uc5d0 \uc751\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n<\/p>\n<p>\n    \uc774 \uac15\uc88c\ub97c \ud1b5\ud574 GrabCut \uc54c\uace0\ub9ac\uc998\uc5d0 \ub300\ud55c \uc774\ud574\uac00 \uae4a\uc5b4\uc9c0\uace0, \uc2e4\uc9c8\uc801\uc778 \uad6c\ud604 \ub2a5\ub825\uc744 \ud5a5\uc0c1\uc2dc\ud0a4\uae38 \ubc14\ub78d\ub2c8\ub2e4. \uc55e\uc73c\ub85c\uc758 \uc774\ubbf8\uc9c0 \ucc98\ub9ac \ubc0f \ucef4\ud4e8\ud130 \ube44\uc804 \ud504\ub85c\uc81d\ud2b8\uc5d0 \ub9ce\uc740 \ub3c4\uc6c0\uc774 \ub418\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.\n<\/p>\n<footer>\n<p>\uc791\uc131\uc790: OpenCV \uac15\uc88c \ud300<\/p>\n<\/footer>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uac1d\uccb4 \uc778\uc2dd \ubc0f \ubd84\ub9ac\ub294 \ucef4\ud4e8\ud130 \ube44\uc804 \ubd84\uc57c\uc5d0\uc11c \uc911\uc694\ud55c \uacfc\uc81c\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 OpenCV\uc758 GrabCut \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc774\ubbf8\uc9c0\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \ubd84\ub9ac\ud558\ub294 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. GrabCut \uc54c\uace0\ub9ac\uc998\uc740 \ub9c8\uc2a4\ud06c \uae30\ubc18\uc758 \uc138\uadf8\uba58\ud14c\uc774\uc158 \uae30\ubc95\uc73c\ub85c, \uc0ac\uc6a9\uc790\uac00 \uc815\uc758\ud55c \ucd08\uae30 \ub9c8\uc2a4\ud06c\ub97c \ubc14\ud0d5\uc73c\ub85c \ubb3c\uccb4\ub97c \ubd84\ub9ac\ud569\ub2c8\ub2e4. \uc774 \uae30\ubc95\uc740 \uc9c1\uad00\uc801\uc774\uba70 \uac15\ub825\ud558\uc5ec \ub2e4\uc591\ud55c \uc751\uc6a9 \ubd84\uc57c\uc5d0 \ud65c\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. GrabCut \uc54c\uace0\ub9ac\uc998\uc758 \uac1c\uc694 GrabCut \uc54c\uace0\ub9ac\uc998\uc740 \uadf8\ub798\ud53d \ubaa8\ub378\uc5d0\uc11c\uc758 \ucd5c\uc801 \ubd84\ud560\uc744 \uc704\ud55c \uac15\ub825\ud55c \ubc29\ubc95\ub860\uc785\ub2c8\ub2e4. &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38776\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;OpenCV \uac15\uc88c, GrabCut\uc744 \uc774\uc6a9\ud55c \uc815\uad50\ud55c \uac1d\uccb4 \ubd84\ub9ac&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[187],"tags":[],"class_list":["post-38776","post","type-post","status-publish","format-standard","hentry","category-opencv"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>OpenCV \uac15\uc88c, GrabCut\uc744 \uc774\uc6a9\ud55c \uc815\uad50\ud55c \uac1d\uccb4 \ubd84\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/38776\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OpenCV \uac15\uc88c, GrabCut\uc744 \uc774\uc6a9\ud55c \uc815\uad50\ud55c \uac1d\uccb4 \ubd84\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uac1d\uccb4 \uc778\uc2dd \ubc0f \ubd84\ub9ac\ub294 \ucef4\ud4e8\ud130 \ube44\uc804 \ubd84\uc57c\uc5d0\uc11c \uc911\uc694\ud55c \uacfc\uc81c\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 OpenCV\uc758 GrabCut \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc774\ubbf8\uc9c0\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \ubd84\ub9ac\ud558\ub294 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. GrabCut \uc54c\uace0\ub9ac\uc998\uc740 \ub9c8\uc2a4\ud06c \uae30\ubc18\uc758 \uc138\uadf8\uba58\ud14c\uc774\uc158 \uae30\ubc95\uc73c\ub85c, \uc0ac\uc6a9\uc790\uac00 \uc815\uc758\ud55c \ucd08\uae30 \ub9c8\uc2a4\ud06c\ub97c \ubc14\ud0d5\uc73c\ub85c \ubb3c\uccb4\ub97c \ubd84\ub9ac\ud569\ub2c8\ub2e4. \uc774 \uae30\ubc95\uc740 \uc9c1\uad00\uc801\uc774\uba70 \uac15\ub825\ud558\uc5ec \ub2e4\uc591\ud55c \uc751\uc6a9 \ubd84\uc57c\uc5d0 \ud65c\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. GrabCut \uc54c\uace0\ub9ac\uc998\uc758 \uac1c\uc694 GrabCut \uc54c\uace0\ub9ac\uc998\uc740 \uadf8\ub798\ud53d \ubaa8\ub378\uc5d0\uc11c\uc758 \ucd5c\uc801 \ubd84\ud560\uc744 \uc704\ud55c \uac15\ub825\ud55c \ubc29\ubc95\ub860\uc785\ub2c8\ub2e4. &hellip; \ub354 \ubcf4\uae30 &quot;OpenCV \uac15\uc88c, GrabCut\uc744 \uc774\uc6a9\ud55c \uc815\uad50\ud55c \uac1d\uccb4 \ubd84\ub9ac&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38776\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-02T00:57:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:43:22+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/38776\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38776\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"OpenCV \uac15\uc88c, GrabCut\uc744 \uc774\uc6a9\ud55c \uc815\uad50\ud55c \uac1d\uccb4 \ubd84\ub9ac\",\"datePublished\":\"2024-11-02T00:57:00+00:00\",\"dateModified\":\"2024-11-26T06:43:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38776\/\"},\"wordCount\":28,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"OpenCV\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38776\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38776\/\",\"name\":\"OpenCV \uac15\uc88c, GrabCut\uc744 \uc774\uc6a9\ud55c \uc815\uad50\ud55c \uac1d\uccb4 \ubd84\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-02T00:57:00+00:00\",\"dateModified\":\"2024-11-26T06:43:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38776\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38776\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38776\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OpenCV \uac15\uc88c, GrabCut\uc744 \uc774\uc6a9\ud55c \uc815\uad50\ud55c \uac1d\uccb4 \ubd84\ub9ac\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OpenCV \uac15\uc88c, GrabCut\uc744 \uc774\uc6a9\ud55c \uc815\uad50\ud55c \uac1d\uccb4 \ubd84\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/38776\/","og_locale":"ko_KR","og_type":"article","og_title":"OpenCV \uac15\uc88c, GrabCut\uc744 \uc774\uc6a9\ud55c \uc815\uad50\ud55c \uac1d\uccb4 \ubd84\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uac1d\uccb4 \uc778\uc2dd \ubc0f \ubd84\ub9ac\ub294 \ucef4\ud4e8\ud130 \ube44\uc804 \ubd84\uc57c\uc5d0\uc11c \uc911\uc694\ud55c \uacfc\uc81c\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 OpenCV\uc758 GrabCut \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc774\ubbf8\uc9c0\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \ubd84\ub9ac\ud558\ub294 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. GrabCut \uc54c\uace0\ub9ac\uc998\uc740 \ub9c8\uc2a4\ud06c \uae30\ubc18\uc758 \uc138\uadf8\uba58\ud14c\uc774\uc158 \uae30\ubc95\uc73c\ub85c, \uc0ac\uc6a9\uc790\uac00 \uc815\uc758\ud55c \ucd08\uae30 \ub9c8\uc2a4\ud06c\ub97c \ubc14\ud0d5\uc73c\ub85c \ubb3c\uccb4\ub97c \ubd84\ub9ac\ud569\ub2c8\ub2e4. \uc774 \uae30\ubc95\uc740 \uc9c1\uad00\uc801\uc774\uba70 \uac15\ub825\ud558\uc5ec \ub2e4\uc591\ud55c \uc751\uc6a9 \ubd84\uc57c\uc5d0 \ud65c\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. GrabCut \uc54c\uace0\ub9ac\uc998\uc758 \uac1c\uc694 GrabCut \uc54c\uace0\ub9ac\uc998\uc740 \uadf8\ub798\ud53d \ubaa8\ub378\uc5d0\uc11c\uc758 \ucd5c\uc801 \ubd84\ud560\uc744 \uc704\ud55c \uac15\ub825\ud55c \ubc29\ubc95\ub860\uc785\ub2c8\ub2e4. &hellip; \ub354 \ubcf4\uae30 \"OpenCV \uac15\uc88c, GrabCut\uc744 \uc774\uc6a9\ud55c \uc815\uad50\ud55c \uac1d\uccb4 \ubd84\ub9ac\"","og_url":"https:\/\/atmokpo.com\/w\/38776\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-02T00:57:00+00:00","article_modified_time":"2024-11-26T06:43:22+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/38776\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38776\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"OpenCV \uac15\uc88c, GrabCut\uc744 \uc774\uc6a9\ud55c \uc815\uad50\ud55c \uac1d\uccb4 \ubd84\ub9ac","datePublished":"2024-11-02T00:57:00+00:00","dateModified":"2024-11-26T06:43:22+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38776\/"},"wordCount":28,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["OpenCV"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38776\/","url":"https:\/\/atmokpo.com\/w\/38776\/","name":"OpenCV \uac15\uc88c, GrabCut\uc744 \uc774\uc6a9\ud55c \uc815\uad50\ud55c \uac1d\uccb4 \ubd84\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-02T00:57:00+00:00","dateModified":"2024-11-26T06:43:22+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38776\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38776\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38776\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"OpenCV \uac15\uc88c, GrabCut\uc744 \uc774\uc6a9\ud55c \uc815\uad50\ud55c \uac1d\uccb4 \ubd84\ub9ac"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=38776"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38776\/revisions"}],"predecessor-version":[{"id":38777,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38776\/revisions\/38777"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}