新接入FaceUnity美颜SDK
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
package com.yunbao.faceunity.entity;
|
||||
|
||||
/**
|
||||
* DESC:美体
|
||||
* Created on 2021/4/26
|
||||
*/
|
||||
public class BodyBeautyBean {
|
||||
private String key;//名称标识
|
||||
private int desRes;//描述
|
||||
private int closeRes;//图片
|
||||
private int openRes;//图片
|
||||
|
||||
public BodyBeautyBean(String key, int desRes, int closeRes, int openRes) {
|
||||
this.key = key;
|
||||
this.desRes = desRes;
|
||||
this.closeRes = closeRes;
|
||||
this.openRes = openRes;
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public int getDesRes() {
|
||||
return desRes;
|
||||
}
|
||||
|
||||
public void setDesRes(int desRes) {
|
||||
this.desRes = desRes;
|
||||
}
|
||||
|
||||
public int getCloseRes() {
|
||||
return closeRes;
|
||||
}
|
||||
|
||||
public void setCloseRes(int closeRes) {
|
||||
this.closeRes = closeRes;
|
||||
}
|
||||
|
||||
public int getOpenRes() {
|
||||
return openRes;
|
||||
}
|
||||
|
||||
public void setOpenRes(int openRes) {
|
||||
this.openRes = openRes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.yunbao.faceunity.entity;
|
||||
|
||||
/**
|
||||
* DESC:美颜
|
||||
* Created on 2021/4/26
|
||||
*/
|
||||
public class FaceBeautyBean {
|
||||
|
||||
private String key;//名称标识
|
||||
private int desRes;//描述
|
||||
private int closeRes;//图片
|
||||
private int openRes;//图片
|
||||
|
||||
public FaceBeautyBean(String key, int desRes, int closeRes, int openRes) {
|
||||
this.key = key;
|
||||
this.desRes = desRes;
|
||||
this.closeRes = closeRes;
|
||||
this.openRes = openRes;
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public int getDesRes() {
|
||||
return desRes;
|
||||
}
|
||||
|
||||
public void setDesRes(int desRes) {
|
||||
this.desRes = desRes;
|
||||
}
|
||||
|
||||
public int getCloseRes() {
|
||||
return closeRes;
|
||||
}
|
||||
|
||||
public void setCloseRes(int closeRes) {
|
||||
this.closeRes = closeRes;
|
||||
}
|
||||
|
||||
public int getOpenRes() {
|
||||
return openRes;
|
||||
}
|
||||
|
||||
public void setOpenRes(int openRes) {
|
||||
this.openRes = openRes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package com.yunbao.faceunity.entity;
|
||||
|
||||
/**
|
||||
* DESC:美颜滤镜
|
||||
* Created on 2021/4/26
|
||||
*/
|
||||
public class FaceBeautyFilterBean {
|
||||
|
||||
private String key;//名称标识
|
||||
private int imageRes;//图片
|
||||
private int desRes;//描述
|
||||
private double intensity = 0.4;//强度
|
||||
|
||||
public FaceBeautyFilterBean(String key, int imageRes, int desRes) {
|
||||
this.key = key;
|
||||
this.imageRes = imageRes;
|
||||
this.desRes = desRes;
|
||||
}
|
||||
|
||||
public FaceBeautyFilterBean(String key, int imageRes, int desRes, double intensity) {
|
||||
this.key = key;
|
||||
this.imageRes = imageRes;
|
||||
this.desRes = desRes;
|
||||
this.intensity = intensity;
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public int getImageRes() {
|
||||
return imageRes;
|
||||
}
|
||||
|
||||
public void setImageRes(int imageRes) {
|
||||
this.imageRes = imageRes;
|
||||
}
|
||||
|
||||
public int getDesRes() {
|
||||
return desRes;
|
||||
}
|
||||
|
||||
public void setDesRes(int desRes) {
|
||||
this.desRes = desRes;
|
||||
}
|
||||
|
||||
public double getIntensity() {
|
||||
return intensity;
|
||||
}
|
||||
|
||||
public void setIntensity(double intensity) {
|
||||
this.intensity = intensity;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.yunbao.faceunity.entity;
|
||||
|
||||
/**
|
||||
* DESC:美妆-组合妆容
|
||||
* Created on 2021/4/26
|
||||
*/
|
||||
public class MakeupCombinationBean {
|
||||
|
||||
private String key;//名称标识
|
||||
private int imageRes;//图片
|
||||
private int desRes;//描述
|
||||
private String bundlePath;//资源句柄
|
||||
private double intensity = 1.0;//强度
|
||||
|
||||
public MakeupCombinationBean(String key, int imageRes, int desRes, String bundlePath) {
|
||||
this.key = key;
|
||||
this.imageRes = imageRes;
|
||||
this.desRes = desRes;
|
||||
this.bundlePath = bundlePath;
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public int getImageRes() {
|
||||
return imageRes;
|
||||
}
|
||||
|
||||
public void setImageRes(int imageRes) {
|
||||
this.imageRes = imageRes;
|
||||
}
|
||||
|
||||
public int getDesRes() {
|
||||
return desRes;
|
||||
}
|
||||
|
||||
public void setDesRes(int desRes) {
|
||||
this.desRes = desRes;
|
||||
}
|
||||
|
||||
public String getBundlePath() {
|
||||
return bundlePath;
|
||||
}
|
||||
|
||||
public void setBundlePath(String bundlePath) {
|
||||
this.bundlePath = bundlePath;
|
||||
}
|
||||
|
||||
public double getIntensity() {
|
||||
return intensity;
|
||||
}
|
||||
|
||||
public void setIntensity(double intensity) {
|
||||
this.intensity = intensity;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.yunbao.faceunity.entity;
|
||||
|
||||
/**
|
||||
* 模型单项补充模型
|
||||
*/
|
||||
public class ModelAttributeData {
|
||||
private double defaultV = 0.0;//默认值
|
||||
private double standV = 0.0;//无变化时候的基准值
|
||||
private double minRange = 0.0;//范围最小值
|
||||
private double maxRange = 1.0;//范围最大值
|
||||
|
||||
public ModelAttributeData(double defaultV, double standV, double minRange, double maxRange) {
|
||||
this.defaultV = defaultV;
|
||||
this.standV = standV;
|
||||
this.minRange = minRange;
|
||||
this.maxRange = maxRange;
|
||||
}
|
||||
|
||||
|
||||
public double getDefaultV() {
|
||||
return defaultV;
|
||||
}
|
||||
|
||||
public void setDefaultV(double defaultV) {
|
||||
this.defaultV = defaultV;
|
||||
}
|
||||
|
||||
public double getStandV() {
|
||||
return standV;
|
||||
}
|
||||
|
||||
public void setStandV(double standV) {
|
||||
this.standV = standV;
|
||||
}
|
||||
|
||||
public double getMinRange() {
|
||||
return minRange;
|
||||
}
|
||||
|
||||
public void setMinRange(double minRange) {
|
||||
this.minRange = minRange;
|
||||
}
|
||||
|
||||
public double getMaxRange() {
|
||||
return maxRange;
|
||||
}
|
||||
|
||||
public void setMaxRange(double maxRange) {
|
||||
this.maxRange = maxRange;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.yunbao.faceunity.entity;
|
||||
|
||||
/**
|
||||
* DESC:道具
|
||||
* Created on 2021/4/26
|
||||
*/
|
||||
public class PropBean {
|
||||
private int iconId;
|
||||
private String path;
|
||||
|
||||
|
||||
public PropBean(int iconId, String path) {
|
||||
this.iconId = iconId;
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public int getIconId() {
|
||||
return iconId;
|
||||
}
|
||||
|
||||
public void setIconId(int iconId) {
|
||||
this.iconId = iconId;
|
||||
}
|
||||
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user