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 FaceRectangle { 019 private int height; 020 private int width; 021 private int x; 022 private int y; 023 024 public FaceRectangle() { 025 super(); 026 } 027 public FaceRectangle(int height, int width, int x, int y) { 028 super(); 029 this.height = height; 030 this.width = width; 031 this.x = x; 032 this.y = y; 033 } 034 035 /** 036 * <div class="zh">人脸框高度。</div> <div class="en">Hight of face detection rectangle.</div> 037 * 038 * @return <div class="zh">人脸框高度。</div> <div class="en">Hight of face detection rectangle.</div> 039 */ 040 public int getHeight() { 041 return height; 042 } 043 044 /** 045 * <div class="zh">人脸框高度。</div> <div class="en">Hight of face detection rectangle.</div> 046 * 047 * @param height <div class="zh">人脸框高度。</div> <div class="en">Hight of face detection rectangle.</div> 048 */ 049 public void setHeight(int height) { 050 this.height = height; 051 } 052 053 /** 054 * <div class="zh">人脸框宽度。</div> <div class="en">Width of face detection rectangle.</div> 055 * 056 * @return <div class="zh">人脸框宽度。</div> <div class="en">Width of face detection rectangle.</div> 057 */ 058 public int getWidth() { 059 return width; 060 } 061 062 /** 063 * <div class="zh">人脸框宽度。</div> <div class="en">Width of face detection rectangle.</div> 064 * 065 * @param width <div class="zh">人脸框宽度。</div> <div class="en">Width of face detection rectangle.</div> 066 */ 067 public void setWidth(int width) { 068 this.width = width; 069 } 070 071 /** 072 * <div class="zh">人脸框x轴坐标。</div> <div class="en">X coordinate of face detection rectangle.</div> 073 * 074 * @return <div class="zh">人脸框x轴坐标。</div> <div class="en">X coordinate of face detection rectangle.</div> 075 */ 076 public int getX() { 077 return x; 078 } 079 080 /** 081 * <div class="zh">人脸框x轴坐标。</div> <div class="en">X coordinate of face detection rectangle.</div> 082 * 083 * @param x <div class="zh">人脸框x轴坐标。</div> <div class="en">X coordinate of face detection rectangle.</div> 084 */ 085 public void setX(int x) { 086 this.x = x; 087 } 088 089 /** 090 * <div class="zh">人脸框y轴坐标。</div> <div class="en">Y coordinate of face detection rectangle.</div> 091 * 092 * @return <div class="zh">人脸框y轴坐标。</div> <div class="en">Y coordinate of face detection rectangle.</div> 093 */ 094 public int getY() { 095 return y; 096 } 097 098 /** 099 * <div class="zh">人脸框y轴坐标。</div> <div class="en">Y coordinate of face detection rectangle.</div> 100 * 101 * @param y <div class="zh">人脸框y轴坐标。</div> <div class="en">Y coordinate of face detection rectangle.</div> 102 */ 103 public void setY(int y) { 104 this.y = y; 105 } 106 107 @Override 108 public String toString() { 109 return "FaceRectangle [height=" + height + ", width=" + width + ", x=" + x + ", y=" + y + "]"; 110 } 111}