https://github.com/0xnu/apollo
Apollo provides methods for loading, manipulating, and saving images, including resizing, grayscale conversion, thresholding, and basic feature extraction.
https://github.com/0xnu/apollo
image image-classification image-processing image-recognition
Last synced: about 1 year ago
JSON representation
Apollo provides methods for loading, manipulating, and saving images, including resizing, grayscale conversion, thresholding, and basic feature extraction.
- Host: GitHub
- URL: https://github.com/0xnu/apollo
- Owner: 0xnu
- License: bsd-3-clause
- Created: 2024-09-08T16:59:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-15T17:34:34.000Z (almost 2 years ago)
- Last Synced: 2025-03-25T18:12:14.778Z (about 1 year ago)
- Topics: image, image-classification, image-processing, image-recognition
- Language: Zig
- Homepage:
- Size: 3.32 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
## Apollo
Apollo provides methods for loading, manipulating, and saving images, including resizing, grayscale conversion, thresholding, and basic feature extraction.
### Features
- Image loading from file path
- Image resizing with nearest-neighbor interpolation
- RGB to grayscale conversion
- Binary thresholding for grayscale images
- Simple feature extraction (edge detection)
- Image saving to file
### Requirements
- [Zig](https://en.wikipedia.org/wiki/Zig_(programming_language)) 0.11.0 or later
### How to Use
To build the project, execute:
```sh
## BUILD ##
zig build
## EXAMPLE ##
zig build run
## TEST ##
zig build test
## TFLITE ##
brew install tensorflow
zig build run-mnist-convert
```
> mnist_model.keras size is 2.7 MB and mnist_model.tflite size is 12 Bytes.
The resulting binary will be located in `zig-out/`.
### License
This project is licensed under the [BSD 3-Clause License](LICENSE) - see the file for details.
### Copyright
(c) 2024 [Finbarrs Oketunji](https://finbarrs.eu). All Rights Reserved.