Feeling canvas
The function is very powerful. Can it recognize the background color of normal photos?
My own idea is to use getImageData
to obtain the RGBA value of the pixel, and then identify the most identical values around it as the background color.
However, normal photos will be affected by factors such as light, resulting in normal recognition.
Is there any way to do this?
Please explain, thank you.