Skip to content

chohra-med/ocr-nodejs

Repository files navigation

Ocr-node

A NodeJs application using OCR

tags: #nodejs #javascript #ocr #ES6 #babel

get all images Delete an Image by name

Features

  • Get Text from Image
  • Store image's Text at a database
  • different language
  • Scan Images only one time
  • Possible extention

Remark

  • We put Images file so if we want to test it with a Fronted, we can store the images at that folder for traitement and delete them after if demanded

Technologies

Structure

  • /src
    • Models : for our Schemas
    • Controllers : to put the functions
    • Routes : our routes
    • Images : where we can store the images that need to be processes

Installation

  • touch .env
  • add $PORT variable and MongoDB url -put an Image at : /src/images folder
  • go to : src/controllers/TesseractController.js ,change the variable imageName at getTextFromImage function with the name of your image
  • npm run start_dev
  • $get http://localhost:5000/api/tessarect
  • the link with all the image's text : http://localhost:5000/api/tessarect/all
  • you can manipulate some functions such as deleting or you send the file name using Postman for example and using imageName in your body

Support

Reach out to me at one of the following places!


License

License

About

A simple Ocr test using NodeJs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published