Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seyfu-t/jbarcode_1d
A re-implementation and extension of iyyun/Barcode_1D in java
https://github.com/seyfu-t/jbarcode_1d
barcode barcode-detection barcode-detector opencv opencv-java opencv4
Last synced: 13 days ago
JSON representation
A re-implementation and extension of iyyun/Barcode_1D in java
- Host: GitHub
- URL: https://github.com/seyfu-t/jbarcode_1d
- Owner: seyfu-t
- License: apache-2.0
- Created: 2024-09-02T00:06:54.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-17T14:06:36.000Z (27 days ago)
- Last Synced: 2024-10-19T20:13:41.358Z (25 days ago)
- Topics: barcode, barcode-detection, barcode-detector, opencv, opencv-java, opencv4
- Language: Java
- Homepage:
- Size: 380 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JBarcode_1D (WIP)
### A Java Reimplementation and Extension of [iyyun/Barcode_1D](https://github.com/iyyun/Barcode_1D)
This project is a Java reimplementation and extension of [@iyyun](https://github.com/iyyun)'s [Barcode_1D](https://github.com/iyyun/Barcode_1D). It aims to replicate the original functionality as closely as possible while also providing additional features and a more user-friendly interface. The project can be used as a standalone CLI tool or integrated as a Maven library in other projects.
## This repo is a work-in-progress and so is this readme file
## Supported file formats
Any filetype that is supported by `Imgcodecs.imread(String filepath)` is supported.
According to the docs of OpenCV 4.9's maven package these are:
- Windows bitmaps - \*.bmp, \*.dib (always supported)
- JPEG files - \*.jpeg, \*.jpg, \*.jpe
- JPEG 2000 files - \*.jp2
- Portable Network Graphics - \*.png
- WebP - \*.webp
- AVIF - \*.avif
- Portable image format - \*.pbm, \*.pgm, \*.ppm \*.pxm, \*.pnm (always supported)
- PFM files - \*.pfm
- Sun rasters - \*.sr, \*.ras (always supported)
- TIFF files - \*.tiff, \*.tif
- OpenEXR Image files - \*.exr
- Radiance HDR - \*.hdr, \*.pic (always supported)
- Raster and Vector geospatial data supported by GDAL## Requirements
- Java 22 (Java 8 probably just works fine)
- OpenCV 4.x or higher## Installation
WIP### Command Line Interface (CLI)
You can also use JBarcode_1D directly from the command line by running the JAR file.
## Usage
### CLI Usage
After building the project, you can run it via the command line using the following command:
```sh
java -jar target/JBarcode_1D-1.0-SNAPSHOT-jar-with-dependencies.jar --file [--preview]
```### Command Line Options
- `--file ` (or `-f `): Specifies the path to the image file to be processed. This option is **required**.
- `--preview` (or `-p`): Displays the image with detected rectangles drawn on it. This option is **optional**.
- `--help` (or `-h`): Displays the help message, listing all available options.## Contribution
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
## License
This project is licensed under the Apache 2.0 License. See the [LICENSE](LICENSE) file for more details.