

{"id":97435,"date":"2021-06-15T09:00:13","date_gmt":"2021-06-15T03:30:13","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=97435"},"modified":"2026-06-01T11:49:33","modified_gmt":"2026-06-01T06:19:33","slug":"python-face-recognition","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/python-face-recognition\/","title":{"rendered":"Face Recognition with Python [source code included]"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:2496,&quot;href&quot;:&quot;https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/11Eknvgrwk7dMPKRqXnPsjhsJ81AA6K0Z\\\/view?usp=drive_link&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20260601061954\\\/https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/11Eknvgrwk7dMPKRqXnPsjhsJ81AA6K0Z\\\/view?usp=drive_link&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-06-01 10:09:15&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-06 14:54:28&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-06 14:54:28&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p><strong>Python can detect and recognize your face from an image or video<\/strong><\/p>\n<p>Face Detection and Recognition is one of the areas of computer vision where the research actively happens.<\/p>\n<p>The applications of Face Recognition include Face Unlock, Security and Defense, etc. Doctors and healthcare officials use face recognition to access the medical records and history of patients and better diagnose diseases.<\/p>\n<h3>About Python Face Recognition<\/h3>\n<p>In this python project, we are going to build a machine learning model that recognizes the persons from an image. We use the face_recognition API and OpenCV in our project.<\/p>\n<h3>Tools and Libraries<\/h3>\n<ul>\n<li>Python &#8211; 3.x<\/li>\n<li>cv2 &#8211; 4.5.2<\/li>\n<li>numpy &#8211; 1.20.3<\/li>\n<li>face_recognition &#8211; 1.3.0<\/li>\n<\/ul>\n<p>To install the above packages, use the following command.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">pip install numpy opencv-python<\/pre>\n<p>To install the face_recognition, install the dlib package first.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">pip install dlib<\/pre>\n<p>Now, install face_recognition module using the below command<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">pip install face_recognition<\/pre>\n<h3>Download Face Recognition Python Code<\/h3>\n<p>Please download the source code of python face recognition project: <a href=\"https:\/\/drive.google.com\/file\/d\/11Eknvgrwk7dMPKRqXnPsjhsJ81AA6K0Z\/view?usp=drive_link\"><strong>Face Recognition Project Code<\/strong><\/a><\/p>\n<h3>Project Dataset<\/h3>\n<p>We can do this face recognition project using our own dataset. For this project, let&#8217;s take the cast of the popular American web series &#8220;Friends&#8221; as the dataset. The dataset is included with face recognition project code, which you downloaded in the previous section.<\/p>\n<h3>Steps to develop face recognition model<\/h3>\n<p>Before moving on, let&#8217;s know what face recognition and detection are.<\/p>\n<p>Face recognition is the process of identifying or verifying a person&#8217;s face from photos and video frames.<\/p>\n<p>It is defined as the process of locating and extracting faces (location and size) in an image for use by a face detection algorithm.<\/p>\n<p><strong>Face recognition<\/strong> method is used to locate features in the image that are uniquely specified. The facial picture has already been removed, cropped, scaled, and converted to grayscale in most cases. Face recognition involves 3 steps: face detection, feature extraction, face recognition.<\/p>\n<p><strong>OpenCV<\/strong> is an open-source library written in C++. It contains the implementation of various algorithms and deep neural networks used for computer vision tasks.<\/p>\n<h4>1. Prepare the dataset<\/h4>\n<p>Create 2 directories, train and test. Pick an image for each of the cast from the internet and download it onto our &#8220;train&#8221; directory. Make sure that the images you&#8217;ve selected show the features of the face well enough for the classifier.<\/p>\n<p>For testing the model, let&#8217;s take a picture containing all of the cast and place it onto our &#8220;test&#8221; directory.<\/p>\n<p>For your comfort, we have added training and testing data with the project code.<\/p>\n<h4>2. Train the model<\/h4>\n<p>First import the necessary modules.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import face_recognition as fr\r\nimport cv2\r\n\r\nimport numpy as np\r\nimport os<\/pre>\n<p>The face_recognition library contains the implementation of the various utilities that help in the process of face recognition.<\/p>\n<p>Now, create 2 lists that store the names of the images (persons) and their respective face encodings.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">path = \".\/train\/\"\r\n\r\nknown_names = []\r\nknown_name_encodings = []\r\n\r\nimages = os.listdir(path)<\/pre>\n<p>Face encoding is a vector of values representing the important measurements between distinguishing features of a face like the distance between the eyes, the width of the forehead, etc.<\/p>\n<p>We loop through each of the images in our train directory, extract the name of the person in the image, calculate its face encoding vector and store the information in the respective lists.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">for _ in images:\r\nimage = fr.load_image_file(path + _)\r\nimage_path = path + _\r\nencoding = fr.face_encodings(image)[0]\r\n\r\nknown_name_encodings.append(encoding)\r\nknown_names.append(os.path.splitext(os.path.basename(image_path))[0].capitalize())<\/pre>\n<h4>3. Test the model on the test dataset<\/h4>\n<p>As mentioned above, our test dataset only contains 1 image with all of the persons in it.<\/p>\n<p>Read the test image using the cv2 imread() method.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">test_image = \".\/test\/test.jpg\"\r\n\r\nimage = cv2.imread(test_image)<\/pre>\n<p>The face_recognition library provides a useful method called face_locations() which locates the coordinates (left, bottom, right, top) of every face detected in the image. Using those location values we can easily find the face encodings.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">face_locations = fr.face_locations(image)\r\n\r\nface_encodings = fr.face_encodings(image, face_locations)<\/pre>\n<p>We loop through each of the face locations and its encoding found in the image. Then we compare this encoding with the encodings of the faces from the &#8220;train&#8221; dataset.<\/p>\n<p>Then calculate the facial distance meaning that we calculate the similarity between the encoding of the test image and that of the train images. Now, we pick the minimum valued distance from it indicating that this face of the test image is one of the persons from the training dataset.<\/p>\n<p>Now, draw a rectangle with the face location coordinates using the methods from the cv2 module.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">for (top, right, bottom, left), face_encoding in zip(face_locations, face_encodings):\r\n   matches = fr.compare_faces(known_name_encodings, face_encoding)\r\n   name = \"\"\r\n\r\n   face_distances = fr.face_distance(known_name_encodings, face_encoding)\r\n   best_match = np.argmin(face_distances)\r\n\r\n   if matches[best_match]:\r\n       name = known_names[best_match]\r\n\r\n   cv2.rectangle(image, (left, top), (right, bottom), (0, 0, 255), 2)\r\n   cv2.rectangle(image, (left, bottom - 15), (right, bottom), (0, 0, 255), cv2.FILLED)\r\n\r\n   font = cv2.FONT_HERSHEY_DUPLEX\r\n   cv2.putText(image, name, (left + 6, bottom - 6), font, 1.0, (255, 255, 255), 1)\r\n<\/pre>\n<p>Display the image using the imshow() method of the cv2 module.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cv2.imshow(\"Result\", image)\r\n<\/pre>\n<p>Save the image to our current working directory using the imwrite() method.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cv2.imwrite(\".\/output.jpg\", image)<\/pre>\n<p>Release the resources that weren&#8217;t deallocated(if any).<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cv2.waitKey(0)\r\ncv2.destroyAllWindows()<\/pre>\n<h3>Python Face Recognition Output<\/h3>\n<p>Let&#8217;s see the output of the model.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/python-face-recognition-output.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-97487\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/python-face-recognition-output.jpg\" alt=\"python face recognition output\" width=\"1024\" height=\"759\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/python-face-recognition-output.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/python-face-recognition-output-300x222.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/python-face-recognition-output-150x111.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/python-face-recognition-output-768x569.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/python-face-recognition-output-720x534.jpg 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/python-face-recognition-output-520x385.jpg 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/python-face-recognition-output-320x237.jpg 320w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<h3>Summary<\/h3>\n<p>Face recognition means finding and matching faces from images or videos. It\u2019s used in mobile phones, security systems, and smart apps. In this project, we use Python and OpenCV to build a real-time face recognition system. It can detect faces using a webcam and match them with known people using a face database.<\/p>\n<p>In this machine learning project, we developed a face recognition model in python and opencv using our own custom dataset.<\/p>\n<p>This project helps beginners learn how face detection and recognition work. It teaches concepts like facial landmarks, encodings, image comparison, and OpenCV basics. It\u2019s perfect for real-time systems and makes a strong resume project. You can even build an attendance app or secure login system using this idea.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python can detect and recognize your face from an image or video Face Detection and Recognition is one of the areas of computer vision where the research actively happens. The applications of Face Recognition&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":97486,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[4521,24627,8431,20623,24626],"class_list":["post-97435","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-machine-learning","tag-face-recognition","tag-face-recognition-opencv","tag-machine-learning","tag-ml-project","tag-python-face-recognition"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Face Recognition with Python [source code included] - DataFlair<\/title>\n<meta name=\"description\" content=\"Face Recognition in python. Create a machine learning project to detect and recognition face using opencv, numpy and dlib.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/python-face-recognition\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Face Recognition with Python [source code included] - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Face Recognition in python. Create a machine learning project to detect and recognition face using opencv, numpy and dlib.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/python-face-recognition\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-15T03:30:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-01T06:19:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/python-face-recognition-opencv-project.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Face Recognition with Python [source code included] - DataFlair","description":"Face Recognition in python. Create a machine learning project to detect and recognition face using opencv, numpy and dlib.","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:\/\/data-flair.training\/blogs\/python-face-recognition\/","og_locale":"en_US","og_type":"article","og_title":"Face Recognition with Python [source code included] - DataFlair","og_description":"Face Recognition in python. Create a machine learning project to detect and recognition face using opencv, numpy and dlib.","og_url":"https:\/\/data-flair.training\/blogs\/python-face-recognition\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2021-06-15T03:30:13+00:00","article_modified_time":"2026-06-01T06:19:33+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/python-face-recognition-opencv-project.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/python-face-recognition\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/python-face-recognition\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Face Recognition with Python [source code included]","datePublished":"2021-06-15T03:30:13+00:00","dateModified":"2026-06-01T06:19:33+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-face-recognition\/"},"wordCount":853,"commentCount":6,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-face-recognition\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/python-face-recognition-opencv-project.jpg","keywords":["face recognition","face recognition opencv","machine learning","ML project","python face recognition"],"articleSection":["Machine Learning Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/python-face-recognition\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/python-face-recognition\/","url":"https:\/\/data-flair.training\/blogs\/python-face-recognition\/","name":"Face Recognition with Python [source code included] - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-face-recognition\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-face-recognition\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/python-face-recognition-opencv-project.jpg","datePublished":"2021-06-15T03:30:13+00:00","dateModified":"2026-06-01T06:19:33+00:00","description":"Face Recognition in python. Create a machine learning project to detect and recognition face using opencv, numpy and dlib.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/python-face-recognition\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/python-face-recognition\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/python-face-recognition\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/python-face-recognition-opencv-project.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/python-face-recognition-opencv-project.jpg","width":1200,"height":628,"caption":"python face recognition opencv project"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/python-face-recognition\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Machine Learning Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/machine-learning\/"},{"@type":"ListItem","position":3,"name":"Face Recognition with Python [source code included]"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/97435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=97435"}],"version-history":[{"count":7,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/97435\/revisions"}],"predecessor-version":[{"id":148564,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/97435\/revisions\/148564"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/97486"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=97435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=97435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=97435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}