scorelab / imagelab

ImageLab is a standalone tool which supports anyone to get started with image processing related concepts and techniques in an interactive, less logical way.
Apache License 2.0
46 stars 60 forks source link

Add: Backend integration and refactoring #154

Closed abdullahranginwala closed 1 year ago

abdullahranginwala commented 1 year ago

Description

The backend was earlier written to work in the renderer process. Hence, it had access to the DOM elements. I have reconfigured the backend such that opencv.js now works in Node.js. I have also setup IPC between the react and node.js process to efficiently handle the connection between the backend and the front-end.

Since the backend was a major chunk of the application, and majority of the functionality comes from the backend, I couldn't break up the PR. However, I have added multiple commits for better maintainability.

Type of change

Also, include screenshots for verification and reviewing purpose.

https://github.com/scorelab/imagelab/assets/19731056/a857b603-56ca-4297-a99c-0d4cb3b6222e

Checklist: