A CLI tool to launch a OpenCV view to add a mosaic to the image.
Project description
Mosaic It
A UI utility to add mosaic to a picture with OpenCV.
Installation
Prepare Pipx
Pipx allows users to install and run Python applications easily. Please follow this tutorial to install it.
Or using following scripts to install it:
On Linux (using APT):
sudo apt install pipx
pipx ensurepath
sudo pipx ensurepath --global # optional to allow pipx actions with --global argument
On Windows (using PIP):
py -m pip install --user pipx
If there is a warning looks like this:
ARNING: The script pipx.exe is installed in `<USER folder>\AppData\Roaming\Python\Python3x\Scripts` which is not on PATH
If so, go to the mentioned folder, allowing you to run the pipx executable directly. Enter the following line (even if you did not get the warning):
.\pipx.exe ensurepath
Install mosaic-it
Install mosaic-it from this Git repository using the following command:
pipx install git+https://github.com/OldVincent/MosaicIt.git
Uninstall mosaic-it
Using the following command to uninstall mosaic-it:
pipx uninstall mosaic-it
How It Works
This tool first reduces the selected area (using linear interpolation) and then enlarges it to its original size (using nearest interpolation).
Usage
mosaic-it <INPUT_IMAGE_PATH> [-i <MOSAIC_INTENSITY>] [-o <OUTPUT_IMAGE_PATH>]
Use mosaic-it --help to see more commands.
Parameter Default Value
- Mosaic Intensity: 10
- Output Image Path: In the same directory as the input image, but with a "_mosaic" as a postfix in the name.
Preview
This picture is processed with mosaic-it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mosaic_it-0.0.1.tar.gz.
File metadata
- Download URL: mosaic_it-0.0.1.tar.gz
- Upload date:
- Size: 706.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef03fcd9f148344e91f9d352bb84b585145e3c741abf34f6e82db1ad2e00d7cb
|
|
| MD5 |
d1fe9f1c53deda49a51f630c55c58d56
|
|
| BLAKE2b-256 |
ddc8b9adbd13d6dc716c06719d6e74ef88d078a93fcd1e77d0598aa8f2decab4
|
File details
Details for the file mosaic_it-0.0.1-py3-none-any.whl.
File metadata
- Download URL: mosaic_it-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7aaca001ab563a9e6c60330b41b757ee893621d304281c06d4518d152b820ca3
|
|
| MD5 |
17610629682aaaeabac4a529d56796d6
|
|
| BLAKE2b-256 |
71987ff5e982649803443c8af28617521aea736e11d66ef4d5dda1c9b1e1798c
|