ImageAnalysisToolkit
init
- model (Optional[BaseModelBackend]): The model backend to use for image analysis tasks. This model should support processing images for tasks like image description and visual question answering. If None, a default model will be created using ModelFactory. (default: :obj:
None
) - timeout (Optional[float]): The timeout value for API requests in seconds. If None, no timeout is applied. (default: :obj:
None
)
image_to_text
- image_path (str): Local path or URL to an image file.
- sys_prompt (Optional[str]): Custom system prompt for the analysis. (default: :obj:
None
)
ask_question_about_image
- image_path (str): Local path or URL to an image file.
- question (str): Query about the image content.
- sys_prompt (Optional[str]): Custom system prompt for the analysis. (default: :obj:
None
)
_load_image
- image_path (str): Local path or URL to image.
_analyze_image
- image_path (str): Image location.
- prompt (str): Analysis query/instructions.
- system_message (BaseMessage): Custom system prompt for the analysis.