<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by DeepAR.ai on Medium]]></title>
        <description><![CDATA[Stories by DeepAR.ai on Medium]]></description>
        <link>https://medium.com/@DeepAR.ai?source=rss-352e24cd80b8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*J1wwk8GyqFt_8GsadsIC6w@2x.jpeg</url>
            <title>Stories by DeepAR.ai on Medium</title>
            <link>https://medium.com/@DeepAR.ai?source=rss-352e24cd80b8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 03:39:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@DeepAR.ai/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The DeepAR Flutter SDK]]></title>
            <link>https://medium.com/deeparblog/the-deepar-flutter-sdk-62bed245c3d5?source=rss-352e24cd80b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/62bed245c3d5</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-sdk]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <category><![CDATA[ar-sdk]]></category>
            <category><![CDATA[ar]]></category>
            <dc:creator><![CDATA[DeepAR.ai]]></dc:creator>
            <pubDate>Mon, 08 Aug 2022 16:01:59 GMT</pubDate>
            <atom:updated>2022-08-09T12:12:41.400Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Flutter logo with DeepAR style gradient background" src="https://cdn-images-1.medium.com/max/1024/1*FbTdE9YIdED8TmBb72TBdA.jpeg" /></figure><p>DeepAR offers you fun AR filters and 3D masks that integrate seamlessly into your mobile application and allow your users to add AR effects to their video calls, capture videos with flashy sunglasses, and much more.</p><p>Up until now, we have officially supported native Android, iOS and Web SDKs. It is very exciting to announce official support for the Flutter as well!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*96kHsUO1giIcIxVajYE-zQ.png" /></figure><h3>Insight into the journey 🏁</h3><p>First version of DeepAR Flutter Plugin supports all the major features that most of our users need (more advance stuff coming later):</p><ol><li>Live camera preview of filters, masks and effects rendered on regular widgets.</li><li>Allow users to take screenshots, record videos, switch filters, and more — right from the plugin.</li></ol><p>The natural choice was to turn to Flutter Platform Channels and build a wrapper around existing DeepAR Android and iOS SDKs.</p><p>For anyone unfamiliar, Flutter Platform Channels provides APIs to connect our Flutter code with native Android and iOS code. These are used to build any plugins that depend upon native functionalities like playing audio and connecting to Bluetooth just to name a few.</p><p>While Flutter Platform Channels allowed us to call native DeepAR methods, they do bring in an element of latency due to the transfer of data from Dart → C++ → Java/Swift and then back. It also increases as the size of data passed in arguments becomes bigger.</p><p>This latency doesn’t lead to any issues for methods that call native methods sporadically — like taking a screenshot or switching a filter. It can however be a bottleneck for methods that require passing streamed data with large arguments which in our case was providing the live camera frames to DeepAR for processing and later rendering as a widget.</p><h3>Live Camera Feed (30FPS): The challenge 🏃🏻</h3><p>During our first attempt, we sought to build upon the official camera plugin since it provides users with advanced features like zoom and focus out of the box. The plugin also exposed the method startImageStream() which provided us with live frames which we can then pass to our native implementation for processing. Easy right?</p><p>While this did work, we observed a huge drop in app performance along with high memory usage. The reason was we didn’t take into account the latency and high memory consumption of processing huge bytes of image data and transferring them to DeepAR native methods via the platform bridge.</p><p>Upon using Flutter Dev Tools for inspection, we found out that a lot of resources are being consumed to appending our <em>Uint8List</em> image frames into <em>JSON,</em> encoding it to <em>ByteData</em> and the decoding it back in the native code . But there is just the right optimization for this:</p><p><em>Platform channels offer multiple codecs to communicate between platforms. The </em><em>StandardMessageCodec worked with JSON which led to unnecessary encoding. Lucky for us, Flutter also provides a </em><em>BinaryCodec that works directly with byte data which was exactly what we needed</em></p><p>Post the optimization, the performance significantly improved and we were able to smoothly run and render the frames on a Google Pixel 4A. However the memory consumption was still significant. Running the plugin on lower-end devices with 2GB of RAM, the performance wasn’t satisfactory and the app lagged. We hit a dead end with no further optimization possible and had to think of a different way.</p><h3>Writing our own Camera Code 📸</h3><p>To avoid the bottleneck of marshalling camera frames via Flutter Platform Channels, we decided to write our own native implementation of the camera and pair it directly with DeepAR. As expected, this worked beautifully.</p><p>We used CameraX and CameraController respectively on Android and iOS. To render the frames as Flutter Widget, we had two options:</p><ol><li>Native Views (Used by Google Maps)</li><li>Flutter Texture (Used by Camera)</li></ol><p>DeepAR uses OpenGL to render it’s output to an Android surface. FlutterTexture widget can be configured to use an OpenGL image source which is quite more performant then native views. Hence we decided to work with the texture.</p><p>The implementation on Android was straightforward and worked smoothly. However, on iOS, FlutterTexture doesn’t expose a direct window (surface) for OpenGL to render to. Instead, the content to be rendered needs to come from the CVPixelBuffer .</p><p>DeepAR when configured to produce CVPixelBuffers has additional overhead in terms of CPU and memory usage. This posed a performance issue on older iPhone devices.</p><p>To combat this, we decided to use the Native View for the iOS implementation. This resulted in significant performance improvement and we were able to get a decent enough performance even on an iPhone 7. That’s the dream, right!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*h8g9R0I7_O4eH6n1Dlkulg.gif" /></figure><h3>Finishing it up ⛳</h3><p>From here on things were comparatively simpler, we merged both the native implementations using a dart wrapper and added functions to take screenshots and record videos. We exposed a DeepArController class with methods similar to the default camera package to keep it simple for our fellow developers.</p><p>Please check out the plugin on <a href="http://pub.dev/">pub.dev</a> with the source code here. We are accepting pull requests from the community for fixes and improvements. We also encourage you to file issues on our GitHub repository for any problems faced.</p><p>Made with love 💙</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62bed245c3d5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/deeparblog/the-deepar-flutter-sdk-62bed245c3d5">The DeepAR Flutter SDK</a> was originally published in <a href="https://medium.com/deeparblog">deeparblog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DeepAR Studio 4.0]]></title>
            <link>https://medium.com/deeparblog/deepar-studio-4-0-f3cd6d544849?source=rss-352e24cd80b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3cd6d544849</guid>
            <category><![CDATA[ar-sdk]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <category><![CDATA[augmented-reality-app]]></category>
            <category><![CDATA[ar]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[DeepAR.ai]]></dc:creator>
            <pubDate>Fri, 17 Jun 2022 13:57:19 GMT</pubDate>
            <atom:updated>2022-06-17T14:16:17.152Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QWJ5rygea3kQQg1zDkDj_A.png" /><figcaption>DeepAR Studio 4.0 — the leading AR Creator for AR Designers</figcaption></figure><p>Welcome DeepAR’s newly redesigned tool for our community of 10,000 AR Designers!</p><p>Things are really accelerating here at DeepAR. We’re almost 8 years old and we’ve transformed in a massive way from a single <a href="https://apps.apple.com/us/app/mrrmrr-face-app-face-filters/id1102411061">Face Filter app</a> on the AppStore to an international team of developers, designers and product managers supporting hundreds of amazing brands and businesses and over 10,000 developers touching 80 million end users each month.</p><p>We’ve been heads down for the last 18 months completely rebuilding our tech, platform and tools and we’re really excited with the results.</p><p>One of the key parts of the DeepAR platform is the ability to create your own amazing AR content for free with the <a href="https://www.deepar.ai/creator-studio">DeepAR Studio</a> — and we’re excited to announce a massive new version called DeepAR Studio 4.0. It’s been over 12 months in the making; it’s a complete rewrite from the bottom up which incorporates so many new developments that it’s hard to list them all — but I am going to try!</p><p><strong>Windows and macOS Support</strong></p><p>The wait is over — we now have Windows support for the Studio. So many of you have asked for this and now we support it. It has been made possible by adopting <a href="https://github.com/ocornut/imgui">IMGui</a>. This allows our small but amazingly talented team to develop once and then build for both macOS and Windows. That means we can work faster and more efficiently — and we can ship a more robust desktop application. The tech is really great however we did our own fork of it and added some features that we needed — specifically regarding docking UI elements.</p><p><strong>New 3D Editor</strong></p><p>We’ve revamped the way DeepAR Studio works. Everything is now centred around full on 3D editor component which we lacked before. Now you can see the whole scene in its entirety and move around the camera viewport, even adding multiple cameras etc. This provides more context while creating the AR effects.</p><figure><img alt="DeepAR Studio 4.0 new 3D editor" src="https://cdn-images-1.medium.com/max/1024/1*bDZ4TOvICYEUp4zImchslg.png" /><figcaption>The new DeepAR Studio 4.0 3D editor</figcaption></figure><p><strong>New Preview Technology</strong></p><p>We’ve made it easier and faster for you to preview the AR experiences that you’re working on with our Preview tool. We provide 2 types of preview options:</p><ol><li><strong>Native platform preview</strong> — Windows or macOS depending which platform you run the Studio on.</li><li><strong>Web Preview</strong> — AR scene directly previewed in the browser. Big chunk of our effects run in the browser anyway so this makes it much easier to test in an HTML5 environment.</li></ol><p>A major quality of life improvement, for both preview options, is live reload. Any time you make changes to the underlying resources (textures, shaders, 3d models…) the Preview refreshes and makes the changes visible immediately. E.g. if you change the texture in Photoshop and save it, DeepAR Studio will make sure to rebuild the effect and display it in the Preview on the go. No doubt you’ll appreciate the time saved 😀</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fx_acWQ-44SY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dx_acWQ-44SY&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b9af0cf79ab70883ac739e01e6db2ae5/href">https://medium.com/media/b9af0cf79ab70883ac739e01e6db2ae5/href</a></iframe><p>Other cool features include simulating the resolution of different devices, taking screenshots, and changing the camera source.</p><p>We’re looking to further improve this by adding video source and video recording capabilities in the near future.</p><p><strong>More UI and UX Improvements</strong></p><p>We’ve reviewed all the best AR Studios on the market, listened to all your feedback, and revamped our user interface entirely. We’ve naturally taken queues from Lens Studio and Spark AR Studio, but we’ve also added our unique touch and approach to a number of areas. What separates DeepAR from the other Studio apps which is the way we can work with the tracking points.</p><p>In DeepAR Studio, the user can work with a bone rig template that can drive any kind of geometry or component parented to the bones. This is great because it opens up a world of possibilities while comparing to the single 3D template face mesh from SparkAR for example.</p><p>There are also some features that are in the development pipeline for the DeepAR that are completely unique; like emotion driven blendshapes. Keep an eye out for these …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tWh7w7-PtiSE81JYRpyFyg.png" /><figcaption>DeepAR Studio 4.0 — bone rigging template and joint tracking</figcaption></figure><p><strong>Integrated Projects and Code</strong></p><p>We want AR to be more approachable for more developers; but it’s still not easy. One of the biggest areas of focus is adding more sample projects and code right in the developer portal; so that you can get up and running with more AR experiences faster.</p><p>Previously you could just share a DeepAR Studio effect file, now we support DeepAR Projects which contain all the raw source assets used in the effect creations. This way the collaboration and version control become much easier. Also it enables us to have prefabs ready to be reused across multiple projects you create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0HDbY9qwg1XaWFIsGBmgGg.png" /></figure><p>And it’s only going to increase in range over the coming weeks and months.</p><p><strong>It doesn’t stop here</strong></p><p>There is so much more to do on the DeepAR Studio front and we’re excited to be working with you, our ever growing developer community to really push the limits of person-centric AR.</p><p>One of the biggest areas you’ll see coming online in the next few months is <a href="https://www.deepar.ai/use-cases/ar-in-the-living-room-deepar">body-centric AR at Room Scale</a> … stay tuned …</p><p><em>DeepAR Team</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3cd6d544849" width="1" height="1" alt=""><hr><p><a href="https://medium.com/deeparblog/deepar-studio-4-0-f3cd6d544849">DeepAR Studio 4.0</a> was originally published in <a href="https://medium.com/deeparblog">deeparblog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DeepAR iOS and Android SDK Get a Major Upgrade!]]></title>
            <link>https://medium.com/deeparblog/deepar-ios-and-android-sdk-get-a-major-upgrade-ce6ed9faff3f?source=rss-352e24cd80b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce6ed9faff3f</guid>
            <dc:creator><![CDATA[DeepAR.ai]]></dc:creator>
            <pubDate>Tue, 21 Jul 2020 18:44:14 GMT</pubDate>
            <atom:updated>2022-08-09T13:11:30.935Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zo5val38fiR1S2JXBTswAw.jpeg" /></figure><p>We’re very excited to share the new iOS and Android SDKs to our developers. Over the few months we’ve worked hard to create the best face AR SDK out there and are super happy with the results and are sure you are going to like it too. Let’s jump right into all the cool new features we’ve developed for you (thanks for all the feedback!).</p><h3>Improved tracking performance and quality</h3><p>Our deep learning team has made significant improvements to the face detection and tracking algorithm which resulted in better performance and quality of DeepAR face tracker. DeepAR now uses less processing time for better overall results. This is really important for the apps requiring the highest performance like video conferencing apps, or the beauty and make-up tools which need the best tracking precision possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*a23BGWoQ6nUKqdjq" /></figure><h3>Better background and hair segmentation</h3><p>Aside from face tracking, our segmentation features received a major accuracy and performance boost. Now that remote work and video conferencing has become the norm, we’ve focused on our background segmentation technology which now performs better on both iOS and Android — and is also now available on macOS. We’ve achieved real time background segmentation performance on our WebSDK too so stay tuned for a new version shortly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2fIQkbCNDtHS9FVJ" /></figure><h3>Emotions API</h3><p>We’ve had emotion detection from the start, however it was only available to users within the DeepAR Studio as a custom behaviour component. Now DeepAR has EmotionsAPI exposed which estimates users’ emotions in each frame including anger, sadness, surprise happiness and neutral emotions. We’ve been testing this with some big clients, and the results are very powerful, and super insightful — we can’t wait to see what you build with it.</p><h3>iOS API changes</h3><p>iOS has received an API update. Mainly we’ve refactored the code that handles the iOS camera in a separate class called CameraController. You can use it as is or you can provide your own implementation just make sure to implement the interface provided in CameraController.h. This is now more in line with Android’s CameraGrabber approach which gives more flexibility to developers. Check out the example within the SDK download on how to use it. It’s really easy and it should not take you more than 15 minutes to make changes to your current implementation.</p><p>In addition to API changes we’ve included the requested simulator and latest xCode support for iOS developers.</p><h3>Future improvements</h3><p>We’re already working on the next iteration of DeepAR SDK which should bring even more exciting features and performance improvements. Here are just some of the exciting new stuff we have in plan:</p><ul><li>New WebSDK with performance and API changes to match the iOS and Android. Also, we are very close to providing real-time background segmentation for HTML5.</li><li>ActionUnits API – 21 values of parameterized 3D model which can be used as an additional way to drive your filters</li><li>Better support for frame-by-frame and off screen frame processing. This will give developers more freedom to use the SDK in various scenarios other than on screen rendering – video or batch image processing to name a few.</li><li><strong>New DeepAR Studio</strong> – we’re quite excited about this one. DeepAR Studio is a major component in our tech stack and we can’t wait to share it with you – it will make the content production easier than ever before. Before you get your hands on it here is a sneak peak of how it will look like.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZnBLT-6_GP7WFg_Q" /></figure><p>We hope you’ll like what we’ve prepared for you and all the exciting new stuff that are coming in the future. Feel free to contact us any time if you have any questions, our support team is more than happy to chat with you.</p><p>Best,</p><p>DeepAR team</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce6ed9faff3f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/deeparblog/deepar-ios-and-android-sdk-get-a-major-upgrade-ce6ed9faff3f">DeepAR iOS and Android SDK Get a Major Upgrade!</a> was originally published in <a href="https://medium.com/deeparblog">deeparblog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DeepAR is out!]]></title>
            <link>https://medium.com/deeparblog/deepar-is-out-a2e5215c26e?source=rss-352e24cd80b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2e5215c26e</guid>
            <dc:creator><![CDATA[DeepAR.ai]]></dc:creator>
            <pubDate>Tue, 03 Mar 2020 15:01:27 GMT</pubDate>
            <atom:updated>2020-03-03T15:01:27.523Z</atom:updated>
            <content:encoded><![CDATA[<p>In a few days, we’re launching <strong>DeepAR SDK on Product Hunt</strong>. We saw this as an opportunity to write a short recap of our story so far. It’s a great chance to remind ourselves of what we’ve been through, and why we started doing this in the first place.</p><h3>What is DeepAR?</h3><p>Let’s just explain what DeepAR is if there are any of you who aren’t familiar with it.</p><p>Simply put, it’s a set of tools used to insert 3D Face Filters, Masks, and Lenses in any App or Website. There are 3 main parts of DeepAR:</p><p><strong>SDK</strong> — the devkit itself</p><p><strong>DeepAR Studio</strong> — our asset creation tool for AR content (filters, effects, mask, etc.)</p><p><strong>Asset Store</strong> — online store where creators can download readymade assets for their apps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/0*CI8iCnEQ4flHhg-c" /></figure><p><em>AR Face Filter created with DeepAR</em></p><h3>How we came up with the idea?</h3><p>We’ve been dabbling in Augmented Reality for some time now. 4 years ago, we created <a href="https://apps.apple.com/us/app/mrrmrr-face-app-face-filters/id1102411061">MRRMRR</a>. It was a fairly straightforward selfie app where users could take photos and videos and add real-time filters, face-swaps, and special effects. MRRMRR got some traction, and it was featured on different App stores for more than 20 times. That type of exposure got people interested. They started contacting us, asking if there’s a way to put some of the AR content we had in MRRMRR in their own apps.</p><p>It didn’t take long for us to realize there’s significant potential in that idea, so we thought: “Let’s build something to help developers insert face tracking AR content in apps!”</p><p>And with that, our project began.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/0*Uk7EhDIAV-RqAfak" /></figure><p><em>Head in a Jar filter — available on the Asset Store</em></p><h3>How did this thing happen?</h3><p>When we started working on DeepAR, our goal was to create a multiplatform and lightweight SDK that’s easy to use. We didn’t want the learning curve to be too steep and it had to work well with other apps.</p><p>Anyone who tried to do something similar knows how challenging that can be.</p><p>Nonetheless, we started working and the first thing we’ve finished was the <strong>iOS version</strong> of our SDK.</p><p>Of course, we didn’t want to disregard the huge Android user base, so the <strong>Android version came next</strong>. Simultaneously, we started working on <strong>DeepAR Studio</strong>. It was supposed to make it easy for devs and 3D artists to <strong>create and test AR effects </strong>before deploying them to production. Studio imports 3D FBX models created with modelling tools such as Maya or Blender and exports them in a format that can be used by DeepAR SDK.</p><p>Finally, to support the growing market of online AR ads we’ve developed the Web/HTML5 version of our SDK which can be used in all popular browsers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*NemfACKd8NnNqege" /></figure><p><em>Editing a face filter in DeepAR Studio</em></p><p>Currently, we’re putting the finishing touches on what should become our new platform. We’re launching our <strong>self-service dev portal with the asset store.</strong> Together with DeepAR Studio, those two are imagined as one-stop service for developers interested in working with face tracking AR. They can register for free and try out some AR effects. If they like an effect, they can buy it and use DeepAR Studio to continue working on it and modify it any way they want, or they can use it as it is.</p><h3>There are similar tools out there, though?</h3><p>You might think that all this seems a bit familiar, especially if you know about Facebook’s <a href="https://sparkar.facebook.com/ar-studio/">Spark AR </a>and <a href="https://lensstudio.snapchat.com/">Snapchat’s Lens Studio</a>. And you’d be right. A lot of talented people publish amazing AR experiences daily. That’s because two social media giants created amazing tools for publishing stuff on <strong>their platforms</strong>. And that’s the main difference between their tools and DeepAR. Our Studio can do pretty much the same as Snap’s and Facebook’s. But, using our SDK, developers can publish their work on their terms, in their own apps and websites.</p><p>We wanted to empower independent creators and to enable them to do their own thing.</p><h3>What happens next?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*_UHdyIdTeOIEvRbq" /></figure><p>We are extremely passionate about AR since its inception. For nearly two years now, we have been tirelessly working on DeepAR. Hopefully, developers, designers, and 3D artists globally will recognize our efforts and help us grow the platform.</p><p>All the code and tools we have built are meaningless without the help and feedback from our community. There’s always a place for improvement, so please, feel free to share your experiences with us, and help us create better AR products.</p><p>Here’s some additional reading, if you’re into that kind of stuff:</p><p>LINKS:</p><p><a href="https://www.deepar.ai/">Learn more about Deep AR</a></p><p><a href="https://developer.deepar.ai/">For devs and designers</a></p><p><a href="https://help.deepar.ai/">Knowledgebase</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2e5215c26e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/deeparblog/deepar-is-out-a2e5215c26e">DeepAR is out!</a> was originally published in <a href="https://medium.com/deeparblog">deeparblog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shape and Appearance Based Sequenced Convnets to Detect Real-Time Face Attributes on Mobile Devices]]></title>
            <link>https://medium.com/@DeepAR.ai/shape-and-appearance-based-sequenced-convnets-to-detect-real-time-face-attributes-on-mobile-devices-6bc25e533e76?source=rss-352e24cd80b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6bc25e533e76</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[DeepAR.ai]]></dc:creator>
            <pubDate>Tue, 24 Jul 2018 21:49:35 GMT</pubDate>
            <atom:updated>2018-07-24T21:49:37.183Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Abstract</strong></h3><p>In computer vision, classifying facial attributes has attracted deep interest from researchers and corporations. Deep Neural Network based approaches are now widely spread for such tasks and have reached higher detection accuracies than previously manually-designed approaches. Our paper reports how preprocessing and face image alignment inﬂuence accuracy scores when detecting face attributes. More importantly it demonstrates how the combination of a representation of the shape of a face and its appearance, organized as a sequence of convolutional neural networks, improves classiﬁcation scores of facial attributes when compared with previous work on the FER+ dataset.</p><p>While most studies in the ﬁeld have tried to improve detection accuracy by averaging multiple very deep networks, exposed work concentrates on building eﬃcient models while maintaining keeping high accuracy scores. By taking advantage of the face shape component and relying on an eﬃcient shallow CNN architecture, we unveil the ﬁrst available, highly accurate real-time implementation on mobile browsers.</p><p><a href="https://dblp.uni-trier.de/db/conf/amdo/amdo2018.html"><strong>Link to the paper</strong></a><strong> </strong><a href="https://dblp.uni-trier.de/db/conf/amdo/amdo2018.html#LivetB18"><strong>AMDO 2018</strong></a><strong>: 73–84, Nicolas Livet, George Berkowski</strong></p><h3>Introduction / Content</h3><p>Exploring human face attributes based on images and sequence of images has been a topic of interest over the years. For decades, a number of approaches have been carefully engineered in order to try to solve this problem with the highest possible accuracy. However, most manually-crafted approaches appear to become ineﬃcient when dealing with real life “face-in-the-wild” problems. Manually-crafted approaches are often combined with some Machine Learning principles as for example LBP+SVM [1] or SIFT/HOG+SVM [2]</p><p>In contrast with most recent approaches that consists in evaluating always deeper architectures or averaging multiple deep models, our approach consists in classifying emotions using shallow CNN architectures and prior information. Our objective is to achieve robust and real-time face attributes (emotions in shown examples) detection on Mobile Browser.</p><h3><strong>Datasets</strong></h3><p>Presented architecture is trained and results are evaluated on the FER+ dataset [FER] which has been first released in 2013 and later improved with better annotations. The FER dataset contains about 30,000 samples making it one of the most complete in-the-wild face emotion dataset available.</p><p>Note that for our training and testing phased, we got rid of the traditional CK+ dataset [CK+] as accuracy scores are saturating. CK+ and other traditional datasets only provide very constraint images, with:</p><ul><li>Limited # of samples (SFEW),</li><li>Limited # of poses (CK+, JAFFE),</li><li>Limited # of lighting variations (All),</li><li>Limited face diversity (eg. JAFFE).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E6y7lwef55hs0n7zlvcNHA.png" /><figcaption><em>The CK+ (Extended Cohn-Kanade expression dataset) has been the dataset of choice for decades when comparing accuracies. We can see how it saturates with recent techniques.</em></figcaption></figure><p>However, the FER+ dataset is far from being perfect and include several biases/issues:</p><ul><li>Examples are constructed using a face detector which crops faces in a particular manner</li><li>Low quality &amp; low resolution cropped images contain compression artifacts, aliasing, …</li><li>Original images were not made available,</li><li>A majority of frontal faces are available (as the face detector tends to fail to detect profile faces).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aL5qlSr_TfWiVDlJ6uHXmw.png" /></figure><p>To reduce impact of such biases, the dataset is preprocessed as follow:</p><ol><li>Images are upsampled (2x) and enhanced (noise, jpeg artifacts removal) using a SuperResolution CNN architecture [SRCNN]</li><li>Borders are then expanded by progressively mirroring and blurring pixels to obtain 128x128 face images</li><li>Cleaner augmented examples are finally constructed (at training phase) based on a random projective transformations.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1xfGuNIwfZvnMuhdFaWOWw.png" /><figcaption>Three simple preprocessing steps to reduce influence of the FER+ dataset biases (image upscaling, border expansion and final random crops.</figcaption></figure><h3><strong>Architecture</strong></h3><p>Instead of relying on ever deeper and averaged CNN architectures, we decided to rely on modern mobilenet architectures [MOBNET]. Such architecture includes several pointwise/ depthwise separable filters thus optimizing computations at inference time (see illustration).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SVMd-NJkZB_lNHWY" /><figcaption>Our fastest architecture based on pointwise/depthwise operators. It has been constructed based on a truncated Mobilenet-0.5 architecture.</figcaption></figure><p>However, shallower architecture cannot compete with veery deep VGG or Resnet-50 architectures. That’s the reason why a supplemental information is fed to the network to give a prior knowledge to the system with the objective to approach as much as possible the results obtained with a deep architecture.</p><h3><strong>Shape Prior Architecture</strong></h3><p>A supplemental channel is constructed and added to the RGB or gray input image. This channel contains the shape of the face as depicted by its internal landmarks. It is an image we named the shape prior heatmap as it contains a (rescaled) Gaussian peak response at face landmark vicinity (see illustration).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XNJh-Xk_f3EjNGERKdPWQw.png" /></figure><p>Our architecture for facial emotion detection is decomposed in two step: first face landmarks are localised (not described in this work, see <a href="http://www.deepar.ai/">www.deepar.ai</a> for some results), then emotions are detected based on face landmark localizations. Following illustration describes our complete architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DYkGdqQhXu-q0wh0rSNuqQ.png" /></figure><h3><strong>Results</strong></h3><p>Not surprisingly, the shape prior helps to improve accuracy scores on the FER+ dataset. It’s especially the case when inferring on shallow CNN architectures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/0*viuW_BFyxT09HtBz" /><figcaption>We have improved over state of the art accuracy on the FER+ dataset using a VGG architecture.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*Bjur7-7osl0UR4Dp" /><figcaption><em>On our experiments, using a shape prior is providing great improvements on shallow architectures (here on Mobilenet-0.5)</em></figcaption></figure><p>We have benchmarked our approach on different architectures. To make our application real-time on Mobile browsers, an optimized implementation of the pointwise 1×1 and depthwise 3×3 convolutions has been developed, relying on the <a href="https://github.com/kripken/emscripten">Emscripten </a>tool to build JavaScript bitcode. Even though our implementation could be further optimized (eg. by taking advantage of SIMD instructions), our native Android application reached 300fps on a on a Google Pixel 2 and nearly 100fps on the same device using Chrome Web browser (refer to the last columns of Table 1. for more results</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b39SoAADzcG7xYCe" /></figure><h3><strong>Conclusion</strong></h3><p>Our work discusses existing datasets, their respective drawbacks,and how to prepare the data to improve the quality of the information passed to the learning process. It is shown how to transform the results of a facial feature detector system to a face shape heatmap image and how to combine the face of a shape with its appearance to learn modiﬁed CNN models. Using this approach, accuracy scores on the FER+ dataset are substantially improved. The choice of a smooth loss (a Huber Loss) evaluated on non-discrete label distributions has brought to our system the capability to interpolate between diﬀerent emotions attributes. Our architecture and in-house implementation take advantage of eﬃcient separable pointwise 1×1 and depthwise 3×3 convolutional ﬁlters. We were able to deploy a face tracker combined with a face emotion detector that works in real-time on mobile browser architecture</p><h3>References</h3><p>[1] Dynamic texture recognition using local binary patterns with an application to facial expressions — G. Zhao &amp; All</p><p>[2] Facial expression recognition and histograms of oriented gradients: a comprehensive study — P. Carcagnì &amp; All</p><p>[FER+] Training Deep Networks for Facial Expression Recognition with Crowd-Sourced Label Distribution — E. Barsoum</p><p>[CK+] The Extended Cohn-Kanade Dataset (CK+): A complete dataset for action unit and emotion-specified expression — P. Lucey</p><p>[SRCNN] Image Super-Resolution Using Deep Convolutional Networks — Chao Dong, Chen Change Loy, Member, IEEE, Kaiming He, Member, IEEE, and Xiaoou Tang, Fellow, IEEE</p><p>[MOBNET] MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications — A. G. Howard &amp; All</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6bc25e533e76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Launching AR Ads with Teads.tv inRead AR]]></title>
            <link>https://medium.com/@DeepAR.ai/launching-ar-ads-with-teads-tv-inread-ar-39c9f6eb752a?source=rss-352e24cd80b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/39c9f6eb752a</guid>
            <category><![CDATA[ar-advertising]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <category><![CDATA[cannes-lions]]></category>
            <category><![CDATA[arad]]></category>
            <category><![CDATA[tead]]></category>
            <dc:creator><![CDATA[DeepAR.ai]]></dc:creator>
            <pubDate>Sun, 17 Jun 2018 22:05:59 GMT</pubDate>
            <atom:updated>2018-06-19T06:21:02.137Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Launching AR Ads with Teads.tv inRead AR</strong></p><p>We love AR, face-tracking and optimising things for mobile. We’ve been doing it for a few years and by focusing on great engineering and performance, we’ve built up a loyal base of customers and now power over 50 million users each month.</p><p>Today we’re thrilled to announce a partnership with one of the most innovative mobile ad networks — <a href="https://teads.tv/press-room/teads-launches-inread-ar/">Teads</a> — and the launch of <strong>Teads’ inRead AR</strong>, a new format that allows brands to leverage the power of augmented reality to create highly interactive and engaging advertising.</p><p>Teads will bring new AR experiences to market by leveraging its internal creative strategists and designers, and in partnership with <a href="https://deepar.ai/about/">DeepAR</a>, a team of engineers and researchers from MIT, and 3D designers and animators with experience from Candy Crush and Dreamworks.</p><p>Through the partnership, Teads will use DeepAR’s unique <a href="https://deepar.ai/augmented-reality-sdk/">AR and Face Tracking Ads SDK</a> to enable Augmented Reality within a browser without the need of downloading an app.</p><p>Teads will launch this new format at the <a href="https://teads.tv/press-room/teads-launches-inread-ar/">Cannes Lions Innovation</a> festival and will showcase two demos created for Burger King and Ray Ban.</p><p>Checkout out <a href="https://demo.deepar.ai/rayban/">Ray Ban AR Ad unit</a> and the <a href="https://demo.deepar.ai/burger/">Burger AR Ad unit</a>.</p><p>We see this as the first step to take amazing AR experiences that were previously relegated to native iOS and Android apps, and take them into a broader ecosystem of mobile ad networks, via unique technology, IP and performance optimisation from the team at DeepAR.</p><p>If you’re interested in learning more, then please don’t hesitate to <a href="https://deepar.ai/contact/">get in touch with us</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FjI_6mPizDTY%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DjI_6mPizDTY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FjI_6mPizDTY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c6d1ea9d4dca37d9b31b645332cad6f/href">https://medium.com/media/5c6d1ea9d4dca37d9b31b645332cad6f/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39c9f6eb752a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>