1.实现图片上报及下发注册的对接实现。

This commit is contained in:
luocai
2024-06-21 11:02:28 +08:00
parent 6e11d190c0
commit d9a9815a89
5 changed files with 44 additions and 27 deletions

View File

@ -32,9 +32,12 @@ ColumnLayout {
text: "10"
}
Button {
text: "注册"
onClicked: App.enroll(enrollName.text,
parseInt(enrollTimeout.text))
text: !App.module ? "注册" : App.module.currentMessageId
=== 0x1d ? "取消" : "注册"
onClicked: App.module.currentMessageId
=== 0x1d ? App.module.reset() : App.enroll(
enrollName.text,
parseInt(enrollTimeout.text))
}
}
}
@ -67,11 +70,11 @@ ColumnLayout {
}
Item {}
Button {
text: App.isVerifying?"停止": "识别"
text: App.isVerifying ? "停止" : "识别"
onClicked: {
if(App.isVerifying){
if (App.isVerifying) {
App.module.reset()
}else {
} else {
App.persistenceVerifyInterval = parseInt(
verifyIntetval.text)
App.verify(parseInt(verifyTimeout.text))
@ -107,7 +110,7 @@ ColumnLayout {
columns: 1
Button {
text: "录入图片上报"
onClicked: App.getEnrolledImage("",60)
onClicked: App.getEnrolledImage("", 60)
}
Button {
text: "图片下发注册"