Code Monkey home page Code Monkey logo

polyfoto's Introduction

Hello, I'm Shane ๐Ÿ‘‹

polyfoto's People

Contributors

shanedrabing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

polyfoto's Issues

Error on second run

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.

Reds Don't Show Up

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.