{"id":38550308,"url":"https://github.com/songyz2019/hsi-preprocessing-toolkit","last_synced_at":"2026-03-07T09:14:59.397Z","repository":{"id":297246150,"uuid":"996079253","full_name":"songyz2019/hsi-preprocessing-toolkit","owner":"songyz2019","description":"A Hyperspectral Image Preprocessing Toolkit from HSI Camera to Machine Learning Dataset","archived":false,"fork":false,"pushed_at":"2026-01-23T08:12:32.000Z","size":19600,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-25T20:35:48.785Z","etag":null,"topics":["data-science","data-visualization","gradio","hyperspectral","image-processing","preprocessing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/songyz2019.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-06-04T12:30:04.000Z","updated_at":"2026-01-23T08:12:36.000Z","dependencies_parsed_at":"2025-12-11T19:13:25.472Z","dependency_job_id":null,"html_url":"https://github.com/songyz2019/hsi-preprocessing-toolkit","commit_stats":null,"previous_names":["songyz2019/hdr2mat","songyz2019/hsi-preprocessing-toolkit"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/songyz2019/hsi-preprocessing-toolkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songyz2019%2Fhsi-preprocessing-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songyz2019%2Fhsi-preprocessing-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songyz2019%2Fhsi-preprocessing-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songyz2019%2Fhsi-preprocessing-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/songyz2019","download_url":"https://codeload.github.com/songyz2019/hsi-preprocessing-toolkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songyz2019%2Fhsi-preprocessing-toolkit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30210647,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T09:02:10.694Z","status":"ssl_error","status_checked_at":"2026-03-07T09:02:08.429Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["data-science","data-visualization","gradio","hyperspectral","image-processing","preprocessing"],"created_at":"2026-01-17T07:32:45.199Z","updated_at":"2026-03-07T09:14:59.385Z","avatar_url":"https://github.com/songyz2019.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HSI Preprocessing Toolkit\n\n\n[![PyPI - Version](https://img.shields.io/pypi/v/hsi-preprocessing-toolkit.svg)](https://pypi.org/project/hsi-preprocessing-toolkit)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/hsi-preprocessing-toolkit)](https://pypi.org/project/hsi-preprocessing-toolkit)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/hsi-preprocessing-toolkit.svg)](https://pypi.org/project/hsi-preprocessing-toolkit)\n![GitHub Created At](https://img.shields.io/github/created-at/songyz2019/hsi-preprocessing-toolkit)\n![GitHub License](https://img.shields.io/github/license/songyz2019/hsi-preprocessing-toolkit)\n\n![](asset/screenshot.jpg)\n\nHSI Preprocessing Toolkit (HPT, formerly HDR2MAT) is a hyperspectral image preprocessing toolset that:\n1. Read the raw data directly from HSI cameras, and convert it into `.mat` file\n2. Read the `.mat` file\n3. Preview HSI and convert it to RGB `.png` file\n4. Crop, rotate, transform the HSI and preview in realtime\n5. Select spectrals of interest visually and save them into a `.mat` file\n6. Mix multiple HSI images with layers.\n7. Generate Spectral Profiles for visualization.\n8. Some other utils\n\n\n## Installation\n### Prerequisites\n1. A Chromium-based browser\n2. A modern OS\n\n### Manual\n1. Download [hpt.cmd](https://github.com/songyz2019/hsi-preprocessing-toolkit/blob/main/script/hpt.cmd) from GitHub release\n2. Double click the `hpt.cmd` file. \n\n\u003e **TIPS**: Make sure you have internet access during the first start\n\n### Install with uv\n1. Install [uv](https://docs.astral.sh/uv/) directly or with pip: `pip install uv`\n2. Install HPT: `uv tool install hsi-preprocessing-toolkit`\n3. Start HPT: `hsi_preprocessing_toolkit`\n\n### Install with pip\n1. Install HPT: `pip install hsi-preprocessing-toolkit`\n2. Start HPT: `hsi_preprocessing_toolkit`\n\n\u003e **TIPS**: It's not recommend to install CLI tools directly with pip, please use [uv tool](https://docs.astral.sh/uv/guides/tools/) or [pipx](https://pipx.pypa.io/) to install python applications in isolated environments.\n\n\n## Usage\nSee help by running:\n```sh\nhsi_preprocessing_toolkit --help\n```\n\n## FAQ\n\u003e Q: How is AI utilized in the codebase?  \n\u003e A: We only use AI as a chatbot. We have reviewed every line of code word-for-word, and 99% of he codebase is written by human directly.\n\n\u003e Q: Is there any security protection?  \n\u003e A: We implement baseline security practices on a best-effort basis. This includes the use of security tokens for authentication and a principle of least privilege (PoLP) design to minimize potential risks.\n\n## Contributions\nWe welcome all contributions. For obtaining, providing feedback and contributing to this project, follow the common practice and [GitHub Docs](https://docs.github.com/).\n\n## Credit\n1. [uv](https://docs.astral.sh/uv/) for providing a new reliable solution for Python application distribution.  \n2. `gradio` for modern Python Data Science UI \n3. `rasterio` for remote sensing data reading\n4. `scipy`, `numpy`, `matplotlib` and `einops`\n5. For more projects, see `pyproject.toml`\n\n\n## License\n\n```text\nCopyright (C) 2025  songyz2019\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License\nalong with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongyz2019%2Fhsi-preprocessing-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsongyz2019%2Fhsi-preprocessing-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongyz2019%2Fhsi-preprocessing-toolkit/lists"}