Bezier-Maker is a Python application that converts raster images into Bezier curve LaTeX expressions suitable for direct use in Desmos. It provides an automated way to recreate images as mathematical curve representations.
A live Streamlit demo is available here:
https://desmos-bezier-renderer.streamlit.app/
This project processes an input image, extracts curve information, and generates Bezier curve equations formatted for Desmos. The resulting output can be used to render images as parametric curves in a mathematical plotting environment.
The application is built with Python and delivered through a Streamlit interface for ease of use.
- Image-to-Bezier curve conversion
- LaTeX output compatible with Desmos
- Streamlit-based graphical interface
- Local or web-based execution
- Python 3.10 or later
- pip
Clone the repository:
git clone https://github.com/MMOSHII/Berzier-Maker.git
cd Berzier-MakerCreate and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtRun the Streamlit application:
streamlit run app.pyOnce running:
- Upload an image through the web interface
- Adjust available parameters if applicable
- Generate Bezier curve LaTeX expressions
- Paste the output directly into Desmos to visualize the curves
The application generates Bezier curve equations formatted for use as parametric expressions in Desmos, for example:
(x(t), y(t)) = (...)Each generated curve corresponds to a portion of the input image.
- PNG
- JPG / JPEG
- Any format supported by Pillow (PIL)
Contributions are welcome. Please fork the repository, create a feature branch, and submit a pull request with clear descriptions of your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
This project is experimental. Output quality depends on the complexity and resolution of the input image, as well as the limitations of curve approximation.