惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
博客园 - 三生石上(FineUI控件)
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
V
Visual Studio Blog
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
MongoDB | Blog
MongoDB | Blog
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Engineering at Meta
Engineering at Meta
L
LangChain Blog
Martin Fowler
Martin Fowler
GbyAI
GbyAI
博客园 - 司徒正美

herrkaefer

"Vibe planning \u003e vibe coding" "Anything to Markdown" "Built anocus: anonymous commenting for static sites" "日记与小说 -- AI 续写小说欣赏" "Any-podcast: from newsletters to a podcast" "Made MicPipe: a simple voice input tool using ChatGPT dictation" "关于 Tools 和 Skills 的一点感想" "Realtime monitoring of ComEd hourly price" "Introducing SwiftEdgeTTS" "Thoughts on the philosophy of building AI-native apps" "jelly鼻屎" "等饭的人" "Use home assistant to motivate my kid to brush teeth" "Migrated Blog to Hugo and Cloudflare Pages" "Easy Aspen monitoring for Chicago parents" "Introducing HabitBuilder: A simple Telegram bot for habit tracking" "鼓捣" "Open folder or file with Sublime Text from Finder toolbar" "Python dev workflow on macOS" "Create new text file from Finder toolbar" "Uno reinvented for 3-year-old kids" "Uno变身儿童数字游戏" "自动转发Twitter到微博" "Handle annoying operations of objects in Realm DB" "Move Jekyll blog to Ubuntu VPS" "Introducing Mole" "Note taking without note taking app" "Deploy Python web application on Ubuntu server" "Setup Shadowsocks / VPN on Ubuntu Server" "Linode Notes - Basic Setup"
"Calligraphy Vectorization Project"
"herrkaefer" · 2008-07-30 · via herrkaefer

有个著名ID的签名叫做“不做无聊之事,何以遣此有涯之生”,从今天开始,给自己找个了好玩的体力活做:把书法中的汉字转换成矢量格式,起了名字,就叫Calligraphy Vectorization (CV) Project。因为要调参数去噪点又要保证字的质量,其实也挺费事的,所以不求快,每天若有空做一字或数字即可。从兰亭集序开始吧,根据中文维基上的冯承素摹本(即神龙本),这就一字一字地做将起来! 订几个规则: 1) 文件保存。保存为SVG格式矢量图文件。同时输出位图文件,贴上来。

2) 噪点判断。噪点即非笔画的墨迹的点,可能是纸面本来就有的,也可能是扫描引起的。可能不是墨迹,也可能是墨迹。除了去除明显背景噪点外,力求不做其它任何主观美化。对于难以区分是噪点还是笔画的点(特别是那些和笔画相连的点),做慎重的判断,不能断定的情况下,应保留疑似噪点为好。当然提取轮廓的阈值设定不可避免要掺入主观因素,要在噪点和笔画之间找到好的平衡,以尽量不伤害笔画为标准。 3) 位图预处理。对位图的预处理:判断和笔画相连的干扰点,把它们和笔画切断。这样的好处是在提取轮廓一步可以选取较高的阈值,不使输出的笔画太瘦(因为墨迹在纸上有晕染效果,轮廓截取到什么位置也很重要),同时噪点和笔画是相离的,容易去除。


*