All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.cognitiveservices.faceapi.OcclusionProperties Maven / Gradle / Ivy

/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 */

package com.microsoft.azure.cognitiveservices.faceapi;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Properties describing occulusions on a given face.
 */
public class OcclusionProperties {
    /**
     * A boolean value indicating whether forehead is occluded.
     */
    @JsonProperty(value = "foreheadOccluded")
    private boolean foreheadOccluded;

    /**
     * A boolean value indicating whether eyes are occluded.
     */
    @JsonProperty(value = "eyeOccluded")
    private boolean eyeOccluded;

    /**
     * A boolean value indicating whether the mouth is occluded.
     */
    @JsonProperty(value = "mouthOccluded")
    private boolean mouthOccluded;

    /**
     * Get the foreheadOccluded value.
     *
     * @return the foreheadOccluded value
     */
    public boolean foreheadOccluded() {
        return this.foreheadOccluded;
    }

    /**
     * Set the foreheadOccluded value.
     *
     * @param foreheadOccluded the foreheadOccluded value to set
     * @return the OcclusionProperties object itself.
     */
    public OcclusionProperties withForeheadOccluded(boolean foreheadOccluded) {
        this.foreheadOccluded = foreheadOccluded;
        return this;
    }

    /**
     * Get the eyeOccluded value.
     *
     * @return the eyeOccluded value
     */
    public boolean eyeOccluded() {
        return this.eyeOccluded;
    }

    /**
     * Set the eyeOccluded value.
     *
     * @param eyeOccluded the eyeOccluded value to set
     * @return the OcclusionProperties object itself.
     */
    public OcclusionProperties withEyeOccluded(boolean eyeOccluded) {
        this.eyeOccluded = eyeOccluded;
        return this;
    }

    /**
     * Get the mouthOccluded value.
     *
     * @return the mouthOccluded value
     */
    public boolean mouthOccluded() {
        return this.mouthOccluded;
    }

    /**
     * Set the mouthOccluded value.
     *
     * @param mouthOccluded the mouthOccluded value to set
     * @return the OcclusionProperties object itself.
     */
    public OcclusionProperties withMouthOccluded(boolean mouthOccluded) {
        this.mouthOccluded = mouthOccluded;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy