Cartoon effect
In the preceding section, we added a new editing feature so that we can sharpen images in our application. In this section, we will add a new editing feature so that we can create an interesting cartoon effect for an image. In order to achieve this cartoon effect, we need to do two things: first, we need to make the image have a cartoon look, so we need to find a way to reduce its color palette; then, we will detect the edges in the image and produce bold silhouettes along with them. After that, we will merge the resulting images of these steps and then get a new image that has the cartoon effect implemented.
Fortunately, all of this can be done by using the OpenCV library. So, let's start our new plugin project, which we will ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access