VlmClassificationStrategy
Strategy for how zones are sent to the VLM for classification.
from nutrient_sdk import VlmClassificationStrategyValues
| Name | Value | Description |
|---|---|---|
VlmClassificationStrategy.ONE_SHOT | 0 | Send a single full-page image with bounding box coordinates in the prompt. The VLM performs spatial reasoning to classify each zone by its bbox. |
VlmClassificationStrategy.MULTI_ZONE | 1 | Crop each zone from the source image and send multiple zone images per VLM call. The VLM classifies each cropped image by its visual content. Supports batching (BatchSize) and parallel execution (MaxConcurrency). |
Usage Example
from nutrient_sdk import VlmClassificationStrategy
# Access enum valuesvalue = VlmClassificationStrategy.ONE_SHOTprint(f"Value: {value}") # Output: Value: VlmClassificationStrategy.ONE_SHOTprint(f"Integer value: {value.value}") # Output: Integer value: 0