Sends the photo to a multimodal VLM with a prompt that asks the
model to estimate Munsell hue / value / chroma per visible horizon
(when a Munsell reference card is in frame). Recorded as
extracted_vlm with the model's self-reported confidence;
photos without a reference card should yield confidence below 0.5
per the prompt specification.
Usage
extract_munsell_from_photo(
pedon,
image_path,
provider,
max_retries = 3L,
overwrite = FALSE,
prompt_name = "extract_munsell_from_photo",
schema_name = "horizon"
)Arguments
- pedon
A
PedonRecord.- image_path
Path to the image file (JPG / PNG).
- provider
A chat provider from
vlm_provider(or aMockVLMProviderfor testing).- max_retries
Integer; how many times to re-prompt on validation failure. Default 3.
- overwrite
If
TRUE, lower-authority values are allowed to clobber higher-authority ones. DefaultFALSE.- prompt_name
Override the default prompt template (
"extract_horizons").- schema_name
Override the default schema (
"horizon").
