{"id":36738,"date":"2021-05-29T04:10:10","date_gmt":"2021-05-29T04:10:10","guid":{"rendered":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/?p=36738"},"modified":"2025-04-03T07:34:50","modified_gmt":"2025-04-03T07:34:50","slug":"real-time-drowsiness-detection-opencv-python-with-source-code","status":"publish","type":"post","link":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/","title":{"rendered":"Real-Time Drowsiness Detection using OpenCV Python"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-real-time-drowsiness-detection-using-opencv-python-with-source-code\"><strong>Real-Time Drowsiness Detection using OpenCV Python With Source Code<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong>Real-Time Drowsiness Detection OpenCV Python<\/strong> was developed using <strong>Python OpenCV<\/strong>, this <strong>Drowsiness Detection<\/strong> is a safety technology that can prevent accidents that are caused by drivers who fall asleep while driving.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In a <strong>Drowsiness Detection OpenCV Python<\/strong> project, we will be using OpenCV to gather the images from the webcam and feed them into a&nbsp;<strong>Deep Learning<\/strong>&nbsp;model which will classify whether the person\u2019s eyes are \u2018Open\u2019 or \u2018Closed\u2019.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this <strong>Python OpenCV Project<\/strong> also includes a downloadable Python Project With Source Code for free, just find the downloadable source code below and click to start downloading.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By the way, if you are new to Python programming and don\u2019t know what Python IDE is and its usage. I have here a list of&nbsp;t<a href=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/blogs\/best-python-ide-for-windows-2021\/\">he Best Python IDE for Windows, Linux, and Mac OS<\/a>&nbsp;that will suit you. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I also have here&nbsp;<a href=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/blogs\/how-to-download-and-install-latest-version-of-python-on-windows-2021\/\">How to Download and Install the Latest Version of Python on Windows<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To start executing&nbsp;<strong><strong>Real-Time Drowsiness Detection OpenCV Python With Source Code<\/strong><\/strong>, make sure that you have&nbsp;installed&nbsp;<strong><a href=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/www.python.org\/\">Python<\/a><\/strong>&nbsp;3.9 and&nbsp;<strong>PyCharm<\/strong>&nbsp;on your computer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-run-the-real-time-drowsiness-detection-using-opencv-python-a-step-by-step-guide-with-source-code\"><strong>How to run the<\/strong> <strong>Real-Time Drowsiness Detection using OpenCV Python? <\/strong>A step-by-step Guide with Source Code<\/h2>\n\n\n\n<div class=\"schema-how-to wp-block-yoast-how-to-block\"><p class=\"schema-how-to-total-time\"><span class=\"schema-how-to-duration-time-text\">Time needed:&nbsp;<\/span>5 minutes<\/p><p class=\"schema-how-to-description\">These are the steps on how to run <strong>Real-Time Drowsiness Detection OpenCV Python With Source Code<\/strong><\/p> <ul class=\"schema-how-to-steps\"><li class=\"schema-how-to-step\" id=\"how-to-step-1622312664945\"><strong class=\"schema-how-to-step-name\"><strong><strong>Step 1: Download the given source code below.<\/strong><\/strong><\/strong> <p class=\"schema-how-to-step-text\">First, download the given source code below and unzip the source code.<br\/><img loading=\"lazy\" decoding=\"async\" width=\"405\" height=\"190\" src=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-download-source-code.png\" class=\"attachment-full size-full\" alt=\"drowsiness detection download source code\" style=\"max-width: 100%; height: auto;\" srcset=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-download-source-code.png 405w, https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-download-source-code-300x141.png 300w\" sizes=\"auto, (max-width: 405px) 100vw, 405px\" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1622312717169\"><strong class=\"schema-how-to-step-name\"><strong><strong>Step 2: Import the project to your PyCharm IDE.<\/strong><\/strong><\/strong> <p class=\"schema-how-to-step-text\">Next, import the source code you\u2019ve downloaded to your PyCharm IDE.<br\/><img decoding=\"async\" src=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-open-project.png\" alt=\"drowsiness detection open project\"\/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1622312717963\"><strong class=\"schema-how-to-step-name\"><strong><strong>Step 3: Run the project.<\/strong><\/strong><\/strong> <p class=\"schema-how-to-step-text\">Lastly, run the project with the command \u201c<strong><em>py main.py\u201d<\/em><\/strong><br\/><img decoding=\"async\" src=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-run-project.png\" alt=\"drowsiness detection run project\"\/><\/p> <\/li><\/ul><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-installed-libraries\"><strong>Installed Libraries<\/strong><\/h2>\n\n\n<pre class=\"lang:python decode:true \">from scipy.spatial import distance\nfrom imutils import face_utils\nimport imutils\nimport dlib\nimport cv2<\/pre>\n<\/p>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-complete-source-code\"><strong>Complete Source Code<\/strong><\/h2>\n\n\n<pre class=\"lang:python decode:true \">from scipy.spatial import distance\nfrom imutils import face_utils\nimport imutils\nimport dlib\nimport cv2\n\ndef eye_aspect_ratio(eye):\n\tA = distance.euclidean(eye[1], eye[5])\n\tB = distance.euclidean(eye[2], eye[4])\n\tC = distance.euclidean(eye[0], eye[3])\n\tear = (A + B) \/ (2.0 * C)\n\treturn ear\n\t\nthresh = 0.25\nframe_check = 20\ndetect = dlib.get_frontal_face_detector()\npredict = dlib.shape_predictor(\".\\shape_predictor_68_face_landmarks.dat\")# Dat file is the crux of the code\n\n(lStart, lEnd) = face_utils.FACIAL_LANDMARKS_68_IDXS[\"left_eye\"]\n(rStart, rEnd) = face_utils.FACIAL_LANDMARKS_68_IDXS[\"right_eye\"]\ncap=cv2.VideoCapture(0)\nflag=0\nwhile True:\n\tret, frame=cap.read()\n\tframe = imutils.resize(frame, width=450)\n\tgray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)\n\tsubjects = detect(gray, 0)\n\tfor subject in subjects:\n\t\tshape = predict(gray, subject)\n\t\tshape = face_utils.shape_to_np(shape)#converting to NumPy Array\n\t\tleftEye = shape[lStart:lEnd]\n\t\trightEye = shape[rStart:rEnd]\n\t\tleftEAR = eye_aspect_ratio(leftEye)\n\t\trightEAR = eye_aspect_ratio(rightEye)\n\t\tear = (leftEAR + rightEAR) \/ 2.0\n\t\tleftEyeHull = cv2.convexHull(leftEye)\n\t\trightEyeHull = cv2.convexHull(rightEye)\n\t\tcv2.drawContours(frame, [leftEyeHull], -1, (0, 255, 0), 1)\n\t\tcv2.drawContours(frame, [rightEyeHull], -1, (0, 255, 0), 1)\n\t\tif ear &lt; thresh:\n\t\t\tflag += 1\n\t\t\tprint (flag)\n\t\t\tif flag &gt;= frame_check:\n\t\t\t\tcv2.putText(frame, \"****************ALERT!****************\", (10, 30),\n\t\t\t\t\tcv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 0, 255), 2)\n\t\t\t\tcv2.putText(frame, \"****************ALERT!****************\", (10,325),\n\t\t\t\t\tcv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 0, 255), 2)\n\t\t\t\t#print (\"Drowsy\")\n\t\telse:\n\t\t\tflag = 0\n\tcv2.imshow(\"Frame\", frame)\n\tkey = cv2.waitKey(1) &amp; 0xFF\n\tif key == ord(\"q\"):\n\t\tbreak\ncv2.destroyAllWindows()\ncap.stop()\n<\/pre>\n<\/p>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-output\"><strong>Output:<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-output2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"452\" height=\"370\" src=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-output2.png\" alt=\"\" class=\"wp-image-36740\" srcset=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-output2.png 452w, https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-output2-300x246.png 300w\" sizes=\"auto, (max-width: 452px) 100vw, 452px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-output1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"452\" height=\"368\" src=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-output1.png\" alt=\"\" class=\"wp-image-36741\" srcset=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-output1.png 452w, https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-output1-300x244.png 300w\" sizes=\"auto, (max-width: 452px) 100vw, 452px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-download-the-source-code-below\"><strong>Download the Source Code below<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"\/https\/itsourcecode.com\/\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/Real-Time-Drowsiness-Detection-OpenCV-Python-Source-Code.zip\"><strong>DOWNLOAD<\/strong><\/a><\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-summary\"><strong>Summary<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In this Python project, we have built a&nbsp;drowsy driver alert system&nbsp;that you can implement in numerous ways. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We used OpenCV to detect faces and eyes using a haar cascade classifier and then we used a CNN model to predict the status.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Related Articles<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/code-for-game-in-python\/\" target=\"_blank\" rel=\"noreferrer noopener\">Code For Game in&nbsp;Python:&nbsp;Python&nbsp;Game Projects With Source Code<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/best-python-project-with-source-code-2020\/\" target=\"_blank\" rel=\"noreferrer noopener\">Best&nbsp;Python&nbsp;Projects With Source Code FREE DOWNLOAD<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/how-to-make-a-point-of-sale-system-in-python\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Make a Point of Sale In&nbsp;Python&nbsp;With Source Code<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/python-code-for-food-ordering-system\/\" target=\"_blank\" rel=\"noreferrer noopener\">Python&nbsp;Code For Food Ordering System | FREE DOWNLOAD<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/inventory-management-system-project-in-python\/\" target=\"_blank\" rel=\"noreferrer noopener\">Inventory Management System Project in&nbsp;Python&nbsp;With Source Code<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Inquiries<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you have any questions or suggestions about&nbsp;<strong><strong>Real-Time Drowsiness Detection OpenCV Python With Source Code<\/strong><\/strong>, please feel free to leave a comment below.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Real-Time Drowsiness Detection using OpenCV Python With Source Code The Real-Time Drowsiness Detection OpenCV Python was developed using Python OpenCV, this Drowsiness Detection is a safety technology that can prevent &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Real-Time Drowsiness Detection using OpenCV Python\" class=\"read-more button\" href=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/#more-36738\" aria-label=\"Read more about Real-Time Drowsiness Detection using OpenCV Python\">Read more<\/a><\/p>\n","protected":false},"author":1767,"featured_media":36599,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19632,60570,60516],"tags":[51734,51732,51733,51731,51730],"class_list":["post-36738","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-projects","category-deep-learning","category-opencv","tag-drowsiness-detection-opencv-python-source-code","tag-drowsiness-detection-opencv-python-with-source-code","tag-real-time-drowsiness-detection-opencv-python","tag-real-time-drowsiness-detection-opencv-python-source-code","tag-real-time-drowsiness-detection-opencv-python-with-source-code","resize-featured-image"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.1 (Yoast SEO v27.8) - https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Real-Time Drowsiness Detection using OpenCV Python - Itsourcecode.com<\/title>\n<meta name=\"description\" content=\"The Real-Time Drowsiness Detection using OpenCV Python was developed using Python OpenCV, it also includes a free downloadable source code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Real-Time Drowsiness Detection using OpenCV Python\" \/>\n<meta property=\"og:description\" content=\"The Real-Time Drowsiness Detection using OpenCV Python was developed using Python OpenCV, it also includes a free downloadable source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Itsourcecode.com\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-29T04:10:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-03T07:34:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/Real-Time-Drowsiness-Detection-OpenCV-Python-With-Source-Code.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"900\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"angel jude suarez\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"angel jude suarez\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/\"},\"author\":{\"name\":\"angel jude suarez\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/b682e842795c43d5538d2e2b207b04a5\"},\"headline\":\"Real-Time Drowsiness Detection using OpenCV Python\",\"datePublished\":\"2021-05-29T04:10:10+00:00\",\"dateModified\":\"2025-04-03T07:34:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/\"},\"wordCount\":437,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/3883cf6bf7d0f141f81ccef0de9dd3fd\"},\"image\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/Real-Time-Drowsiness-Detection-OpenCV-Python-With-Source-Code.png\",\"keywords\":[\"Drowsiness Detection OpenCV Python Source Code\",\"Drowsiness Detection OpenCV Python With Source Code\",\"Real-Time Drowsiness Detection OpenCV Python\",\"Real-Time Drowsiness Detection OpenCV Python Source Code\",\"Real-Time Drowsiness Detection OpenCV Python With Source Code\"],\"articleSection\":[\"Best Python Projects with Source Code \u2014 250+ Free Capstones for BSIT Students (2026)\",\"Deep Learning Projects\",\"OpenCV Projects with Source Code \u2014 45+ Free Computer Vision Capstones for BSIT Students (2026)\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/\",\"name\":\"Real-Time Drowsiness Detection using OpenCV Python - Itsourcecode.com\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/Real-Time-Drowsiness-Detection-OpenCV-Python-With-Source-Code.png\",\"datePublished\":\"2021-05-29T04:10:10+00:00\",\"dateModified\":\"2025-04-03T07:34:50+00:00\",\"description\":\"The Real-Time Drowsiness Detection using OpenCV Python was developed using Python OpenCV, it also includes a free downloadable source code.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/#primaryimage\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/Real-Time-Drowsiness-Detection-OpenCV-Python-With-Source-Code.png\",\"contentUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/Real-Time-Drowsiness-Detection-OpenCV-Python-With-Source-Code.png\",\"width\":1460,\"height\":900,\"caption\":\"Real-Time Drowsiness Detection OpenCV Python With Source Code\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/itsourcecode.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Real-Time Drowsiness Detection using OpenCV Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#website\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/\",\"name\":\"Itsourcecode.com\",\"description\":\"Partner In Your Coding Journey!\",\"publisher\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/3883cf6bf7d0f141f81ccef0de9dd3fd\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/itsourcecode.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/3883cf6bf7d0f141f81ccef0de9dd3fd\",\"name\":\"itsourcecode\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/IT-SOURCECODE_ICON-07.jpg\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/IT-SOURCECODE_ICON-07.jpg\",\"contentUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/IT-SOURCECODE_ICON-07.jpg\",\"width\":409,\"height\":409,\"caption\":\"itsourcecode\"},\"logo\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/IT-SOURCECODE_ICON-07.jpg\"},\"description\":\"Hello Itsourcecoders, welcome to itsourcecode.com. I'm Joken Villanueva, MIT a passionate Blogger, Programmer and a Hobbyist. I started Itsourcecode because I wanted to give back and Share all the learnings and knowledge I've learned in my career and I believe through this website I would be able to help and assist those newbie programmers in enhancing their skills from different programming languages. So let us all help each other by sharing our ideas!\",\"sameAs\":[\"https:\\\/\\\/itsourcecode.com\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/b682e842795c43d5538d2e2b207b04a5\",\"name\":\"angel jude suarez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/litespeed\\\/avatar\\\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1781269278\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/litespeed\\\/avatar\\\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1781269278\",\"contentUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/litespeed\\\/avatar\\\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1781269278\",\"caption\":\"angel jude suarez\"},\"description\":\"Hello programmers, I'm Angel Jude Reyes Suarez, a student and a programmer of different programming languages like Python, Java, JavaScript, PHP, C, C++, Vb.net, and MySQL. and I have also knowledge in developing system or websites from Front-End to Back-End. and also a writer of itsourcecode.com.\"},{\"@type\":\"HowTo\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/#howto-1\",\"name\":\"Real-Time Drowsiness Detection using OpenCV Python\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/#article\"},\"description\":\"These are the steps on how to run <strong>Real-Time Drowsiness Detection OpenCV Python With Source Code<\\\/strong>\",\"totalTime\":\"P0DT0H5M\",\"step\":[{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/#how-to-step-1622312664945\",\"name\":\"Step 1: Download the given source code below.\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"First, download the given source code below and unzip the source code.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/#schema-image-1517b0e15d2205835aaec2169332d62a\",\"url\":\"http:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/drowsiness-detection-download-source-code.png\",\"contentUrl\":\"http:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/drowsiness-detection-download-source-code.png\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/#how-to-step-1622312717169\",\"name\":\"Step 2: Import the project to your PyCharm IDE.\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Next, import the source code you\u2019ve downloaded to your PyCharm IDE.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/#schema-image-57fa57ee137e41deccfc0018335a8c1b\",\"url\":\"http:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/drowsiness-detection-open-project.png\",\"contentUrl\":\"http:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/drowsiness-detection-open-project.png\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/#how-to-step-1622312717963\",\"name\":\"Step 3: Run the project.\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Lastly, run the project with the command \u201cpy main.py\u201d\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/free-projects\\\/python-projects\\\/real-time-drowsiness-detection-opencv-python-with-source-code\\\/#schema-image-ab2ab09c527f98d92a4d0f8081295739\",\"url\":\"http:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/drowsiness-detection-run-project.png\",\"contentUrl\":\"http:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/drowsiness-detection-run-project.png\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Real-Time Drowsiness Detection using OpenCV Python - Itsourcecode.com","description":"The Real-Time Drowsiness Detection using OpenCV Python was developed using Python OpenCV, it also includes a free downloadable source code.","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:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/","og_locale":"en_US","og_type":"article","og_title":"Real-Time Drowsiness Detection using OpenCV Python","og_description":"The Real-Time Drowsiness Detection using OpenCV Python was developed using Python OpenCV, it also includes a free downloadable source code.","og_url":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/","og_site_name":"Itsourcecode.com","article_published_time":"2021-05-29T04:10:10+00:00","article_modified_time":"2025-04-03T07:34:50+00:00","og_image":[{"width":1460,"height":900,"url":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/Real-Time-Drowsiness-Detection-OpenCV-Python-With-Source-Code.png","type":"image\/png"}],"author":"angel jude suarez","twitter_card":"summary_large_image","twitter_misc":{"Written by":"angel jude suarez","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/#article","isPartOf":{"@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/"},"author":{"name":"angel jude suarez","@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/#\/schema\/person\/b682e842795c43d5538d2e2b207b04a5"},"headline":"Real-Time Drowsiness Detection using OpenCV Python","datePublished":"2021-05-29T04:10:10+00:00","dateModified":"2025-04-03T07:34:50+00:00","mainEntityOfPage":{"@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/"},"wordCount":437,"commentCount":0,"publisher":{"@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/#\/schema\/person\/3883cf6bf7d0f141f81ccef0de9dd3fd"},"image":{"@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/#primaryimage"},"thumbnailUrl":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/Real-Time-Drowsiness-Detection-OpenCV-Python-With-Source-Code.png","keywords":["Drowsiness Detection OpenCV Python Source Code","Drowsiness Detection OpenCV Python With Source Code","Real-Time Drowsiness Detection OpenCV Python","Real-Time Drowsiness Detection OpenCV Python Source Code","Real-Time Drowsiness Detection OpenCV Python With Source Code"],"articleSection":["Best Python Projects with Source Code \u2014 250+ Free Capstones for BSIT Students (2026)","Deep Learning Projects","OpenCV Projects with Source Code \u2014 45+ Free Computer Vision Capstones for BSIT Students (2026)"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/","url":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/","name":"Real-Time Drowsiness Detection using OpenCV Python - Itsourcecode.com","isPartOf":{"@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/#primaryimage"},"image":{"@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/#primaryimage"},"thumbnailUrl":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/Real-Time-Drowsiness-Detection-OpenCV-Python-With-Source-Code.png","datePublished":"2021-05-29T04:10:10+00:00","dateModified":"2025-04-03T07:34:50+00:00","description":"The Real-Time Drowsiness Detection using OpenCV Python was developed using Python OpenCV, it also includes a free downloadable source code.","breadcrumb":{"@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/#primaryimage","url":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/Real-Time-Drowsiness-Detection-OpenCV-Python-With-Source-Code.png","contentUrl":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/Real-Time-Drowsiness-Detection-OpenCV-Python-With-Source-Code.png","width":1460,"height":900,"caption":"Real-Time Drowsiness Detection OpenCV Python With Source Code"},{"@type":"BreadcrumbList","@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/"},{"@type":"ListItem","position":2,"name":"Real-Time Drowsiness Detection using OpenCV Python"}]},{"@type":"WebSite","@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/#website","url":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/","name":"Itsourcecode.com","description":"Partner In Your Coding Journey!","publisher":{"@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/#\/schema\/person\/3883cf6bf7d0f141f81ccef0de9dd3fd"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/#\/schema\/person\/3883cf6bf7d0f141f81ccef0de9dd3fd","name":"itsourcecode","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/01\/IT-SOURCECODE_ICON-07.jpg","url":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/01\/IT-SOURCECODE_ICON-07.jpg","contentUrl":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/01\/IT-SOURCECODE_ICON-07.jpg","width":409,"height":409,"caption":"itsourcecode"},"logo":{"@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/uploads\/2021\/01\/IT-SOURCECODE_ICON-07.jpg"},"description":"Hello Itsourcecoders, welcome to itsourcecode.com. I'm Joken Villanueva, MIT a passionate Blogger, Programmer and a Hobbyist. I started Itsourcecode because I wanted to give back and Share all the learnings and knowledge I've learned in my career and I believe through this website I would be able to help and assist those newbie programmers in enhancing their skills from different programming languages. So let us all help each other by sharing our ideas!","sameAs":["https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/"]},{"@type":"Person","@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/#\/schema\/person\/b682e842795c43d5538d2e2b207b04a5","name":"angel jude suarez","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/litespeed\/avatar\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1781269278","url":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/litespeed\/avatar\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1781269278","contentUrl":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-content\/litespeed\/avatar\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1781269278","caption":"angel jude suarez"},"description":"Hello programmers, I'm Angel Jude Reyes Suarez, a student and a programmer of different programming languages like Python, Java, JavaScript, PHP, C, C++, Vb.net, and MySQL. and I have also knowledge in developing system or websites from Front-End to Back-End. and also a writer of itsourcecode.com."},{"@type":"HowTo","@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/#howto-1","name":"Real-Time Drowsiness Detection using OpenCV Python","mainEntityOfPage":{"@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/#article"},"description":"These are the steps on how to run <strong>Real-Time Drowsiness Detection OpenCV Python With Source Code<\/strong>","totalTime":"P0DT0H5M","step":[{"@type":"HowToStep","url":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/#how-to-step-1622312664945","name":"Step 1: Download the given source code below.","itemListElement":[{"@type":"HowToDirection","text":"First, download the given source code below and unzip the source code."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/#schema-image-1517b0e15d2205835aaec2169332d62a","url":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/http\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-download-source-code.png","contentUrl":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/http\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-download-source-code.png"}},{"@type":"HowToStep","url":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/#how-to-step-1622312717169","name":"Step 2: Import the project to your PyCharm IDE.","itemListElement":[{"@type":"HowToDirection","text":"Next, import the source code you\u2019ve downloaded to your PyCharm IDE."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/#schema-image-57fa57ee137e41deccfc0018335a8c1b","url":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/http\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-open-project.png","contentUrl":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/http\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-open-project.png"}},{"@type":"HowToStep","url":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/#how-to-step-1622312717963","name":"Step 3: Run the project.","itemListElement":[{"@type":"HowToDirection","text":"Lastly, run the project with the command \u201cpy main.py\u201d"}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/free-projects\/python-projects\/real-time-drowsiness-detection-opencv-python-with-source-code\/#schema-image-ab2ab09c527f98d92a4d0f8081295739","url":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/http\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-run-project.png","contentUrl":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/http\/itsourcecode.com\/wp-content\/uploads\/2021\/05\/drowsiness-detection-run-project.png"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-json\/wp\/v2\/posts\/36738","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-json\/wp\/v2\/users\/1767"}],"replies":[{"embeddable":true,"href":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-json\/wp\/v2\/comments?post=36738"}],"version-history":[{"count":10,"href":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-json\/wp\/v2\/posts\/36738\/revisions"}],"predecessor-version":[{"id":126742,"href":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-json\/wp\/v2\/posts\/36738\/revisions\/126742"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-json\/wp\/v2\/media\/36599"}],"wp:attachment":[{"href":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-json\/wp\/v2\/media?parent=36738"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-json\/wp\/v2\/categories?post=36738"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/itsourcecode.com\/wp-json\/wp\/v2\/tags?post=36738"}],"curies":[{"name":"wp","href":"https:\/\/blue-sea-697d.quartiers047.workers.dev:443\/https\/api.w.org\/{rel}","templated":true}]}}