Recreate an image with many other images as cells
Input | output |
---|---|
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
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
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.