This repository has been archived on 2024-06-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
thesis-src/Examples/CLI/Program.cs
2023-08-10 09:04:36 +02:00

17 lines
485 B
C#

using Common;
using Common.Extensions;
using ImageMagick;
var scanner = new ScreenshotScanner();
Console.WriteLine($"# Scanning: {string.Join(',', args)}...");
scanner.Process(GetImages(args));
Console.WriteLine($"# Results ({scanner.Lookup.Keys.Count}):");
Console.WriteLine(string.Join(' ', scanner.Lookup.Keys));
static IEnumerable<MagickImage> GetImages(IEnumerable<string> paths) => paths
.SelectMany(p => p.ExpandPath())
.Select(p => new MagickImage(p))
.ToArray();