From bf461db6a7edd6f43b4431b7c91803ec4365d9be Mon Sep 17 00:00:00 2001 From: doucumentSql <49867236+thenk008@users.noreply.github.com> Date: Mon, 13 Jan 2020 23:08:31 +0800 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ff4e70d..0b8d074 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,8 @@ public static void testPic() throws Exception {
//标注主键为 第几种分类,值为标注 1 是TRUE 0是FALSE
`Map rightTagging = new HashMap<>();`//分类标注
`Map();`//分类标注
- `rightTagging.put(1, 1.0);`
- `wrongTagging.put(1, 0.0);`
+ `rightTagging.put(1, 1.0);`//标注为编号为1分类为正确,例如是否苹果,是
+ `wrongTagging.put(1, 0.0);`//编号为1的分类为错误,例如是否是苹果,否
`for (int i = 1; i < 999; i++) {`
System.out.println("开始学习1==" + i);
//读取本地URL地址图片,并转化成矩阵
@@ -32,7 +32,7 @@ public static void testPic() throws Exception {
//训练的时候光有正模板不行,你除了要告诉他true,必须还要告诉他false,正负模板数量相同
`Matrix right = picture.getImageMatrixByLocal("/Users/lidapeng/Desktop/myDocment/c/c" + i + ".png");`
`Matrix wrong = picture.getImageMatrixByLocal("/Users/lidapeng/Desktop/myDocment/b/b" + i + ".png");`
- //将图像矩阵和标注加入进行学习,
+ //将图像矩阵和正负标注加入进行学习,
`operation.study(right, rightTagging);`
`operation.study(wrong, wrongTagging);`
` }`