{"id":162109,"date":"2025-05-01T15:36:11","date_gmt":"2025-05-01T10:06:11","guid":{"rendered":"https:\/\/www.electronicsforu.com\/?p=162109"},"modified":"2025-06-12T15:13:01","modified_gmt":"2025-06-12T09:43:01","slug":"ai-helmet-detection-system","status":"publish","type":"post","link":"https:\/\/www.electronicsforu.com\/electronics-projects\/ai-helmet-detection-system","title":{"rendered":"Detecting Workers Without Helmet Using YOLO V5 And MaixCam"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"alignright size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"178\" height=\"163\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/07\/efy-tested-1.jpg\" alt=\"EFY Tested DIY Markup\" class=\"wp-image-143513\"\/><\/figure><\/div>\n\n\n<p>In industrial settings, safety helmets are a critical element of personal protective equipment (PPE), acting as the final barrier when other measures fail. Safety departments enforce PPE rules across process plants, especially among large numbers of contract workers. While training builds hazard awareness, studies show supervision plays a stronger role in accident prevention.<\/p>\n\n\n\n<p>To address this need more effectively, a technology-led solution replaces manual oversight with an intelligent, machine-based system.<\/p>\n\n\n\n<p>A high-fidelity camera continuously monitors the approach area. If a worker without a helmet is detected, the system triggers an instant alert\u2014either a cautionary alarm or a verbal instruction to comply. A single camera can cover large zones, ensuring round-the-clock, impartial enforcement. Once a violation is flagged, further action\u2014such as activating an audio alert or controlling a gate\u2014is handled by a microprocessor-based setup.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">POC Video Tutorial:<\/h2>\n\n\n\n<figure class=\"wp-block-embed aligncenter is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"vzqr6Spbf8Gs2JDBZ3ycknKoIAuL\"><iframe loading=\"lazy\" title=\"Building Helmet Detection System with AI | Electronics For You\" width=\"696\" height=\"392\" src=\"https:\/\/www.youtube.com\/embed\/HXOjfgrTa0c?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/span>\n<\/div><\/figure>\n\n\n\n<p>The solution uses MaixCam\u2019s GPIO library to manage these automated responses, delivering scalability and cost-efficiency. Acting as a tireless, unbiased supervisor, this AI-powered safety system reduces reliance on human monitoring while boosting compliance. A prototype is shown in Fig. 1.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"624\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/04\/Authors-prototype.jpg\" alt=\"AI Helmet Detection System Using YOLO V5 And MaixCam\" class=\"wp-image-162112\" style=\"width:332px;height:auto\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/04\/Authors-prototype.jpg 500w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/04\/Authors-prototype-401x500.jpg 401w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/04\/Authors-prototype-337x420.jpg 337w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/04\/Authors-prototype-150x187.jpg 150w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><figcaption class=\"wp-element-caption\">Fig. 1: Author\u2019s prototype of AI Helmet Detection System Using YOLO V5 and MaixCam<\/figcaption><\/figure><\/div>\n\n\n<p>The required components are listed in the Bill of Materials table. An LED or buzzer may be added for alerts, though not included in the Bill of Materials.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td colspan=\"2\"><strong>Bill of Materials<\/strong><\/td><\/tr><tr><td><strong>Components<\/strong><\/td><td><strong>Quantity<\/strong><\/td><\/tr><tr><td>MaixCam<\/td><td>1<\/td><\/tr><tr><td>5V DC power adaptor<\/td><td>1<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>EFY Note:<\/strong><\/p>\n\n\n\n<p>Since the same board is used in this solution, refer to \u2018<a href=\"https:\/\/www.electronicsforu.com\/electronics-projects\/face-recognition-with-yolo\">Face Recognition Using YOLO<\/a>,\u2019 published in the April issue. That article provides additional details regarding the MaixCam development board, including its usage and installation, which should be reviewed before proceeding.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"362\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/04\/Various-face-repositioning-.jpg\" alt=\"Real-time Face Recognition with YOLO\" class=\"wp-image-162115\" style=\"width:510px;height:auto\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/04\/Various-face-repositioning-.jpg 600w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/04\/Various-face-repositioning--500x302.jpg 500w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/04\/Various-face-repositioning--150x91.jpg 150w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><figcaption class=\"wp-element-caption\">Fig. 2: Various face repositioning<\/figcaption><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\"><strong>Hardware Setup<\/strong><\/h2>\n\n\n\n<div class=\"mepr_error\"><div class=\"prime-members\">\n<h4><strong>OOPS! THIS IS EFY PRIME CONTENT...<br \/>\n<\/strong><span style=\"color: #333333;font-family: Verdana, BlinkMacSystemFont, -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;font-size: 14px\">which means that you need to be an EFY PRIME subscriber to read it.<\/span><\/h4>\n<p>EFY PRIME content is our best content. Hence, you need to make a small investment to access all of our content including EFY Prime content.<\/p>\n<p>If you're already an EFY PRIME member, feel free to login below.<\/p>\n<p>Else, <strong><a href=\"https:\/\/www.electronicsforu.com\/plans\/efy-prime-subscription-plans\" target=\"_blank\" rel=\"noopener\">CLICK HERE<\/a><\/strong> to invest in an EFY Prime account and become our VIP customer who can access all our content, and that too without the clutter of ads!<\/p>\n<p>BENEFITS OF EFY PRIME MEMBERSHIP:<br \/>\n(1) Zero Clutter AD free experience<br \/>\n(2) Super-fast user experience<br \/>\n(3) Focussed reading experience with no distractions<br \/>\n(4) Access to all our content including our Best-of-Best which is EFY Prime\n<\/p><\/div>\n<\/div><div>\n<div class=\"mp_wrapper mp_login_form\">\n                  <!-- mp-login-form-start -->     <form name=\"mepr_loginform\" id=\"mepr_loginform\" class=\"mepr-form\" action=\"https:\/\/www.electronicsforu.com\/login\" method=\"post\">\n            <div class=\"mp-form-row mepr_username\">\n        <div class=\"mp-form-label\">\n                              <label for=\"user_login\">Username<\/label>\n        <\/div>\n        <input type=\"text\" name=\"log\" id=\"user_login\" value=\"\" \/>\n      <\/div>\n      <div class=\"mp-form-row mepr_password\">\n        <div class=\"mp-form-label\">\n          <label for=\"user_pass\">Password<\/label>\n          <div class=\"mp-hide-pw\">\n            <input type=\"password\" name=\"pwd\" id=\"user_pass\" value=\"\" \/>\n            <button type=\"button\" class=\"button mp-hide-pw hide-if-no-js\" data-toggle=\"0\" aria-label=\"Show password\">\n              <span class=\"dashicons dashicons-visibility\" aria-hidden=\"true\"><\/span>\n            <\/button>\n          <\/div>\n        <\/div>\n      <\/div>\n            <div>\n        <label><input name=\"rememberme\" type=\"checkbox\" id=\"rememberme\" value=\"forever\" \/> Remember Me<\/label>\n      <\/div>\n      <div class=\"mp-spacer\">&nbsp;<\/div>\n      <div class=\"submit\">\n        <input type=\"submit\" name=\"wp-submit\" id=\"wp-submit\" class=\"button-primary mepr-share-button \" value=\"Log In\" \/>\n        <input type=\"hidden\" name=\"redirect_to\" value=\"\/wp-json\/wp\/v2\/posts\/162109\" \/>\n        <input type=\"hidden\" name=\"mepr_process_login_form\" value=\"true\" \/>\n        <input type=\"hidden\" name=\"mepr_is_login_page\" value=\"false\" \/>\n      <\/div>\n    <\/form>\n    <div class=\"mp-spacer\">&nbsp;<\/div>\n    <div class=\"mepr-login-actions\">\n      <a href=\"https:\/\/www.electronicsforu.com\/login?action=forgot_password\">Forgot Password<\/a>\n    <\/div>\n\n      \n    <!-- mp-login-form-end --> \n  <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In industrial settings, safety helmets are a critical element of personal protective equipment (PPE), acting as the final barrier when other measures fail. Safety departments enforce PPE rules across process plants, especially among large numbers of contract workers. While training builds hazard awareness, studies show supervision plays a stronger role in accident prevention. To address [&hellip;]<\/p>\n","protected":false},"author":55758,"featured_media":162115,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,23,6070,6072,11962],"tags":[1911,12710,12709],"class_list":{"0":"post-162109","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-electronics-projects","8":"category-hardware-diy","9":"category-advanced-projects","10":"category-beginners-projects","11":"category-efy-prime","12":"tag-do-it-yourself","13":"tag-full-diy-projects","14":"tag-may-2025"},"_links":{"self":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/162109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/users\/55758"}],"replies":[{"embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/comments?post=162109"}],"version-history":[{"count":2,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/162109\/revisions"}],"predecessor-version":[{"id":165371,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/162109\/revisions\/165371"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/media\/162115"}],"wp:attachment":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/media?parent=162109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/categories?post=162109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/tags?post=162109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}