{"id":7903,"date":"2020-08-12T12:11:55","date_gmt":"2020-08-12T07:41:55","guid":{"rendered":"https:\/\/shahaab-co.ir\/mag\/?p=7903"},"modified":"2020-08-12T14:35:57","modified_gmt":"2020-08-12T10:05:57","slug":"license-plate-recognition-using-opencv-yolo-and-keras","status":"publish","type":"post","link":"https:\/\/shahaab-co.com\/mag\/edu\/machine-vision\/license-plate-recognition-using-opencv-yolo-and-keras\/","title":{"rendered":"\u067e\u0631\u0648\u0698\u0647 \u062a\u0634\u062e\u06cc\u0635 \u067e\u0644\u0627\u06a9 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 OpenCV \u060c YOLO \u0648 Keras"},"content":{"rendered":"<p style=\"text-align: justify;\">\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647\u060c \u0647\u062f\u0641 \u0645\u0627 \u062f\u0631 \u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647 \u062a\u0634\u062e\u06cc\u0635 \u067e\u0644\u0627\u06a9 \u062e\u0648\u062f\u0631\u0648 \u062f\u0631 \u0632\u0645\u0627\u0646 \u0648\u0627\u0642\u0639\u06cc \u0627\u0633\u062a. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0645\u0646\u0638\u0648\u0631\u060c \u0627\u0632 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0647\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646 \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645:<\/p>\n<ul>\n<li style=\"text-align: justify;\"><strong><a href=\"https:\/\/shahaab-co.ir\/opencv3-3-contrib-x86-x64\/\" target=\"_blank\" rel=\"noopener noreferrer\">OpenCV<\/a><\/strong><\/li>\n<li style=\"text-align: justify;\"><strong><a href=\"https:\/\/www.tensorflow.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Tensorflow-GPU<\/a><\/strong><\/li>\n<li style=\"text-align: justify;\"><strong><a href=\"https:\/\/github.com\/thtrieu\/darkflow\" target=\"_blank\" rel=\"noopener noreferrer\">Darkflow<\/a><\/strong><\/li>\n<li style=\"text-align: justify;\"><strong><a href=\"https:\/\/keras.io\/\" target=\"_blank\" rel=\"noopener noreferrer\">Keras<\/a><\/strong><\/li>\n<li style=\"text-align: justify;\"><strong><a href=\"https:\/\/numpy.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Numpy<\/a><\/strong><\/li>\n<\/ul>\n<p><strong>\u06f3 \u0645\u0631\u062d\u0644\u0647 \u062f\u0631 \u0641\u0631\u0627\u06cc\u0646\u062f \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0645\u0627 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f:<\/strong> \u0627\u0628\u062a\u062f\u0627 \u0628\u0627\u06cc\u062f <strong>\u067e\u0644\u0627\u06a9 \u062e\u0648\u062f\u0631\u0648 \u0631\u0627 \u062a\u0634\u062e\u06cc\u0635 \u062f\u0647\u06cc\u0645<\/strong> \u0648 \u0633\u067e\u0633<strong> \u062a\u0642\u0633\u06cc\u0645 \u0628\u0646\u062f\u06cc \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 \u0647\u0627<\/strong> \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u0645 \u0648 \u062f\u0631 \u0622\u062e\u0631 <strong>\u067e\u0644\u0627\u06a9 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0631\u0627 \u0628\u062e\u0648\u0627\u0646\u06cc\u0645<\/strong>.<\/p>\n<p style=\"text-align: justify;\">\u0633\u062e\u062a \u0627\u0641\u0632\u0627\u0631 \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647 : \u0645\u0648\u062a\u0648\u0631 \u0645\u062d\u0627\u0633\u0628\u0627\u062a \u0627\u0628\u0631\u06cc Google (8 vCPU \u060c \u06f3\u06f0 Go memory\u060c \u062a\u0633\u0644\u0627 K80\u060c \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u06f1\u06f8\u066b\u06f0\u06f4)<\/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\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a9.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"700\" height=\"273\" src=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a9.jpg\" alt=\"\u062a\u0634\u062e\u06cc\u0635 \u067e\u0644\u0627\u06a9\" class=\"wp-image-7904\" title=\"\" srcset=\"https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a9.jpg 700w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a9-300x117.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/a><\/figure><\/div>\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 counter-hierarchy ez-toc-counter-rtl ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0622\u0646\u0686\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062e\u0648\u0627\u0646\u062f :<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #0044bf;color:#0044bf\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #0044bf;color:#0044bf\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/shahaab-co.com\/mag\/edu\/machine-vision\/license-plate-recognition-using-opencv-yolo-and-keras\/#%DB%B1-_%D8%AA%D8%B4%D8%AE%DB%8C%D8%B5_%D9%BE%D9%84%D8%A7%DA%A9\" >\u06f1- \u062a\u0634\u062e\u06cc\u0635 \u067e\u0644\u0627\u06a9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/shahaab-co.com\/mag\/edu\/machine-vision\/license-plate-recognition-using-opencv-yolo-and-keras\/#%DB%B2-_%D8%AA%D9%82%D8%B3%DB%8C%D9%85_%D8%A8%D9%86%D8%AF%DB%8C_%DA%A9%D8%A7%D8%B1%D8%A7%DA%A9%D8%AA%D8%B1\" >\u06f2- \u062a\u0642\u0633\u06cc\u0645 \u0628\u0646\u062f\u06cc \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/shahaab-co.com\/mag\/edu\/machine-vision\/license-plate-recognition-using-opencv-yolo-and-keras\/#%DB%B3-_%D8%AA%D8%B4%D8%AE%DB%8C%D8%B5_%DA%A9%D8%A7%D8%B1%D8%A7%DA%A9%D8%AA%D8%B1\" >\u06f3- \u062a\u0634\u062e\u06cc\u0635 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/shahaab-co.com\/mag\/edu\/machine-vision\/license-plate-recognition-using-opencv-yolo-and-keras\/#%DB%B4-_%D9%86%D8%AA%DB%8C%D8%AC%D9%87_%D9%86%D9%87%D8%A7%DB%8C%DB%8C\" >\u06f4- \u0646\u062a\u06cc\u062c\u0647 \u0646\u0647\u0627\u06cc\u06cc :<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/shahaab-co.com\/mag\/edu\/machine-vision\/license-plate-recognition-using-opencv-yolo-and-keras\/#%DB%B5-_%D9%85%D8%AD%D9%88%D8%B1_%D9%87%D8%A7%DB%8C_%D8%A8%D9%87%D8%A8%D9%88%D8%AF_%D9%85%D8%AF%D9%84\" >\u06f5- \u0645\u062d\u0648\u0631 \u0647\u0627\u06cc \u0628\u0647\u0628\u0648\u062f \u0645\u062f\u0644<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%DB%B1-_%D8%AA%D8%B4%D8%AE%DB%8C%D8%B5_%D9%BE%D9%84%D8%A7%DA%A9\"><\/span><strong>\u06f1- \u062a\u0634\u062e\u06cc\u0635 \u067e\u0644\u0627\u06a9<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u06cc <strong>Darkflow<\/strong> \u060c \u0645\u0627 \u06cc\u06a9 \u0645\u062f\u0644 <strong>YOLO<\/strong> (\u0645\u062e\u0641\u0641 \u0639\u0628\u0627\u0631\u062a You Only Look Once) \u0631\u0627 \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u06f1\u06f9\u06f0\u06f0 \u062a\u0635\u0648\u06cc\u0631 \u0645\u0627\u0634\u06cc\u0646 \u0628\u0627 \u067e\u0644\u0627\u06a9 \u0647\u0627\u06cc \u062f\u0627\u0631\u0627\u06cc \u0645\u062a\u0646 \u0622\u0645\u0648\u0632\u0634 \u062f\u0627\u062f\u0647 \u0627\u06cc\u0645. <strong>LabelImg<\/strong> \u06cc\u06a9 \u0627\u0628\u0632\u0627\u0631\u06cc \u0639\u0627\u0644\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc \u062f\u0647\u062f \u062a\u0635\u0627\u0648\u06cc\u0631 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 \u0641\u0631\u0645\u062a Pascal VOC \u062d\u0627\u0634\u06cc\u0647 \u0646\u0648\u06cc\u0633\u06cc \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u0645\u062c\u0645\u0648\u0639\u0647 \u062f\u0627\u062f\u0647 \u0627\u0632 \u062a\u0635\u0627\u0648\u06cc\u0631 \u062e\u0648\u062f\u0631\u0648 \u06a9\u0647 \u0628\u0647 \u0635\u0648\u0631\u062a \u0622\u0646\u0644\u0627\u06cc\u0646 \u067e\u06cc\u062f\u0627 \u06a9\u0631\u062f\u06cc\u0645 \u060c \u0628\u0631\u062e\u06cc \u062a\u0635\u0627\u0648\u06cc\u0631 \u06a9\u0647 \u062f\u0631 \u062e\u06cc\u0627\u0628\u0627\u0646 \u06af\u0631\u0641\u062a\u0647 \u0634\u062f\u0647 \u0648 \u0628\u0631\u062e\u06cc \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0627\u062f\u0647 \u0627\u0641\u0632\u0627\u06cc\u06cc (data augmentation) (\u0641\u0644\u06cc\u067e \u0639\u0645\u0648\u062f\u06cc\u060c \u0627\u0635\u0644\u0627\u062d \u0631\u0648\u0634\u0646\u0627\u06cc\u06cc) \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Keras ( \u062a\u0648\u0627\u0628\u0639 \u06a9\u0644\u0627\u0633 ImageDataGenerator ) \u062c\u0645\u0639 \u0622\u0648\u0631\u06cc \u0634\u062f\u0647 \u0627\u0646\u062f.<\/p>\n<h4><strong>\u06a9\u062f \u0622\u0645\u0648\u0632\u0634 :<\/strong><\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import numpy as np\nfrom darkflow.net.build import TFNet\nimport cv2\noptions = {\"model\": \"cfg\/yolo-1c.cfg\",\n           \"load\": \"bin\/yolo.weights\",\n           \"batch\": 8,\n           \"epoch\": 100,\n           \"gpu\": 0.9,\n           \"train\": True,\n           \"annotation\": \".\/data\/AnnotationsXML\/007\/\",\n           \"dataset\": \".\/data\/Images\/007\/\"}\ntfnet = TFNet(options)\ntfnet.train()\ntfnet.savepb()<\/pre>\n<p><\/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\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a92-3.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"700\" height=\"196\" src=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a92-3.jpg\" alt=\"\u062a\u0634\u062e\u06cc\u0635 \u067e\u0644\u0627\u06a9\" class=\"wp-image-7906\" title=\"\" srcset=\"https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a92-3.jpg 700w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a92-3-300x84.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/a><figcaption>\u062a\u0635\u0627\u0648\u06cc\u0631\u06cc \u0627\u0632 \u0645\u062c\u0645\u0648\u0639\u0647 \u062f\u0627\u062f\u0647 \u0645\u0627 \u0628\u0627 \u062d\u0627\u0634\u06cc\u0647 \u0646\u0648\u06cc\u0633\u06cc \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 LableImg<\/figcaption><\/figure><\/div>\n\n\n<p>\u0633\u067e\u0633 \u0646\u062a\u0627\u06cc\u062c \u0628\u0647 \u062f\u0633\u062a \u0622\u0645\u062f\u0647 \u0627\u0632 \u0622\u0645\u0648\u0632\u0634 \u062e\u0648\u062f \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u062a\u0627 \u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc \u0647\u0627\u06cc \u062c\u062f\u06cc\u062f \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u0645 :<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">options = {\"pbLoad\": \"yolo-plate.pb\", \"metaLoad\": \"yolo-plate.meta\", \"gpu\": 0.9}\nyoloPlate = TFNet(options)<\/pre>\n<p dir=\"ltr\">\n<\/p><p>\u062a\u0627\u0628\u0639 <strong>firstCrop<\/strong> \u0627\u0632 <strong>\u0628\u0647\u062a\u0631\u06cc\u0646 \u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc<\/strong> \u0647\u0627\u06cc \u0628\u0639\u0645\u0644 \u0622\u0645\u062f\u0647 \u062a\u0648\u0633\u0637 \u0645\u062f\u0644 YOLO \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u062f \u0648 \u0634\u0645\u0627\u0631\u0647 \u067e\u0644\u0627\u06a9 \u062e\u0648\u062f\u0631\u0648 \u0631\u0627 \u062f\u0631 \u0627\u062e\u062a\u06cc\u0627\u0631 \u0645\u0627 \u0642\u0631\u0627\u0631 \u0645\u06cc \u062f\u0647\u062f.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def firstCrop(img, predictions):\n    predictions.sort(key=lambda x: x.get('confidence'))\n    xtop = predictions[i].get('topleft').get('x')\n    ytop = predictions[i].get('topleft').get('y')\n    xbottom = predictions[i].get('bottomright').get('x')\n    ybottom = predictions[i].get('bottomright').get('y')\n    firstCrop = img[ytop:ybottom, xtop:xbottom]\n    cv2.rectangle(img,(xtop,ytop),(xbottom,ybottom),(0,255,0),3)\n    return firstCrop<\/pre>\n<p><\/p>\n<p>\u062a\u0627\u0628\u0639 <strong>secondCrop<\/strong> \u0627\u0632 <strong>\u062a\u0648\u0627\u0628\u0639 OpenCV<\/strong> \u0628\u0631\u0627\u06cc \u0628\u0631\u0634 \u062f\u0627\u062f\u0646 \u0628\u06cc\u0634\u062a\u0631 \u067e\u0644\u0627\u06a9 \u062e\u0648\u062f\u0631\u0648 \u062c\u0647\u062a \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0627\u0632 \u0628\u0647 \u0648\u062c\u0648\u062f \u0622\u0645\u062f\u0646 <strong>\u0646\u0648\u06cc\u0632 \u062f\u0631 \u067e\u0633 \u0632\u0645\u06cc\u0646\u0647<\/strong> \u062a\u0635\u0648\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">def secondCrop(img):\n    gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)\n    ret,thresh = cv2.threshold(gray,127,255,0)\n    contours,_ = cv2.findContours(thresh,cv2.RETR_LIST,cv2.CHAIN_APPROX_SIMPLE)\n    areas = [cv2.contourArea(c) for c in contours]\n    if(len(areas)!=0):\n        max_index = np.argmax(areas)\n        cnt=contours[max_index]\n        x,y,w,h = cv2.boundingRect(cnt)\n        bounds = cv2.boundingRect(cnt)\n        cv2.rectangle(img,(x,y),(x+w,y+h),(0,255,0),2)\n        secondCrop = img[y:y+h,x:x+w]\n    else:\n        secondCrop = img\n    return secondCrop\n<\/pre>\n<p><\/p>\n<p>\u06a9\u062f \u0627\u0635\u0644\u06cc \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0648\u0627\u0628\u0639 \u062a\u0648\u0636\u06cc\u062d \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u062f\u0631 \u0628\u0627\u0644\u0627:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">predictions = yoloPlate.return_predict(frame)\nfirstCropImg = firstCrop(frame, predictions)\nsecondCropImg = secondCrop(firstCropImg)<\/pre>\n<p dir=\"ltr\"><\/p>\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"700\" height=\"177\" src=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a93-1.jpg\" alt=\"\u062a\u0634\u062e\u06cc\u0635 \u067e\u0644\u0627\u06a93 (1)\" class=\"wp-image-7907\" title=\"\" srcset=\"https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a93-1.jpg 700w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a93-1-300x76.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption>\u0645\u062b\u0627\u0644 \u062e\u0631\u0648\u062c\u06cc \u062a\u0634\u062e\u06cc\u0635 \u067e\u0644\u0627\u06a9<\/figcaption><\/figure><\/div>\n\n\n<h2><span class=\"ez-toc-section\" id=\"%DB%B2-_%D8%AA%D9%82%D8%B3%DB%8C%D9%85_%D8%A8%D9%86%D8%AF%DB%8C_%DA%A9%D8%A7%D8%B1%D8%A7%DA%A9%D8%AA%D8%B1\"><\/span><strong>\u06f2- \u062a\u0642\u0633\u06cc\u0645 \u0628\u0646\u062f\u06cc \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0628\u0631\u0627\u06cc \u062f\u0642\u062a \u0628\u06cc\u0634\u062a\u0631 \u0627\u0632<strong> \u062f\u0648 \u0631\u0648\u0634<\/strong> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u06cc\u0645:<\/p>\n<p>\u062f\u0631 \u062d\u0627\u0644\u062a \u0627\u0648\u0644\u060c \u0645\u0627 \u0627\u0632 \u0645\u062f\u0644 YOLO \u062f\u06cc\u06af\u0631\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u06cc\u0645 \u06a9\u0647 \u0628\u0627 \u062a\u0635\u0627\u0648\u06cc\u0631\u06cc \u0627\u0632 \u067e\u0644\u0627\u06a9 \u0647\u0627\u06cc\u06cc \u06a9\u0647 \u062f\u0631 \u0622\u0646 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 \u0647\u0627 \u062d\u0627\u0634\u06cc\u0647 \u0646\u0648\u06cc\u0633\u06cc \u0634\u062f\u0647 \u0627\u0646\u062f \u0622\u0645\u0648\u0632\u0634 \u062f\u06cc\u062f\u0647 \u0627\u0633\u062a. \u062a\u0646\u0647\u0627 \u06cc\u06a9 \u0628\u0631\u0686\u0633\u0628 &#8220;\u06a9\u0627\u0631\u06a9\u062a\u0631&#8221; \u062f\u0631 \u0622\u0646 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f\u061b <strong>\u0628\u0631\u0627\u06cc \u062d\u062f\u0648\u062f \u06f1\u06f4\u06f0\u06f0 \u06a9\u0627\u0631\u06a9\u062a\u0631<\/strong>.<\/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\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a94-1.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"700\" height=\"119\" src=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a94-1.jpg\" alt=\"\u062a\u0634\u062e\u06cc\u0635 \u067e\u0644\u0627\u06a94 (1)\" class=\"wp-image-7908\" title=\"\" srcset=\"https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a94-1.jpg 700w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a94-1-300x51.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/a><\/figure><\/div>\n\n\n<h4><strong>\u062a\u0639\u06cc\u06cc\u0646 \u0648\u0632\u0646:<\/strong><\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">options = {\"pbLoad\": \"yolo-character.pb\", \"metaLoad\": \"yolo-character.meta\", \"gpu\":0.9}\nyoloCharacter = TFNet(options)<\/pre>\n<p dir=\"ltr\">\n<\/p><p>\u062f\u0631 <strong>\u0631\u0648\u0634 \u062f\u0648\u0645<\/strong>\u060c \u0645\u0627 \u0627\u0632<strong> \u062a\u0648\u0627\u0628\u0639 OpenCV<\/strong> \u0628\u0631\u0627\u06cc \u067e\u0631\u062f\u0627\u0632\u0634 \u067e\u0644\u0627\u06a9 \u062e\u0648\u062f\u0631\u0648 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u06cc\u0645.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def auto_canny(image, sigma=0.33):\n    # compute the median of the single channel pixel intensities\n    v = np.median(image)\n \n    # apply automatic Canny edge detection using the computed median\n    lower = int(max(0, (1.0 - sigma) * v))\n    upper = int(min(255, (1.0 + sigma) * v))\n    edged = cv2.Canny(image, lower, upper)\n \n    # return the edged image\n    return edged\ngray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)\nthresh_inv = cv2.adaptiveThreshold(gray,255,cv2.ADAPTIVE_THRESH_MEAN_C,cv2.THRESH_BINARY_INV,39,1)\nedges = auto_canny(thresh_inv)\nctrs, _ = cv2.findContours(edges.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)\nsorted_ctrs = sorted(ctrs, key=lambda ctr: cv2.boundingRect(ctr)[0])\nimg_area = img.shape[0]*img.shape[1]\nfor i, ctr in enumerate(sorted_ctrs):\n    x, y, w, h = cv2.boundingRect(ctr)\n    roi_area = w*h\n    roi_ratio = roi_area\/img_area\nif((roi_ratio &gt;= 0.015) and (roi_ratio &lt; 0.09)):\n        if ((h&gt;1.2*w) and (3*w&gt;=h)):\n            cv2.rectangle(img,(x,y),( x + w, y + h ),(90,0,255),2)<\/pre>\n<p dir=\"ltr\"><\/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\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a95.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"700\" height=\"459\" src=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a95.jpg\" alt=\"\u062a\u0634\u062e\u06cc\u0635 \u067e\u0644\u0627\u06a95\" class=\"wp-image-7909\" title=\"\" srcset=\"https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a95.jpg 700w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a95-300x197.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/a><\/figure><\/div>\n\n\n<h2><span class=\"ez-toc-section\" id=\"%DB%B3-_%D8%AA%D8%B4%D8%AE%DB%8C%D8%B5_%DA%A9%D8%A7%D8%B1%D8%A7%DA%A9%D8%AA%D8%B1\"><\/span><strong>\u06f3- \u062a\u0634\u062e\u06cc\u0635 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">\u0645\u0627 \u06cc\u06a9 CNN \u0631\u0627 \u0628\u0627 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0647\u0627\u06cc <strong>Tensorflow<\/strong> \u0648 <strong>Keras<\/strong> \u0622\u0645\u0648\u0632\u0634 \u0645\u06cc \u062f\u0647\u06cc\u0645. <strong>\u06f3\u06f5 \u06a9\u0644\u0627\u0633<\/strong> \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f (\u06f1\u06f0 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0628\u0631\u0627\u06cc \u0627\u0639\u062f\u0627\u062f \u0648 \u06f2\u06f5 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0628\u0631\u0627\u06cc \u0627\u0644\u0641\u0628\u0627\u06cc \u0627\u0646\u06af\u0644\u06cc\u0633\u06cc \u0628\u062f\u0648\u0646 &#8220;O&#8221;).<\/p>\n<p style=\"text-align: justify;\"><strong>\u0628\u0631\u0627\u06cc \u0647\u0631 \u06a9\u0644\u0627\u0633<\/strong> \u062a\u0642\u0631\u06cc\u0628\u0627\u064b \u0627\u0632 <strong>\u06f1\u06f0\u06f0\u06f0 \u062a\u0635\u0648\u06cc\u0631<\/strong> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u06cc\u0645. \u0645\u0627 \u0646\u0645\u0648\u0646\u0647 \u0627\u06cc \u0627\u0632 \u062a\u0635\u0627\u0648\u06cc\u0631 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u0647\u0627 \u0631\u0627 \u062c\u0645\u0639 \u0622\u0648\u0631\u06cc \u06a9\u0631\u062f\u06cc\u0645 \u0648 \u0633\u067e\u0633 \u062f\u0627\u062f\u0647 \u0627\u0641\u0632\u0627\u06cc\u06cc (\u0686\u0631\u062e\u0634 \u0648 \u0631\u0648\u0634\u0646\u0627\u06cc\u06cc) \u0631\u0627 \u0628\u0647 \u06a9\u0627\u0631 \u0628\u0631\u062f\u06cc\u0645.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">model = models.Sequential()\nmodel.add(layers.Conv2D(32, (3, 3), activation='relu', input_shape=(height, width, channel)))\nmodel.add(layers.MaxPooling2D((2, 2)))\nmodel.add(layers.Conv2D(64, (3, 3), activation='relu'))\nmodel.add(layers.MaxPooling2D((2, 2)))\nmodel.add(layers.Conv2D(64, (3, 3), activation='relu'))\nmodel.add(layers.Flatten())\nmodel.add(layers.Dense(64, activation='relu'))\nmodel.add(layers.Dense(35, activation='softmax'))\nmodel.summary()\nmodel.compile(optimizer='adam',\n              loss='sparse_categorical_crossentropy',\n              metrics=['accuracy'])\nmodel.fit(train_images, train_labels, epochs=8)\ntest_loss, test_acc = model.evaluate(test_images, test_labels)\nprint(test_acc)\nmodel.save(\"model_char_recognition.h5\")<\/pre>\n<p dir=\"ltr\"><\/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\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a96-1.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"700\" height=\"424\" src=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a96-1.jpg\" alt=\"\u062a\u0634\u062e\u06cc\u0635 \u067e\u0644\u0627\u06a96 (1)\" class=\"wp-image-7910\" title=\"\" srcset=\"https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a96-1.jpg 700w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a96-1-300x182.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/a><figcaption>\u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0646\u0645\u0648\u0646\u0647<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a97-1.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"700\" height=\"64\" src=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a97-1.jpg\" alt=\"\u062a\u0634\u062e\u06cc\u0635 \u067e\u0644\u0627\u06a97 (1)\" class=\"wp-image-7911\" title=\"\" srcset=\"https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a97-1.jpg 700w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/08\/\u062a\u0634\u062e\u06cc\u0635-\u067e\u0644\u0627\u06a97-1-300x27.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/a><\/figure><\/div>\n\n\n<h4><strong>\u06a9\u062f \u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc :<\/strong><\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def cnnCharRecognition(img):\n    dictionary = {0:'0', 1:'1', 2 :'2', 3:'3', 4:'4', 5:'5', 6:'6', 7:'7', 8:'8', 9:'9', 10:'A',\n    \u06f1\u06f1:'B', 12:'C', 13:'D', 14:'E', 15:'F', 16:'G', 17:'H', 18:'I', 19:'J', 20:'K',\n    \u06f2\u06f1:'L', 22:'M', 23:'N', 24:'P', 25:'Q', 26:'R', 27:'S', 28:'T', 29:'U',\n    \u06f3\u06f0:'V', 31:'W', 32:'X', 33:'Y', 34:'Z'}\n    blackAndWhiteChar= cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)\n    blackAndWhiteChar = cv2.resize(blackAndWhiteChar,(75,100))\n    image = blackAndWhiteChar.reshape((1, 100,75, 1))\n    image = image \/ 255.0\n    new_predictions = characterRecognition.predict(image)\n    char = np.argmax(new_predictions)\n    return dictionary[char]<\/pre>\n<p dir=\"ltr\">\n<\/p><h2><span class=\"ez-toc-section\" id=\"%DB%B4-_%D9%86%D8%AA%DB%8C%D8%AC%D9%87_%D9%86%D9%87%D8%A7%DB%8C%DB%8C\"><\/span><strong>\u06f4- \u0646\u062a\u06cc\u062c\u0647 \u0646\u0647\u0627\u06cc\u06cc :<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div id=\"4179075817\"><script type=\"text\/JavaScript\" src=\"https:\/\/www.aparat.com\/embed\/cZl5b?data[rnddiv]=4179075817&amp;data[responsive]=yes&amp;&amp;recom=none\"><\/script><\/div>\n\n\n<h2><span class=\"ez-toc-section\" id=\"%DB%B5-_%D9%85%D8%AD%D9%88%D8%B1_%D9%87%D8%A7%DB%8C_%D8%A8%D9%87%D8%A8%D9%88%D8%AF_%D9%85%D8%AF%D9%84\"><\/span><strong>\u06f5- \u0645\u062d\u0648\u0631 \u0647\u0627\u06cc \u0628\u0647\u0628\u0648\u062f \u0645\u062f\u0644<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">\u062a\u0647\u06cc\u0647 \u06cc\u06a9<strong> \u0631\u0627\u0647 \u062d\u0644 \u0645\u0633\u062a\u062d\u06a9\u0645<\/strong> \u06a9\u0647 \u0645\u062f\u0644 \u062f\u0631\u0635\u0648\u0631\u062a\u06cc\u06a9\u0647 \u062d\u062a\u06cc \u0627\u06af\u0631 \u0634\u0631\u0627\u06cc\u0637 \u0622\u0628 \u0648 \u0647\u0648\u0627\u06cc\u06cc \u0646\u0627\u0645\u0633\u0627\u0639\u062f \u0648 \u06cc\u0627 \u0646\u0648\u0631 \u0632\u06cc\u0627\u062f\u06cc \u0648\u062c\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f \u0628\u062a\u0648\u0627\u0646\u062f \u0628\u062e\u0648\u0628\u06cc \u06a9\u0627\u0631 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u062f \u06a9\u0627\u0631 \u0633\u062e\u062a\u06cc \u0627\u0633\u062a. \u0636\u0639\u0641 \u0645\u0648\u062c\u0648\u062f \u062f\u0631 \u0641\u0631\u0627\u06cc\u0646\u062f \u0645\u0627 <strong>\u062a\u0642\u0633\u06cc\u0645 \u0628\u0646\u062f\u06cc \u06a9\u0627\u0631\u06a9\u062a\u0631 \u0647\u0627<\/strong> \u0627\u0633\u062a. \u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u0633\u062a\u06cc\u0645 \u0645\u062f\u0644 YOLO \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0628\u0647\u0628\u0648\u062f \u0628\u062e\u0634\u06cc\u0645 \u0627\u0645\u0627 \u0628\u0647 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0628\u0633\u06cc\u0627\u0631 \u0628\u06cc\u0634\u062a\u0631\u06cc \u0646\u06cc\u0627\u0632 \u0627\u0633\u062a \u0648 \u062d\u0627\u0634\u06cc\u0647 \u0646\u0648\u06cc\u0633\u06cc \u0627\u06cc\u0646 \u062a\u0635\u0627\u0648\u06cc\u0631 \u0628\u0633\u06cc\u0627\u0631 \u0633\u062e\u062a \u0645\u06cc \u0628\u0627\u0634\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u0627\u0641\u0632\u0648\u062f\u0646 \u067e\u0631\u062f\u0627\u0632\u0634 \u062a\u0635\u0648\u06cc\u0631 \u0628\u06cc\u0634\u062a\u0631 \u0645\u0627\u0646\u0646\u062f \u0639\u0645\u0644\u06a9\u0631\u062f <strong>dilate<\/strong> \u06cc\u0627 \u062a\u0627\u0628\u0639 <strong>close<\/strong> \u060c \u062a\u0642\u0633\u06cc\u0645 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 OpenCV \u0631\u0627 \u0628\u0647\u0628\u0648\u062f \u0628\u0628\u062e\u0634\u06cc\u062f\u060c \u0627\u0645\u0627 \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0628\u0633\u062a\u06af\u06cc \u0628\u0647 \u06a9\u06cc\u0641\u06cc\u062a \u0648 \u0627\u0646\u062f\u0627\u0632\u0647 \u062a\u0635\u0648\u06cc\u0631 \u067e\u0644\u0627\u06a9 \u0628\u0627\u0632\u06af\u0634\u062a\u06cc \u062a\u0648\u0633\u0637 \u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc \u0627\u0631\u0627\u0626\u0647 \u0634\u062f\u0647 \u062a\u0648\u0633\u0637 \u0645\u062f\u0644 \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u0627\u0633\u062a \u0628\u0633\u062a\u06af\u06cc \u062f\u0627\u0631\u062f. \u0627\u06cc\u0646 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u062f\u0631 \u0628\u0639\u0636\u06cc \u0645\u0648\u0627\u0631\u062f \u062e\u0648\u0628 \u0639\u0645\u0644 \u06a9\u0646\u062f \u0627\u0645\u0627 \u062f\u0631 \u0628\u0631\u062e\u06cc \u062f\u06cc\u06af\u0631 \u0646\u0647\u060c <strong>\u0628\u0647 \u0646\u0638\u0631 \u0645\u06cc\u0631\u0633\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0639\u0645\u06cc\u0642 \u0631\u0627\u0647 \u062d\u0644\u06cc \u0642\u0648\u06cc \u062a\u0631 \u0628\u0627\u0634\u062f<\/strong>.<\/p>\n<p>\u06a9\u062f \u06a9\u0627\u0645\u0644 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u062f\u0631 \u0627\u06cc\u0646 <a href=\"https:\/\/github.com\/TheophileBuy\/LicensePlateDetector\" target=\"_blank\" rel=\"noopener noreferrer\">\u0644\u06cc\u0646\u06a9<\/a> \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\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<a href=\"#\" class=\"shortc-button small blue \">\u0645\u0646\u0628\u0639<\/a> <a href=\"https:\/\/medium.com\/@theophilebuyssens\/license-plate-recognition-using-opencv-yolo-and-keras-f5bfe03afc65\" target=\"_blank\" class=\"shortc-button small gray \" rel=\"noopener\">medium.com<\/a>\n\n\n<p><\/p>\n\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;7903&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;\u067e\u0631\u0648\u0698\u0647 \u062a\u0634\u062e\u06cc\u0635 \u067e\u0644\u0627\u06a9 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 OpenCV \u060c YOLO \u0648 Keras&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>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647\u060c \u0647\u062f\u0641 \u0645\u0627 \u062f\u0631 \u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647 \u062a\u0634\u062e\u06cc\u0635 \u067e\u0644\u0627\u06a9 \u062e\u0648\u062f\u0631\u0648 \u062f\u0631 \u0632\u0645\u0627\u0646 \u0648\u0627\u0642\u0639\u06cc \u0627\u0633\u062a. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0645\u0646\u0638\u0648\u0631\u060c \u0627\u0632 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0647\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646 \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645: OpenCV Tensorflow-GPU Darkflow Keras Numpy \u06f3 \u0645\u0631\u062d\u0644\u0647 \u062f\u0631 \u0641\u0631\u0627\u06cc\u0646\u062f \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0645\u0627 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f: \u0627\u0628\u062a\u062f\u0627 \u0628\u0627\u06cc\u062f \u067e\u0644\u0627\u06a9 \u062e\u0648\u062f\u0631\u0648 \u0631\u0627 \u062a\u0634\u062e\u06cc\u0635 \u062f\u0647\u06cc\u0645 \u0648 \u0633\u067e\u0633 \u062a\u0642\u0633\u06cc\u0645 \u0628\u0646\u062f\u06cc \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 \u0647\u0627 \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 &hellip;<\/p>\n","protected":false},"author":11,"featured_media":7944,"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":[22,18],"tags":[119,84,147,125,110,82],"class_list":["post-7903","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-machine-vision","category-edu","tag-opencv","tag-84","tag-147","tag-125","tag-110","tag-82"],"_links":{"self":[{"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/posts\/7903","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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/comments?post=7903"}],"version-history":[{"count":0,"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/posts\/7903\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/media\/7944"}],"wp:attachment":[{"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/media?parent=7903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/categories?post=7903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/tags?post=7903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}