context-mod icon indicating copy to clipboard operation
context-mod copied to clipboard

Implement Logo detection

Open FoxxMD opened this issue 1 year ago • 2 comments

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?

FoxxMD avatar Aug 09 '22 14:08 FoxxMD

Template matching js example

Could also be used to determine if an image is cropped or not -- https://stackoverflow.com/a/60120165/1469797

FoxxMD avatar Aug 18 '22 19:08 FoxxMD

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

FoxxMD avatar Aug 18 '22 19:08 FoxxMD