拍图识别测试

This commit is contained in:
曹前明 2022-09-11 17:15:08 +08:00
parent ddce16a893
commit 63d1b5659e
1 changed files with 2 additions and 1 deletions

View File

@ -205,7 +205,8 @@ class TestViewSet(CustomGenericViewSet):
测试抓图识别
"""
vc = TDevice.objects.get(code='1000164$1$0$0')
code = request.data['code']
vc = TDevice.objects.get(code=code)
snap_and_analyse(vc, ['fire1'], Opl.objects.get(id='1568880208688320512'))
return Response()