TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Make photomosaics, GIFs, and murals from pictures in Python with ML/OpenCV

126 pointsby muzakthingsover 6 years ago

7 comments

dfbrownover 6 years ago
I&#x27;m not an expert in the topic, but my understanding is RGB is a poor color space for computing color difference. This could be why your mosaics end up so washed out. [1] suggests using a CIELAB color space [2].<p>Edit: Looking at the code more closely it looks like you were using Lab at one point but commented it out[3], so I&#x27;m guessing you&#x27;re already aware of this.<p>1: <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;9019461&#x2F;185171" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;9019461&#x2F;185171</a><p>2: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;CIELAB_color_space#CIELAB" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;CIELAB_color_space#CIELAB</a><p>3: <a href="https:&#x2F;&#x2F;github.com&#x2F;worldveil&#x2F;photomosaic&#x2F;blob&#x2F;bb720efda11383fbb037a05bec41eea942ddb189&#x2F;emosaic&#x2F;image.py#L63" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;worldveil&#x2F;photomosaic&#x2F;blob&#x2F;bb720efda11383...</a>
评论 #18675662 未加载
fireattackover 6 years ago
Is the example image (<a href="https:&#x2F;&#x2F;github.com&#x2F;worldveil&#x2F;photomosaic&#x2F;blob&#x2F;master&#x2F;media&#x2F;readme&#x2F;header.jpg" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;worldveil&#x2F;photomosaic&#x2F;blob&#x2F;master&#x2F;media&#x2F;r...</a>) with or without opacity cheat?
评论 #18676806 未加载
评论 #18677599 未加载
rmonroeover 6 years ago
Way better implementation of the face alignment than what I did for our peru trip. Good going ;-)
androidgirlover 6 years ago
The gif with facial recognition is actually really really cool. Awesome work
aaaaaaaaaabover 6 years ago
Ok, but where is the ML part?<p>We’ve been creating these mosaics for decades...
评论 #18675620 未加载
评论 #18675547 未加载
itronitronover 6 years ago
like others here, i really like the aligned face montage gif and it seems like it would be a great product for people to package up their selfies over a timeline
giladovedover 6 years ago
This is fantastic, great project!