__init__ constructor

On this page

init

Initializes a new ImageDctHashSearchCriteria instance with a specified file path.

def __init__(self, file_path):
    ...
Parameter Type Description
file_path str The file path to load image from.

Example

    from groupdocs.watermark.search.search_criteria import ImageDctHashSearchCriteria

    criteria = ImageDctHashSearchCriteria("./logo.png")
    ```

## __init__ {#stream}

Initializes a new ImageDctHashSearchCriteria instance with the provided image stream.

```python
def __init__(self, stream):
    ...
Parameter Type Description
stream io.RawIOBase The stream to load image from.

See Also

On this page