{"id":7760,"date":"2020-07-29T14:16:41","date_gmt":"2020-07-29T09:46:41","guid":{"rendered":"https:\/\/shahaab-co.ir\/mag\/?p=7760"},"modified":"2020-12-08T14:45:12","modified_gmt":"2020-12-08T11:15:12","slug":"machine-learning-in-opencv-chapter-3","status":"publish","type":"post","link":"https:\/\/shahaab-co.com\/mag\/edu\/ml\/machine-learning-in-opencv-chapter-3\/","title":{"rendered":"\u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0645\u0627\u0634\u06cc\u0646 \u062f\u0631 OpenCV : \u062c\u0644\u0633\u0647 \u0633\u0648\u0645"},"content":{"rendered":"<h2 class=\"EnlighterJSRAW\" style=\"text-align: justify;\" data-enlighter-language=\"python\"><strong>\u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645<\/strong> <strong>K<\/strong><strong> \u0646\u0632\u062f\u06cc\u06a9 \u062a\u0631\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647 \u062f\u0631 <\/strong><strong>OpenCV <\/strong><strong>:<\/strong><\/h2>\n<p style=\"text-align: justify;\">\u062f\u0631 \u0627\u06cc\u0646 \u062c\u0644\u0633\u0647 \u0627\u0632 \u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0645\u0627\u0634\u06cc\u0646 \u0628\u0647 \u0628\u0631\u0631\u0633\u06cc \u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645 K \u0646\u0632\u062f\u06cc\u06a9 \u062a\u0631\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647 \u062f\u0631 <a href=\"https:\/\/shahaab-co.ir\/opencv3-3-contrib-x86-x64\/\" target=\"_blank\" rel=\"noopener noreferrer\">OpenCV<\/a> \u0645\u06cc \u067e\u0631\u062f\u0627\u0632\u06cc\u0645. \u0645\u062b\u0627\u0644 \u0631\u0627 \u0628\u0627 \u062f\u0648 \u062e\u0627\u0646\u0648\u0627\u062f\u0647 ( \u06a9\u0644\u0627\u0633 ) \u067e\u06cc\u0634 \u0645\u06cc \u0628\u0631\u06cc\u0645 :<\/p>\n<p style=\"text-align: justify;\">\u062f\u0631 \u0627\u06cc\u0646 \u0645\u062b\u0627\u0644 \u062e\u0627\u0646\u0648\u0627\u062f\u0647 ( \u06a9\u0644\u0627\u0633 ) \u0642\u0631\u0645\u0632 \u0631\u0627 \u0628\u0627 \u0646\u0627\u0645 <strong>\u06a9\u0644\u0627\u0633-\u06f0<\/strong> \u0648 \u062e\u0627\u0646\u0648\u0627\u062f\u0647 ( \u06a9\u0644\u0627\u0633 ) \u0622\u0628\u06cc \u0631\u0646\u06af \u0631\u0627 \u0628\u0627 \u0646\u0627\u0645 <strong>\u06a9\u0644\u0627\u0633-\u06f1 <\/strong>\u0628\u0631\u0686\u0633\u0628 \u06af\u0630\u0627\u0631\u06cc \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u062b\u0627\u0644 \u0645\u0627 \u06f2\u06f5 \u0647\u0645\u0633\u0627\u06cc\u0647 \u06cc\u0627 \u06f2\u06f5 \u062f\u0627\u062f\u0647 \u0622\u0645\u0648\u0632\u0634\u06cc \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645. \u0647\u0631\u06a9\u062f\u0627\u0645 \u0627\u0632 \u0627\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647 \u0647\u0627 \u06cc\u0627 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0622\u0645\u0648\u0632\u0634\u06cc \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0628\u062e\u0634\u06cc \u0627\u0632 \u06a9\u0644\u0627\u0633-\u06f0 \u06cc\u0627 \u06a9\u0644\u0627\u0633-\u06f1 \u0628\u0631\u0686\u0633\u0628 \u062e\u0648\u0631\u062f\u0647 \u0627\u0646\u062f. \u0627\u06cc\u0646 \u0628\u0631\u0686\u0633\u0628 \u062e\u0648\u0631\u062f\u0646 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 <a href=\"https:\/\/numpy.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">numpy<\/a> \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u0645. \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u06a9\u062f \u062f\u0633\u062a\u0648\u0631\u06cc \u062f\u0631 OpenCV \u0628\u0627\u0639\u062b \u0627\u06cc\u062c\u0627\u062f \u0639\u062f\u062f \u0647\u0627\u06cc \u062a\u0635\u0627\u062f\u0641\u06cc \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0633\u067e\u0633\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0627\u0632 \u06a9\u062f \u062f\u0633\u062a\u0648\u0631\u06cc <a href=\"https:\/\/matplotlib.org\/3.1.0\/api\/_as_gen\/matplotlib.pyplot.html\" target=\"_blank\" rel=\"noopener noreferrer\">import matplotlib.pyplot<\/a> \u0628\u0631\u0627\u06cc \u062a\u0631\u0633\u06cc\u0645 \u0634\u06a9\u0644 \u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u0645. \u0647\u0645\u0633\u0627\u06cc\u0647 \u0647\u0627\u06cc \u0642\u0631\u0645\u0632 \u0631\u0646\u06af \u0628\u0627 \u0645\u062b\u0644\u062b \u0647\u0627\u06cc \u0642\u0631\u0645\u0632 \u0631\u0646\u06af \u0648 \u0647\u0645\u0633\u0627\u06cc\u0647 \u0647\u0627\u06cc \u0622\u0628\u06cc \u0631\u0646\u06af \u0628\u0627 \u0645\u0631\u0628\u0639 \u0647\u0627\u06cc \u0622\u0628\u06cc \u0631\u0646\u06af \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0646\u062f.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">import cv2 as cv\nimport numpy as np\nimport matplotlib.pyplot as plt\n# \u0645\u062c\u0645\u0648\u0639\u0647 \u0648\u06cc\u0698\u06af\u06cc \u0647\u0627 \u0634\u0627\u0645\u0644 \u06f2\u06f5 \u0645\u0642\u062f\u0627\u0631 \u0634\u0646\u0627\u062e\u062a\u0647 \u0634\u062f\u0647 \u0627\u0632 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0622\u0645\u0648\u0632\u0634\u06cc \u0628\u0631\u0627\u06cc (x,y) \ntrainData = np.random.randint(0,100,(25,2)).astype(np.float32)\n# \u0647\u0631 \u06a9\u062f\u0627\u0645 \u0627\u0632 \u0645\u0642\u0627\u062f\u06cc\u0631 \u0642\u0631\u0645\u0632 \u06cc\u0627 \u0622\u0628\u06cc \u0631\u0627 \u0628\u0627 \u06f0 \u0648 \u06f1 \u0628\u0631\u0686\u0633\u0628 \u0645\u06cc \u0632\u0646\u06cc\u0645 \nresponses = np.random.randint(0,2,(25,1)).astype(np.float32)\n# \u0647\u0645\u0633\u0627\u06cc\u0647 \u0647\u0627\u06cc \u062f\u0633\u062a\u0647 \u0642\u0631\u0645\u0632 \u0631\u0627 \u0645\u06cc \u06af\u06cc\u0631\u06cc\u0645 \u0648 \u0622\u0646 \u0647\u0627 \u0631\u0627 \u0631\u0648\u06cc \u0646\u0645\u0648\u062f\u0627\u0631 \u0631\u0633\u0645 \u0645\u06cc \u06a9\u0646\u06cc\u0645\nred = trainData[responses.ravel()==0]\nplt.scatter(red[:,0],red[:,1],80,'r','^')\n# \u0647\u0645\u0633\u0627\u06cc\u0647 \u0647\u0627\u06cc \u062f\u0633\u062a\u0647 \u0622\u0628\u06cc \u0631\u0627 \u0645\u06cc \u06af\u06cc\u0631\u06cc\u0645 \u0648 \u0622\u0646 \u0647\u0627 \u0631\u0627 \u0631\u0648\u06cc \u0646\u0645\u0648\u062f\u0627\u0631 \u0631\u0633\u0645 \u0645\u06cc \u06a9\u0646\u06cc\u0645\nblue = trainData[responses.ravel()==1]\nplt.scatter(blue[:,0],blue[:,1],80,'b','s')\nplt.show()\n<\/pre>\n<p style=\"text-align: justify;\">\u0628\u0639\u062f \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u062f \u0647\u0627\u06cc OpenCV \u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0634\u06a9\u0644\u06cc \u0645\u0634\u0627\u0628\u0647 \u0634\u06a9\u0644 \u0632\u06cc\u0631 \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u0627\u0644\u0628\u062a\u0647 \u0628\u0647 \u06cc\u0627\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u062f\u0631 \u0632\u0645\u0627\u0646 \u0627\u062c\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u062f\u060c \u0686\u0648\u0646 \u0627\u0632 \u0645\u062a\u063a\u06cc\u0631 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u0646\u062f\u0647 \u0639\u062f\u062f \u062a\u0635\u0627\u062f\u0641\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645\u060c \u0647\u0631 \u0632\u0645\u0627\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0645\u062a\u0641\u0627\u0648\u062a\u06cc \u0631\u0627 \u0628\u0647 \u062f\u0633\u062a \u0645\u06cc \u0622\u0648\u0631\u06cc\u0645.<\/p>\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/07\/\u062a\u0626\u0648\u0631\u06cc-Knn.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"220\" height=\"199\" src=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/07\/\u062a\u0626\u0648\u0631\u06cc-Knn.png\" alt=\"\u062a\u0626\u0648\u0631\u06cc Knn\" class=\"wp-image-7763\" title=\"\"><\/a><\/figure><\/div>\n\n\n<p style=\"text-align: justify;\">\u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0628\u0639\u062f\u060c \u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645 K \u0646\u0632\u062f\u06cc\u06a9 \u062a\u0631\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647 \u0645\u0642\u062f\u0627\u0631\u062f\u0647\u06cc \u0645\u06cc \u0634\u0648\u062f \u0648 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0622\u0645\u0648\u0632\u0634\u06cc \u0628\u0631\u0627\u06cc \u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645 \u0627\u0631\u0633\u0627\u0644 \u0634\u062f\u0647 \u062a\u0627 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0628\u0647 \u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645\u060c \u067e\u0627\u0633\u062e \u062f\u0647\u06cc \u0645\u06cc \u0634\u0648\u062f \u062a\u0627 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u062a\u0633\u062a\u06cc \u062c\u062f\u06cc\u062f\u06cc \u0627\u06cc\u062c\u0627\u062f \u0634\u0648\u062f (\u062f\u0631 \u062d\u0642\u06cc\u0642\u062a \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0627\u0632 \u06a9\u062f\u0646\u0648\u06cc\u0633\u06cc \u06cc\u06a9 \u062f\u0631\u062e\u062a \u062c\u0633\u062a\u062c\u0648 \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u0648 \u0641\u0631\u0627\u06cc\u0646\u062f \u0627\u06cc\u062c\u0627\u062f \u0646\u0645\u0648\u0646\u0647 \u0647\u0627\u06cc \u062c\u062f\u06cc\u062f \u0627\u0632 \u0637\u0631\u06cc\u0642 \u062f\u0631\u062e\u062a \u062c\u0633\u062a\u062c\u0648 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc \u0634\u0648\u062f).<\/p>\n<p style=\"text-align: justify;\">\u0633\u067e\u0633\u060c \u0646\u0645\u0648\u0646\u0647 \u062c\u062f\u06cc\u062f \u0645\u0627 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u0634\u0648\u062f \u0648 \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0628\u0627 \u06a9\u0645\u06a9 \u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645 K \u0646\u0632\u062f\u06cc\u06a9 \u062a\u0631\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647 \u062f\u0631 OpenCV \u0622\u0646 \u0631\u0627 \u0637\u0628\u0642\u0647 \u0628\u0646\u062f\u06cc \u06a9\u0631\u062f\u0647 \u0648 \u062f\u0631 \u06a9\u0644\u0627\u0633 \u0645\u0631\u062a\u0628\u0637 \u062f\u0633\u062a\u0647 \u0628\u0646\u062f\u06cc \u0645\u06cc \u0634\u0648\u062f. \u0627\u0645\u0627 \u0628\u0647 \u06cc\u0627\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0642\u0628\u0644 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645 K \u0646\u0632\u062f\u06cc\u06a9 \u062a\u0631\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647 \u0644\u0627\u0632\u0645 \u0627\u0633\u062a \u062a\u0627 \u062f\u0631 \u0645\u0648\u0631\u062f \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u062a\u0633\u062a \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 (\u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0639\u0636\u0648 \u062c\u062f\u06cc\u062f) \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u0631\u0627 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u0645.<\/p>\n<p style=\"text-align: justify;\">\u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0645\u0627 \u0628\u0627\u06cc\u062f \u0645\u0642\u0627\u062f\u06cc\u0631 \u0622\u0631\u0627\u06cc\u0647 \u0634\u0646\u0627\u0648\u0631 \u0628\u0627\u0634\u0646\u062f \u06a9\u0647 \u0633\u0627\u06cc\u0632 \u0622\u0646 \u0647\u0627 \u0627\u0632 \u0636\u0631\u0628 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u062a\u0633\u062a\u06cc \u062f\u0631 \u062a\u0639\u062f\u0627\u062f \u0648\u06cc\u0698\u06af\u06cc \u0647\u0627 \u0628\u0647 \u062f\u0633\u062a \u0645\u06cc \u0622\u06cc\u062f.\u00a0 \u0633\u067e\u0633\u060c \u0646\u0632\u062f\u06cc\u06a9\u062a\u0631\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647 \u0647\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u062f\u0627\u062f\u0647 \u0631\u0627 \u067e\u06cc\u062f\u0627 \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0628\u0647 K \u0647\u0631 \u0645\u0642\u062f\u0627\u0631\u06cc \u06a9\u0647 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u0645 \u0631\u0627 \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0647\u06cc\u0645 (\u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0645\u0627 \u0639\u062f\u062f \u06f3 \u0631\u0627 \u0628\u0631\u0627\u06cc K \u062f\u0631 \u0646\u0638\u0631 \u06af\u0631\u0641\u062a\u0647 \u0627\u06cc\u0645). \u0627\u06cc\u0646 \u06a9\u062f \u0645\u0642\u0627\u062f\u06cc\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631\u0645\u06cc \u06af\u0631\u062f\u0627\u0646\u062f:<\/p>\n<ol style=\"text-align: justify;\">\n<li>\u0628\u0631\u0686\u0633\u0628\u06cc \u06a9\u0647 \u0628\u0647 \u0646\u0645\u0648\u0646\u0647 \u0648 \u0639\u0636\u0648 \u062c\u062f\u06cc\u062f \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f \u0628\u0647 \u062a\u0626\u0648\u0631\u06cc \u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645 K \u0646\u0632\u062f\u06cc\u06a9 \u062a\u0631\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647 \u0628\u0633\u062a\u06af\u06cc \u062f\u0627\u0631\u062f \u06a9\u0647 \u0642\u0628\u0644\u0627 \u062f\u0631 \u0645\u0648\u0631\u062f \u0622\u0646 \u0635\u062d\u0628\u062a \u0634\u062f. \u0627\u06af\u0631 \u0634\u0645\u0627 \u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645 \u0646\u0632\u062f\u06cc\u06a9\u062a\u0631\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647 \u0631\u0627 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f\u060c \u0628\u0647 K \u062e\u0648\u062f \u0639\u062f\u062f \u06cc\u06a9 \u0631\u0627 \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0627\u062f\u0647 \u0648 K=1 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f.<\/li>\n<li>\u0628\u0631\u0686\u0633\u0628 K \u0646\u0632\u062f\u06cc\u06a9 \u062a\u0631\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647<\/li>\n<li>\u0641\u0627\u0635\u0644\u0647 \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0646\u0645\u0648\u0646\u0647 \u06cc\u0627 \u0639\u0636\u0648 \u062c\u062f\u06cc\u062f \u062a\u0627 \u0647\u0631 \u06a9\u062f\u0627\u0645 \u0627\u0632 \u0646\u0632\u062f\u06cc\u06a9\u062a\u0631\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647 \u0647\u0627<\/li>\n<\/ol>\n<p style=\"text-align: justify;\">\u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646\u060c \u0627\u062c\u0627\u0632\u0647 \u062f\u0647\u06cc\u062f \u06a9\u0647 \u0646\u062d\u0648\u0647 \u0639\u0645\u0644 \u06a9\u0631\u062f\u0646 \u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645 K \u0646\u0632\u062f\u06cc\u06a9 \u062a\u0631\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647 \u062f\u0631 OpenCV \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u0645. \u0639\u0636\u0648 \u06cc\u0627 \u0646\u0645\u0648\u0646\u0647 \u062c\u062f\u06cc\u062f \u062f\u0631 \u0627\u06cc\u0646 \u06a9\u062f OpenCV \u0628\u0627 \u0631\u0646\u06af \u0633\u0628\u0632 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">newcomer = np.random.randint(0,100,(1,2)).astype(np.float32)\nplt.scatter(newcomer[:,0],newcomer[:,1],80,'g','o')\nknn = cv.ml.KNearest_create()\nknn.train(trainData, cv.ml.ROW_SAMPLE, responses)\nret, results, neighbours ,dist = knn.findNearest(newcomer, 3)\nprint( \"result: {}\\n\".format(results) )\nprint( \"neighbours: {}\\n\".format(neighbours) )\nprint( \"distance: {}\\n\".format(dist) )\nplt.show()\n<\/pre>\n<p style=\"text-align: justify;\">\u0627\u0632 \u06a9\u062f \u0627\u0646\u062c\u0627\u0645 \u0634\u062f\u0647 \u0646\u062a\u06cc\u062c\u0647 \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0628\u0647 \u062f\u0633\u062a \u0645\u06cc \u0622\u06cc\u062f:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">result: [[ 1.]]\nneighbours: [[ 1. 1. 1.]]\ndistance: [[ 53. 58. 61.]]\n<\/pre>\n<p style=\"text-align: justify;\">\u0627\u06cc\u0646 \u0646\u062a\u06cc\u062c\u0647 \u0628\u0647 \u062f\u0633\u062a \u0622\u0645\u062f\u0647 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0639\u0636\u0648 \u062c\u062f\u06cc\u062f \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u062f\u0627\u0631\u0627\u06cc \u06f3 \u0647\u0645\u0633\u0627\u06cc\u0647 \u0646\u0632\u062f\u06cc\u06a9 \u0627\u0633\u062a \u06a9\u0647 \u0647\u0645\u06af\u06cc \u0627\u0632 \u062e\u0627\u0646\u0648\u0627\u062f\u0647 \u0622\u0628\u06cc \u0631\u0646\u06af \u0647\u0627 \u0647\u0633\u062a\u0646\u062f. \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0639\u0636\u0648 \u062c\u062f\u06cc\u062f \u0628\u0631\u0686\u0633\u0628 \u06a9\u0644\u0627\u0633 (\u062e\u0627\u0646\u0648\u0627\u062f\u0647) \u0622\u0628\u06cc \u0631\u0646\u06af \u0631\u0627 \u0628\u0647 \u062e\u0648\u062f \u0627\u062e\u062a\u0635\u0627\u0635 \u0645\u06cc \u062f\u0647\u062f. \u0627\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639 \u0627\u0632 \u0634\u06a9\u0644 \u0632\u06cc\u0631 \u06a9\u0627\u0645\u0644\u0627 \u0645\u0634\u062e\u0635 \u0627\u0633\u062a:<\/p>\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/07\/\u0645\u062b\u0627\u0644-\u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645-KNN.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"393\" height=\"314\" src=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/07\/\u0645\u062b\u0627\u0644-\u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645-KNN.png\" alt=\"\u0645\u062b\u0627\u0644 \u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645 KNN\" class=\"wp-image-7764\" title=\"\" srcset=\"https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/07\/\u0645\u062b\u0627\u0644-\u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645-KNN.png 393w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/07\/\u0645\u062b\u0627\u0644-\u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645-KNN-300x240.png 300w\" sizes=\"(max-width: 393px) 100vw, 393px\" \/><\/a><\/figure><\/div>\n\n\n<p style=\"text-align: justify;\">\u062f\u0631 \u0627\u06cc\u0646 \u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645 \u0648 \u06a9\u062f\u0647\u0627\u06cc OpenCV \u0645\u0631\u0628\u0648\u0637\u0647 \u0627\u06af\u0631 \u0686\u0646\u062f\u06cc\u0646 \u0646\u0645\u0648\u0646\u0647 \u06cc\u0627 \u0639\u0636\u0648 \u062c\u062f\u06cc\u062f \u0645\u0648\u062c\u0648\u062f \u0628\u0648\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0647\u0645\u06af\u06cc \u0627\u06cc\u0646 \u0646\u0645\u0648\u0646\u0647 \u0647\u0627\u06cc \u062c\u062f\u06cc\u062f \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0622\u0631\u0627\u06cc\u0647 \u0627\u06cc \u0645\u0648\u0631\u062f \u0628\u0631\u0631\u0633\u06cc \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u062d\u0627\u0644\u062a \u0646\u062a\u06cc\u062c\u0647 \u0628\u0647 \u062f\u0633\u062a \u0622\u0645\u062f\u0647 \u0646\u06cc\u0632 \u0628\u0647 \u0635\u0648\u0631\u062a \u0622\u0631\u0627\u06cc\u0647 \u062d\u0627\u0635\u0644 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\"># \u06f1\u06f0 \u0639\u0636\u0648 \u062c\u062f\u06cc\u062f\nnewcomers = np.random.randint(0,100,(10,2)).astype(np.float32)\nret, results,neighbours,dist = knn.findNearest(newcomer, 3)\n# \u0646\u062a\u06cc\u062c\u0647 \u0646\u06cc\u0632 \u0634\u0627\u0645\u0644 \u06f1\u06f0 \u0628\u0631\u0686\u0633\u0628 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f<\/pre>\n<p style=\"text-align: justify;\">\u062d\u0627\u0644\u0627 \u0641\u0631\u0636 \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0645\u0627 \u0646\u0627\u0634\u0646\u0627\u062e\u062a\u0647 \u0628\u0648\u062f\u0647 \u0648 \u0637\u0628\u0642\u0647 \u0628\u0646\u062f\u06cc \u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645 K \u0646\u0632\u062f\u06cc\u06a9 \u062a\u0631\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647 \u062f\u0631 OpenCV \u0628\u0631\u0686\u0633\u0628 \u062f\u0627\u062f\u0647 \u0627\u06cc \u0628\u0627 \u0645\u0642\u0627\u062f\u06cc\u0631 \u06f0 \u0648 \u06f1 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u0646\u062f. \u0627\u06cc\u0646 \u0645\u0642\u062f\u0627\u0631 \u062f\u0627\u062f\u0647 \u0627\u06cc \u0628\u0647 \u0648\u06cc\u0698\u06af\u06cc \u0639\u062f\u062f \u0628\u0647 \u062f\u0633\u062a \u0622\u0645\u062f\u0647 \u0645\u0631\u0628\u0648\u0637 \u0627\u0633\u062a \u0648 \u062a\u0648\u0633\u0637 \u0645\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc \u0634\u0648\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u062d\u0627\u0644\u062a \u06a9\u062f \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645 K \u0646\u0632\u062f\u06cc\u06a9 \u062a\u0631\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647 \u062f\u0631 OpenCV \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc \u0645\u06cc \u0634\u0648\u062f:<\/p>\n<ul style=\"text-align: justify;\">\n<li>\u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u062a\u0635\u0627\u062f\u0641\u06cc \u0645\u06cc \u0633\u0627\u0632\u06cc\u0645<\/li>\n<li>unkown \u06cc\u06a9 \u0646\u0642\u0637\u0647 \u062f\u0627\u062f\u0647 \u0627\u0633\u062a \u06a9\u0647 \u0631\u0648\u06cc \u0622\u0646 \u067e\u06cc\u0634\u0628\u06cc\u0646\u06cc \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc \u062f\u0647\u06cc\u0645<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-linenumbers=\"false\">unknown = np.random.randint(0, 50, (1, 2)).astype(np.float32)<\/pre>\n<ul style=\"text-align: justify;\">\n<li>\u06a9\u0644\u0627\u0633\u0647 \u0628\u0646\u062f KNN \u0631\u0627 \u0645\u06cc\u00a0 \u0633\u0627\u0632\u06cc\u0645<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-linenumbers=\"false\">knn = cv.ml.KNearest_create()<\/pre>\n<ul style=\"text-align: justify;\">\n<li>\u0627\u0632 \u062a\u0627\u0628\u0639 cv.ml.ROW_SAMPLE \u0628\u0631\u0627\u06cc \u0627\u0634\u063a\u0627\u0644 \u06cc\u06a9 \u0633\u0637\u0631 \u0627\u0632 \u0646\u0645\u0648\u0646\u0647 \u0647\u0627 \u062f\u0631 \u0645\u062c\u0645\u0648\u0639\u0647 \u06cc \u0646\u0645\u0648\u0646\u0647 \u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-linenumbers=\"false\">knn.train(Data_points, cv.ml.ROW_SAMPLE, labels)<\/pre>\n<ul style=\"text-align: justify;\">\n<li>\u0628\u0631\u0686\u0633\u0628\u060c \u0634\u0645\u0627\u0631\u0647 \u0648 \u0641\u0627\u0635\u0644\u0647 \u06cc \u0647\u0631 \u0646\u0642\u0637\u0647 \u062f\u0627\u062f\u0647 \u0631\u0627 \u0645\u06cc \u06af\u06cc\u0631\u06cc\u0645<\/li>\n<li>\u062a\u0627\u0628\u0639 find nearest \u062a\u0639\u062f\u0627\u062f \u0645\u0634\u062e\u0635\u06cc \u0627\u0632 \u0647\u0645\u0633\u0627\u06cc\u0647 \u0647\u0627 \u0631\u0627 \u0645\u06cc \u06cc\u0627\u0628\u062f \u0648 \u0646\u062a\u06cc\u062c\u0647 \u0631\u0627 \u067e\u06cc\u0634\u0628\u06cc\u0646\u06cc \u0645\u06cc \u06a9\u0646\u062f<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-linenumbers=\"false\">ret, res, neighbours, distance = knn.findNearest(unknown, 5)<\/pre>\n<ul style=\"text-align: justify;\">\n<li>\u0628\u0631\u0627\u06cc \u0647\u0631 \u0633\u0637\u0631 \u0627\u0632 \u0646\u0645\u0648\u0646\u0647 \u0647\u0627\u060c \u0627\u06cc\u0646 \u0631\u0648\u0634 k \u062a\u0627 \u0627\u0632 \u0646\u0632\u062f\u06cc\u06a9 \u062a\u0631\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647 \u0647\u0627 \u0631\u0627 \u067e\u06cc\u062f\u0627 \u0645\u06cc \u06a9\u0646\u062f<\/li>\n<li>\u0628\u0631\u0627\u06cc \u0645\u0633\u0627\u0626\u0644 \u0631\u06af\u0631\u0633\u06cc\u0648\u0646\u060c \u0646\u062a\u06cc\u062c\u0647 \u067e\u06cc\u0634\u0628\u06cc\u0646\u06cc \u0634\u062f\u0647 \u0645\u06cc\u0627\u0646\u06af\u06cc\u0646 \u062a\u0645\u0627\u0645 \u0647\u0645\u0633\u0627\u06cc\u0647 \u0647\u0627 \u0645\u06cc \u0628\u0627\u0634\u062f<\/li>\n<li>\u0628\u0631\u0627\u06cc \u06a9\u0644\u0627\u0633\u0647 \u0628\u0646\u062f\u06cc\u060c \u06a9\u0644\u0627\u0633 \u062a\u0634\u062e\u06cc\u0635 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0627\u06a9\u062b\u0631\u06cc\u062a \u062a\u0639\u06cc\u06cc\u0646 \u0645\u06cc \u0634\u0648\u062f<\/li>\n<li>\u0646\u0642\u0637\u0647 \u062f\u0627\u062f\u0647 \u0628\u0631\u0627 \u062f\u0631 \u06a9\u0646\u0627\u0631 \u0628\u0642\u06cc\u0647 \u0646\u0642\u0637\u0647 \u062f\u0627\u062f\u0647 \u0647\u0627 \u0631\u0633\u0645 \u0645\u06cc \u06a9\u0646\u06cc\u0645<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-linenumbers=\"false\">plt.scatter(unknown[:, 0], unknown[:, 1], 80, 'g', '^')<\/pre>\n<ul style=\"text-align: justify;\">\n<li>\u0646\u062a\u0627\u06cc\u062c \u0631\u0627 \u0631\u0633\u0645 \u0645\u06cc \u06a9\u0646\u06cc\u0645<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-linenumbers=\"false\">plt.show()<\/pre>\n<ul style=\"text-align: justify;\">\n<li>\u0646\u062a\u0627\u06cc\u062c \u0628\u0647 \u062f\u0633\u062a \u0622\u0645\u062f\u0647 \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc \u062f\u0647\u06cc\u0645<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-linenumbers=\"false\">print( \"Label of the unknown data - \", res ) \nprint( \"Nearest neighbors -  \", neighbours ) \nprint( \"Distance of each neighbor - \", distance ) <\/pre>\n<p style=\"text-align: justify;\">\u06a9\u0647 \u062e\u0631\u0648\u062c\u06cc \u06a9\u062f \u0632\u06cc\u0631 \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-linenumbers=\"false\">Label of the unknown data -  [[1.]]\nNearest neighbors -   [[1. 1. 0. 1. 1.]]\nDistance of each neighbor -  [[  1.  65. 130. 173. 245.]]\n<\/pre>\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/07\/\u0645\u062b\u0627\u0644-\u067e\u06cc\u0627\u062f\u0647-\u0633\u0627\u0632\u06cc-KNN-\u062f\u0631-OpenCV.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/07\/\u0645\u062b\u0627\u0644-\u067e\u06cc\u0627\u062f\u0647-\u0633\u0627\u0632\u06cc-KNN-\u062f\u0631-OpenCV.png\" alt=\"\u0645\u062b\u0627\u0644 \u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc KNN \u062f\u0631 OpenCV\" class=\"wp-image-7767\" width=\"404\" height=\"344\" title=\"\" srcset=\"https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/07\/\u0645\u062b\u0627\u0644-\u067e\u06cc\u0627\u062f\u0647-\u0633\u0627\u0632\u06cc-KNN-\u062f\u0631-OpenCV.png 807w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/07\/\u0645\u062b\u0627\u0644-\u067e\u06cc\u0627\u062f\u0647-\u0633\u0627\u0632\u06cc-KNN-\u062f\u0631-OpenCV-300x256.png 300w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/07\/\u0645\u062b\u0627\u0644-\u067e\u06cc\u0627\u062f\u0647-\u0633\u0627\u0632\u06cc-KNN-\u062f\u0631-OpenCV-768x655.png 768w\" sizes=\"(max-width: 404px) 100vw, 404px\" \/><\/a><\/figure><\/div>\n\n\n<h4><strong>\u0628\u06cc\u0634\u062a\u0631 \u0628\u062e\u0648\u0627\u0646\u06cc\u062f :<\/strong><\/h4>\n\n<ul class=\"wp-block-latest-posts__list wp-block-latest-posts\"><li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/shahaab-co.com\/mag\/news\/tesla-vision-ai-lane-detection\/\">\u062a\u0633\u0644\u0627 \u0648\u06cc\u0698\u0646 \u0686\u06cc\u0633\u062a \u0648 \u062e\u0648\u062f\u0631\u0648\u0647\u0627\u06cc \u062a\u0633\u0644\u0627 \u0686\u06af\u0648\u0646\u0647 \u062e\u0637\u0648\u0637 \u062c\u0627\u062f\u0647 \u0631\u0627 \u062a\u0634\u062e\u06cc\u0635 \u0645\u06cc\u200c\u062f\u0647\u0646\u062f\u061f<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/shahaab-co.com\/mag\/news\/offline-ai-for-mobile\/\">\u0647\u0648\u0634 \u0645\u0635\u0646\u0648\u0639\u06cc \u0622\u0641\u0644\u0627\u06cc\u0646 \u0628\u0631\u0627\u06cc \u06af\u0648\u0634\u06cc<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/shahaab-co.com\/mag\/news\/which-ai-is-working-now\/\">\u06a9\u062f\u0627\u0645 \u0647\u0648\u0634 \u0645\u0635\u0646\u0648\u0639\u06cc \u0627\u0644\u0627\u0646 \u06a9\u0627\u0631 \u0645\u06cc\u06a9\u0646\u0647\u061f<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/shahaab-co.com\/mag\/news\/how-to-find-hidden-spy-cameras-in-hotels\/\">\u062f\u0648\u0631\u0628\u06cc\u0646 \u0647\u0627\u06cc \u062c\u0627\u0633\u0648\u0633\u06cc \u062f\u0631 \u0647\u062a\u0644 \u0647\u0627! \u0686\u06af\u0648\u0646\u0647 \u067e\u06cc\u062f\u0627\u06cc\u0634\u0627\u0646 \u06a9\u0646\u06cc\u0645\u061f<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/shahaab-co.com\/mag\/news\/how-autonomous-vehicles-see-surroundings\/\">\u062e\u0648\u062f\u0631\u0648\u0647\u0627\u06cc \u0628\u062f\u0648\u0646 \u0633\u0631\u0646\u0634\u06cc\u0646 \u0686\u06af\u0648\u0646\u0647 \u0645\u062d\u06cc\u0637 \u0627\u0637\u0631\u0627\u0641 \u0631\u0627 \u0645\u06cc \u0628\u06cc\u0646\u0646\u062f\u061f<\/a><\/li>\n<\/ul>\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;7760&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0627\u0645\u062a\u06cc\u0627\u0632 \u062f\u0647\u06cc\u062f!&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 \u0627\u0645\u062a\u06cc\u0627\u0632)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;\u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0645\u0627\u0634\u06cc\u0646 \u062f\u0631 OpenCV : \u062c\u0644\u0633\u0647 \u0633\u0648\u0645&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} \u0627\u0645\u062a\u06cc\u0627\u0632)&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">\u0627\u0645\u062a\u06cc\u0627\u0632 \u062f\u0647\u06cc\u062f!<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645 K \u0646\u0632\u062f\u06cc\u06a9 \u062a\u0631\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647 \u062f\u0631 OpenCV : \u062f\u0631 \u0627\u06cc\u0646 \u062c\u0644\u0633\u0647 \u0627\u0632 \u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0645\u0627\u0634\u06cc\u0646 \u0628\u0647 \u0628\u0631\u0631\u0633\u06cc \u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645 K \u0646\u0632\u062f\u06cc\u06a9 \u062a\u0631\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647 \u062f\u0631 OpenCV \u0645\u06cc \u067e\u0631\u062f\u0627\u0632\u06cc\u0645. \u0645\u062b\u0627\u0644 \u0631\u0627 \u0628\u0627 \u062f\u0648 \u062e\u0627\u0646\u0648\u0627\u062f\u0647 ( \u06a9\u0644\u0627\u0633 ) \u067e\u06cc\u0634 \u0645\u06cc \u0628\u0631\u06cc\u0645 : \u062f\u0631 \u0627\u06cc\u0646 \u0645\u062b\u0627\u0644 \u062e\u0627\u0646\u0648\u0627\u062f\u0647 ( \u06a9\u0644\u0627\u0633 ) \u0642\u0631\u0645\u0632 \u0631\u0627 \u0628\u0627 \u0646\u0627\u0645 \u06a9\u0644\u0627\u0633-\u06f0 \u0648 \u062e\u0627\u0646\u0648\u0627\u062f\u0647 ( \u06a9\u0644\u0627\u0633 ) \u0622\u0628\u06cc &hellip;<\/p>\n","protected":false},"author":19,"featured_media":7771,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","footnotes":""},"categories":[195,18],"tags":[119,84,147,152,126],"class_list":["post-7760","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-ml","category-edu","tag-opencv","tag-84","tag-147","tag-152","tag-126"],"_links":{"self":[{"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/posts\/7760","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/comments?post=7760"}],"version-history":[{"count":0,"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/posts\/7760\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/media\/7771"}],"wp:attachment":[{"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/media?parent=7760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/categories?post=7760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/tags?post=7760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}