From 1a8ddd3b36dd3d3494ec3a2b1dea299a85891a00 Mon Sep 17 00:00:00 2001 From: inter Date: Thu, 4 Sep 2025 14:09:12 +0800 Subject: [PATCH] Add File --- .../org/dromara/easyai/yolo/YoloMessage.java | 115 ++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 src/main/java/org/dromara/easyai/yolo/YoloMessage.java diff --git a/src/main/java/org/dromara/easyai/yolo/YoloMessage.java b/src/main/java/org/dromara/easyai/yolo/YoloMessage.java new file mode 100644 index 0000000..18c136a --- /dev/null +++ b/src/main/java/org/dromara/easyai/yolo/YoloMessage.java @@ -0,0 +1,115 @@ +package org.dromara.easyai.yolo; + + +import org.dromara.easyai.entity.ThreeChannelMatrix; + +public class YoloMessage { + private String url;//图像地址 + private int x;//图像坐标 + private int y; + private float distX; + private float distY; + private float width; + private float height; + private float trust; + private int mappingID; + private ThreeChannelMatrix pic; + private TypeBody typeBody; + private boolean backGround = false;//背景 + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public int getX() { + return x; + } + + public void setX(int x) { + this.x = x; + } + + public int getY() { + return y; + } + + public void setY(int y) { + this.y = y; + } + + public boolean isBackGround() { + return backGround; + } + + public void setBackGround(boolean backGround) { + this.backGround = backGround; + } + + public TypeBody getTypeBody() { + return typeBody; + } + + public void setTypeBody(TypeBody typeBody) { + this.typeBody = typeBody; + } + + public int getMappingID() { + return mappingID; + } + + public void setMappingID(int mappingID) { + this.mappingID = mappingID; + } + + public ThreeChannelMatrix getPic() { + return pic; + } + + public void setPic(ThreeChannelMatrix pic) { + this.pic = pic; + } + + public float getTrust() { + return trust; + } + + public void setTrust(float trust) { + this.trust = trust; + } + + public float getWidth() { + return width; + } + + public void setWidth(float width) { + this.width = width; + } + + public float getHeight() { + return height; + } + + public void setHeight(float height) { + this.height = height; + } + + public float getDistX() { + return distX; + } + + public void setDistX(float distX) { + this.distX = distX; + } + + public float getDistY() { + return distY; + } + + public void setDistY(float distY) { + this.distY = distY; + } +}