context-mod
context-mod copied to clipboard
Implement Logo detection
Based on a request by u/BootsMade4Walking -- add ability for CM to detect solid, well-defined logos in an image.
Potentially can use openCV (using opencv.js?) template matching, assuming the logo is provided and well-isolated. Potentially can make the detection scale/rotation agnostic.
To determine:
- [ ] Possible to use opencv.js in CM?
- [ ] Can use opencv.js for template matching with decent performance?
Could also be used to determine if an image is cropped or not -- https://stackoverflow.com/a/60120165/1469797
Will need to integrate openCV dependency into docker and provide a path/docs for doing so on non-docker installations.
https://github.com/UrielCh/opencv4nodejs