Skip to content

image_genop 🔗

ImageClassify 🔗

Bases: __ImageOperation__

classify classmethod 🔗

classify(image: str | bytes)

Executes image classification operation using vAccel over genop.

Parameters:

Name Type Description Default

image 🔗

A string or bytes object containing the image's file path

required

Returns:

Type Description

A string containing the classifiaction tag

Source code in vaccel/image_genop.py
@classmethod
def classify(cls, image: "str | bytes"):
    """Executes image classification operation using vAccel over genop.

    Args:
        image : A string or bytes object containing the image's file path

    Returns:
        A string containing the classifiaction tag
    """
    image = cls.__parse_image__(image=image)
    arg_read = [VaccelArg(data=int(cls.__op__)),
                VaccelArg(data=image)]
    arg_write = [VaccelArg(data=bytes(100 * " ", encoding="utf-8")),
                 VaccelArg(data=bytes(100 * " ", encoding="utf-8"))]
    return cls.__genop__(arg_read=arg_read, arg_write=arg_write, index=0)

ImageDepth 🔗

Bases: __ImageOperation__

depth classmethod 🔗

depth(image: str | bytes)

Executes image depth estimation operation using vAccel over genop.

Parameters:

Name Type Description Default

image 🔗

A string or bytes object containing the image's file path

required

Returns:

Type Description

A string containing the depth estimation result

Source code in vaccel/image_genop.py
@classmethod
def depth(cls, image: "str | bytes"):
    """Executes image depth estimation operation using vAccel over genop.

    Args:
        image : A string or bytes object containing the image's file path

    Returns:
        A string containing the depth estimation result
    """
    image = cls.__parse_image__(image=image)
    arg_read = [VaccelArg(data=int(cls.__op__)),
                VaccelArg(data=image)]
    arg_write = [VaccelArg(data=bytes(100 * " ", encoding="utf-8"))]
    return cls.__genop__(arg_read=arg_read, arg_write=arg_write, index=0)

ImageDetect 🔗

Bases: __ImageOperation__

detect classmethod 🔗

detect(image: str | bytes)

Executes image detection operation using vAccel over genop.

Parameters:

Name Type Description Default

image 🔗

A string or bytes object containing the image's file path

required

Returns:

Type Description

A string containing the detection result

Source code in vaccel/image_genop.py
@classmethod
def detect(cls, image: "str | bytes"):
    """Executes image detection operation using vAccel over genop.

    Args:
        image : A string or bytes object containing the image's file path

    Returns:
        A string containing the detection result
    """
    image = cls.__parse_image__(image=image)
    arg_read = [VaccelArg(data=int(cls.__op__)),
                VaccelArg(data=image)]
    arg_write = [VaccelArg(data=bytes(100 * " ", encoding="utf-8"))]
    return cls.__genop__(arg_read=arg_read, arg_write=arg_write, index=0)

ImagePose 🔗

Bases: __ImageOperation__

pose classmethod 🔗

pose(image: str | bytes)

Executes image pose estimation operation using vAccel over genop.

Parameters:

Name Type Description Default

image 🔗

A string or bytes object containing the image's file path

required

Returns:

Type Description

A string containing the pose estimation result

Source code in vaccel/image_genop.py
@classmethod
def pose(cls, image: "str | bytes"):
    """Executes image pose estimation operation using vAccel over genop.

    Args:
        image : A string or bytes object containing the image's file path

    Returns:
        A string containing the pose estimation result
    """
    image = cls.__parse_image__(image=image)
    arg_read = [VaccelArg(data=int(cls.__op__)),
                VaccelArg(data=image)]
    arg_write = [VaccelArg(data=bytes(100 * " ", encoding="utf-8"))]
    return cls.__genop__(arg_read=arg_read, arg_write=arg_write, index=0)

ImageSegment 🔗

Bases: __ImageOperation__

segment classmethod 🔗

segment(image: str | bytes)

Executes image segmentation operation using vAccel over genop.

Parameters:

Name Type Description Default

image 🔗

A string or bytes object containing the image's file path

required

Returns:

Type Description

A string containing the segmentation result

Source code in vaccel/image_genop.py
@classmethod
def segment(cls, image: "str | bytes"):
    """Executes image segmentation operation using vAccel over genop.

    Args:
        image : A string or bytes object containing the image's file path

    Returns:
        A string containing the segmentation result
    """
    image = cls.__parse_image__(image=image)
    arg_read = [VaccelArg(data=int(cls.__op__)),
                VaccelArg(data=image)]
    arg_write = [VaccelArg(data=bytes(100 * " ", encoding="utf-8"))]
    return cls.__genop__(arg_read=arg_read, arg_write=arg_write, index=0)