javascript - Can canvas realize the function of PS magic eraser?
高洛峰
高洛峰 2017-05-16 13:24:09
0
1
557

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.

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
漂亮男人

http://leimi.github.io/drawin...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!