/*! elementor-pro - v3.26.0 - 17-12-2024 */ (()=>{"use strict";class Screenshot extends elementorModules.ViewModule{getDefaultSettings(){return{empty_content_headline:"Empty Content.",crop:{width:1200,height:1500},excluded_external_css_urls:["https://kit-pro.fontawesome.com"],external_images_urls:["https://i.ytimg.com"],timeout:15e3,render_timeout:5e3,timerLabel:null,timer_label:`${ElementorScreenshotConfig.post_id} - timer`,image_placeholder:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",isDebug:elementorCommonConfig.isElementorDebug,isDebugSvg:!1,...ElementorScreenshotConfig}}getDefaultElements(){const e=jQuery(ElementorScreenshotConfig.selector),t=e.find(".elementor-section-wrap > .elementor-section, .elementor > .elementor-section");return{$elementor:e,$sections:t,$firstSection:t.first(),$notElementorElements:elementorCommon.elements.$body.find("> *:not(style, link)").not(e),$head:jQuery("head")}}onInit(){return super.onInit(),this.log("Screenshot init","time"),this.timeoutTimer=setTimeout(this.screenshotFailed.bind(this),this.getSettings("timeout")),this.captureScreenshot()}captureScreenshot(){return this.elements.$elementor.length||(elementorCommon.helpers.consoleWarn("Screenshots: The content of this page is empty, the module will create a fake conent just for this screenshot."),this.createFakeContent()),this.removeUnnecessaryElements(),this.handleIFrames(),this.removeFirstSectionMargin(),this.handleLinks(),this.loadExternalCss(),this.loadExternalImages(),Promise.resolve().then(this.createImage.bind(this)).then(this.createImageElement.bind(this)).then(this.cropCanvas.bind(this)).then(this.save.bind(this)).then(this.screenshotSucceed.bind(this)).catch(this.screenshotFailed.bind(this))}createFakeContent(){this.elements.$elementor=jQuery("
").css({height:this.getSettings("crop.height"),width:this.getSettings("crop.width"),display:"flex",alignItems:"center",justifyContent:"center"}),this.elements.$elementor.append(jQuery("

").css({fontSize:"85px"}).html(this.getSettings("empty_content_headline"))),document.body.prepend(this.elements.$elementor)}loadExternalCss(){const e=[this.getSettings("home_url"),...this.getSettings("excluded_external_css_urls")].map((e=>`[href^="${e}"]`)).join(", ");jQuery("link").not(e).each(((e,t)=>{const s=jQuery(t),n=s.clone();n.attr("href",this.getScreenshotProxyUrl(s.attr("href"))),this.elements.$head.append(n),s.remove()}))}loadExternalImages(){const e=this.getSettings("external_images_urls").map((e=>`img[src^="${e}"]`)).join(", ");jQuery(e).each(((e,t)=>{const s=jQuery(t);s.attr("src",this.getScreenshotProxyUrl(s.attr("src")))}))}handleIFrames(){this.elements.$elementor.find("iframe").each(((e,t)=>{const s=jQuery(t),n=jQuery("
",{css:{background:"gray",width:s.width(),height:s.height()}});s.before(n),s.remove()}))}removeUnnecessaryElements(){let e=0;this.elements.$sections.filter(((t,s)=>{let n=!1;return e>=this.getSettings("crop.height")&&(n=!0),e+=jQuery(s).outerHeight(),n})).each(((e,t)=>{t.remove()})),this.elements.$notElementorElements.remove()}handleLinks(){elementorCommon.elements.$body.find("a").attr("href","/")}removeFirstSectionMargin(){this.elements.$firstSection.css({marginTop:0})}createImage(){const e=new Promise((e=>{window.addEventListener("load",(()=>{e()}))})),t=new Promise((e=>{setTimeout((()=>{e()}),this.getSettings("render_timeout"))}));return Promise.race([e,t]).then((()=>{if(this.log("Start creating screenshot."),this.getSettings("isDebugSvg"))return domtoimage.toSvg(document.body,{imagePlaceholder:this.getSettings("image_placeholder")}).then((e=>this.download(e))),Promise.reject("Debug SVG.");return/^((?!chrome|android).)*safari/i.test(window.userAgent)?(this.log('Creating screenshot with "html2canvas"'),html2canvas(document.body).then((e=>e.toDataURL("image/png")))):(this.log('Creating screenshot with "dom-to-image"'),domtoimage.toPng(document.body,{imagePlaceholder:this.getSettings("image_placeholder")}))}))}download(e){const t=jQuery("",{href:e,download:"debugSvg.svg",html:"Download SVG"});elementorCommon.elements.$body.append(t),t.trigger("click")}createImageElement(e){const t=new Image;return t.src=e,new Promise((e=>{t.onload=()=>e(t)}))}cropCanvas(e){const t=this.getSettings("crop.width"),s=this.getSettings("crop.height"),n=document.createElement("canvas"),i=n.getContext("2d"),o=t/e.width;return n.width=t,n.height=s>e.height?e.height:s,i.drawImage(e,0,0,e.width,e.height,0,0,e.width*o,e.height*o),Promise.resolve(n)}save(e){return new Promise(((t,s)=>{elementorCommon.ajax.addRequest("screenshot_save",{data:{post_id:this.getSettings("post_id"),screenshot:e.toDataURL("image/png")},success:e=>{this.log(`Screenshot created: ${encodeURI(e)}`),t(e)},error:()=>{this.log("Failed to create screenshot."),s()}})}))}markAsFailed(){return new Promise(((e,t)=>{elementorCommon.ajax.addRequest("screenshot_failed",{data:{post_id:this.getSettings("post_id")},success:()=>{this.log("Marked as failed."),e()},error:()=>{this.log("Failed to mark this screenshot as failed."),t()}})}))}getScreenshotProxyUrl(e){return`${this.getSettings("home_url")}?screenshot_proxy&nonce=${this.getSettings("nonce")}&href=${e}`}screenshotSucceed(e){this.screenshotDone(!0,e)}screenshotFailed(e){this.log(e,null),this.markAsFailed().then((()=>this.screenshotDone(!1)))}screenshotDone(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;clearTimeout(this.timeoutTimer),this.timeoutTimer=null,window.parent.postMessage({name:"capture-screenshot-done",success:e,id:this.getSettings("post_id"),imageUrl:t},"*"),this.log(`Screenshot ${e?"Succeed":"Failed"}.`,"timeEnd")}log(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"timeLog";this.getSettings("isDebug")&&(console.log("string"==typeof e?`${this.getSettings("post_id")} - ${e}`:e),t&&console[t](this.getSettings("timer_label")))}}jQuery((()=>{new Screenshot}))})(); Road safety innovations Archives - The Tach https://thetach.com/?tag=road-safety-innovations Sat, 14 Dec 2024 18:35:48 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 World’s First AI Camera Targets Drunk and Drug-Impaired Drivers https://thetach.com/?p=934 https://thetach.com/?p=934#respond Sat, 14 Dec 2024 18:35:47 +0000 https://thetach.com/?p=934 Drivers under the influence of alcohol and drugs can now be apprehended by AI camera technology that is being trialed for the first time for Devon and Cornwall. This very same system referred to as the “Heads-Up” system is expected to revolutionize safety measures by profiling potential culpable drivers emanating from impairment. Innovative trials have ... Read more

The post World’s First AI Camera Targets Drunk and Drug-Impaired Drivers appeared first on The Tach.

]]> Drivers under the influence of alcohol and drugs can now be apprehended by AI camera technology that is being trialed for the first time for Devon and Cornwall. This very same system referred to as the “Heads-Up” system is expected to revolutionize safety measures by profiling potential culpable drivers emanating from impairment.

Innovative trials have been launched by Devon and Cornwall Police, working collaboratively with global AI pioneer, Acusensus to address road casualties associated with the detection of drunk drivers.  This pioneering technology could serve as a model for improving road safety globally.

How the Heads-Up System Works

The state-of-the-art AI camera technology focuses on road behavior and scans for signs of driving that match impaired driving. If abnormal driving behavior is detected for a particular car like abrupt lane changes or rapid acceleration and deceleration the car is marked for testing. Police officers stationed at a farther end of the road will be able to intercept flagged vehicles and administer soberness and drug tests. 

This rapid response ensures that dangerous drivers are removed from the road before incidents occur. The mobile nature of the system is another crucial feature. The cameras can be quickly relocated to different areas without prior notice, making it harder for drivers to evade detection. This versatility plays a vital role in drug-impaired driving prevention and ensuring roads remain safe.

The Role of Acusensus in Road Safety

Acusensus, a leading developer of road safety innovations, has been instrumental in bringing AI camera technology to life. The company has previously collaborated with law enforcement to address other safety concerns, such as detecting mobile phone use while driving and ensuring seatbelt compliance. Geoff Collins, UK General Manager at Acusensus, expressed pride in launching the world’s first trials of this innovative technology. “We are all safer if we can detect impairment before it causes an incident that could ruin lives,” he said.

The AI camera technology uses machine learning algorithms to analyze real-time data, which has proven effective in identifying high-risk behaviors. This advancement is expected to significantly reduce incidents involving drunk driver. Who are six times more likely to cause fatal accidents.

Why Devon and Cornwall Are Ideal Test Locations

Devon and Cornwall were selected for the trial due to their extensive road networks. And active participation in road safety innovations. With over 14,000 miles of roads to monitor, the region presents unique challenges in combating dangerous driving behaviors. Supt Simon Jenkinson, responsible for policing this vast network, emphasized the importance of adopting emerging technology to save lives.

As a member of the Vision Zero South West road safety partnership. Supt Jenkinson affirmed that reducing road deaths and serious injuries is a top priority. This means that this pioneering trial is concurrent with other drink-driving campaigns and as a result. December is considered a month of intensive drink-drive safety campaigns.

The Impact of Impaired Driving on Road Safety

Alcohol-related cases of driving are still contributing greatly to the cases of accidents in many countries. Alcohol or drug-impaired drivers are much more likely to have critical judgments, slow reaction time, or be out of control while driving. This paper aims to discuss the effects of drunk driving on road accidents with special reference to the UK. Research reveals that offenders five times increased chance of being involved in a fatal crash if caught driving while under the influence. It should also be noted that the Heads-Up system suggested above would help to prevent the risks indicated above. The goal of the technology is to identify impairment before an accident happens to eliminate devastating events. And to give all road users safer and more enjoyable trips.

Advantages of AI Technology in Road Safety

The integration of AI camera technology into road safety efforts offers numerous advantages: Convenient feedback: The system makes it possible to monitor data instantly and perform corresponding operations. Improved accuracy: They can for instance detect early markers of impairment that a human might barely notice. Flexibility: It can be also installed in some special areas when required depending on new risks. Cost efficiency: It can also be seen that Automation of the detection process lessens the workload on police. Such features enhance the Heads-Up system as a strong intervention mechanism against accidents resulting from underage, drunken, and drugged driving.

Public Support and Future Prospects

A survey of the public in regard to the Heads-Up system has attracted a lot of support. More people in Devon and Cornwall have welcomed the use of the latest technology to address risky behaviors on the road. More learning is expected to come to light as the trial goes on, building to a potential national expansion on the use of the AI camera technology first seen in the Devon and Cornwall initiative. 

Other regions and countries may also institutionalize the same system to increase overall road safety and minimize deaths. The Heads-Up system is also a subtle indication of how artificial intelligence could help develop safer roads and better commutations in the future. Its success in two of England’s southern counties of Devon and Cornwall could signal a turning of the tide against the menace of impaired driving.

December Trials and Their Significance

The December trial aligns with seasonal campaigns to reduce drink-driving incidents during the holiday period. It would be useful for the Heads-Up system during this period of the year when traffic accidents caused by alcohol are on the rise.

In addition to preventing accidents and risking the lives of the offenders at least. The technology ensures that the offenders are arrested before they endanger other people’s lives by reminding them to drive responsibly. The initiative involving Acusensus, Devon, Cornwall Police. And Vision Zero South West shows that no one organization can tackle the issue alone.

Conclusion

The social invention of the first artificial intelligent camera to identify and identify drunk and drug-impaired drivers is a significant improvement to innovations in road safety. The impairment behaviors detection along with the swift action by police is an effective solution to one of the biggest issues of modern transportation this trial, Devon and Cornwall has shown everyone how technology can be a boon and help avoid carnage. Since there will likely be an increase in the public’s awareness of the system. It also becomes the expectation of many that such measures will become standard practices in the international scene.

FAQs

How does the AI camera detect impaired drivers?

The camera analyzes road behavior for signs of impairment, such as erratic driving.

Where is the Heads-Up system being trialed?

The system is being tested in Devon and Cornwall for the first time.

Can the AI camera replace police officers on patrol?

No, it assists officers by flagging potential offenders for further checks.

What happens if a driver is flagged by the camera?

Police stop the vehicle and conduct roadside tests for alcohol or drugs.

Why was December chosen for the trial?

December aligns with drink-driving campaigns during the holiday season.

The post World’s First AI Camera Targets Drunk and Drug-Impaired Drivers appeared first on The Tach.

]]>
https://thetach.com/?feed=rss2&p=934 0