警告: com.hjc.hhs.db.ScanBean has some fields [id, original_value, create_time] which are not returned by the query. If they are not supposed to be read from the result, you can mark them with @Ignore annotation. You can suppress this warning by annotating the method with @SuppressWarnings(RoomWarnings.CURSOR_MISMATCH). Columns returned by the query: record.
List<ScanBean> findAll();
使用原项目 mpj文件夹
修改mpj下obj文件 为以下代码
package com.mpj.yoloclassifyBytetrack;
import android.graphics.Bitmap;
public class Obj {
public float x;
public float y;
public float w;
public float h;
public int labelId;
public String label;
public float prob;
public Bitmap mask = null;
public Bitmap bitmap;
public float angle;
@Override
public String toString() {
return "Obj{" +
", labelId=" + labelId +
", label='" + label + '\'' +
", prob=" + prob +
'}';
}
}
修改YoloClassifyActivity.java文件
修改ModelType.java文件
public enum ModelType {
CLS,
OBJ,
SEG,
POSE,
OBB
}