Scheduled Maintenance
-
February 10, 2026, from 8:00 AM to 9:00 AM PST. Account-related operations might be temporarily unavailable.

Use Classify Catalogue to SpeedUp Classification

If you have generated cache to optimize the classification speed, Look to (Create Classification Cache), you can utilize it by calling `EnableCacheLookup(true)` for `TemplateClassifier.Builder`.

1 var inputFile = "./input_file.tif";
2 var templatesFolder = "./templates";
3
4 using TemplatesCollection templates = new TemplatesCollection.Builder()
5 .FromSourceFolder(templatesFolder)
6 .Build();
7
8 using TemplateClassifier classifier = new TemplateClassifier.Builder()
9 .SetTemplatesSource(templates)
10 .EnableCacheLookup (true)
11 .SetRuntimeFolder("./runtimes")
12 .SetLicense(["...", "..."])
13 .Build();
14
15 using FileStream stm = new FileStream(inputFile, FileMode.Open, FileAccess.Read, FileShare.Read);
16
17 Result<ClassifyResult> classifyResult = classifier.Classify(new InputStream(stm));

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales