<?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[The Unit - Medium]]></title>
        <description><![CDATA[We partner with you to design the future, collaborating to launch, evolve and grow amazing businesses. - Medium]]></description>
        <link>https://medium.com/the-unitgb?source=rss----9bd9e9b90eb4---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>The Unit - Medium</title>
            <link>https://medium.com/the-unitgb?source=rss----9bd9e9b90eb4---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 09:33:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/the-unitgb" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How can we collaborate effectively whilst in isolation]]></title>
            <link>https://medium.com/the-unitgb/how-can-we-collaborate-effectively-whilst-in-isolation-7ca5a57ca79f?source=rss----9bd9e9b90eb4---4</link>
            <guid isPermaLink="false">https://medium.com/p/7ca5a57ca79f</guid>
            <dc:creator><![CDATA[The Unit]]></dc:creator>
            <pubDate>Tue, 30 Jun 2020 12:34:27 GMT</pubDate>
            <atom:updated>2020-06-30T12:33:14.734Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YopODrHDBJaXb3WnTKHH6w.jpeg" /></figure><p>Thinking back to a world before the COVID pandemic, there is so much that has changed in our lives. The first few weeks of lockdown seemed to turn everything on its head.</p><p>xWe found ourselves having to dramatically change the way we live our lives to cater for the threat of spreading an airborne virus. So much that we had taken for granted was no longer available to us. The physical restrictions on entering shared spaces meant that we had to find new ways to carry out our jobs, forcing us to work from the (dis)comfort of our own homes. It was during this time that we learned a lot about what we really rely on in our day to day jobs.</p><p>The shift to working from home (WFH) happened in a relative instant, we weren’t given the time to thoroughly plan and prepare for how we’d now carry out our everyday tasks. Sitting down with the team at The Unit, we discussed how WFH would impact us as a business.</p><p>The digital industry is one that is relatively well placed to work remotely, perhaps more so for an agency than a large organisation, but still far easier than a more physical industry. At The Unit we’d recently enforced a WFH week only the month prior to allow for office renovations, and everything had gone smoothly. However this was clearly going to be a longer-term arrangement which would bring about new challenges for the team.</p><p>One area that had always concerned me (other than my seven month old co-worker), was our ability as designers to collaborate and exchange thoughts and feedback on wireframes and designs.</p><p>A group of people congregating over a screen has always been a common sight in our studio. Be it designers sharing thoughts, developers inputting into designs, research leads shaping solutions — we would frequently collaborate around a single physical location.</p><p>On top of this, an issue for me in particular, is that I do love to use a whiteboard. Whether that’s sketching ideas with colleagues (both good and often bad!). Writing ToDo lists, or just doodling some scribbles that somehow vaguely illustrate, but certainly assist my thought process. (My ‘scribbles’ have become something of an office joke if I’m honest).</p><p>It’s just that I find having something physical, that is visible for all to see, has a certain impact and gravitas to it. It can’t ‘accidentally’ be overlooked like an email can, it’s on the wall staring you in the face. I also believe that sketching with whiteboard pens is the quickest, and least formal way to communicate a thought for dissection whilst in meetings or workshops.</p><p>Here I was forced to work from home with a big part of my working practice removed. I had two options; to start drawing on the walls in my house, or find a digital alternative. With my wife not thrilled about the prospects of flow diagrams forming a new feature wall for our living room , I opted for the latter.</p><p>So how do we collaborate digitally? Obviously we could share screens on video calls, and Slack has the floaty pen feature that annoyingly disappears after three seconds. But it was a little cumbersme to capture people’s thoughts in a collaborative way, and we lacked the ability to sketch ideas together.</p><p>I started to download and play around with a few digital whiteboards (<a href="https://stormboard.com/">Stormboard</a>, <a href="https://www.invisionapp.com/">InVision</a> and <a href="https://whiteboardfox.com/">Whiteboard Fox</a>), then I remembered using <a href="http://miro.com/">Miro</a> on a previous project when mapping chat-bot flows with a client. The work had gone very smoothly (I remember the post-it note feature that had an instant appeal for me).</p><p>So days before kicking-off a 16-week, seven-person Scrum based project to design and develop a new start-up proposition, I decided we’d give it a go.</p><p>Here’s how it went:</p><p><em>Miro</em></p><p>With its intuitive interface, it’s very easy to pick up and play with (even if skipping the intro wizard as I inevitably always do). With our design lead rapidly creating lo-fi wireframes before our eyes, it didn’t take the rest of us long before we were dropping post-it comments in and around his sketches like a cluster bomb attack of feedback.</p><p>The design tools were also very familiar, meaning the team could sketch mini concepts and interactions that sat alongside each of his more polished wireframes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ciFo--okUQLNCkf6oxpR4A.png" /></figure><p>One feature that proved really useful was the ability to drop almost anything onto the board. We’d very quickly created a kind of wireframe/mood-board hybrid with screen grabs of competitors and inspiration that seemed to perfectly capture both our conversation and ‘vision’.</p><p>We then progressed to map out the full journey, giving us a picture of the application’s entire flow. Unlike with single screen designs, or somewhat dry Trello boards, we now had a single source of truth that visually captured the full scale of the project at-hand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*1TDm8N7jQuUXTF4E" /></figure><p>This is such a key factor for a successful project. Having the entire project team and project stakeholders share a vision of exactly what is going to be created is often half the battle.</p><p>All in all, perhaps unsurprisingly, I found it easy to switch from a physical board to a Miro board when in the Ideation and Converge project phases. I was surprised however to see that it actually continued to offer value when moving into the design and build sprints.</p><p>Our designers started to work through the Miro board, switching out wireframes with their high-fidelity Sketch designs. Acting almost like a design backlog to track progress against, but again enabling us to comment directly into individual screen designs, to ensure that we hadn’t missed any of the all-important details.</p><p>Clearly it’s a good tool for capturing comments and notes from UX designers, project managers, and clients, but it can also be used to brief developers on flows and actions.</p><p>We’ve now used the Miro board for the first four weeks of our project, and it really has highlighted to me how useful it is to have a single, and shared, view of a project. Having one digital board to support us through the evolution from a smorgasbord of ideas, through to customer-journeys and wireframes, and then onto final designs and even development.</p><p>It did get me thinking about whether we could even take it a step further, using the Miro board to ‘chunk’ designs into sprints of work in a wider agile project. Perhaps we could capture development estimations, and even enable stakeholders to prioritise features within Miro itself.</p><p>I’ve seen problems arise in projects where multiple digital tools are used, when team members and clients start reviewing old versions, and losing login details etc. Perhaps this could be the ‘one ring to rule them all’?</p><p>There’s still lots of learning to have for sure, and it’s great to see the potential with integration to our Slack channel. If I had one word of warning however, I would point out that Miro should be used primarily as a working tool. It is not best placed for more formal demos. Speeding around a huge user-flow of designs soon becomes disorientating for stakeholders — far better to resort to a clickable InVision prototype for these meetings.</p><p>In summary, I will soon be reunited with my 120x200 wall mounted whiteboard (I’ve missed you old friend), but perhaps the use of digital whiteboards, with their infinite size and the ability to support an evolving project through ideating, converging, designing and even development, actually offer us more?</p><p>Knowing how I operate and think, I’m sure that I’ll likely always need to physically draw on something or other to help shape my thoughts. I do however feel that the use of collaborative tools such as Miro is something that will likely remain part of our way of working. I will certainly give thought to whether we should adopt this approach for more of our projects moving forward.</p><p>Nick Boniface</p><p>Delivery Director at The Unit</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ca5a57ca79f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-unitgb/how-can-we-collaborate-effectively-whilst-in-isolation-7ca5a57ca79f">How can we collaborate effectively whilst in isolation</a> was originally published in <a href="https://medium.com/the-unitgb">The Unit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Helping local government facilitate effective service delivery]]></title>
            <link>https://medium.com/the-unitgb/helping-local-government-facilitate-effective-service-delivery-3dca86f83e2b?source=rss----9bd9e9b90eb4---4</link>
            <guid isPermaLink="false">https://medium.com/p/3dca86f83e2b</guid>
            <category><![CDATA[the-unit]]></category>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[experience-design]]></category>
            <category><![CDATA[service-design]]></category>
            <category><![CDATA[council]]></category>
            <dc:creator><![CDATA[The Unit]]></dc:creator>
            <pubDate>Mon, 23 Sep 2019 13:16:13 GMT</pubDate>
            <atom:updated>2019-09-23T08:22:50.704Z</atom:updated>
            <content:encoded><![CDATA[<p>Author: Chris Clegg CX Lead at <a href="https://www.theunit.co.uk/">The Unit</a></p><p>Most local governments are now digitally-enabled, however public services continually come under pressure to save costs. At the same time people’s expectations of service quality have risen as they compare public services with the experiences they have in the private sector. Providing a smooth path to buying, managing and delivery of services is the key to customers seeing the value in the products they are consuming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RtmIpahO2N-fLTlRD-tNuQ.jpeg" /></figure><p>So how do we streamline processes, rebuild trust, and reconnect with disgruntled citizens?</p><h3><strong>Shifting focus from citizens to customers</strong></h3><p>Effectiveness will be achievable when councils realise it’s not about building a new website; it’s about creating new services that people want to engage with. That requires re-organisation, with new ways of working and a new culture, as much as it requires great user journeys.</p><p>Experience design helps shift a councils mindset from being not only a service provider, but also a business that is entitled to create revenue from its services. A successful experience strategy requires concerted efforts across departments, to understand a citizens’ digital behaviour and their needs at different stages.</p><p>The key is giving internal teams the resources and tools to capture business goals, identify audiences, and write user stories. They can then map out each service offering, enabling them to design new service pages quickly and easily and with minimal technical expertise and knowledge.</p><h3><strong>Coherent end-to-end services through a single customer view</strong></h3><p>End-to-end services need to be ‘designed’ from the point the customer starts trying to achieve a goal to the point when they are finished. This includes website content, any transactional part, phone, post and face-to-face channels, as well as the digital elements in order to reduce friction and create coherency.</p><p>A complete omni-channel ecosystem powered by the single customer view and profile enables a seamless customer engagement on any device, at any time, in any place.</p><h3><strong>Joining things up for the customer</strong></h3><p>Customers should be able to self-serve by booking and paying for services, request services, report problems and importantly, be able to track progress of their request via any channel through a Single Customer Portal. This will enable the customer to experience a comparable level of service irrespective of the channel they use to make contact via within the limitations of that channel.</p><h3><strong>Make the mundane invisible</strong></h3><p>By and large the services a council offers are a necessity so users don’t really care about the services on offer. So making opting in to, paying, renewing and leaving services as easily as possible is key. The service ‘design’ should identify the right channel at the right time to tell the right story. From start to middle and end, in order to deliver a frictionless and somewhat invisible service delivery, removing traditional barriers.</p><p>Get customers to their task quickly, anticipate their needs and use a channel that’s most convenient. Don’t make your customers log into an account to pay their council tax if a simple text message with a link to a payment gateway on the day of payment is all they need.</p><p>Be proactive not reactive with the touch-points of the service to help customers use it in a way that suits them by being able to book and pay for services, report problems and request services without having to have an Account. Use coordinated early interventions to avert the escalation of potential issues i.e. receiving alerts, responses and notifications. Enable customers to think only of their needs, not the structure of the organisations delivering the services and make sure their experience if personalised to them, whether that’s through content, language or just understanding what they know to be the moments of truth about where they are in the service lifecycle.</p><p>A successful local government service delivery is one that recognises that what is important to the council as a business, may be an inconvenient distraction from their customers day to day lives.</p><h3><strong>Service experience extends beyond the customer</strong></h3><p>But it should not stop with the front end delivery of the service. The service enablers, from managers, to suppliers to delivery agents should be able to access a single view of each customer in order to be able to be able to see a live and accurate view of the customer to be able to quickly and easily search for, view and interrogate previous and current customer interactions with the Council.</p><p>Teams should be able to easily access, track, analyse and report on performance, identify service bottlenecks, customer trends, and ultimately enable proactive rather than reactive delivery.</p><blockquote><em>The golden rule; disgruntled customers question the value of a service. Delighted customers are more likely to buy additional services.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3dca86f83e2b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-unitgb/helping-local-government-facilitate-effective-service-delivery-3dca86f83e2b">Helping local government facilitate effective service delivery</a> was originally published in <a href="https://medium.com/the-unitgb">The Unit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When does a pattern become a pattern?]]></title>
            <link>https://medium.com/the-unitgb/when-does-a-pattern-become-a-pattern-8237d0525138?source=rss----9bd9e9b90eb4---4</link>
            <guid isPermaLink="false">https://medium.com/p/8237d0525138</guid>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[pattern-library]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[The Unit]]></dc:creator>
            <pubDate>Mon, 23 Sep 2019 13:15:49 GMT</pubDate>
            <atom:updated>2019-10-16T16:54:59.591Z</atom:updated>
            <content:encoded><![CDATA[<p>Author: Arusha Elworthy Senior UI/UX Designer at <a href="https://www.theunit.co.uk/">The Unit</a></p><p>If you’re embarking on the challenge of creating a new pattern library or design system, the task may seem daunting and even though these concepts are now fairly well-established in 2019, there are still grey areas aplenty. What is the difference between a pattern library and a design system? How do you decide what should become a pattern within your new library and what should be treated as a standalone design solution?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YZ69-0e-_tDN1c4V7tdIsQ.jpeg" /></figure><h3><strong>What do I mean by a ‘pattern library’?</strong></h3><p>When I talk about pattern libraries, I’m actually talking about a lightweight design system, but everyone has their own idea of exactly what is included in either of these things. I think a pattern library sounds like something tangible to stakeholders and end users who don’t fall into the design or development bracket. It’s easy to visualise from the word ‘pattern’ that we’re picking out the consistent elements of the design to form a common language as well as vastly reducing development effort with reusable components.</p><h3><strong>What do I mean by a ‘design system’?</strong></h3><p>A ‘design system’ to me has always been a more mystical and technical beast; a catch-all umbrella to cover everything that goes into the design process. It can include anything from:</p><ul><li>tone of voice guidelines for copywriters,</li><li>to guidelines for developers making form fields more accessible,</li><li>to rules for designers around how to continue a web-based brand into the realms of print,</li><li>to process flows that anyone can use to ensure the system is being properly maintained.</li></ul><p>In my mind, a design system is <strong>BIG</strong>. It’s something that will be used by hundreds of people. Of course it doesn’t have to be, but if it’s just being used by a handful of designers and the office dog then realistically a well-crafted pattern library should cover the bulk of what you’re looking for. It will also save you six months to a year of documenting in meticulous detail something that could be out of date next week. What’s more, you can update your library in a much more agile way. I’m not saying that design systems don’t have a purpose — I adore a beautifully crafted design system and such a system can transform design collaboration on a global scale. But it can also be like opening Pandora’s box.</p><p>You want neatly categorised sections of brand elements (colours, logos, illustrations), components and templates. Brief annotations are handy, but you probably don’t want an essay around when to use radio buttons vs. when to use drop-downs. You want the design of both of those things, shown in their different states, on different devices and within a larger form template. Using a tool such as Zeplin, you don’t necessarily even need to annotate the colours, dimensions, etc. Your developers will have everything they need to turn it into a living library of patterns and your designers can use a combination of this and your source Sketch / Adobe XD file to drag and drop the elements they need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GpRB0cmd3dsLnFx7" /><figcaption>UXPin’s explanation of the difference between a design system, a style guide and a pattern library: <a href="https://www.uxpin.com/studio/blog/design-systems-vs-pattern-libraries-vs-style-guides-whats-difference/">https://www.uxpin.com/studio/blog/design-systems-vs-pattern-libraries-vs-style-guides-whats-difference/</a></figcaption></figure><p>This diagram from UXPin is quite a nice way to visualise the difference between a design system and a pattern library, but I think you can blur the lines more than this. Whilst a pattern library can be as basic as a snapshot of templates, modules, components and elements, I do think any pattern library worth its salt should also document the colour palettes, type scales and icons so that you can easily reference those throughout the designs. If those basic building blocks are included then you can very quickly start to grasp what the repeatable elements are within the pattern library at a very granular level. Including a basic overview of your core breakpoints and grid systems is also a must, since so many of your design decisions will hinge off this.</p><p>The ‘rules’ section within a design system could be a doorstop of a manual, but there are easy ways to bring the key considerations into the pattern library itself. It could be as simple as dropping a comment beneath a colour swatch to say:</p><blockquote><em>“This is $blue-500. We use it for hyperlinks and primary buttons. It has been checked for WCAG contrast and meets AA rules so you can use white text over the top of a blue-500 button.”</em></blockquote><p>If the reader wants the long backstory of how you created your range of blues, user-tested button colours and ‘what the hell is WCAG?’ they can contact you for further clarification, but they probably won’t want to. They just need to know what building blocks they can use with as little detail as possible to understand them.</p><p>In terms of editorial guidelines, you could spend months writing a masterpiece, but how many people are going to read it cover to cover? Again, placing helpful comments in-situ with the patterns themselves is a much better way to go:</p><blockquote><em>“These form labels are kept as concise as possible whilst still being human-readable. We want to save space on smaller devices, not overwhelm the user with too much text, but nor do we want to sound too abrupt or use jargon.”</em></blockquote><h3><strong>How to decide what ‘patterns’ make the cut</strong></h3><p>So, assuming we’ve laid the foundations of our basic building blocks into the library and provided helpful annotations, how do we now work out what patterns to include? A content audit is always the best way to start. I like to physically print out pages from the current site at desktop and mobile breakpoints, cut them up and create a chaos of paper on a boardroom table. Ideally I’d include designers, developers and all key stakeholders in this activity. Once you start to loosely group the components, you might find yourself cutting them up into smaller pieces to find the inconsistencies at a more granular level. This exercise won’t help you evaluate fine variations in colour or dimension, but it’s a solid place to start.</p><p>Looking at the core elements of your site, you should end up with a list along the lines of:</p><ul><li>Buttons — is there a defined primary and secondary style? Can the colours be inverted for use over a dark background? What happens on hover and click?</li><li>Combinations of links + icons that can be used instead of a button to save space and not distract from the core CTAs.</li><li>Lists — ordered and unordered.</li><li>Form elements — text inputs, drop-downs, checkboxes, radio buttons, date and currency inputs etc. In addition, you’ll want validation rules for these.</li><li>Page-level messaging — alerts to show you whether an action has been successful or not, or if the Internet has imploded and caused a site outage.</li><li>Tooltips and modal layers — plus when is appropriate to use either one.</li><li>Tabs and tables — with a focus on responsive solutions</li></ul><p>Each of these items will contain micro patterns — consistent colours to show what elements you can interact with, red to show validation errors, rounded corners on buttons or form fields, consistent sizing and positioning of arrows within drop-downs or buttons. These small, repeatable behaviours in design will go a long way to giving your site a consistent look and feel, but it’s important not to forget how small patterns or components work together to form larger patterns or modules. This could be taking into consideration</p><ul><li>the spacing between one form field and the next,</li><li>the positioning of the ‘submit’ button at the bottom right of the form (and a ‘back’ button at the bottom left)</li><li>or as a more complex example — the grouping of a postcode field with a lookup button to create a module that lets you select from a dropdown of possible addresses (or manually enter it within a group of text input fields).</li></ul><p>You can even go a level higher and define how an entire form template can work, although there’s a real danger of making your designs too prescriptive. A simple form that lets you log in shouldn’t use the same template as a 5 step process to get an insurance quote. You don’t want to end up stifling your designers’ creativity by insisting that everything is perfectly uniform. Shoehorning new content and functionality into an existing template will usually be to the detriment of the user experience and make a designer feel like a disempowered production line worker. It won’t even save time for the developers because they’ll be creating a workaround to adapt a module for a new use that isn’t robust and takes more time to get working than building from scratch.</p><p>So, in summary a pattern becomes a pattern as soon as it starts building upon the core blocks of colour, type, icons etc. but most patterns are really patterns <em>of</em> patterns. When we talk about what a primary button looks like, that can appear very simple. It’s a combination of colour, shape, size and the type within it. But as soon as you start to talk about what it looks like in different states, on a mobile, with an icon included to the left or to the right, where it sits on a page or a modal and what animations happen when you click it… suddenly you can end up with about 50 variations of that one button in use throughout your site without ever breaking the rules.</p><p>The aim shouldn’t be to have a single one-size-fits-all button <em>or</em> to document all 50 possible combinations of the same button. It should be to quickly see how a common set of rules can be applied to call out an action as effectively as possible. Now we have useful design tools such as Sketch symbols and even unicorn designers prototyping in-browser, the process should be more along the lines of documenting our primary button and then calling out the classes that can be applied to it to make it work in various situations.</p><p>There are an infinite number of ways that a pattern library can be designed. But for me the key measure of success is whether or not a designer can glance over it and rather than seeing an endless kitchen sink of elements, it highlights a clear network of interwoven patterns. It’s a difficult thing to get right and I’m still not sure I have myself, but it’s a goal worth striving for.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8237d0525138" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-unitgb/when-does-a-pattern-become-a-pattern-8237d0525138">When does a pattern become a pattern?</a> was originally published in <a href="https://medium.com/the-unitgb">The Unit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Motion in Marketing — Fundamentals]]></title>
            <link>https://medium.com/the-unitgb/motion-in-marketing-fundamentals-d31fa0b45d8b?source=rss----9bd9e9b90eb4---4</link>
            <guid isPermaLink="false">https://medium.com/p/d31fa0b45d8b</guid>
            <category><![CDATA[the-unit]]></category>
            <category><![CDATA[material-design]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ui-design]]></category>
            <dc:creator><![CDATA[The Unit]]></dc:creator>
            <pubDate>Mon, 23 Sep 2019 13:15:14 GMT</pubDate>
            <atom:updated>2020-06-30T12:47:46.713Z</atom:updated>
            <content:encoded><![CDATA[<h3>Motion in Marketing — Fundamentals</h3><p>Author: Evian Davies CX Designer at <a href="https://www.theunit.co.uk/">The Unit</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*WE2tkPAgwZj_lxo5Eapn9g.gif" /><figcaption><a href="https://dribbble.com/shots/6508084-No-To">by Zak Steele-Eklund for Studio VØR on Dribbble</a></figcaption></figure><p>If you’re here you probably sit within the <a href="https://contentmarketinginstitute.com/wp-content/uploads/2015/05/2015_MFG_Research_Final.pdf">77% of marketing leaders</a> who believe a strong brand is critical to company growth. If not, you may need a little convincing. Whether we like it or not, we have animalistic tendencies, we create snapshot opinions within seconds (<a href="https://www.hbs.edu/news/Pages/item.aspx?num=284">7 seconds</a> to be exact). In the wild this would have been interpreting who/what was dangerous from safe, in the modern world we judge people’s identities and companies’ authenticity. <a href="https://www.hbs.edu/news/Pages/item.aspx?num=284">Harvard conducted a study on first impressions</a>:</p><blockquote>“When we form a first impression of another person it’s not really a single impression. We’re really forming two. We’re judging how warm and trustworthy the person is, and that’s trying to answer the question, ‘What are this person’s intentions toward me?’ And we’re also asking ourselves, ‘How strong and competent is this person?’ Research shows that these two trait dimensions account for 80 to 90 percent of an overall first impression, and that holds true across cultures.”</blockquote><blockquote>Amy Cuddy, Social psychologist of Harvard Business School</blockquote><p>Once an impression of someone is set it is very hard to reconstruct, we <a href="https://www.rightattitudes.com/2008/10/04/7-38-55-rule-personal-communication/">make these impressions</a> predominantly using visuals (appearance) at 55%, then tonality at 38% and lastly, words/content were 7%. In marketing, this is no different, we judge brands as we do people, trying to understand intentions and competencies. This indicates that the most important thing to get right is visual appearance, followed by a tone of voice to match. The challenge is keeping this consistent in every interaction consumers have with the brand, after all, <a href="https://www.forbes.com/sites/gabrielshaoolian/2018/08/10/10-marketing-web-design-branding-statistics-to-help-you-prioritize-business-growth-initiatives/#4af0359ad708">consistent branding across all channels increases revenue by 23%</a>.</p><h3>Make better brand impressions with customers</h3><p>Now getting to the crux of this article, how to use motion to help your brand, not only stand out, but resonate with your consumers.</p><p>The first thing to have in place is a good identity system that’s understood and consistent across a brand. Motion can then be used to heighten a brand’s presence and move consumers towards being brand ambassadors. Often when we talk about motion we think about the categories in entertainment/media sector such as 2D animation, 3D animation, Live-Action, Stop-motion or a combination of them. Within marketing I would categorise 4 alternate categories:</p><ol><li><strong>UI Motion (Structural motion)</strong><br>Motion within the fundamental structure of a page, it’s used to simulate dimensionality in a page.</li><li><strong>Microinteractions</strong><br>Used to deliver information on how the interface works and should follow the brand style.</li><li><strong>Mini animations</strong><br>Used to build on the brand or describe an action.</li><li><strong>Content videos and animations</strong><br>Typically used to tell a story.</li></ol><h3>Building motion into your brand</h3><h4><strong>Motion in UI Design</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ddnH407EO3yz8LKG" /></figure><p>Google Material design:</p><blockquote>“The fundamentals of light, surface, and movement are key to conveying how objects move, interact, and exist in space and in relation to each other. Realistic lighting shows seams, divides space, and indicates moving parts”</blockquote><p><strong>– </strong><a href="https://9to5google.com/2018/04/26/what-is-material-design-2-examples-launch-io/"><strong>Google</strong></a></p><p>With the birth of <a href="https://www.material.io/">Google’s material.io</a> we’ve been seeing designers bring real world dynamics into the digital world of apps and websites. Rather than flat design using blocks of colour, interfaces have been modelled on paper-like sheets hovering at different levels to give a sense of dimensionality. Typically, importance is distinguished by colour, saturation, location or size, with Material Design depth also distinguishes importance. Foreground elements have more precedence over background elements. Material Design was conceived with motion in mind:</p><blockquote>“Just as the shape of an object indicates how it might behave, watching an object move demonstrates whether it’s light, heavy, flexible, rigid, small or large. In the world of material design, motion describes spatial relationships, functionality, and intention with beauty and fluidity”</blockquote><p><strong>– </strong><a href="https://9to5google.com/2018/04/26/what-is-material-design-2-examples-launch-io/"><strong>Google</strong></a></p><p>A webpage that uses a very subtle parallax effect when scrolling will bring life to the page create an impression the page contains higher quality content. However, use with caution. Achieving accuracy with parallaxes is no easy task, it requires a key understanding of three-dimensional motion dynamics. If done incorrectly or with overzealous movement, it will take concentration away from the content and could taint perceptions of the brand. This is where Apple’s advice towards animation comes in handy:</p><blockquote>“Add animation cautiously, especially in apps that don’t provide an immersive experience. Animation that seems excessive or gratuitous can obstruct app flow, decrease performance, and distract users from their task.”</blockquote><p><strong>– </strong><a href="https://9to5google.com/2018/04/26/what-is-material-design-2-examples-launch-io/"><strong>Apple</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ztPmG6hp89xcNCDy" /><figcaption><a href="https://dribbble.com/shots/2518516-Nike-Promotion-Ads-Parallax-Effect">By Jardson Almeida on Dribbble</a></figcaption></figure><p>This promo concept for Nike employs the parallax effect to pull the core content away from the background element, bringing emphasis to those objects and creating a more dynamic, engaging presentation.</p><h4><strong>Microinteractions</strong></h4><p>These are elements you may want to build as part of your brand. They are small often subtle, actions that inform the user of something, such as where something is stored. They may just move in a quick, playful way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*x2-FvFf4Hk9tZ5a_" /><figcaption><a href="https://dribbble.com/shots/6155986-Chat-Bar-Interaction">By Oleg Frolov on Dribbble</a></figcaption></figure><p>The rotation of this menu creates a visual idea in your mind that there is a wheel underneath a mask. After seeing this motion you can expect other items across a brand to act in a similar way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*5fFOwg8T3Nr-hQoQ" /><figcaption><a href="https://dribbble.com/shots/4065493-Animated-Logo-Collection-2017-on-Behance">By Igor Pavlinski for Zajno Crew on Dribbble</a></figcaption></figure><p>The Behance logo animation is a good example of how to effectively give a feeling of a brand without limiting it by depicting exactly what it does.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*IMJEA1c1zYxfy-d2" /><figcaption><a href="https://dribbble.com/shots/6664612-Extra-Menu-Interaction">By Oleg Frolov on Dribbble</a></figcaption></figure><p>This expandable menu motion tells you that the menu is hidden inside the button.</p><h4><strong>Mini animations</strong></h4><p>These are used to evoke a feeling of the brand or describe an action.</p><p>In the case of logo animations, they can follow the rules of logo design, best summarised by master logo designer, Sagi Haviv “A logo is not communication. A logo is identification.” (<a href="http://www.brandinglab.co.za/a-logo-is-not-communication/">http://www.brandinglab.co.za/a-logo-is-not-communication/</a>) By this he means they do not need to be representative of what the company does.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*wVsgHyC1Hqyox76V" /></figure><p>Alternatively they can be used to visualise an action, such as placing an order or refreshing a page.</p><h4><strong>Content videos</strong></h4><p>These are typically used to tell a story about the brand or the service you provide. The feel of these videos should be consistent with your visual identity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/0*1LrOwTvTRCwlEmFi" /><figcaption><a href="https://vimeo.com/264269009">by Dante Zaballa on Vimeo</a></figcaption></figure><p>Nike have done this really well with quite an exploratory video. They’ve taken regular user feedback videos and transformed them into extravagant interpretive animations that capture the imagination. Nike is no newcomer to the area of animation, their brand animation styles can be a lot more fluid as they’ve built a very strong and identifiable base with their abstract logomark and sporty feeling.</p><h4>Implementation</h4><p>Motion design is an exciting prospect, but getting it right can be an onerous task. Make sure to start with baby steps, learn the dynamics (movement, lighting, shot framing, timing, etc.) and experiment before bringing it into a brand. Motion dynamics can convey very different feelings to them, these might not feel congruent with the current brand, for example an energetic and playful motion behaviour might not suit a brand that depicts a calm and collected demeanour, so it’s worth treating this like a brand refresh.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d31fa0b45d8b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-unitgb/motion-in-marketing-fundamentals-d31fa0b45d8b">Motion in Marketing — Fundamentals</a> was originally published in <a href="https://medium.com/the-unitgb">The Unit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why AI will enhance CX delivery, not replace it]]></title>
            <link>https://medium.com/the-unitgb/why-ai-will-enhance-cx-delivery-not-replace-it-15114c163f56?source=rss----9bd9e9b90eb4---4</link>
            <guid isPermaLink="false">https://medium.com/p/15114c163f56</guid>
            <category><![CDATA[customer-experience]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[service-design]]></category>
            <category><![CDATA[user-experience]]></category>
            <dc:creator><![CDATA[The Unit]]></dc:creator>
            <pubDate>Mon, 19 Nov 2018 15:19:17 GMT</pubDate>
            <atom:updated>2019-02-20T11:19:59.528Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Who could predict that declining world oil prices could pose a threat to English church buildings?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KoYkRqsF27livdZHH5rgZQ.jpeg" /></figure><p>Artificial intelligence could — and did.</p><p>It was analysis using artificial intelligence (AI) that made the connection between oil prices and lead theft.</p><p>When crude oil prices go down, investment in infrastructure tends to go up. That intensifies the global demand for lead, pushing the price up. This inflates the value of <em>scrap</em> lead, driving theft from church roofs.</p><p>This may seem an obscure connection. But if you specialise in insuring church buildings, it’s business-critical information. When the price of oil is low, monitoring infrastructure policy in places like China and the UAE can help predict future claims patterns.</p><p>This is just one of the myriad ways in which AI is transforming what organisations can do with data.</p><h3>Paradigm shift</h3><p>For decades, firms have relied on <em>business</em> <em>intelligence</em> (BI) to inform their strategies. They’ve made their decisions by analysing the past, and by measuring whatever metrics they judged important.</p><p>But now they have the potential to see the future, by finding trends they haven’t even looked for (like the impact of world oil prices on insurance claims by churches). Analysing the volumes of data required to find such hidden connections demands <em>artificial</em> <em>intelligence</em>.</p><p>AI enables organisations to work out what will happen next, and therefore what metrics they should measure. It does this by exploring, refining and testing vast amounts of data, in real time, and finding patterns for itself.</p><p>As such, AI represents a complete paradigm shift in how firms understand their customers and markets. BI’s has its limitations: it is retrospective and subjective. AI is forward-looking and completely objective.</p><p>What’s more, AI is many times more powerful than the data analytics capabilities organisations have been used to. <a href="https://www.ted.com/talks/sebastian_thrun_and_chris_anderson_the_new_generation_of_computers_is_programming_itself">Pioneering computer scientist and AI entrepreneur Sebastian Thrun estimates that AI will make us 10–50 times better at our jobs.</a></p><h3>A new world of possibilities</h3><p>As in many spheres, there’s a great deal of uncertainty over what AI will mean for customer experience (CX).</p><p>In our view, the impact is likely to be enormously positive. AI will greatly enhance the experiences that CX teams can deliver.</p><p>In the digital era, we generate vast quantities of data as we interact with brands. Without the help of intelligent machines, it’s impossible for human beings to gather, process and analyse information on that scale; let alone use it to produce valuable business insight and strategies.</p><blockquote>When it comes to unleashing the potential of AI, everything starts with data.</blockquote><p>That’s where AI comes in.</p><p>Imagine a world in which<em> </em>you know not just your customers’ demographics, but also their <em>personalities</em>: their tastes and preferences, needs and motivations, beliefs and ethics.</p><p>Imagine that you can reach each one of them personally. You can offer them nuanced communications and dynamic experiences, in tailored designs and language that resonates with them as individuals.</p><p>And imagine that you can do all that to target their <em>precise</em> needs at any given time.</p><p>This isn’t the customer experience of the future. It’s already possible thanks to AI.</p><h3>Barriers to adoption</h3><p>But if AI can take CX to new heights, why are so few organisations yet embracing it?</p><p>Firstly, because its CX applications are brand new. Many businesses are yet to realise what it can achieve, or understand how to harness its power.</p><p>At the same time, exploiting AI demands a complex set of systems and capabilities:</p><ul><li><strong><em>Data science</em></strong>: the ability to understand data sources, and make them consistent so that machines can analyse them; and the algorithms required to analyse data and search for patterns within it.</li><li><strong><em>Connectivity</em></strong>: the technology to link the disparate platforms on which customer data sits. These include call-centre and other internal databases; the company’s website and social platforms; and external sources such as customers’ social media accounts and set-top boxes.</li><li><strong><em>Automation</em></strong>: the software to process and analyse vast quantities of data, and generate genuine insights and recommendations from it.</li><li><strong><em>Visualisation</em></strong>: the tools to distil the results of data analysis into meaningful displays.</li><li><strong><em>Strategy</em></strong>: the ability to understand what the data is saying about the experiences customers want.</li><li><strong><em>Personalisation</em></strong>: the ability to glean insights from behaviour science into individuals’ motivational triggers; and to use those triggers to design contextually relevant customer experiences.</li></ul><p>In addition, organisations may find their efforts to implement this infrastructure being thwarted from within. Fears over the impact of AI on jobs may stoke internal resistance. Meanwhile, legacy systems and silo mentalities can prevent the all-important linking and sharing of data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zUdnS_SuLbxRojayAwQL5A.jpeg" /></figure><h3>Information, information, information</h3><p>When it comes to unleashing the potential of AI, everything starts with data.</p><p>The deeper and more connected your customer data is, the more effectively you can use AI to mine it. And the more transformative the results will be.</p><p>You’ll need to collect data in <em>every</em> area of the business; and just as importantly, from every external source of information you can access. That will mean:</p><ul><li>identifying all relevant data sources.</li><li>automatically extracting them in a consistent format.</li><li>obtaining and storing them in line with data protection rules (which will be much harder to do under GDPR).</li><li>consolidating them to allow AI applications to see the whole picture.</li></ul><p>Be prepared to deal with massive amounts of information — potentially thousands of data points on each customer. Then to create the personalised customer experiences AI can enable — and today’s customers expect — you’ll need to be able to ascertain:</p><ul><li>who is engaging with you, and buying from you, over which channels.</li><li>why each individual calls your service centre, visits your website, downloads your app, checks your social media platforms, etc.</li><li>what pain points each customer encounters during their journey with you, why, and what to do about it.</li><li>What your customers are doing, and what their needs are, even when they’re <em>not</em> engaging with your business.</li></ul><p>You may also find that deploying AI in your customer experiences means having to democratise your data. You’ll need to break down technology silos, and foster a culture where employees are willing and able to share their data with other parts of the business.</p><h3>Data strategy</h3><p>Using AI to transform CX demands a different kind of data strategy: one that opens up your data to the whole organisation, and tracks the impact on customer behaviour.</p><p>This strategy should be underpinned by three key dimensions:</p><ol><li><strong><em>Collection</em></strong> — automated process to find the information you need, and collect and consolidate it for machines to analyse.</li><li><strong><em>Integration — </em></strong>solutions that seamlessly integrate the data sets you’re collecting with essential tools like your CRM platform or sentiment analysis programme.</li><li><strong><em>Evaluation</em></strong> — a framework to measure vital customer behaviour KPIs:</li></ol><ul><li><strong>Effort</strong>: how much easier have you made it for customers to complete the tasks you want them to complete?</li><li><strong>Completion</strong> — how many more customers are now completing those tasks?</li><li><strong>Experience</strong> — how much better do they feel while carrying the tasks out?</li><li><strong>Conversion</strong> — how many more actually get to the point of buying from you?</li></ul><p>At The Unit, we help the best-known brands to create effective AI strategies and solutions for their CX teams. We know how to bring the power of AI to your customer experiences. <a href="https://www.theunit.co.uk/contact">Get in touch to find out more</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15114c163f56" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-unitgb/why-ai-will-enhance-cx-delivery-not-replace-it-15114c163f56">Why AI will enhance CX delivery, not replace it</a> was originally published in <a href="https://medium.com/the-unitgb">The Unit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Success by design]]></title>
            <link>https://medium.com/the-unitgb/success-by-design-ac97d571b6a4?source=rss----9bd9e9b90eb4---4</link>
            <guid isPermaLink="false">https://medium.com/p/ac97d571b6a4</guid>
            <category><![CDATA[design-thinking]]></category>
            <category><![CDATA[design-process]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <dc:creator><![CDATA[The Unit]]></dc:creator>
            <pubDate>Thu, 30 Aug 2018 14:23:44 GMT</pubDate>
            <atom:updated>2019-02-20T14:39:25.187Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Design thinking helps businesses get the most from the products, services and solutions they create. But it’s not something every firm can deploy overnight.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RXCqooQFe2WA9M6S6oNIFw.jpeg" /></figure><p>We can all think of inventions that were touted as the ‘next big thing’, only to fail spectacularly. Google Glass, the Segway, the Sinclair C5, and many more.</p><p>Why did they fail? For one simple reason: they were trying to solve a problem that didn’t exist. Their inventors thought they’d find a market ready and waiting. But in reality, there was no demand for them.</p><p>Their failure suggests that they weren’t put through the rigours of design thinking.</p><h3>Solving problems</h3><p>Design thinking is a systematic approach to thinking about a problem and finding the best answer. It’s an effective process to follow when designing products, features, solutions and customer experiences.</p><p>The concept emerged from the scientific community in the late 1960s. It was adapted for use as a business methodology by David M. Kelley, the Stanford University professor and founder of renowned design consultancy IDEO.</p><p>Then in 2009, the IDEO approach to design thinking was formalised in the seminal book, <em>Change by Design</em>, by the agency’s CEO Tim Brown.</p><p>Fast forward to today. Digital giants like Uber and AirBnB use design thinking habitually when creating the appealing customer journeys they’re famous for.</p><h3>The method</h3><p>The design thinking process has four distinct steps:</p><ol><li><strong><em>Discover</em></strong>. Gather detailed insight on the problem, so as to understand it in-depth, gain fresh perspectives, and overcome cognitive bias when considering solutions.</li><li><strong><em>Define</em></strong>. Distil the findings from the <em>Discover</em> phase into a set of realistic hypotheses. Test these among your target users, to find out which represents the most viable solution.</li><li><strong><em>Develop</em></strong>. Begin developing the best solution from the <em>Design</em> stage. Create a prototype, test it among users, and iterate it based on their feedback.</li><li><strong><em>Deliver</em></strong>: Quickly launch a minimum viable product (MVP) capable of driving value for customers and the business. Keep testing and refining this in response to user feedback.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*soQb_-vIxQ61PIyI9Zy7zQ.png" /></figure><p>The four steps are often depicted as a double diamond, like in the diagram above. Steps one and three require what’s known as <em>divergent</em> thinking. They open the process up to new information and possibilities, as you investigate the problem and create your prototype.</p><p>Conversely, steps two and four demand <em>convergent</em> thinking. Here, you narrow down your considerations to a solution and MVP.</p><h3>Design thinking at The Unit</h3><p>Design thinking isn’t a methodology that every firm can readily take advantage of. In our experience, many companies — traditional corporates in particular — lack the processes and abilities to implement it.</p><p>At The Unit, we use it routinely to resolve the customer challenges that clients ask us to help them with.</p><p>We put together multi-disciplinary teams to take our clients’ problems through the design thinking process in roughly 6–8 weeks. These teams comprise research, engineering, development, design, UX and content capabilities, with the client’s product owner overseeing the project. They may work onsite at the client’s premises, or at our offices in Brighton or London.</p><p>Using design thinking de-risks the solutions we create for clients. And it ensures the maximum possible value for every pound they spend developing products and experiences.</p><p>Please <a href="https://www.theunit.co.uk/contact">get in touch</a> if you’d like to discuss how our design thinking expertise can help your organisation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac97d571b6a4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-unitgb/success-by-design-ac97d571b6a4">Success by design</a> was originally published in <a href="https://medium.com/the-unitgb">The Unit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reaping the benefits of agile]]></title>
            <link>https://medium.com/the-unitgb/reaping-the-benefits-of-agile-153d9d95c350?source=rss----9bd9e9b90eb4---4</link>
            <guid isPermaLink="false">https://medium.com/p/153d9d95c350</guid>
            <category><![CDATA[agile-methodology]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[digital]]></category>
            <dc:creator><![CDATA[The Unit]]></dc:creator>
            <pubDate>Wed, 14 Feb 2018 14:05:18 GMT</pubDate>
            <atom:updated>2018-02-14T14:07:23.168Z</atom:updated>
            <content:encoded><![CDATA[<p><em>by </em><a href="http://www.ianhood.co.uk/"><em>Ian Hood</em></a><em>, Non-Executive Director at </em><a href="https://www.theunit.co.uk/"><em>The Unit</em></a></p><p><em>We outlined the agile philosophy in our </em><a href="https://medium.com/the-unitgb/doing-things-the-agile-way-c1ca33ebc96f"><em>first blog</em></a><em> in this series. Here we look at how to make sure your agile projects deliver the right solutions for your customers — fast.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TrBKyGYFvtpkaeOLwH6Wjw.jpeg" /><figcaption>Agile working requires iterative cycles.</figcaption></figure><p>Embracing the agile philosophy can mean making fundamental changes to how your organisation works.</p><p>There are two reasons for this. Firstly, people will need to make the journey to agile working — which isn’t always easy. And secondly, you may to reassess your existing working practices.</p><h3><strong>The journey to agile</strong></h3><p>Agile can be uncomfortable for people at first. They may not like the idea of flexible scope, or releasing an ‘unfinished’ minimum viable product (MVP).</p><p>The key to making the transition is to engage your stakeholders right from the start.</p><p>Your stakeholders need to be the voice of the user, so that everyone involved is laser-focused on creating value for customers.</p><p>So involve them in creating the problem statement for the project. Get them working on group discovery and creative activities. Let them observe demos and user testing, and have them write user stories (more on these below).</p><p>This will help them understand the iterative nature of agile working, and the rationale behind the decisions made along the way. It will let them see that there are several ways to create value for customers. And it will show them rapid progress, so that they aren’t expecting a ‘big reveal’ at the end.</p><h3><strong>Moving faster</strong></h3><p>Today’s customers expect their needs to be met almost the moment they arise. The pace of the digital age is such that products and features must be released as soon as they can add value for customers (and the business).</p><p>Given this pressure, you may need to re-examine some of your established ways of working. Can you really take the time to create detailed specifications, complex documentation and end-to-end designs — and <em>still</em> deliver solutions with the speed your customers require?</p><h3><strong>Delivery cycles</strong></h3><p>The key to such rapid delivery is to get a prototype — a piece of working software, or even a rough sketch — into customers’ hands at the earliest opportunity. Don’t specify the whole solution early on, as their feedback may take you down a different path.</p><p>Once you have that feedback, use it to iterate the solution. Then build the slimmest version that can provide value, in the shortest possible time.</p><p>Making small, evidence-based tweaks in this way can lead to significant increases in customer engagement and sales conversions.</p><h3><strong>Putting customers first, second and last</strong></h3><p>Working to produce solutions quickly is one challenge. But how can you be sure they’re what your customers want?</p><p>The answer is put your customers at the centre of your product development. Get to know their world, and understand the goals, needs and problems they want you to address.</p><p>Meet your customers. Talk to them. Ask them open questions. And translate their needs into objectives for the solution you’re developing.</p><p>A backlog of <em>user stories</em> can be helpful, as they describe the solution from the customer’s point of view. As can <em>impact mapping</em>: a strategic planning tool for clarifying the impact your solution needs to achieve.</p><p>But don’t stop there: observe them using the solution as it evolves. And crucially, listen to what they say.</p><p>You can do this formally, with specialist researchers working in user-testing facilities (we do this here at our Brighton office). Or ‘guerrilla-style’, by showing them the latest iteration in a café, for example.</p><h3><strong>One team</strong></h3><p>Agile produces the best results when client and agency work as one team, with one goal: to deliver outstanding business value by meeting real customer needs.</p><p>At The Unit, we make this happen in a number of ways:</p><p>1. <strong><em>Multi-disciplinary teams</em></strong>. We put together teams comprising all the necessary disciplines: UX, UI and service designers; developers; project managers; and the client’s product owner.</p><p>Having everybody in one team means decisions are made quickly, as we can talk things through around a monitor. And there are other advantages: technical feasibility informs design; and designers can ensure their work meets the highest technical standards.</p><p>2. <strong><em>Co-location. </em></strong>Working at our clients’ offices (and vice versa) means everyone is hands-on, and fully informed, throughout the project.</p><p>This creates an immediacy that speeds up development. You can hear conversations, look over people’s shoulders, ask questions, and get quick answers and ideas.</p><p><strong><em>3.</em></strong> <strong><em>Collaboration. </em></strong>We succeed or fail as a team. We work collectively to deliver the most valuable feature first, then move to the next priority. And we all keep the overriding objective in mind at all times: to solve customers’ issues, and make life better for them.</p><p>It’s often said that agile is an easy concept to grasp, but difficult to execute. We can help: please <a href="https://www.theunit.co.uk/contact">get in touch</a> if you’d like to discuss how.</p><p><a href="https://www.linkedin.com/in/ianhoodheadofdigital/"><em>Ian Hood</em></a><em> is also Head of Digital at Fidelity International.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=153d9d95c350" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-unitgb/reaping-the-benefits-of-agile-153d9d95c350">Reaping the benefits of agile</a> was originally published in <a href="https://medium.com/the-unitgb">The Unit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a real-time smile detection app with deeplearn.js]]></title>
            <link>https://medium.com/the-unitgb/building-a-real-time-smile-detection-app-with-deeplearn-js-1a55cf20ed49?source=rss----9bd9e9b90eb4---4</link>
            <guid isPermaLink="false">https://medium.com/p/1a55cf20ed49</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Jozef Maxted ]]></dc:creator>
            <pubDate>Wed, 31 Jan 2018 14:17:44 GMT</pubDate>
            <atom:updated>2018-02-06T09:36:24.970Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a real-time smile detection app with deeplearn.js and the web shape detection API — Part 2: Image Processing</h3><p><em>This is the second post in a series explaining how to achieve real-time smile detection using </em><a href="https://deeplearnjs.org/"><em>deeplearn.js</em></a><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rj5SLFUQVzy15Ulv97rBNg.png" /><figcaption>In this tutorial we are extracting the detected faces, ready to feed them into our neural network</figcaption></figure><p>In the <a href="https://medium.com/the-unitgb/building-a-real-time-smile-detection-app-with-deeplearn-js-820eb48e09b7">previous post</a> we successfully made use of the Shape Detection API to find faces in real-time from a video feed. Now we need extract the faces from the feed, and format them in a way that makes them efficiently processable by a neural network.</p><p>This requires a number of steps. We will need to:</p><ol><li>Crop the video so we are left with only the detected faces</li><li>Resize the cropped face so they are much smaller</li><li>Convert the cropped resized image to greyscale</li><li>Get the normalised pixel data for the images</li></ol><p>Each of these steps will make the process of feeding the image into the neural network much more efficient.</p><p>We want to use the smallest image possible so that the number of pixels the networks have to process are at their minimum. This is achieved by cropping the feed to just contain the faces, and scaling it down to 50 x 50 pixels.</p><p>You don’t really need colour in an image to determine if someone is smiling. By converting the faces to greyscale we also save a bit of processing power as the 3 values for the red green blue pixels are converted into 1.</p><p>Finally we will normalise the pixel values that will eventually be passed into the network. This means instead of having an array of values between 0 and 255, we have an array of values between 0 and 1.</p><p><strong>If you have enabled Chrome’s experimental features you can see a demo here: </strong><a href="https://face-extraction.netlify.com/"><strong>https://face-extraction.netlify.com/</strong></a></p><p>Notice the little grey face in the top left.</p><blockquote><strong>The finished code for this section can also be found here: </strong><a href="https://github.com/zefman/smiley/tree/feature/extract_faces"><strong>https://github.com/zefman/smiley/tree/feature/extract_faces</strong></a></blockquote><p>If you haven’t read the <a href="https://medium.com/the-unitgb/building-a-real-time-smile-detection-app-with-deeplearn-js-820eb48e09b7">first post</a> in this series please do so now, otherwise the following will make no sense 🤓</p><p><a href="https://medium.com/the-unitgb/building-a-real-time-smile-detection-app-with-deeplearn-js-820eb48e09b7">Building a real-time smile detection app with deeplearn.js</a></p><h3>Cropping the faces and resizing</h3><p>To crop out and resize the faces we will use an additional smaller canvas. For the time being we will continue to place everything in the App component “src/app/app.component.ts”.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bdbacd9508db956088b1f3cfcf642295/href">https://medium.com/media/bdbacd9508db956088b1f3cfcf642295/href</a></iframe><p>Here you can see the additional canvas we add to the app component. We set it to 50 x 50 pixels, which means our resized image will have 2500 individual pixels. This should be small enough for the neural network to consume.</p><p>The rest of the HTML is untouched other than the addition of a few classes.</p><p>Moving onto “src/app/app.component.css”:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6930d4215ed66327777988fe5c68a5c5/href">https://medium.com/media/6930d4215ed66327777988fe5c68a5c5/href</a></iframe><p>We will place the smaller canvas above everything in the top left. This canvas doesn’t actually need to be visible, but it will be useful to see the results of our image processing while in development.</p><h4>Defining variables in the app component</h4><p>Now on to the the JavaScript itself, in “src/app/app.component.ts” add the following above the constructor:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b4fc41d7b3758de6e50806e66be0852e/href">https://medium.com/media/b4fc41d7b3758de6e50806e66be0852e/href</a></iframe><p>We need to define another ViewChild to get a reference to the new faceCanvas. We also define two more variables to hold the native canvas element and its rendering context.</p><h4>Referencing the DOM elements</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae535d79a8037a948ff0ddbdd85604a4/href">https://medium.com/media/ae535d79a8037a948ff0ddbdd85604a4/href</a></iframe><p>We then get a reference to the new canvas and its context after the view initialises, just like with the other elements.</p><h4>Processing the faces</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6672ac9c755a0197ca0cb37b455a03a6/href">https://medium.com/media/6672ac9c755a0197ca0cb37b455a03a6/href</a></iframe><p>We then create a new function called processFace. This function takes a face object returned by the face detector, uses its bounding area to copy that portion of the larger canvas to our new 50 x 50 px one, and resizes it at the same time. This is achieved by passing the original canvas to the the drawImage function of the faceCtx, along with the area to crop from.</p><p>We then grab hold of the the new smaller image’s image data and convert it to greyscale. The image data is originally a 1 dimensional array of values between 0 and 255. 1 pixel is made up of 4 entries in the array e.g. [ <strong>45, 200, 202, 255</strong>, 76, 98, 201, 255, 253, 222, 98, 0, … ] (The bold section is one pixel). The first value is the red value for that pixel, the second is the green, the third is the blue, and finally the fourth is the alpha value.</p><p>To convert these individual pixels to greyscale we create a for loop that increments by 4 each time, allowing us to modify the individual rgba values of each pixel. We then create a new brightness value that we will use to replace the original pixel values. This is done by summing the values of the rgb parts of the pixel. You might notice the r value is multiplied by .3, the b by .59, and the g by .11. This is to account for the way our eyes are sensitive to different colours and we will produce a more natural-looking greyscale result.</p><p>Once we have a set of rgb pixels to their new brightness value, we then place the modified data back onto the canvas with the putImageData function.</p><p>Finally we need to use the processFace function in our update to continually draw the detected faces to our small canvas.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/11555bb882b530732e6627b86ed4d6da/href">https://medium.com/media/11555bb882b530732e6627b86ed4d6da/href</a></iframe><p>You should now have a strange black and white face updating in the top left of your browser! This won’t work well with multiple faces but it’s not a problem as we are only checking the processFace function works.</p><p>The final thing we need to do is to get the normalised image data for the face. At the moment if we were to get the image data from the faceCtx we would have an array of values from 0 to 255, and each pixel would have the same value set for its rgb variables. This doesn’t provide the neural network with any additional information, so we may as well take only the r value of each pixel. On top of that we need to normalise the values so they fall between 0 and 1 rather than 0 and 255. To do this we will create two new functions to be used later on.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/50c92a0644f481f16c1f8d0744f206c5/href">https://medium.com/media/50c92a0644f481f16c1f8d0744f206c5/href</a></iframe><p>Hopefully this code makes sense after reading the description above. We will be passing getNormalizedGreyScalePixels the imageData from our faceCtx; we take the r value from each pixel, normalise it, and then add it to a new array.</p><h3>And we’re done - phew 😅</h3><p>Before starting this project I hadn’t realised how much effort would go into formatting the data correctly, before we even get to the machine learning element.</p><p>So at this point we have successfully taken the detected faces and modified them in a way that will make them more easily processable by the neural network, which we will be creating in a forthcoming post.</p><h4>In the next post we will look into how we can save labeled training data to teach the neural network to recognise smiling faces. This will involve saving the image data into two sets: one smiling, one not smiling.</h4><p>In the meantime, feel free to get in contact with me on Twitter: <a href="https://twitter.com/jozefmaxted">@jozefmaxted</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a55cf20ed49" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-unitgb/building-a-real-time-smile-detection-app-with-deeplearn-js-1a55cf20ed49">Building a real-time smile detection app with deeplearn.js</a> was originally published in <a href="https://medium.com/the-unitgb">The Unit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web AR with smart plugs using A-Frame]]></title>
            <link>https://medium.com/the-unitgb/web-ar-with-smart-plugs-using-a-frame-d9828a846bd0?source=rss----9bd9e9b90eb4---4</link>
            <guid isPermaLink="false">https://medium.com/p/d9828a846bd0</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[webvr]]></category>
            <category><![CDATA[a-frame]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Gemma Vincent]]></dc:creator>
            <pubDate>Tue, 30 Jan 2018 12:25:27 GMT</pubDate>
            <atom:updated>2018-02-06T10:15:57.495Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Noun: A technology that superimposes a computer-generated image on a user’s view of the real world, thus providing a composite view.</blockquote><p>Last year, myself and a few other developers from <a href="https://www.theunit.co.uk/">The Unit</a> went to <a href="https://2017.fullstackfest.com/">The Full Stack Fest</a> in Barcelona. Whilst there we were inspired by many of the talks, including <a href="https://www.youtube.com/watch?v=9HAAbh6rq9Q">Shagufta Gurmukhdas’</a> presentation on <strong>Web Based Virtual Reality</strong>. Afterwards we sat on our balcony with a few Estrella beers and played with <a href="https://aframe.io/">A-Frame</a>. We challenged one of the developers to a micro-hack: to build out a 3D model in 10 minutes. This just proved how quick and easy it was to use.</p><p>On our return from Barcelona we had two Developer Days for innovation. Developers had two days off from client work to focus on something new and innovative. In order to get the best out of the two days we thought it would be more effective to come up with a theme to constrain ourselves to a specific technology. Off the back of Full Stack Fest, we decided to focus on Augmented Reality (AR) and Virtual Reality (VR) — <a href="https://aframe.io/">A-Frame</a> in particular. After brainstorming a number of ideas we narrowed them down; each of us chose what we wanted to work on and started to build out each of our individual projects.</p><p>After the two innovation days we were given three weeks to further a couple of the ideas. This blog post will describe one of the ideas we had and how it progressed over the following weeks.</p><h3>The idea : enARgy</h3><p>One of the ideas that excited us the most was the possibility to <strong>visualise the real time energy usage</strong> of different appliances through AR. 🔌⚡️</p><p>We thought it would be cool if you could point your phone’s camera at an appliance and see the amount of energy it was currently using, overlayed with augmented reality. This was a perfect project to play around with augmented reality and A-Frame.</p><p>Some examples of augmented reality apps include:</p><ul><li>Pokemon GO</li><li>Ikea Place — Ikea released an app where you can experiment with different pieces of furniture in your home, to see if it goes well in that space. You can place multiple objects and capture how a room looks with these new items.</li><li>Google Translate — if you hold your phone over a word or sentence then it will translate it in place of the original.</li></ul><p>AR enhances a user’s experience in the ‘real world’, whether that’s through the things that we see, hear or feel.</p><p>There are different types of AR:</p><ul><li>Marker-based AR (I will go into more detail about this particular type of AR a bit later on)</li><li>Projection-based AR</li><li>Markerless AR</li><li>Superimposition-based AR</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*Tyqy1R3MNo0Zf2ytu7JAhQ.jpeg" /></figure><h3>A-Frame</h3><p>A-Frame is a WebVR framework that Mozilla released just over a year ago. A-Frame is an open source web framework with open standards and an open culture, made easy for building out WebVR apps.</p><h4>A-Frame with JavaScript and canvas</h4><p>We can use JavaScript and DOM APIs to control the entities within A-Frame as we would in normal web development: this is one of the many benefits of it being a HTML framework. This also means we can use all of the popular libraries such as D3, Vue.js, React, Redux, jQuery and Angular.</p><h3>Backend</h3><p>We are using <a href="https://nodejs.org/en/">node.js</a> and a number of packages to retrieve the data from the smart plug. There were certain packages that we used to get the backend up and running.</p><p>We already had some WeMo smart plugs in the office, so we created a simple express web application and used <a href="https://www.npmjs.com/package/@octoblu/wemo-client">wemo-client</a> to discover devices on a local network, retrieve power consumption data and listen for events such as changes in power consumption or the status of the smart plug. We then added <a href="https://socket.io/">Socket.io</a> to our server, which allowed us to broadcast these events over a websocket.</p><p>In order to see if any devices were connected we set logs to output in the terminal, which gave us the Mac Address of the device connected, and we could also see what port was being used to connect.</p><p>We wanted our devices to be normal, household appliances that each showed different variants of energy. Initially we just started with one appliance.</p><p>I will go through some of the code in order to help you understand how I created the backend. I will explain how you can do this using the WeMo smart plugs as we did, but if you don’t have the smart plugs then you could just fake the data.</p><p>In the code below we created our express app and attempted to connect to any smart plugs that had been discovered by the WeMo-client library.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6dea1ced124dee9e8beb037009642de6/href">https://medium.com/media/6dea1ced124dee9e8beb037009642de6/href</a></iframe><h4><a href="https://ngrok.com/">ngrok</a></h4><p>We had to run the app through a secure domain because you can only access the camera needed to detect the marker if the site is served from a secure domain. Using <a href="https://ngrok.com/">ngrok</a> allows you to expose your local environment over a secure connection.</p><h3>Frontend</h3><p>We sketched out some initial ideas of how we could display useful data that we were retrieving from the smart plugs. We went through a couple of different iterations of this, which I will go into in more detail in upcoming blog posts.</p><h4>JavaScript</h4><p>We now need to listen for information from the smart plugs on the front end. Socket.io makes this easy: we simply need to connect to our socket server over ngrok, and then listen for the ‘instantPower’ event that we emit after receiving data from the smart plug.</p><p>We then store the last 10 pieces of data in an array and call a ‘drawGraph’ function that will update our page, making use of the new data.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/644eec1e3cec8ad55de1bd5d18dd856a/href">https://medium.com/media/644eec1e3cec8ad55de1bd5d18dd856a/href</a></iframe><p>Now that we have the data coming through we can start to do some cool stuff in the frontend, which I will go through in my next blog post.</p><h4>Installation of A-Frame</h4><p>It only takes a few minutes to add all the code required to create a scene and add your first 3D objects.</p><p>Setting up was really easy to do:</p><ol><li>Add the scene</li><li>Add the camera</li><li>Add the different entities — sphere / cylinder etc.</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/09d8579a72172805c326adc150171bce/href">https://medium.com/media/09d8579a72172805c326adc150171bce/href</a></iframe><p>The HTML-based markup language has Three.js under-the-hood, enabling developers to create 3D scenes using only HTML, and making it accessible for almost any developer. The framework allows developers to create fantastic, cross-platform AR/VR experiences on the Web for anyone. Three.js can be intimidating for new developers. There are a lot of gates to get through when building for AR/VR using Three.js. Developers have to set up a camera, initialise the scene, set up the lights, declare and pass canvas element, import WebVR polyfil, install VREFFECT, instantiate renderer, create render loop, preload assets, figure out how to handle responsiveness, and deal with meta tags. On mobile, AR/VR apps can often be inconvenient for the end user; a lot of the time they need to download apps or other things to make them work. A-Frame makes all of these problems simpler to solve.</p><p>Within just 15 minutes it’s possible to add entities to a scene, style them and animate them. It’s perfect for a developer who wants to concentrate on having an easy to use playground and get results quickly.</p><p>The out of the box functionality that A-Frame offers includes camera, geometry, material, light and sound. It comes ready for stereo viewing in VR headsets and with WASD / arrow movement and camera panning / rotation support. We aren’t utilising those attributes of A-Frame in this particular project, but it’s an example of how easy it is to use and set up.</p><p>Naturally, due to the simplicity of A-Frame, it does mean that developers will eventually hit a wall with what they can achieve. On the other hand, there are some pretty complex projects out there and it doesn’t take away from how valuable A-Frame is. A-Frame has a lot of potential and has already proven itself to be extendable. One example is <a href="https://github.com/jeromeetienne">Jerome Etienne’s</a> library <a href="https://github.com/jeromeetienne/AR.js/blob/master/README.md">ar.js</a> — I will go into more detail about this shortly. A-Frame has demonstrated itself to be hugely popular (and growing), with a great, <a href="https://aframe.io/blog/">thriving community.</a></p><h4>A-Frame inspector</h4><p>A-Frame has a built-in inspector which you can enable by:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f0e2cf828877fa9fae2a58cf5416dd0/href">https://medium.com/media/9f0e2cf828877fa9fae2a58cf5416dd0/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M1agTm8xW0nL1aRfu3ffqQ.png" /><figcaption>A-Frame inspector</figcaption></figure><p>This inspector is extremely useful; when first using A-Frame the positioning, rotation and radius seemed a little tricky and confusing.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c98b74ab3e495bb842ce835ebb8ad5f0/href">https://medium.com/media/c98b74ab3e495bb842ce835ebb8ad5f0/href</a></iframe><p>Opening up inspector in the browser makes it a lot easier and way more efficient to move entities. You can physically move each of the entities around, and when doing so you can see the values for the X, Y and Z for the position and rotation. When each of the entities are in the correct place, you can copy the numerical values and put them in the code. You can also change the scale.</p><h4>A-Frame with AR</h4><p>As I briefly mentioned earlier @jerome_etienne (the author of <a href="http://learningthreejs.com/">Learning Three.js</a> Blog), wrote a library — ar.js in order to get AR running 100% in the web browser, which means no app needs to be installed and it’s supported across multiple platforms and devices running at up to 60 frames per second.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*6JxSHly9HQocseuQ02N1LQ.jpeg" /></figure><p>It’s a great library and has made it really easy for us to be able to achieve what we wanted to do. It worked out of the box with the standard ‘Hiro’ marker which was amazing! In the next blog post I will show what we had to do to get custom markers working. So a huge thanks to Jerome for this awesome library! 🤓</p><h4>Markers</h4><p>As I mentioned earlier, ‘marker-based’ is a type of AR. You have to point a camera at a marker in order to trigger a reaction. In this case we are pointing the camera at a marker and the energy usage is coming back. In this specific example we have used D3 to show the data coming back, but I won’t be going into too much detail about that.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F_1xDjNPm18I%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D_1xDjNPm18I&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F_1xDjNPm18I%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d0e032ca6926ca6097741410361252b3/href">https://medium.com/media/d0e032ca6926ca6097741410361252b3/href</a></iframe><p>Just for reference, <a href="https://github.com/gemma-vincent/energy">here’s the complete code</a> of our first iteration of this project. Please don’t forget that this won’t work out of the box for you, as you may not have smart plugs and we hard-coded a specific ngrok link.</p><p>In the next blog post I will discuss in greater detail how we managed to visualise energy using A-Frame and canvas in a cool way. Feel free to contact me in the meantime via Twitter @<a href="https://twitter.com/lilGemVincent">lilGemVincent</a>. 👋🏽</p><p><em>Originally published at </em><a href="https://gist.github.com/3adf0279a6bec4026ed7b1bc5ded6352"><em>gist.github.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9828a846bd0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-unitgb/web-ar-with-smart-plugs-using-a-frame-d9828a846bd0">Web AR with smart plugs using A-Frame</a> was originally published in <a href="https://medium.com/the-unitgb">The Unit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a real-time smile detection app with deeplearn.js]]></title>
            <link>https://medium.com/the-unitgb/building-a-real-time-smile-detection-app-with-deeplearn-js-820eb48e09b7?source=rss----9bd9e9b90eb4---4</link>
            <guid isPermaLink="false">https://medium.com/p/820eb48e09b7</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Jozef Maxted ]]></dc:creator>
            <pubDate>Thu, 25 Jan 2018 17:05:05 GMT</pubDate>
            <atom:updated>2018-02-06T10:44:32.275Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a real-time smile detection app with deeplearn.js and the web Shape Detection API — Part 1: Face Detection</h3><h3>Jozef Maxted 👻 on Twitter</h3><p>Real-time smile detection using @deeplearnjs and the web shape detection api. The Web is so powerful! #ai #js #NeuralNetworks 🤪🤖 https://t.co/GZRPsydWru</p><p>For three weeks before Christmas at <a href="https://www.theunit.co.uk/">The Unit</a> I had been experimenting with the unreleased web <a href="https://github.com/WICG/shape-detection-api">Shape Detection API</a> and Google’s hardware accelerated browser based machine learning library <a href="https://github.com/WICG/shape-detection-api">deeplearn.js</a> to build a (tongue-in-cheek) ‘office happiness’ dashboard. We used face detection to pick out faces from a webcam feed in real-time and then used deeplearn.js to determine whether they were smiling or not.</p><p>It amazes me that this kind of task can be performed directly in the browser! Leveraging the power of the browser provides a lot of advantages over using a cloud service such as the AWS Rekognition API or Google’s Cloud Vision API; mainly it will work out a lot cheaper, but it also means you can get much quicker results, without waiting for an API response.</p><p>In this series of posts I will guide you though the steps I took to get the smile detection working using deeplearn.js.</p><p><strong><em>Disclaimer: buckle in, this is going to be a long set of posts. Please be aware that I am by no means a machine learning expert, but I’ve learnt a lot by hacking together this demo. Finally, this isn’t a tutorial on how to architect a good Angular app. The focus is intended to be on deeplearn.js.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JjNhlQety_34TEQBmgSZ1g.png" /><figcaption>We had a lot of fun combing the face detection and smile detection with canvas animations.</figcaption></figure><h3>Setting up the project</h3><p>For this demo we’ll be making use of <a href="https://angular.io/">Angular</a> as it works nicely with deeplearn.js because both use Typescript. Angular will be providing the shell for our application but you could just as easily create this demo without the use of a framework.</p><p>If you don’t have the Angular CLI already, install it globally with:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/16f8d3c7ecee32a4619959d1cf10a982/href">https://medium.com/media/16f8d3c7ecee32a4619959d1cf10a982/href</a></iframe><p>Then create a new app and start the development server:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c959b1d65604cc8118e754dbba33dccf/href">https://medium.com/media/c959b1d65604cc8118e754dbba33dccf/href</a></iframe><p>You should now be able to visit the newly created Angular app here: <a href="/service/ttp://localhost:4200/">http://localhost:4200/</a></p><h3>Real-time face detection</h3><blockquote><em>The finished code for this section can be found here: </em><a href="https://github.com/zefman/smiley/tree/feature/face_detection"><em>Smiley repository — face_detection branch</em></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qxEht9qGd5nnfuPFXctcVg.jpeg" /><figcaption>The first step in our journey to detecting smiles is to find faces</figcaption></figure><p>The first small step in a our deep learning journey is to detect faces from a webcam feed. This is made laughably easy using the proposed <a href="https://wicg.github.io/shape-detection-api/">Shape detection API</a>. Unfortunately this API isn’t shipped in browsers yet, and to play around with it you’ll need to enable the experimental web features in Google Chrome.</p><p>Paste the following into your Chrome address bar and click ‘enable’ on the section titled ‘Experimental Web Platform features’.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/70525b160dc6c368c7dab6122169b0db/href">https://medium.com/media/70525b160dc6c368c7dab6122169b0db/href</a></iframe><p><strong>After enabling these features you should be able to try this demo: </strong><a href="https://realtime-face-detection.netlify.com/"><strong>https://realtime-face-detection.netlify.com/</strong></a></p><h4>Creating the HTML elements</h4><p>For the time being we are going to place everything in the root component the Angular cli has created for us. We will refactor later when we need more functionality. Let’s start with the HTML. Add this to ‘src/app/app.component.html’:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/61bb8f35b462a220b3a3d6481356da5d/href">https://medium.com/media/61bb8f35b462a220b3a3d6481356da5d/href</a></iframe><p>Here we add a video element so we can attach a webcam stream to it, and a canvas element. This will be used later so we can draw the video onto the canvas and highlight the detected faces. If you are confused about the # syntax on the elements, this is simply Angular-specific syntax that will allow us to grab a reference to this element from within the Angular component.</p><h4>Styling the HTML</h4><p>We can now add some very simple css to ‘src/app/app.component.css’, deleting the HTML the Angular CLI generated for us:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7d0b646cbbfab7aa3ff6780bd3f826aa/href">https://medium.com/media/7d0b646cbbfab7aa3ff6780bd3f826aa/href</a></iframe><p>We want the video to fill the entire browser vertically and horizontally, so we need to centre our canvas element in the window and set its min-height and min-width to 100%, to stretch it to whatever aspect ratio the browser might have.</p><p>We can actually hide the video as we will be drawing the frames from the video directly to the canvas.</p><h4>Face detection with Angular</h4><p>Now we have our HTML and CSS setup we can move on to the actual code in ‘src/app/app.component.ts’:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2ea6f8c8faa407951e49199b8edd41e4/href">https://medium.com/media/2ea6f8c8faa407951e49199b8edd41e4/href</a></iframe><p>Not a lot to talk about here; we are simply setting up our Angular component by importing dependencies we will need and defining a few variables.</p><p>Notice the @ViewChild definitions. These allow us to get a reference to the canvas and the video elements we created earlier. These return an ElementRef class that is a wrapper for the native HTML element, so in addition we define variables to hold references to the underlying native elements: ‘video’ and ‘canvas’, as well as a variable ‘ctx’ to hold the canvas rendering context.</p><p>We also define a variable to hold our face detector, but because this is still an experimental feature there is no built-in type definition yet, so for the time being we will use the ‘any’ type to prevent typescript from complaining.</p><p>Finally we inject NgZone into the constructor of our component. I’ll explain why this is required later.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4fa0478b958917cb4a8371709a238f03/href">https://medium.com/media/4fa0478b958917cb4a8371709a238f03/href</a></iframe><p>In the code above we implement the component lifecycle hook ngAfterViewInit. This hook fires after the component has loaded and the views have been created. We make use of this hook to set the video, canvas and ctx variables we defined earlier. We cannot do this in the constructor as these elements don’t exist until the view is created.</p><p>We also create our face detector here. We pass it a few options to increase performance. ‘fastMode’ tells the face detector to favour speed over accuracy. ‘maxDetectedFaces’ simply limits the number of faces the detector will search for.</p><p>We are now ready to initialise the video feed.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/66a0686b7799811e313d6c05e8ee037c/href">https://medium.com/media/66a0686b7799811e313d6c05e8ee037c/href</a></iframe><p>First we request access to the webcam with navigator.getUserMedia(). This should show the popup allowing the user to accept or decline access to the webcam.</p><p>Assuming this is successful, we then bind the return media stream to our video element. If our video element wasn’t hidden at this point we would see the webcam feed in our video element.</p><p>We then wait for the stream to load in our video element, and once it has, we get hold of its width and height, and set our canvas’ width and height to match. This means that once we draw on the canvas it should marry up nicely with the coordinate space of the video. The only downside is that the canvas will be stretched so it won’t look sharp, but for the purpose of this demo that’s cool.</p><p>Next we get to the exciting part! We call our update function that will handle detecting faces and marking them on the video. Notice we make use of the NgZone we injected into our component constructor. We tell Angular to run this update function outside of its zone. To cut a long story short, this tells Angular that we don’t want it to perform change detection when this function is called, which will hopefully increase performance. The update function will run repeatedly using requestAnimationFrame and so it could get very expensive if we run it within Angular.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/585750c7354851e1506318c1bb5092c8/href">https://medium.com/media/585750c7354851e1506318c1bb5092c8/href</a></iframe><p>The face detector detect function returns a Promise with the detected faces so we can use async/await to make our code a bit cleaner. This could cause performance issues as it’s within a requestAnimationFrame, but for simplicity we will stick with it.</p><p>The first thing we do is detect our faces by passing the face detector our canvas element. This will return an array of the faces it detects, if any.</p><p>Next we take the latest frame from the video and draw it to the canvas. This is why we set our video element to display none.</p><p>We then call a function called markFaces which will draw any detected faces on the canvas with a rectangle, and once it is done, we request the next animation frame to repeat this process.</p><p>All pretty straightforward!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/56c919443763379842b813c958c5c200/href">https://medium.com/media/56c919443763379842b813c958c5c200/href</a></iframe><p>Above is the markFaces function. Here we take the array of faces from the face detector, loop over them and draw a rectangle using the bounding box returned by the face detector.</p><h3>Working real-time face detection 🎉 😁</h3><p>That should be it! You should now have a live video with rectangles surrounding up to two faces in the feed. Not bad for under 100 lines of code!</p><p>Performance of the face detection seems to be pretty variable, but it’s not bad for an experimental feature.</p><h4>In the next post we will build upon our working face detection and try to extract and process the faces in a way that makes them digestible by a neural network!</h4><p>In the meantime, feel free to get in contact with me on Twitter: <a href="https://twitter.com/jozefmaxted">@jozefmaxted</a></p><p>Part Two can now be found here:</p><p><a href="https://medium.com/the-unitgb/building-a-real-time-smile-detection-app-with-deeplearn-js-1a55cf20ed49">Building a real-time smile detection app with deeplearn.js</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=820eb48e09b7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-unitgb/building-a-real-time-smile-detection-app-with-deeplearn-js-820eb48e09b7">Building a real-time smile detection app with deeplearn.js</a> was originally published in <a href="https://medium.com/the-unitgb">The Unit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>