{"id":21360103,"url":"https://github.com/gosha20777/noteshrink","last_synced_at":"2025-07-13T02:31:20.670Z","repository":{"id":112517720,"uuid":"127302247","full_name":"gosha20777/NoteShrink","owner":"gosha20777","description":"This script makes scans and handwritten notes more beautiful! The script clears synopses and scans from \"dirt\", improves their readability and reduces the size of the image.","archived":false,"fork":false,"pushed_at":"2019-12-03T21:36:19.000Z","size":10202,"stargazers_count":21,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-07T03:36:23.642Z","etag":null,"topics":["computer-vision","csharp","dotnet","image","image-processing","notes-app","python","scans"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gosha20777.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-29T14:19:48.000Z","updated_at":"2024-08-22T05:31:59.000Z","dependencies_parsed_at":"2023-05-04T13:48:31.619Z","dependency_job_id":null,"html_url":"https://github.com/gosha20777/NoteShrink","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gosha20777/NoteShrink","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosha20777%2FNoteShrink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosha20777%2FNoteShrink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosha20777%2FNoteShrink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosha20777%2FNoteShrink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gosha20777","download_url":"https://codeload.github.com/gosha20777/NoteShrink/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosha20777%2FNoteShrink/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265080732,"owners_count":23708243,"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":["computer-vision","csharp","dotnet","image","image-processing","notes-app","python","scans"],"created_at":"2024-11-22T05:32:31.175Z","updated_at":"2025-07-13T02:31:20.637Z","avatar_url":"https://github.com/gosha20777.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"NoteShrink\n==========\nThis project makes scans and handwritten notes more beautiful! The program clears synopses and scans from \"dirt\", improves their readability and reduces the size of the image **up to 10,000 times(!)**.\n\n## Tasks\n- [X] Create an algoritm and console app\n- [X] Create GUI\n- [X] Add scan and print feature\n- [ ] Add notes drawing and editing features\n    - [ ] Add a pen tool\n\t- [ ] Add a text tool\n\t- [ ] Add an eraser tool\n- [ ] Add the ability to add more than one page `(30%)`\n- [ ] Add the ability to save to PDF\n- [ ] Add support for multi-thread processing\n- [ ] Translate Python to C/C++ `(25%)`\n- [ ] Maybe redraw GUI\n- [ ] Create a web site with the same functionality\n\n## Example\n\n#### Input [4.33 Mb]\n\n![scan1](/examples/Input2.png \"Input image. 4.33 Mb\")\n\n#### Output [44.1 Kb]\n\n![scan2](/examples/output2.png \"Output image. 44.1 Kb\")\n\nSee more examples at [here](/examples)\n\n## Building\n\n### Python\nIf you want to use the console version you may use only `Python` module. You can compile it to win32 `EXE` file with `cx_Freeze` ([How convert a .py to .exe](https://stackoverflow.com/questions/41570359/how-can-i-convert-a-py-to-exe-for-python)). You may find a python script [here](/PythonModule/noteshrink.py).\n\n#### Requirements for python\n\n - Python 3\n - NumPy 1.10 or later\n - SciPy\n - ImageMagick\n - Image module Pillow\n\n#### Usage\n\n```\n./noteshrink.py IMAGE1 [IMAGE2 ...]\n```\nor\n```\nconvert scanned, hand-written notes to PDF\n\npositional arguments:\n  IMAGE               files to convert\n\noptional arguments:\n  -h, --help          show this help message and exit\n  -q                  reduce program output\n  -b BASENAME         output PNG filename base (default page)\n  -o PDF              output PDF filename (default output.pdf)\n  -v PERCENT          background value threshold % (default 25)\n  -s PERCENT          background saturation threshold % (default 20)\n  -n NUM_COLORS       number of output colors (default 8)\n  -p PERCENT          % of pixels to sample (default 5)\n  -w                  make background white\n  -g                  use one global palette for all pages\n  -S                  do not saturate colors\n  -K                  keep filenames ordered as specified; use if you *really*\n                      want IMG_10.png to precede IMG_2.png\n  -P POSTPROCESS_CMD  set postprocessing command (see -O, -C, -Q)\n  -e POSTPROCESS_EXT  filename suffix/extension for postprocessing command\n  -O                  same as -P \"optipng -silent %i -out %o\"\n  -C                  same as -P \"pngcrush -q %i %o\"\n  -Q                  same as -P \"pngquant --ext %e %i\"\n  -c COMMAND          PDF command (default \"convert %i %o\")\n```\n\n### CShrp\n 1. Compile `Python` to `EXE`\n 2. Build C# project\n 3. Copy a Python `exe`, `dll` file and `lib` folder to `\\bin\\Debug\\` or `\\bin\\Release\\` directory (I'm sorry for this, but I promise I will fix it soon).\n\n### Requirements for CSharp\n - Microsoft Visual C++ 2017 Redistributable Package\n\n## license\nThis project based on https://github.com/mzucker/noteshrink\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgosha20777%2Fnoteshrink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgosha20777%2Fnoteshrink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgosha20777%2Fnoteshrink/lists"}