mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 16:37:48 +01:00
Config key for image sequence analysis sample count
This commit is contained in:
@@ -343,6 +343,7 @@ namespace Flowframes.IO
|
||||
h265Crf,
|
||||
av1Crf,
|
||||
imgSeqFormat,
|
||||
imgSeqSampleCount,
|
||||
jpegFrames,
|
||||
jpegInterp,
|
||||
keepAspectRatio,
|
||||
|
||||
@@ -166,7 +166,8 @@ namespace Flowframes.Media
|
||||
return false;
|
||||
}
|
||||
|
||||
Image[] randomSamples = files.OrderBy(arg => Guid.NewGuid()).Take(10).Select(x => IoUtils.GetImage(x.FullName)).ToArray();
|
||||
int sampleCount = Config.GetInt(Config.Key.imgSeqSampleCount, 10);
|
||||
Image[] randomSamples = files.OrderBy(arg => Guid.NewGuid()).Take(sampleCount).Select(x => IoUtils.GetImage(x.FullName)).ToArray();
|
||||
|
||||
bool allSameSize = randomSamples.All(i => i.Size == randomSamples.First().Size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user