process_image.go 282 B

1234567891011121314
  1. package ocr
  2. func ProcessImage(rawPath string, stepList []string) (processedPath string, err error) {
  3. if len(stepList) < 1 {
  4. return rawPath, nil
  5. }
  6. processedPath, err = Preprocess(rawPath, stepList)
  7. if err != nil {
  8. return processedPath, err
  9. }
  10. return processedPath, nil
  11. }