You've already forked FrameTour-BE
jackson
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user