{"id":18634839,"url":"https://github.com/isu-kim/pltpics","last_synced_at":"2025-04-11T07:33:38.139Z","repository":{"id":44888323,"uuid":"512606334","full_name":"isu-kim/PltPics","owner":"isu-kim","description":"A Python script that draws pictures to Matplotlib.pyplot","archived":false,"fork":false,"pushed_at":"2023-01-19T16:44:40.000Z","size":9370,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T11:21:53.849Z","etag":null,"topics":["fun","pyplot","python"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isu-kim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-11T03:41:52.000Z","updated_at":"2025-02-02T20:22:42.000Z","dependencies_parsed_at":"2023-02-11T10:31:02.161Z","dependency_job_id":null,"html_url":"https://github.com/isu-kim/PltPics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isu-kim%2FPltPics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isu-kim%2FPltPics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isu-kim%2FPltPics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isu-kim%2FPltPics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isu-kim","download_url":"https://codeload.github.com/isu-kim/PltPics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248358919,"owners_count":21090448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fun","pyplot","python"],"created_at":"2024-11-07T05:22:03.868Z","updated_at":"2025-04-11T07:33:36.490Z","avatar_url":"https://github.com/isu-kim.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PltPics\nA simple script that draws picture into `matplotlib.pyplot` using bezier curves.\n\n## Special Thanks To\nkevinjycui for https://github.com/kevinjycui/DesmosBezierRenderer\n\n## Installation\n### Linux\n1. Git clone this repository\n2. `sudo apt-get install ffmpeg`\n3. `sudo apt update`\n4. `sudo apt install git python3-dev python3-pip build-essential libagg-dev libpotrace-dev pkg-config`\n5. `pip install -r requirements.txt`\n\n### Mac\n1. Git clone this repository\n2. `brew install ffmpeg` (or `brew` like manager)\n3. `brew install potrace`\n4. `brew install pkg-config`\n5. `brew install libagg`\n6. `pip install -r requirements.txt`\n\n## Using Program\n### `ipynb_version`\n1. Visit directory `ipynb_version`\n2. `jupyter notebook`\n3. `./ipynb_version/DrawImage.ipynb` is for drawing images.\n4. `./ipynb_version/ProcessVideo.ipynb` is for processing videos.\n\n### `python_version`\n1. Visit directory `python_version`\n2. `python run_me.py`\n3. For arguments, please check [here](https://github.com/gooday2die/PltPics/tree/main/python_version)\n\n\n## Features\n### Photo to Graph\n*My profile image converted*\n\n![New Project](https://user-images.githubusercontent.com/49092508/178396834-84758ad6-c4c0-4cba-b49a-e800c6bc23e8.png)\n\n\n### Video to Graphs\n*Noot Noot Meme converted*\n\nhttps://user-images.githubusercontent.com/49092508/178650966-927320a6-060f-4e28-b119-0f61f53dd966.mp4\n\n## How is this possible?\n1. Extract frames of video by [ffmpeg](https://ffmpeg.org)\n1. Convert image to vector images using [pypotrace](https://pypi.org/project/pypotrace/).\n2. Represent those contours using Bezier curves.\n3. Use `matplotlib.pyplot` to draw Bezier curves using some features.\n4. Save those `pyplot`s into images. \n5. Use [ffmpeg](https://ffmpeg.org) to turn those images into video.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisu-kim%2Fpltpics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisu-kim%2Fpltpics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisu-kim%2Fpltpics/lists"}