https://github.com/milanesaopa/image-text-extractor
Xcrap Image Text Extractor is a package of the Xcrap framework that abstracts the extraction of texts from images using the node-tesseract-ocr library.
https://github.com/milanesaopa/image-text-extractor
apache background-subtraction computer-vision gnome image image-to-text llm machine-learning nuxt ocr-text-reader remove-grid tensorflow text-recognition vue
Last synced: 11 months ago
JSON representation
Xcrap Image Text Extractor is a package of the Xcrap framework that abstracts the extraction of texts from images using the node-tesseract-ocr library.
- Host: GitHub
- URL: https://github.com/milanesaopa/image-text-extractor
- Owner: milanesaopa
- License: mit
- Created: 2025-04-14T23:49:39.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-07-13T07:50:51.000Z (12 months ago)
- Last Synced: 2025-07-13T09:29:22.667Z (12 months ago)
- Topics: apache, background-subtraction, computer-vision, gnome, image, image-to-text, llm, machine-learning, nuxt, ocr-text-reader, remove-grid, tensorflow, text-recognition, vue
- Language: TypeScript
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Image Text Extractor πΈπ
 [](https://github.com/milanesaopa/image-text-extractor/stargazers) [](https://github.com/milanesaopa/image-text-extractor/network)
Welcome to the **Image Text Extractor**! This package is part of the Xcrap framework. It simplifies the process of extracting text from images using the `node-tesseract-ocr` library. Whether you are working on a web application, a data scraping project, or simply need to convert images into text, this tool is designed for you.
## Table of Contents
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)
- [Support](#support)
## Features β¨
- **Easy Integration**: Seamlessly integrate into your JavaScript or TypeScript projects.
- **High Accuracy**: Utilizes the powerful `node-tesseract-ocr` library for reliable text extraction.
- **Cross-Platform**: Works on various platforms, making it versatile for different development environments.
- **Lightweight**: Minimal dependencies ensure a smooth experience.
- **Active Development**: Regular updates and improvements based on community feedback.
## Installation βοΈ
To get started, you need to install the package. You can do this using npm or yarn. Hereβs how:
### Using npm
```bash
npm install image-text-extractor
```
### Using yarn
```bash
yarn add image-text-extractor
```
Once installed, you can begin using the extractor in your project.
## Usage π
Hereβs a simple example to get you started.
### Basic Example
```javascript
const { extractText } = require('image-text-extractor');
const imagePath = 'path/to/your/image.png';
extractText(imagePath)
.then(text => {
console.log('Extracted Text:', text);
})
.catch(err => {
console.error('Error extracting text:', err);
});
```
### Advanced Options
You can customize the extraction process with various options. Hereβs an example:
```javascript
const { extractText } = require('image-text-extractor');
const imagePath = 'path/to/your/image.png';
const options = {
lang: 'eng', // Language for text extraction
oem: 1, // OCR Engine Mode
psm: 3 // Page Segmentation Mode
};
extractText(imagePath, options)
.then(text => {
console.log('Extracted Text:', text);
})
.catch(err => {
console.error('Error extracting text:', err);
});
```
### Supported Formats
The extractor supports various image formats including:
- PNG
- JPEG
- BMP
- TIFF
Make sure your images are in one of these formats for optimal results.
## Contributing π€
We welcome contributions! If you want to help improve the Image Text Extractor, please follow these steps:
1. Fork the repository.
2. Create a new branch for your feature or bug fix.
3. Make your changes and commit them.
4. Push your branch to your forked repository.
5. Create a pull request.
We appreciate all contributions, big or small!
## License π
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Support π¬
For any questions or issues, feel free to open an issue on GitHub. You can also check the [Releases](https://github.com/milanesaopa/image-text-extractor/releases) section for the latest updates and downloads.
## Links π
- [GitHub Repository](https://github.com/milanesaopa/image-text-extractor)
- [Releases](https://github.com/milanesaopa/image-text-extractor/releases)
## Conclusion π
Thank you for checking out the Image Text Extractor! We hope this tool helps you in your projects. If you find it useful, please star the repository and share it with others. Happy coding!
---
For the latest releases, visit our [Releases](https://github.com/milanesaopa/image-text-extractor/releases) section. Download the latest version and start extracting text from images today!