程序化头像生成

发布于 2024-08-10 21:14:44 字数 162 浏览 8 评论 0原文

我想实现一个系统,当给定 MD5 哈希作为输入时,该系统会生成唯一的 NxN 块,目前我将 MD5 拆分为子字符串,并将它们用作十六进制颜色代码,有人对此有什么好的想法吗?我可以使用系统来生成这些图像吗?

我考虑过使用这些值作为洛伦兹吸引子中的常量,但对于大量生成的输出,输出在视觉上无法区分。

I'd like to implement a system that generates unique NxN blocks when given a MD5 hash as an input, currently I'm splitting the MD5 into sub-strings and just using them as Hex colour-codes, does anyone have any good ideas on systems I could use to generate these images?

I've considered using the values as the constants in a Lorenz attractor but the output just isn't that visually distinguishable for large numbers of generated outputs.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

回首观望 2024-08-17 21:14:44

您可以尝试生成类似人脸的图像。人们相当善于区分不同的人脸图像。例如,请参阅 Wavatars,它们是愚蠢的类似脸部的图像,其中形状颜色、背景、眼睛、嘴巴等等都是多种多样的,导致产生大量不同的、相当可识别的图像。

如果不是面孔,那么选择一些其他类别的相当可识别的物体,这些物体可以在多个轴上变化,例如汽车或动物之类的。

例如,请参阅Meta 上的此线程,了解自动生成独角兽头像。

You could try generating a face-like image. People are fairly good at distinguishing different face-like images. For example, see Wavatars, which are goofy face-like images in which the shape is varied, the color, the background the eyes, the mouth, and so on, leading to a very large number of different, fairly recognizable images.

If not faces, then pick some other class of fairly recognizable objects that can vary on several axes, like cars or animals or something.

See, for example, this thread on Meta about automatically generating unicorn avatars.

叫嚣ゝ 2024-08-17 21:14:44

SO 上自动生成的头像称为 Identicons,您可以使用它的变体。

有关详细信息,请参阅此问题:

用户 ID 图像是如何生成的那么?

The auto generated avatars on SO are called Identicons, you could use a variant of that.

See this question for more information:

How is the user id image generated on SO?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文