FoxxMD / context-mod

an event-based, reddit moderation bot built on top of snoowrap and written in typescript
https://contextmod.dev
MIT License
49 stars 11 forks source link

Implement Logo detection #99

Open FoxxMD opened 1 year ago

FoxxMD commented 1 year ago

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:

FoxxMD commented 1 year ago

Template matching js example

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

FoxxMD commented 1 year ago

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