/CellularImage

Python application for recreating an image using small images loaded from Unsplash

Primary LanguagePythonApache License 2.0Apache-2.0

Cellular Image

Recreate an image with many other images as cells

Input output

Built With

  • Python
  • OpenCV

Prerequisites

All the modules you need for running the project are listed in the requirements.txt you can install them easily using this command:

pip install -r requirements.txt

Usage

You can simply run the application using command below:

python3 cellular-images.py -i YOUR_IMAGE_PATH

There is also some other flags that you can use in your command:

  • -h

You can use this flag for seeing the help menu. use it like:

python3 cellular-images.py -h
  • --output or -o

Output path with png format. Its default value is ./output.png. sample:

python3 cellular-images.py -i YOUR_IMAGE_PATH -o OUTPUT_IMAGE_PATH
  • --output_size or -os

Number of cell images used in every row of output image. Its default value is 200. sample:

python3 cellular-images.py -i YOUR_IMAGE_PATH -o OUTPUT_IMAGE_PATH -os 100
  • --cell_size or -cs

Size of cell images in the output image. Its default value is 50. sample:

python3 cellular-images.py -i YOUR_IMAGE_PATH -o OUTPUT_IMAGE_PATH -os 100 -cs 75

License

Copyright [2023] [HamidReza Shajaravi]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.