Toggle navigation
Toggle navigation
This project
Loading...
Sign in
조아혜
/
cfr-chatbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
daeun
2020-12-06 00:37:07 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f616bea93039cc6a0961b2aa9cc3a186a8e5d132
f616bea9
1 parent
63669cac
modify cfr
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
chatbot.js
chatbot.js
View file @
f616bea
...
...
@@ -434,8 +434,8 @@ imgtodata = function(dir) {
var
facenum
=
cfrdata
.
info
.
faceCount
;
//인식된 얼굴이 없을 때
if
(
facenum
==
0
)
{
randomMenu
=
Math
.
floor
(
Math
.
random
()
*
10
);
menu
=
arrmenu
[
randomMenu
];
}
//얼굴 1개 이상
else
{
...
...
@@ -470,7 +470,8 @@ imgtodata = function(dir) {
}
else
if
(
emotion
==
'talking'
)
{
menu
=
arrmenu
[
0
];
}
else
{
menu
=
''
;
randomMenu
=
Math
.
floor
(
Math
.
random
()
*
10
);
menu
=
arrmenu
[
randomMenu
];
}
}
else
if
(
gender
==
'female'
)
{
...
...
@@ -493,7 +494,8 @@ imgtodata = function(dir) {
}
else
if
(
emotion
==
'talking'
)
{
menu
=
arrmenu
[
9
];
}
else
{
menu
=
''
;
randomMenu
=
Math
.
floor
(
Math
.
random
()
*
10
);
menu
=
arrmenu
[
randomMenu
];
}
}
else
{
randomMenu
=
Math
.
floor
(
Math
.
random
()
*
10
);
...
...
@@ -517,7 +519,7 @@ function TMtoWGS(x,y){
var
xy
=
[
x
,
y
];
var
result
=
proj4
(
from
,
to
,
xy
);
return
(
result
)
;
return
result
;
}
//사용자가 보낸 사진 저장
...
...
Please
register
or
login
to post a comment