This commit is contained in:
2025-07-27 09:28:32 +08:00
parent 563d83f849
commit f8de4abd09
10 changed files with 32 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
package com.ycwl.basic.model.viid.entity;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@Data
@@ -10,9 +11,11 @@ public class FacePositionObject {
private Integer ltY;
private Integer rbX;
private Integer rbY;
@JsonProperty("width")
public Integer getWidth(){
return rbX - ltX;
}
@JsonProperty("height")
public Integer getHeight(){
return rbY - ltY;
}