AI the best solution? Back to classical image recognition

Artificial Intelligence (AI) is increasingly being used to solve automation issues. Self-learning algorithms are making it easier and easier to take specific but monotonous tasks off our hands. Despite the fact that you can use AI technologies for all kinds of problems, such as speech recognition and text recognition, it is not always the solution for every issue. At Pegamento, for example, we dealt with several cases where that occurred. We sat down with Computer Vision & AI Lead Thomas de Wolf to discuss why artificial intelligence is not always the best working solution for every issue.

For this story, we take the print industry. For example, an organization that prints personalized packaging, such as Tony’s Chocolonely where you can design your own wrapper. There are hundreds, maybe thousands, of different types of chocolate wrappers being made, each of which must be shipped in boxes to the right address. This occurs at many organizations within the print industry. While preparing orders, organizations in the print industry often manually check the products in and the picture (image label) on a box on a conveyor belt and then stick the correct order information on it. In a box, for example, there are chocolate bars with personalized wrappers for a specific customer, and of those they put the sticker on. And that for thousands of pieces a day.

Computer vision and Artificial Intelligence behind the scenes

‘It’s like a baby, who at some point learns that he can grasp something with his hands. He finds out it’s handy and learns from it.’

An automation issue for this may be that organizations in the print industry are looking for a way to automate manual checking. One application is a camera system that sees the box on the conveyor belt and recognizes the picture on the box. The system compares that picture to the database to then confirm, ”these are Tony’s Chocolonely’s milk chocolate bars and not the dark or hazelnut.” ”This is an issue where you don’t know in advance what will pass in front of the camera, but you want to start recognizing it,” Thomas says. ”For this kind of problem, we show the computer 500 examples of the milk, 500 of the dark and 500 of the hazelnut wrappers. Then we have three types of chocolate bars of which we have 500 images of each wrapper type on a white box in the database.”

With all those examples, the technology is going to train a learning algorithm. ”The software tries to recognize the milk label on the box, then it sees if it has gotten good at this,” Thomas explains. ”If it hasn’t, it changes all the little numbers and tries again. It’s like a baby, who at some point learns that he can grasp something with his hands. He finds out it’s convenient and learns from it. That’s how a learning algorithm works, too.”

Practically speaking, you give the computer many examples and instruct the software to train based on those examples. After a while, the network has learned to recognize the Tony’s milk chocolate label on the white box. Then when you show it a new picture of a box with a label on it, the system recognizes that it is the milk chocolate and sticks the correct order information on it.

In the image to the right, you can see an example of image recognition i.c.w. AI. The camera has learned to recognize a car.

Back to classic image recognition: feature matching

‘If new types of labels are constantly coming along, how can a computer tell that it is a label and not the box?’

Yet AI is not always the best solution to this automation issue. That’s because organizations in the print industry don’t have just three categories of labels, but rather lots of types in different sizes, figures, colors and sizes. Especially if you have a similar business to Tony’s Chocolonely, which is to be able to design wrappers, labels or packaging yourself. Like a personalized Pegamento chocolate bar wrapper. This means you might get a thousand categories. ”A typical problem where you don’t want to reach for a learning network, but you have to look specifically at what makes all those labels different,” Thomas points out. ”Training a network that knows what a label is, but doesn’t know what the milk chocolate is, doesn’t work either. Because when new types of labels come along again, the computer can start to see the label as the box. For such an issue, you have to fall back on classical image recognition: feature matching.”

Feature matching

”First of all, we write the software so that it recognizes that anything that is not background must be the white box. And everything that is not white is then the label. We then extract the outline of a label. We cut that piece out and then you get to the feature matching part.”

In a nutshell, feature matching means that an algorithm looks at specific pixels of an image to start comparing them with other images in the database. For example, it grabs a small piece of the wrapper of the Pegamento chocolate bar from the label and compares that pixel group with all the other images in the database. ”Suppose you have a design of a Pegamento wrapper, Nike wrapper and IKEA wrapper, it’s going to look to see if that pixel group appears anywhere. He does that for about 1,000 pixel groups,” Thomas says while using an image to show what it looks like visually. ”He looks to see which image is the best match. That way he can tell, without ever having seen anything beforehand, that something looks alike. And that’s the trick behind feature matching. That’s how the computer knows what order information should be on the box.”

And so organizations in the print industry no longer have to manually check what is in and on the box to put the correct order information on it. This allows an organization to create a higher production process with the same amount of manpower.

For all companies doing anything with custom printing and printing

Another example Thomas mentions during the conversation is photo gifts on which you can have a photo printed. That kind of organization prints photos on products after which they go into the oven by 400. Afterwards, it is often difficult to identify which product belongs to which order. You only see a picture of a family on the product. Based on that image, they have to manually retrieve the order that belongs to it. ”You could also use a camera with feature matching for something like this,” Thomas points out. ”You put the product with the image in front of the camera and the computer looks for a match based on all those pixel groups. Easy as that! With this technique, you can rule out so specifically what it is based on images that it actually becomes as simple as scanning a barcode.”

AI is not the best solution in this case either, because feature matching works better in this issue because each photo is different. Just goes to show that artificial intelligence is not the right solution for all automation issues. Fortunately, there are plenty of other techniques that can be the solution. And together with you, we look for the technique that fits your problem.

Free: image recognition for beginners

Totally up to date on the possibilities of image recognition anno 2022? Download your free white paper here. We will also tell you without obligation whether image recognition is applicable within your organization.

More blogs

Download the white paper here

Deepen your knowledge with Pegamento’s white papers.

Joost Schaap-Account manager Pegamento

Joost Schaap

Senoir Account Manager

When a customer contacts an organization because they have a complaint, it is crucial that the employee of the organization begin by listening carefully. What does this complaint mean for the customer and also for their own organization? How can this complaint be resolved? After listening carefully the employee needs the right information so that a solution can be offered.

This piece was written by Joost Schaap, working as an Account Manager at Pegamento.

Tim Treurniet-AI developer Pegamento

Tim Treurniet

Designer of Intelligent Systems

Real childhood heroes I never had. But in retrospect, I believe figures like Willie Carrot or Dexter’s lab may have had an influence on me. I get energy from actually making innovative and useful products myself. Nothing like seeing the effect of a project that automates a boring task, or makes a complex process suddenly accessible.

A nice bridge to my photograph is the physical aspect of my work. By working with image recognition, I am often very directly connected to the physical world and my work is more than just programming. For example, our image recognition software ensures safety on bridges, tracks players on a soccer field or uses your own smartphone to accurately measure yourself. This combination between physical and digital provides variety and extra challenge. For me, these are the main reasons for my interest and enthusiasm in what I do!

This piece was written by Tim Treurniet, employed Designer of intelligent systems at Pegamento.

Vera van der Plas-UI-UX designer

Vera van der Plas

UI/UX Designer

As a UX/UI designer, I deal daily with transforming complex data into user-friendly visualizations. All of this topped off with a digital lick of paint which should attract the visitor’s attention to take action.

One of the interesting aspects of this field I find the effects that small tweaks, both textual and visual, can have on conversion. The psychological impact that a simple background color of a CTA button has on our behavior is huge. After all, that color can determine whether or not you are going to buy that product.

What we see and how our brains process and interpret this information fascinates me. The possibilities of subconsciously pointing potential customers in your chosen direction are endless. I hope to apply my expertise more often within our solutions in the future.

This piece was written by Vera van der Plas, working as a UX/UI Designer at Pegamento.

Fouad Rahaoui-Finance Pegamento

Fouad Rahaoui

Financial Controller

A Financial Controller within a company should not only be an expert in Finance. You must also have knowledge of the latest IT developments. Because these are also moving very quickly in the world of Finance.

At Pegamento, I can learn all about the latest IT developments. Like the latest development in the field of Machine learning and deep learning.

Through these application areas, as Financial Controller, I can further automate the financial business processes within Pegamento and implement improvements for the automatic processing of financial data.

This piece was written by Fouad Rahaoui, working as a Financial Controller at Pegamento.

Ernst Vegter-Business consultant Pegamento

Ernst Vegter

Business Consultant

Hospitality is one of my deepest motivations.
Not surprisingly, of course, customer service is a common thread in my career. Aspects of hospitality is being able to connect, to facilitate but mainly to make someone feel genuinely welcome. My intuition is my greatest asset to be able to put myself in the shoes of a guest. A customer is my guest.

Fed by various senses, an image forms around the client. I listen to what is being said, watch facial expressions, taste the underlying tone and get a feel for the challenge to be addressed. An image literally forms on my retina. I have to be able to see it. If I can see it, I can create it.

In this, the trick is to pursue simplicity, give the client a warm feeling that the problem is understood, receive good advice, facilitated and carefully guided to the solution. Trust, connect and unburden.

The feeling when a guest arrives at your hotel after a long tiring journey, can sit in front of the fireplace, be handed a good glass of wine and stare carefree at the fire. My guest knows it will be okay.

This piece was written by Ernst Vegter, working as a Business Consultant at Pegamento.

Gunisch-AI developer Pegamento

Gunish Alag

AI Developer

A picture is worth a thousand words, is an expression most of us have heard. We see a lot of things around us on a daily basis and subconciously have the ability to recognize and understand them. This ability of humans to me seems bizarre.

As a computer vision developer at Pegamento that is what I do, break down complex problems and turn them into solutions using images by meticulously extracting useful data.
With the world moving forward and new technologies emerging, complicated problems which were difficult to solve a decade earlier suddenly seem possible and viable. The future is full of new challenges and I look forward to them.

This story is written by Gunish, working as an AI developer at Pegamento.

Ewold Jansen-Service engineer Pegamento

Ewold Jansen

Service & Support Engineer

Hearing the wishes a customer has or the problems a customer is facing is important in order to then be able to help them properly. In both cases, I help find the right solution.

When the customer comes to us with a desire, they don’t know what all the options are. In this I advise them to make the right choices. When problems arise, listening to them is important. For example, a problem arises from a wrong action. By communicating well in this, many problems can be solved quickly by explaining it well. Through poor communication, a small problem can become very big.

This piece was written by Ewold Jansen, working as a Service & Support Engineer at Pegamento.

Andre Glasbergen-Scrum master Pegamento

Andre Glasbergen

Scrum Master

After completing my studies, I started working as a developer at a young Pegamento with a lot of ambition and enthusiasm. In the first years I learned all about process automation, now better known as RPA. I often had to rack my brains to convert the work instruction into a logical function, with not too many If-statements, so that the robot could perform the work.

I developed further and went to work as a consultant. Listening well to the customer and supporting in the pre-sales phase of projects. Executing projects and listening suited me very well. It was a small, but logical, step to now work as a Scrum Master and Project Manager. I have been supervising projects for a few years now. Such as RPA, Cloud applications and AI, according to the Human lead agile approach, We build this with a large team of specialists.

This piece was written by André Glasbergen, working as a Scrum Master at Pegamento.

Ensar Ari-IT engineer Pegamento

Ensar Ari

IT Engineer

Good communication between customer and organization is very important. As an organization, you naturally want to be easily accessible to your customers. Either via social media channels or via the old familiar telephone. Often organizations do not know exactly how they want their telephone line set up. That is why I like to help them think along and give them ideas. I believe there is a solution to every problem. But sometimes you just need someone who looks at the situation a little differently.

This piece was written by Ensar Ari, working as an IT Engineer at Pegamento.

Nini Heerings-Chief Happiness Officer Pegamento

Nini Heerings

Chief Happiness Officer

“You get to know someone better by playing for an hour than by talking for a year.”

This quote from Plato is totally hitting home for me. That’s why I like to connect people through play. Because while playing, you are totally on, all your senses at work.
In my great role as Chief Happiness Officer, I want to do that by connecting colleagues with each other and with the organization. In a creative and playful way that suits Pegamento.

When I’m not at work, I also enjoy connecting people. I do this by organizing The Playground, where adults play games you used to play in the schoolyard, gymnasium or neighborhood playground. The pure feeling of fun, total relaxation and no thoughts of anything but playing. That feeling is the goal.

This piece was written by Nini, working as Chief Happiness Officer at Pegamento.

Ger Koedam-Communication & Marketing Pegamento

Ger Koedam

Marketing & Communications

How can I help you? That’s pretty much the first question I ask when talking to people who are curious about our services. In such a conversation, the use of senses is very important. Because not everyone is the same. One person thinks in images, while for another words are important or how something feels. For me, sight and hearing are the most beautiful senses, because both eyes and ears absorb information and can convey or process emotions.

Why hearing? Because listening is essential in contact. And it’s the key to unlocking valuable insights.

I developed this skill early on. As a child, I enjoyed radio plays on the radio, bringing the stories to life in my head.

Pim Ritmijer-Software developer Pegamento

Pim Ritmeijer

Software Developer

Programming is more than just “code knocking. For me, listening to what the customer wants and visualizing that is an important part of software development.

Actively listening to a customer to understand the customer’s full story is crucial before building a solution. When you understand a customer’s story, you can think together about a solution that truly helps the customer.

Visualizing solutions is the next step for me. What will be the route we will climb to get to a solution? What challenges are we going to face to get to the top?

Like climbing, good preparation is valuable. Even though you can’t prepare for everything, preparation helps make the application fit the client’s needs as well as possible.

What a beautiful and fascinating profession programming is.

This piece was written by Pim Ritmeijer, working as a Software Developer at Pegamento.

Denise Verhoef-Software developer Pegamento

Denise Verhoef

Software Developer

Hearing is something you do a lot of as a programmer but also thinking, for example, when you are tasked with putting together a customer need. If the customer wants a function for his application, it is important that as a programmer you think carefully about which functions are functional and which functions are not. In this way, you will put together the most functional application possible and the customer will have a good end product. Turning needs into code into functionality is something I find interesting.

I am currently doing an internship at Pegamento and studying Software Developer. I get a lot of information that you have to process and apply. The nice thing about this is that you can learn new things but also that you can experience how it works in real business. I started this training last year and knew nothing about programming beforehand. Now I can find my own way with programming and I enjoy working with it. That you can get from a blank page to a functional application through code is cool!

This piece was written by Denise Verhoef, working as a Software Developer intern at Pegamento.

Remco Pabst-Business consultant Pegamento

Remco Pabst

Computer Vision & AI Lead

Using innovative software technology for people or business to make “things” easier and smarter is really a driving force. That’s why the connection between the senses appeals to me the most. Our brains connect the senses just like a business process connects people, systems (data) and logic. They register and trigger an action, exactly how it should be in an optimal workflow. Very cool what is already possible today when we add a lot of computational power to that as well.

Hearing also means a lot. Not because I like to listen to Jazz, Soul, Deep House or Focus-like music every day AND have to be able to listen well to interpret a wish or pain point, but more because not everyone can have all the senses at their disposal. Think of him or her with a visual impairment. The fact that in close cooperation we were able to apply AI, TTS/STT technology (which is still in development) for this often underserved group of people in today’s digital world and to improve the interaction and experience with it gives me a lot of energy and meaning to what I try to do with technology; create value.

This piece was written by Remco, working as a Business Consultant at Pegamento.

Thomas de Wolf-Vision Engineer Pegamento

Thomas de Wolf

R&D Director

Once when I had to choose which study I was going to do, I had a hard time making that choice. I was interested in engineering, but what I most wanted to do was just work with a team toward a common goal.

To this day, that is still what I love doing most. The technology has become image recognition and the team the computer vision department of Pegamento. So it’s logical that in terms of sense, I end up with “seeing. By using our image recognition solutions to see things in the real world, our entire team solves relevant problems for our customers. And because of the variation in customers, the places where our solutions end up are never the same. For example, one moment I am in the control room of a bridge and the next day I am on a production line for sandwiches or between the fences of a TBS clinic.

This piece was written by Thomas de Wolf, working as a Computer Vision & AI Lead at Pegamento.

Rob Roode-Research Development

Rob Roode

Research & Development

Recognizing and automating patterns. Tasks we are constantly working on when implementing our robots at Pegamento. My 2 Drentsche Patrijshonden are hunting dogs and certainly not robots. The hunting instinct and intuition is basically in their genes. Continuing to offer new forms of training has taught them to recognize and act independently in hunting situations. Even “unsupervised,” even if I’m not around.

But when you try to teach a brain something, it also starts to see things you don’t expect. Dogs pick up on the slightest deviation in your voice or directions. To start recognizing that and correcting it again is perhaps the most complex challenge. But in our work, for the wonderful clients for whom we get to work, it often yields the most beautiful new insights!

This piece was written by Rob, founder of Pegamento and in charge of Marketing and R&D.

Serge Poppes-CEO Pegamento

Serge Poppes

CEO

Feeling. That’s the best thing Pegamento stands for. Feeling for technology in the broadest sense of the word. Not only feeling for the exciting stuff like AI, but also for the basics of communication.

The very best part of my job is selling, listening, translating and thinking about what really matters. We bring the digital transformation with a great team!
The diversity of our team, how sharp we are, but especially the wonderful things we get to make makes me feel extremely good. Hence, I intuitively chose the sense of “feeling.

Feeling gives life and differentiation!