using ImageMagick;
using Process.Abstract;
using System.Collections.Generic;
using System.Linq;

namespace Ocr.Tesseract.Screenshots;

public abstract class SingleImageProcessor : Processor<MagickImage, MagickImage>
{
  /// <inheritdoc />
  public override IEnumerable<MagickImage> Process(
    IEnumerable<MagickImage> inputs
  ) => inputs.Select(Process);


  protected abstract MagickImage Process(MagickImage image);
}