Versions in this module Expand all Collapse all v1 v1.0.0 Sep 27, 2024 Changes in this version + type ImageService struct + func NewImageService(sm scs.SessionManager) *ImageService + func (s *ImageService) AddAllowedImage(ctx context.Context, image *types.ImageData) error + func (s *ImageService) GetCurrentImage(ctx context.Context) (*types.ImageData, error) + func (s *ImageService) ImageIsAllowed(ctx context.Context, imageName string) bool + func (s *ImageService) SetCurrentImage(ctx context.Context, image *types.ImageData) + type OCRService struct + func NewOCRService(clientStore *stores.OCRClientStore) *OCRService + func (s *OCRService) GetLanguages(sessionId string) []string + func (s *OCRService) GetPSM(sessionId string) gosseract.PageSegMode + func (s *OCRService) OcrFromBytes(sessionId string, imageByte []byte) (string, error) + func (s *OCRService) SetLanguages(sessionId string, languages []string) error + func (s *OCRService) SetPSM(sessionId string, psm gosseract.PageSegMode) error + type SessionService struct + func NewSessionService(sm scs.SessionManager) *SessionService + func (s *SessionService) GetOrGenerateId(ctx context.Context) string