Skip to content

Media

Info

This section outlines the supported multimedia resource types. Each type is used for selecting the appropriate processing engine. If necessary, additional types can be easily incorporated. Please see model reference for more.

Image

Bases: Media[Path]

Represents an image media type.

Usage:

# create a new image type
image = Image(path=Path("image.jpg"))
Source code in nucleus/sdk/harvest/media.py
19
20
21
22
23
24
25
26
27
28
29
30
class Image(Media[Path]):
    """Represents an image media type.

    Usage:

        # create a new image type
        image = Image(path=Path("image.jpg"))


    """

    ...

Video

Bases: Media[Path]

Represents a video media type.

Usage:

# create a new video type
video = Video(path=Path("video.mp4"))
Source code in nucleus/sdk/harvest/media.py
 6
 7
 8
 9
10
11
12
13
14
15
16
class Video(Media[Path]):
    """Represents a video media type.

    Usage:

        # create a new video type
        video = Video(path=Path("video.mp4"))

    """

    ...

Tip

Each media type specifies "Path" as the source types from which it can be collected.