Skip to content

Angular service for capturing and managing photos using Capacitor plugins.

Notifications You must be signed in to change notification settings

LaodiHS/photo-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Photo Service

License Version Platform

Photo Service is an Angular service for capturing and managing photos using Capacitor plugins. It provides functionality for capturing photos, saving them, recognizing text from images using OCR, and managing photo storage.

Photo Service Demo

Features

  • Capture photos using the device camera
  • Save photos to the local filesystem
  • Recognize text from images using OCR
  • Manage photo storage and retrieval

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/photo-service.git
    

cd photo-service npm install ionic serve import { PhotoService, UserPhoto } from './photo-service.module'; constructor(private photoService: PhotoService) {} // Capture a new photo and save it this.photoService.addNewPhotoToGallery();

// Load saved photos from storage const photos: UserPhoto[] = await this.photoService.loadSavedPhotos();

// Recognize text from an image const result = await this.photoService.recognizeText(imageData); console.log('OCR result:', result); Dependencies

@angular/core
@angular/platform-browser
@capacitor/camera
@capacitor/core
@capacitor/filesystem
@capacitor/preferences
@ionic/angular
capacitor-document-scanner
tesseract.js
@awesome-cordova-plugins/ocr

License

This project is licensed under the MIT License.

About

Angular service for capturing and managing photos using Capacitor plugins.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published