CLI tool to convert images to the LaTeX bezier curves formulas
Project description
Img2Desmos
This is a simple python script that converts an image to the bezier curves which can be plotted on desmos.
Requirements
- Python 3.11
- Poetry
- [Optional] Chafa (for previewing the images in terminal)
Installation
pip install img2desmos
Usage
> img2desmos --help
Usage: img2desmos [OPTIONS] IMG
╭─ Arguments ───────────────────────────────────────────────────────────────────────────────╮
│ * img TEXT Path to the image to convert into graph [default: None] [required] │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ─────────────────────────────────────────────────────────────────────────────────╮
│ --output -o TEXT Output formulas file path [default: None] │
│ --preview -p Preview the img in a window (chafa is required) │
│ --upper INTEGER Upper threshold for the edge detection [default: 200] │
│ --lower INTEGER Lower threshold for the edge detection [default: 100] │
│ --help Show this message and exit. │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
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
img2desmos-0.1.2.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for img2desmos-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92250769ef367b965dbc560368b0b4767491512e5748eeee8a82feaf2cdf23ed |
|
MD5 | 15e100065790289f7f60c777f6a03f04 |
|
BLAKE2b-256 | 9a2a5be2686b32d457b09d007cbf4c2011d5279c38c7ce7a109158139c0f5116 |