ImageInfo¶
- class ImageInfo[source]¶
Bases:
tuple
Object with image parameters from Supervisely.
- Example
ImageInfo( id=770915, name='IMG_3861.jpeg', link=None, hash='ZdpMD+ZMJx0R8BgsCzJcqM7qP4M8f1AEtoYc87xZmyQ=', mime='image/jpeg', ext='jpeg', size=148388, width=1067, height=800, labels_count=4, dataset_id=2532, created_at='2021-03-02T10:04:33.973Z', updated_at='2021-03-02T10:04:33.973Z', meta={}, path_original='/h5un6l2bnaz1vj8a9qgms4-public/images/original/7/h/Vo/...jpg', full_storage_url='http://app.supervise.ly/h5un6l2bnaz1vj8a9qgms4-public/images/original/7/h/Vo/...jpg'), tags=[] )
Methods
Return number of occurrences of value.
Return first index of value.
Attributes
str
: Image creation time.str
: Image file extension.str
: Full storage URL to image.str
: Image hash obtained by base64(sha256(file_content)).int
: Image height.int
: Image ID in Supervisely.str
: Use link as ID for images that are expected to be stored at remote server.dict
: Custom additional image info.str
: Image MIME type.str
: Image filename.str
: Relative storage URL to image.Get Image preview URL.
int
: Image size (in bytes).str
: Time of last image update.int
: Image width.- __add__(value, /)¶
Return self+value.
- __mul__(value, /)¶
Return self*value.
- count(value, /)¶
Return number of occurrences of value.
-
index(value, start=
0
, stop=9223372036854775807
, /)¶ Return first index of value.
Raises ValueError if the value is not present.
- full_storage_url¶
str
: Full storage URL to image. e.g. “http://app.supervise.ly/h5un6l2bnaz1vj8a9qgms4-public/images/original/7/h/Vo/…jpg”.
- hash¶
str
: Image hash obtained by base64(sha256(file_content)). Use hash for files that are expected to be stored at Supervisely or your deployed agent.
- link¶
str
: Use link as ID for images that are expected to be stored at remote server. e.g. “http://your-server/image1.jpg”.
- path_original¶
str
: Relative storage URL to image. e.g. “/h5un6l2bnaz1vj8a9qgms4-public/images/original/7/h/Vo/…jpg”.