Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DA-Platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
文档服务地址:
http://47.92.0.57:3000/
周报索引地址:
http://47.92.0.57:3000/s/NruNXRYmV
Open sidebar
Berlin
DA-Platform
Commits
ac8676d1
Commit
ac8676d1
authored
May 29, 2020
by
李梓桢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
image改
parent
a8723bd1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
55 deletions
+71
-55
imageAnnotiation.vue
...front/src/components/imageAnnotation/imageAnnotiation.vue
+71
-55
.DS_Store
文档/.DS_Store
+0
-0
~$标注数据库设计.docx
文档/~$标注数据库设计.docx
+0
-0
No files found.
DAPlatform-front/src/components/imageAnnotation/imageAnnotiation.vue
View file @
ac8676d1
...
@@ -29,6 +29,8 @@
...
@@ -29,6 +29,8 @@
<!--
<el-button
class=
"tool-button"
type=
"primary"
>
下一张
<i
class=
"el-icon-arrow-right el-icon--right"
></i></el-button>
-->
<!--
<el-button
class=
"tool-button"
type=
"primary"
>
下一张
<i
class=
"el-icon-arrow-right el-icon--right"
></i></el-button>
-->
<el-button
class=
"tool-button"
type=
"primary"
>
多边形标注
</el-button>
<el-button
class=
"tool-button"
type=
"primary"
>
多边形标注
</el-button>
<el-button
class=
"tool-button"
type=
"primary"
>
矩形标注
</el-button>
<el-button
class=
"tool-button"
type=
"primary"
>
矩形标注
</el-button>
<!--测试用 添加标注区域-->
<el-button
class=
"tool-button"
type=
"primary"
@
click=
"addLabel"
>
添加标注区域
</el-button>
<el-button
class=
"tool-button"
type=
"primary"
@
click=
"deleteAnnotation"
>
删除
</el-button>
<el-button
class=
"tool-button"
type=
"primary"
@
click=
"deleteAnnotation"
>
删除
</el-button>
</el-button-group>
</el-button-group>
</div>
</div>
...
@@ -108,69 +110,43 @@ export default {
...
@@ -108,69 +110,43 @@ export default {
name
:
'imageAnnotation'
,
name
:
'imageAnnotation'
,
data
()
{
data
()
{
return
{
return
{
pictureId
:
0
,
scaleSize
:
1
,
scaleSize
:
1
,
height_res
:
0
,
height_res
:
0
,
activeIndex1
:
1
,
activeIndex1
:
1
,
image_list
:
[{
// 这个测试数据可以么
label
:
'image1.jpg'
,
testData
:
{
children
:
[{
"relationId"
:
123
,
label
:
'标注1'
"imageUrl"
:
"..."
,
},
"labelList"
:
[{
{
"labelId"
:
"1"
,
label
:
'标注2'
"labelName"
:
"label1"
,
"pointList"
:
[{
"pointId"
:
"1-1"
,
"X"
:
1.1
,
"Y"
:
2.2
},
{
"pointId"
:
"1-2"
,
"X"
:
1.2
,
"Y"
:
2.3
}]
}]
},
},{
{
"labelId"
:
"2"
,
label
:
'image2.jpg'
,
"labelName"
:
"label2"
,
children
:
[{
"pointList"
:
[{
label
:
'标注1'
"pointId"
:
"2-1"
,
},
"X"
:
1.1
,
{
"Y"
:
2.2
label
:
'标注2'
},
{
"pointId"
:
"2-2"
,
"X"
:
1.2
,
"Y"
:
2.3
}]
}]
}],
layer_list
:
[{
label
:
'image1.jpg'
,
children
:
[{
label
:
'标注1'
},
{
label
:
'标注2'
}]
}]
},
},
{
imageNum
:
-
1
,
label
:
'image2.jpg'
,
data
:
{
children
:
[{
label
:
'标注1'
},
},
{
label
:
'标注2'
}]
}],
data
:
[{
label
:
'图片1'
,
url
:
'https://juanmdbucket.oss-cn-beijing.aliyuncs.com/20200301231737.png'
,
children
:
[{
label
:
'二级 1-1'
}]
},
{
label
:
'图片2'
,
url
:
'https://juanmdbucket.oss-cn-beijing.aliyuncs.com/20200526170357.jpg'
,
children
:
[{
label
:
'二级 2-1'
},
{
label
:
'二级 2-2'
}]
},
{
label
:
'图片3'
,
url
:
'https://juanmdbucket.oss-cn-beijing.aliyuncs.com/20200303222626.png'
,
children
:
[{
label
:
'二级 3-1'
},
{
label
:
'二级 3-2'
}]
}],
defaultProps
:
{
defaultProps
:
{
children
:
'children'
,
children
:
'children'
,
label
:
'label'
label
:
'label'
...
@@ -178,6 +154,8 @@ export default {
...
@@ -178,6 +154,8 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getLabelList
();
//加载图片
//加载图片
var
myParent
=
document
.
getElementById
(
'center_pic'
);
var
myParent
=
document
.
getElementById
(
'center_pic'
);
var
myImage
=
document
.
createElement
(
'img'
);
var
myImage
=
document
.
createElement
(
'img'
);
...
@@ -280,7 +258,45 @@ export default {
...
@@ -280,7 +258,45 @@ export default {
else
{
else
{
alert
(
'已经是第一张图片了'
);
alert
(
'已经是第一张图片了'
);
}
}
},
getLabelList
()
{
this
.
data
=
[{
id
:
0
,
label
:
'图片1'
,
url
:
'https://juanmdbucket.oss-cn-beijing.aliyuncs.com/20200301231737.png'
,
children
:
[{
label
:
'二级 1-1'
}]
},
{
id
:
1
,
label
:
'图片2'
,
url
:
'https://juanmdbucket.oss-cn-beijing.aliyuncs.com/20200526170357.jpg'
,
children
:
[{
label
:
'二级 2-1'
},
{
label
:
'二级 2-2'
}]
},
{
id
:
2
,
label
:
'图片3'
,
url
:
'https://juanmdbucket.oss-cn-beijing.aliyuncs.com/20200303222626.png'
,
children
:
[{
label
:
'二级 3-1'
},
{
label
:
'二级 3-2'
}]
}]
this
.
imageNum
=
3
;
},
addLabel
()
{
let
currentImageId
=
1
;
const
newLabel
=
{
label
:
'new label'
};
for
(
let
index
=
0
;
index
<
this
.
imageNum
;
index
++
)
{
if
(
this
.
data
[
index
].
id
==
currentImageId
)
{
this
.
data
[
index
].
children
.
push
(
newLabel
);
}
}
}
},
}
}
}
}
</
script
>
</
script
>
...
...
文档/.DS_Store
View file @
ac8676d1
No preview for this file type
文档/~$标注数据库设计.docx
0 → 100644
View file @
ac8676d1
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment