yarrow.utils.from_image

yarrow.utils.from_image(file_name: str, width: int, height: int, date_captured: datetime, source: str, date_created: Optional[datetime] = None, **kwargs)

Returns a minimal YarrowDataset_pydantic with the passed arguments, this is a helper function

Args:

file_name (str): Local image file name or path width (int): image width in pixel height (int): image height in pixel date_captured (datetime): datetime of the image acquisition source (str): a free string to describe the creator of this yarrow, can be a program name or a machine date_created (datetime, optional): Creation date of the yarrow, will default to datetime.now() if no value or None is provided. Defaults to None.

Returns:

YarrowDataset_pydantic: A YarrowDataset with 1 image and the Info class specified