001/*
002 * ===========================================================================================
003 * = COPYRIGHT
004 *          PAX Computer Technology (Shenzhen) Co., Ltd. PROPRIETARY INFORMATION
005 *   This software is supplied under the terms of a license agreement or nondisclosure
006 *   agreement with PAX Computer Technology (Shenzhen) Co., Ltd. and may not be copied or
007 *   disclosed except in accordance with the terms in that agreement.
008 *     Copyright (C) 2017-2023 PAX Computer Technology (Shenzhen) Co., Ltd. All rights reserved.
009 * Description: // Detail description about the function of this module,
010 *             // interfaces with the other modules, and dependencies.
011 * Revision History:
012 * Date                         Author                        Action
013 * 2017/04/01                   PAX                     Create/Add/Modify/Delete
014 * ===========================================================================================
015 */
016package com.pax.dal.entity;
017
018public class FaceAngle {
019    private float pitch;
020    private float roll;
021    private float yaw;
022    
023    public FaceAngle() {
024        super();
025    }
026
027    public FaceAngle(float pitch, float roll, float yaw) {
028        super();
029        this.pitch = pitch;
030        this.roll = roll;
031        this.yaw = yaw;
032    }
033
034    /**
035     * <div class="zh">面部俯仰角度。</div> <div class="en">Face pitch Angle.</div>
036     * 
037     * @return <div class="zh">面部俯仰角度。取值范围-90~90。在-30~30内效果准确,角度偏移过大可能造成检测失败或者点位不准。</div>
038     * <div class="en">Angle of face pitch. Values range from -90 to 90.Within -30~30, the effect is accurate, and large angle deviation 
039     * may result in detection failure or inaccurate positioning.</div>
040     */
041    public float getPitch() {
042        return pitch;
043    }
044
045    /**
046     * <div class="zh">面部俯仰角度。</div> <div class="en">Face pitch Angle.</div>
047     * 
048     * @param pitch <div class="zh">面部俯仰角度。取值范围-90~90。在-30~30内效果准确,角度偏移过大可能造成检测失败或者点位不准。</div>
049     * <div class="en">Angle of face pitch. Values range from -90 to 90.Within -30~30, the effect is accurate, and large angle deviation 
050     * may result in detection failure or inaccurate positioning.</div>
051     */
052    public void setPitch(float pitch) {
053        this.pitch = pitch;
054    }
055
056    /**
057     * <div class="zh">面部左右倾斜角度。</div> <div class="en">Face left and right tilt Angle.</div>
058     * 
059     * @return <div class="zh">面部左右倾斜角度。取值范围-180~180。在-60~60内效果准确,角度偏移过大可能造成检测失败或者点位不准。</div> 
060     * <div class="en">Angle of face tilt. Values range from -180 to 180.Within -60~60, the effect is accurate, 
061     * and large angle deviation may result in detection failure or inaccurate positioning.</div>
062     */
063    public float getRoll() {
064        return roll;
065    }
066
067    /**
068     * <div class="zh">面部左右倾斜角度。</div> <div class="en">Face left and right tilt Angle.</div>
069     * 
070     * @param roll <div class="zh">面部左右倾斜角度。取值范围-180~180。在-60~60内效果准确,角度偏移过大可能造成检测失败或者点位不准。</div> 
071     * <div class="en">Angle of face tilt. Values range from -180 to 180.Within -60~60, the effect is accurate, 
072     * and large angle deviation may result in detection failure or inaccurate positioning.</div>
073     */
074    public void setRoll(float roll) {
075        this.roll = roll;
076    }
077
078    /**
079     * <div class="zh">面部左右扭头角度。</div> <div class="en">Face left and right turn head Angle.</div>
080     * 
081     * @return <div class="zh">面部左右扭头角度。取值范围-90~90。在-30~30内效果准确,角度偏移过大可能造成检测失败或者点位不准。</div> 
082     * <div class="en">Angle of head torsion. Values range from -90 to 90.Within -30~30, the effect is accurate, and large angle deviation 
083     * may result in detection failure or inaccurate positioning.</div>
084     */
085    public float getYaw() {
086        return yaw;
087    }
088
089    /**
090     * <div class="zh">面部左右扭头角度。</div> <div class="en">Face left and right turn head Angle.</div>
091     * 
092     * @param yaw <div class="zh">面部左右扭头角度。取值范围-90~90。在-30~30内效果准确,角度偏移过大可能造成检测失败或者点位不准。</div> 
093     * <div class="en">Angle of head torsion. Values range from -90 to 90.Within -30~30, the effect is accurate, and large angle deviation 
094     * may result in detection failure or inaccurate positioning.</div>
095     */
096    public void setYaw(float yaw) {
097        this.yaw = yaw;
098    }
099
100    @Override
101    public String toString() {
102        return "FaceAngle [pitch=" + pitch + ", roll=" + roll + ", yaw=" + yaw + "]";
103    }
104}