Coder Social home page Coder Social logo

big_small_pics's Introduction

big_small_pics

a function for remake a big picture with small pictures.

for fun:>

make_image_memory_less(cache_address="D:\ml-tmp", primary_image_address=r'image.jpg', directroy_address_of_images=r'D:\ml-tmp\imgs', output=r'image_new.jpg', split_size=80, chance_to_repeat=0.009)

parameters:

cache_address : this is the directory we want to create a cache file for small images in it. warning: make sure there is no cache directory in cache_address because that will be deleted. default=r'.'

primary_image_address : the absolute or relative address of primary(big) image. default=r'./prime.jpg'

directroy_address_of_images : the address of directory of small images.default=r'images'

output: the address and name of result picture.default=r'./primeout.jpg'

split_size: the size of square small pics in pixels. defalut=100

chance_to_repeat: a number beween 0 and 1. 0 means there is no chance to repeat an small image in big image and 1 means there is no limit to repeat and the range means the chance of repeat. default=0.5

big_small_pics's People

Contributors

amirhrajabiz1 avatar

Watchers

 avatar

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.