John-sCC / jcc_frontend

Apache License 2.0
0 stars 0 forks source link

JCC - Image Recognition Progress Made #30

Open raymondYsheng opened 7 months ago

raymondYsheng commented 7 months ago

Image Recognition

Key Commits:

Backend-Uploading Backend-OCR functionality Frontend-Fix Cropping Frontend-Images are reloaded on Upload

What has been accomplished (Backend)

Summary: The backend now has an api endpoint that receives an image and outputs all numbers recognized and identified in the image. When the image is uploaded, it is first stored into a temporary directory before being stored in the file system under the "./imagerec/StoredImages" folder. Then it uses the OCRService to simply call the Tesseract API and return its output: Image Image

What has been accomplished (Frontend)

Summary: The frontend allows users to upload an image (currently the image only works with typed content because Tesseract struggles to recognize handwriting) and the crop the image to show only the numbers before sending the new cropped image to the backend. It makes use of the cropper.js library and provides image previews of both the pre-cropped image and the post-cropped image. Image Image For the future, we can add a default image that displays in the preview section before any file has been uploaded

Image Recognition

What has been accomplished (Backend)

Summary: The backend now has an api endpoint that receives an image and outputs all numbers recognized and identified in the image. When the image is uploaded, it is first stored into a temporary directory before being stored in the file system under the "./imagerec/StoredImages" folder. Then it uses the OCRService to simply call the Tesseract API and return its output: Image Image

What has been accomplished (Frontend)

Summary: The frontend allows users to upload an image (currently the image only works with typed content because Tesseract struggles to recognize handwriting) and the crop the image to show only the numbers before sending the new cropped image to the backend. It makes use of the cropper.js library and provides image previews of both the pre-cropped image and the post-cropped image. Image Image For the future, we can add a default image that displays in the preview section before any file has been uploaded

| Raymond Sheng | Backend-Uploading, Backend-OCR functionality, Frontend-Fix Cropping, Frontend-Images are reloaded on Upload | I finished both the frontend and backend integration for the image recognition/OCR aspect of our stats app, centering on an easier uploading of data. I was primarily responsible for integrating Tesseract into our project backend. |