Skip to main content
Participant
February 10, 2023
Question

How to identify image type is halftone or line art

  • February 10, 2023
  • 4 replies
  • 1399 views

Hi,

      How to identify image type is halftone or lineArt. Please help me.

Thanks in advance .

 

This topic has been closed for replies.

4 replies

Stephen Marsh
Community Expert
Community Expert
February 14, 2023

I know of no way to detect this with an action or script.

 

This would likely take machine vision/learning, AI etc.

 

In the frequency domain, the repeating patterns formed by a regular halftone screen do create a different image than a lineart image.

 

Example:

 

 

So potentially, using an FFT transform plugin, post-processing and histogram evaluation, I guess it might be possible for this to be scripted.

 

EDIT:

Perhaps a simple evaluation of the histogram of both images converted to 8bpc may be enough, if you can find consistent weighting of the STD-DEV, MEDIAN or MEAN values of one type of image vs. another. I would wish to test using a wide variety of images though, both lineart and halftone... So the FFT suggestion may be taking this too far, it just came to mind as the repeating pattern is visually obvious, but perhaps not needed or helpful for histogram evaluation.

Participant
February 10, 2023

Hi,

        How to identify image type is halftone or lineArt in photoshop using extend java scripts. Please help me.

Thanks in advance 

Participant
February 10, 2023

Hi,

How to find  the Images type is Halftone or LineArt in Photoshop using extend java script. Kindly help me .

Thnks in advance.

Bernd Alheit
Community Expert
Community Expert
February 10, 2023

Try the forum for Photoshop.

It is not possible with a script in Adobe Acrobat.

Stephen Marsh
Community Expert
Community Expert
February 10, 2023

Can we presume that both files are bitmap mode, 1-bit files?

Legend
February 10, 2023

Zoom in to 100% or maybe 400% to look for a halftone pattern. Use your knowledge. I do t think any software will tell you. Be aware that in very old illustrations, halftoning was handmade, so it would be both.