---
title: "Discussion on \"How Do You Turn a Malfoid AI Portrait Into a Colouring Page? XDoG Line Art in OpenCV, and Why Grey-Only Edge Detection Loses the Face\" | Hashnode"
description: "Discussion on \"How Do You Turn a Malfoid AI Portrait Into a Colouring Page? XDoG Line Art in OpenCV, and Why Grey-Only Edge Detection Loses the Face\". Short answer: smooth the picture without blurring its edges, run an XDoG (extended difference-of-Gaussians) line filter, throw away specks, thicken the lines, and lay the result on an A4 or Letter pag"
url: "https://hashnode.com/posts/how-do-you-turn-a-malfoid-ai-portrait-into-a-colouring-page-xdog-line-art-in-opencv-and-why-grey-only-edge-detection-loses-the-face/6af1a388695a0d294220356e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How Do You Turn a Malfoid AI Portrait Into a Colouring Page? XDoG Line Art in OpenCV, and Why Grey-Only Edge Detection Loses the Face](https://lpgit.hashnode.dev/how-do-you-turn-a-malfoid-ai-portrait-into-a-colouring-page-xdog-line-art-in-opencv-and-why-grey-only-edge-detection-loses-the-face?utm_source=hashnode&utm_medium=feed)

Short answer: smooth the picture without blurring its edges, run an XDoG (extended difference-of-Gaussians) line filter, throw away specks, thicken the lines, and lay the result on an A4 or Letter pag

Nov 9 · 13 min read · lpgit.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#opencv](https://hashnode.com/tag/opencv)
-   [#computer-vision](https://hashnode.com/tag/computer-vision)

## Written by

[Peiguan](https://hashnode.com/@lpgit)

@lpgit

  
[View profile](https://hashnode.com/@lpgit)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
