简体   繁体   English

检测到辣椒的面部识别后如何修复它?

[英]how do i fix pepper's facial recognition after it detects it?

I'm programming pepper with Choregraphe and I'm trying to define the second interaction after it recognizes the face, but as soon as I start the interaction it gives me this error.我正在用 Choregraphe 对胡椒进行编程,我试图在它识别出人脸后定义第二次交互,但是一旦我开始交互,它就会给我这个错误。 Also, if I try to define the global variable it tells me "NameError: global name 'Gender_user' is not defined"另外,如果我尝试定义全局变量,它会告诉我“NameError: global name 'Gender_user' is not defined”

[ERROR] behavior.box :_safeCallOfUserMethod:125 _Behavior__lastUploadedChoregrapheBehaviorbehavior_11199696904:/second_interaction_20/get_data_7: Traceback (most recent call last): File "/opt/aldebaran/lib/python2.7/site-packages/albehavior.py", line 113, in _safeCallOfUserMethod func(functionArg) File "<string>", line 152, in onInput_onStart UnboundLocalError: local variable 'Gender_user' referenced before assignment

The error comes from the Python code of your box get_data , which references Gender_user before it is assigned.该错误来自您的框get_data的 Python 代码,该Gender_user在分配之前引用了Gender_user Please check your code.请检查您的代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM