How can I automatically determine whether an image file depicts a photo or a 'graphic'?

前端 未结 2 1241
刺人心
刺人心 2020-12-17 07:24

How can I automatically determine whether an image file depicts a photo or a \'graphic\'?

For example using Imagemagick?

2条回答
  •  再見小時候
    2020-12-17 07:48

    Compute the entropy of the image. Artificial images usually have much lower entropy than photographs.

提交回复
热议问题