Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0fe5780

Browse files
CVAuto:把检测结果完全匹配的图片也纳入各指标总计对比
1 parent 50d5a27 commit 0fe5780

File tree

1 file changed

+14
-2
lines changed
  • APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/cv/js

1 file changed

+14
-2
lines changed

‎APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/cv/js/main.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,6 +1212,7 @@ https://github.com/Tencent/APIJSON/issues
12121212
allowMultiple: true,
12131213
isFullScreen: false,
12141214
hoverIds: { before: null, diff: null, after: null },
1215+
sameRandomIds: [],
12151216
compareRandomIds: null, // [],
12161217
detection: {
12171218
isShowNum: false,
@@ -6794,7 +6795,7 @@ https://github.com/Tencent/APIJSON/issues
67946795
Random: {
67956796
id: -(index || 0) - 1, //表示未上传
67966797
toId: random.id,
6797-
userId: random.userId || doc.userId,
6798+
// userId: random.userId || doc.userId,
67986799
documentId: random.documentId || doc.id,
67996800
count: 1,
68006801
name: '分析位于 ' + index + ' 的这张图片',
@@ -7122,6 +7123,10 @@ https://github.com/Tencent/APIJSON/issues
71227123
detection.beforeAllF1Str = (100*allF1).toFixed(0);
71237124

71247125
this.detection = detection;
7126+
var compareRandomIds = this.compareRandomIds;
7127+
if (compareRandomIds instanceof Array) {
7128+
compareRandomIds = [...new Set([...compareRandomIds, ...this.sameRandomIds])];
7129+
}
71257130

71267131
this.adminRequest('/get', {
71277132
"TestRecord[]": {
@@ -7135,7 +7140,7 @@ https://github.com/Tencent/APIJSON/issues
71357140
"total>=": 0,
71367141
"wrong>=": 0,
71377142
"correct>=": 0,
7138-
'randomId{}': this.compareRandomIds,
7143+
'randomId{}': compareRandomIds,
71397144
// "@explain": true
71407145
}
71417146
}
@@ -11908,6 +11913,13 @@ Content-Type: ` + contentType) + (StringUtil.isEmpty(headerStr, true) ? '' : hea
1190811913
default:
1190911914
it.compareColor = 'white'
1191011915
it.hintMessage = '结果正确'
11916+
if (isRandom && tr.randomId != null) {
11917+
var sameRandomIds = this.sameRandomIds || [];
11918+
if (! compareRandomIds.includes(tr.randomId)) {
11919+
sameRandomIds.push(tr.randomId);
11920+
this.sameRandomIds = sameRandomIds;
11921+
}
11922+
}
1191111923
break;
1191211924
}
1191311925

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /