shanedrabing / polyfoto Goto Github PK
View Code? Open in Web Editor NEWCreate image mosaics.
License: MIT License
Create image mosaics.
License: MIT License
I managed to successfully generate a mosaic, great tool :)
However, when running the exact same command a second time, it breaks with the following error output:
CONVERTING / LOADING
BUILDING
Traceback (most recent call last):
File "polyfoto.py", line 223, in <module>
cnv = build(
File "polyfoto.py", line 148, in build
metric = sum(cv2.sumElems(abs(prt - im[:, :prt.shape[1]])))
ValueError: operands could not be broadcast together with shapes (16,100,3) (100,100,3)
I did rename the output file but everything else stayed exactly the same. I ran the script as follows
python polyfoto.py -f ../Downloads/Lobster.png -d ../LoadLobsters/out/ -o genLobster2.png -n 57
When deleting the whole folder, git clone
-ing the repo, installing and running it again all works fine though.
This causes a failure when running python setup.py install
:
error: can't copy 'LICENSE.txt': doesn't exist or not a regular file
I am generating a picture with 32 rows from a source folder of about 500 jpg files. The generated picture shows the shapes, but the color is off. It looks to me like there is little to no red in the created picture even though the source folder has plenty of red-prominent photos. For example, the person's skin in the photo appears grey and their red clothes are the same color as the skin (grey).
I get an error when building
https://i.imgur.com/xzkLMt5.png
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.