Giter VIP home page Giter VIP logo

gameaisdk's Introduction

aitest 平台

aitest平台 是一个基于游戏图像来开发游戏AI的开源工具包。工具包主要完成了UI检测,游戏内元素识别,AI算法(DQN,IM)等功能。可以基于这个工具包完成游戏自动化测试。目前已支持的游戏类型有跑酷类,吃鸡类,射击类,MOBA类等。详情见官网

工具包主要包括AI SDK,AIClient,SDKTool(配置文件工具)这几部分。

SDKTool帮助我们生成跟具体游戏相关的AI SDK所需要配置文件。如游戏运行过程中,整个流程中需要动作交互的UI,需要识别的游戏元素等。AI开发过程中用到的信息可来自于游戏图像(AIClient获取)或其他数据。aitest 能够自动化完成游戏UI操作并进入游戏场景,像玩家一样操作手机玩游戏。

1561697374409

​ 图 1 aitest 模块图

其中AI SDK部分主要包括AI Client模块, MC模块,IO模块, UI模块, GameReg模块,AI模块。

  • AI Client主要与手机端交互,获取游戏图像,并执行UI或AI输出的动作

  • IO模块与AI Client交互,作为AI SDK的数据输入输出控制

  • MC模块与IO模块交互,将数据分发至AI SDK后端的UI和AI模块,并做一些业务逻辑的管理控制

  • UI模块根据游戏图像,识别出需要进行的UI操作

  • GameReg模块根据游戏图像,识别出游戏场景内的数字、血条、目标物等元素

  • AI模块根据识别到的游戏元素,根据AI算法执行业务逻辑

1561697556490

​ 图 2 aitest 架构图

1 环境部署

aitest 可以部署在本地,也可以部署在云端。如果需要在本地运行,除了下载工具包,AIClient外,还需要安装工具包的依赖。如果是在云端运行,只需要下载AIClient。不论采取哪种运行方式,本地PC机都需要连接手机(或手机模拟器),通过AIClient实时采集手机(或手机模拟器)的游戏画面,并传给本地或是远端的AI服务去处理。并把AI服务处理的动作结果反馈到连接PC的手机上,完成动作的交互。

img

图3 aitest 交互图

1.1镜像部署

用户可在电脑上安装docker,使用已经搭建好game_ai_sdk所需环境的ubuntu16.04 docker镜像系统。

win10用户详细内容请参考win10-docker镜像安装

mac用户详细内容请参考mac-docker镜像安装

1.2本地部署

本地部署主要是安装AI SDK, SDKTool(配置文件生成工具), AIClient 的环境依赖。

  • 部署AI SDK

    Ubuntu:

    目前SDK工具包运行在14.04或是16.04的64位 Ubuntu 系统上,使用的深度学习框架为tensorflow ,所以使用前需要安装ubuntu系统的依赖和相应的第三方工具包的依赖,如tensorflow、opencv、protobuf等。现有两种方法部署整个环境:借助自动部署工具和依次安装依赖项。

    方法1: 自动部署工具。

    自动部署工具是一个shell脚本,让用户能够自动化部署SDK的环境,减少人力以及错误率。具体内容请详见SDK环境自动部署工具说明

    方法2:如果想了解环境的依赖项也可以通过选择依次一步一步的依次安装依赖项。

    环境主要依赖nvdia-cuda 9.0, cudnn 7.0, opencv 3.4.2, protobuf 3.2.0, android adb,poster工具集等依赖包。具体请参考依次安装依赖项说明

    Windows:

    用户下载源码后,需要安装python的依赖。有部分模块是基于c++语言实现的,所以需要用户下载vs2017,并编译源码,具体请参考 python的依赖安装安装vs2017并编译源码

  • 部署 SDKTool

    AI服务进程所需要的跟具体游戏相关的配置文件和图像标注可通过SDKTool去配置,SDKTool的安装,请见文档SDKTool部署说明

2 快速开始

aitest 怎么自动玩游戏的呢?平台内置了 <天天酷跑>的例子,让我们一睹为快。

randomai

​ 图 4 左边为未训练运行效果,右边为训练后运行效果

2.1 本地运行

本地运行主要分为以下几步:

docker镜像:
win10用户可在电脑上安装docker,使用已经搭建好game_ai_sdk所需环境的ubuntu16.04 docker镜像系统。详细内容请参考快速上手

Ubuntu:

  • Step1:下载工具包

    下载AISDK,详细内容请参考文档AISDK工具包下载

  • Step2:编译AISDK

    进入game_ai_sdk目录,编译GPU或CPU对应SDK版本,详细内容请参考文档编译AISDK

  • Step3:安装apk

    PC机连接手机(安卓系统)后,从应用商店或TTKP官网下载即可。

  • Step4:启动

    启动AIClient 和 AISDK服务。详细内容请参考本地启动

Windows:

  • Step1:下载工具包

    下载AISDK,详细内容请参考文档AISDK工具包下载

  • Step2:编译SDK

    安装vs2017,设置环境变量,编译SDK,详细内容请参考文档windows下编译SDK

  • Step3:安装apk

    PC机连接手机(安卓系统)后,从应用商店或TTKP官网下载即可。

  • Step4:启动

    启动AIClient 和 AISDK服务。详细内容请参考本地启动

3 配置文件工具SDK Tool

在第2章我们介绍了如何运行一个内置的游戏AI,那么我们如何从零开始接入一个新的项目呢?首先我们需要生成跟具体游戏相关的配置文件。如控制游戏运行流程的UI界面(UI配置),进入游戏场景后,AI所需要识别的游戏场景元素(场景识别配置)等。工具包AI SDK Tool可以协助用户去生成这些配置文件。工具的下载和安装方法请参考第一章部署SDKTool部分。

SDKTool

图 5 SDKTool界面介绍

  • UI配置

    游戏运行过程中,有些需要玩家交互点击Button,配置好流程中的这些UI界面和需要点击的位置后,AI即可以像玩家一样在相应的界面点击相应的位置。方便用户的自动化测试或是其他需要自动化进入游戏的需求。详细内容,请见 UI配置文件说明

  • 场景识别配置

    根据所选择的游戏场景,设置所需要的识别任务。如QQ飞车中的数字,左下角的道具,向左转向的按钮,向右转向的按钮等。场景配置文件可配置的识别类型主要包括固定位置的物体识别(fix object),形变物体识别(deform object),数字识别(number),卡住判断(stuck),基于像素值的筛选(pixel),固定血条的识别(fix blood),不固定血条的识别(deform blood)等。具体参数说明,请见任务配置文件说明。图像识别进程根据配置项做处理后,把结果返回给Agent,Agent可以根据游戏元素的识别结果编写相应的AI逻辑。识别类型配置说明以及返回结果示例请见文档图像识别进程识别类型介绍

4 项目接入

通过第三章我们了解了配置文件工具的功能,那么我们完整接入一个新的项目,需要哪些步骤呢?以<天天酷跑>为例,我们介绍接入新项目的具体步骤。

  • 执行项目的整个逻辑流程如下,配置项目的时候需要根据这个流程来配置。

img

  • Step1: 配置游戏过程UI

    详细内容请见项目接入-UI配置

  • Step2: 采集样本,训练识别模型(可变物体的识别算法需求,此步骤为可选步骤,<天天酷跑>不需要此步骤。)

    有些识别任务(如可变物体的识别)需要训练网络模型。目前平台内置了YOLO识别算法。我们需要先采集图像样本,并对这些样本进行标注,然后基于这些标注样本去训练YOLO模型。详细过程请参考图像标注和YOLO模型训练说明

  • Step3: 配置场景识别任务

    详细内容请见项目接入-配置task任务

  • Step4: 选择AI算法

    ​ 平台内置的AI算法有DQN,IM(模仿学习),用户可以根据需求选择AI算法

  • Step5: 运行SDK

    准备工作就绪后,运行SDK,看看我们的AI是怎么玩新游戏的吧。具体内容请见本地运行

5 自动探索

UI自动探索是自动遍历和记录Android手机游戏内所有UI的功能,以<天天酷跑>为例,我们介绍UI自动探索的具体步骤。

​详细内容请见UI自动探索使用手册

  • Step1: 配置样本图片

    可以从本地导入图片,也可以在工具上实时生成样本图片。

  • Step2: 标注样本

    先自动标注样本,再人工检查并调整部分标注。

  • Step3: 训练模型

    根据需要和电脑配置调整训练参数,微调次数越大模型的效果越好,但是训练时间越长

  • Step4: 执行自动探索

    根据需要设置本次执行的点击次数。执行完指定的点击次数后自动结束。

  • Step5: 查看自动探索结果

    执行结束后可查看执行过程的图分析,场景和按钮覆盖率,以及每个样本图片的详细覆盖情况

6 二次开发

如果有更高阶的需求,比如现有的AI算法不能满足需求,如何加入自己的AI呢?想增加新的检测或识别算法,该怎么加入到整体框架上? 那么您可以增加和修改源码,并欢迎上传到git。

7 调试技巧

在用工具的时候,可能会遇到一些问题,如图像匹配有偏差等问题,请详见文档 调试技巧说明

8 常见问题及处理方法

搭建环境或者运行过程出现问题,查看FAQ

gameaisdk's People

Contributors

836304831 avatar berryjwang avatar sinshen avatar web-aaron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gameaisdk's Issues

没法正常运行

这个环境挺难搭建的,c语言解析有报错,目前还在维护吗?有没有新版SKD。

感谢开源,Windows下执行requirements.txt安装依赖环境会报错

依赖环境通过pip安装,如opencv-python和tensorflow这些会提示找不到对应版本,安装其他版本后会提示需要其他附带组件的对应版本,在这完成之后,执行会报错,如下:
Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Using legacy 'setup.py install' for cffi, since package 'wheel' is not installed.
Using legacy 'setup.py install' for psutil, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pyzmq, since package 'wheel' is not installed.
Installing collected packages: cffi, chardet, gast, grpcio, numpy, h5py, idna, Markdown, msgpack, msgpack-numpy, opencv-python, protobuf, psutil, pyzmq, urllib3, requests, wheel, Werkzeug, oauthlib, requests-oauthlib, pyasn1, rsa, pyasn1-modules, cachetools, google-auth, google-auth-oauthlib, tensorboard, opt-einsum, wrapt, google-pasta, termcolor, scipy, astunparse, tensorflow-estimator, keras-preprocessing, tensorflow, zmq
Running setup.py install for cffi ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\lm\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\lm\AppData\Local\Temp\pip-install-us63pxs_\cffi\setup.py'"'"'; file='"'"'C:\Users\lm\AppData\Local\Temp\pip-install-us63pxs_\cffi\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\lm\AppData\Local\Temp\pip-record-yih5nfmq\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\lm\appdata\local\programs\python\python38\Include\cffi'
cwd: C:\Users\lm\AppData\Local\Temp\pip-install-us63pxs_\cffi
Complete output (37 lines):
configtest.c
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\cffi
copying cffi\api.py -> build\lib.win-amd64-3.8\cffi
copying cffi\backend_ctypes.py -> build\lib.win-amd64-3.8\cffi
copying cffi\cffi_opcode.py -> build\lib.win-amd64-3.8\cffi
copying cffi\commontypes.py -> build\lib.win-amd64-3.8\cffi
copying cffi\cparser.py -> build\lib.win-amd64-3.8\cffi
copying cffi\error.py -> build\lib.win-amd64-3.8\cffi
copying cffi\ffiplatform.py -> build\lib.win-amd64-3.8\cffi
copying cffi\lock.py -> build\lib.win-amd64-3.8\cffi
copying cffi\model.py -> build\lib.win-amd64-3.8\cffi
copying cffi\pkgconfig.py -> build\lib.win-amd64-3.8\cffi
copying cffi\recompiler.py -> build\lib.win-amd64-3.8\cffi
copying cffi\setuptools_ext.py -> build\lib.win-amd64-3.8\cffi
copying cffi\vengine_cpy.py -> build\lib.win-amd64-3.8\cffi
copying cffi\vengine_gen.py -> build\lib.win-amd64-3.8\cffi
copying cffi\verifier.py -> build\lib.win-amd64-3.8\cffi
copying cffi_init
.py -> build\lib.win-amd64-3.8\cffi
copying cffi_cffi_include.h -> build\lib.win-amd64-3.8\cffi
copying cffi\parse_c_type.h -> build\lib.win-amd64-3.8\cffi
copying cffi_embedding.h -> build\lib.win-amd64-3.8\cffi
copying cffi_cffi_errors.h -> build\lib.win-amd64-3.8\cffi
running build_ext
building '_cffi_backend' extension
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\c
creating build\temp.win-amd64-3.8\Release\c\libffi_msvc
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic/libffi_msvc -Ic:\users\lm\appdata\local\programs\python\python38\include -Ic:\users\lm\appdata\local\programs\python\python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" /Tcc/_cffi_backend.c /Fobuild\temp.win-amd64-3.8\Release\c/cffi_backend.obj
cffi_backend.c
c:\users\lm\appdata\local\programs\python\python38\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\lm\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\lm\AppData\Local\Temp\pip-install-us63pxs
\cffi\setup.py'"'"'; file='"'"'C:\Users\lm\AppData\Local\Temp\pip-install-us63pxs
\cffi\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\lm\AppData\Local\Temp\pip-record-yih5nfmq\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\lm\appdata\local\programs\python\python38\Include\cffi' Check the logs for full command output.

已连接到手机,但一直报错[./phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\plugin\Platform_plugin\PlatformWeTest\demo\TcpSocketHandler.py:190][ERROR] : read packet exception

[2023-06-13 16:05:37,233][./phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\plugin\Platform_plugin\PlatformWeTest\demo\TcpSocketHandler.py:190][ERROR] : read packet exception
Traceback (most recent call last):
File "./phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\plugin\Platform_plugin\PlatformWeTest\demo\TcpSocketHandler.py", line 160, in run
File "./phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\plugin\Platform_plugin\PlatformWeTest\demo\TcpSocketHandler.py", line 325, in read_packet
File "./phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\plugin\Platform_plugin\PlatformWeTest\demo\TcpSocketHandler.py", line 73, in read_packet_bytes
File "./phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\plugin\Platform_plugin\PlatformWeTest\demo\TcpSocketHandler.py", line 59, in __read_bytes
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。
[2023-06-13 16:05:37,233][./phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\plugin\Platform_plugin\PlatformWeTest\demo\TcpSocketHandler.py:195][INFO] : reader: put packet MSG_CLOSE_SOCKET
[2023-06-13 16:05:37,234][./phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\plugin\Platform_plugin\PlatformWeTest\demo\TcpSocketHandler.py:155][DEBUG] : ---wait here
[2023-06-13 16:05:37,234][./phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\plugin\Platform_plugin\PlatformWeTest\demo\TcpSocketHandler.py:118][INFO] : close socket, clear event
[2023-06-13 16:05:37,234][./phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\plugin\Platform_plugin\PlatformWeTest\demo\TcpSocketHandler.py:286][INFO] : ############### break here, not flag=True
[2023-06-13 16:05:37,242][./phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\plugin\Platform_plugin\PlatformWeTest\demo\TcpSocketHandler.py:219][INFO] : set heartEvent
[2023-06-13 16:05:37,243][./phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\plugin\Platform_plugin\PlatformWeTest\demo\TcpSocketHandler.py:173][DEBUG] : >-- heart beat <--: header {
sequenceId: 9527
timestamp: 1686643669379
command: CLOUDSCREEN_HEARTBEAT_RES
}

运行天天酷跑的例子出错

报错代码:
start service test_node failed, process GameReg.exe cfgpath D:/github/GameAISDK-master/tools/SDKTool/project/TTKP/TTKP.prj start failed, service_name: test_node error: []
控制台一直弹这些信息:
[2021-06-26 22:39:21,275][./phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\plugin\Platform_plugin\PlatformWeTest\demo\TcpSocketHandler.py:173][DEBUG] : >-- heart beat <--: header {
sequenceId: 9527
timestamp: 1624718358771
command: CLOUDSCREEN_HEARTBEAT_RES
}

麻烦大佬帮忙看一下
已加群麻烦通过一下QQ号码:2387301977

pip install -r requirements.txt安装依赖报错

ERROR: Could not find a version that satisfies the requirement torch==1.3.0+cpu
ERROR: No matching distribution found for torch==1.3.0+cpu

pip 21.0.1
python 3.6.2

请问下如何解决呢?感谢

感谢开源,请问项目原理上可否更改输入和输出模块?

各位前辈好!

小弟想在现有框架上做一些更改,不知在原理上会不会影响框架的其它模块。
例如对于天天酷跑这个游戏,AI client收到的图像可否改为由外部摄像头传入的实时图像?
输出指令是否可以不用ADB,而是输出一些离散的指令(如0和1),然后将指令发送给一些外部的控制器,而不是直接传给手机。这样就能达到机器人玩游戏的感觉。
请问这种想法原理上能否基于此框架开发?

谢谢!

UI配置文件说明:配置求教

UI配置文件说明:
Linux下配置环境变量,在命令窗口中输入:“export AI_SDK_PATH=配置文件路径”,例如:export AI_SDK_PATH=/home/SDK/PVP_test
这里的PVP_test原来是什么数据,项目里各种cfg和data太多了,应该参照哪个来配置,还是直接复制SDKTool路径下的cfg那三个文件就够了吗(bus.ini、log.ini、SDKTool.ini),还有data里只是图片吗[刚刚阅读到UI配置这里,还没到AI配置]
配置好就可以直接关联到调试,有什么指令吗,可否指点一下

求助,启动报错(windows环境)

[2021-11-27 16:01:08,729][../src/AgentAI/aimodel\ImitationLearning\Network.py:306][INFO] : input shape:(50, 50, 3)
[2021-11-27 16:01:08,738][../src/AgentAI/aimodel\ImitationLearning\Network.py:310][INFO] : use small net(50), KerasModelSmallNet50
[2021-11-27 16:01:08,817][../src/AgentAI/aimodel\ImitationLearning\Network.py:320][INFO] : task list:[0]
[2021-11-27 16:01:08,859][agentai.py:134][ERROR] : exception: You are trying to load a weight file containing 129 layers into a model with 9 layers. msg: Traceback (most recent call last):
File "agentai.py", line 130, in Main
RunFrameWork(args.mode)
File "agentai.py", line 92, in RunFrameWork
if aiFramework.Init() is True:
File "../src/AgentAI/aiframework\AIFrameWork.py", line 59, in Init
if self._InitAIObject() is True:
File "../src/AgentAI/aiframework\AIFrameWork.py", line 74, in _InitAIObject
self.__aiModel = self.__aiPlugin.CreateAIModelObj()
File "../src/AgentAI/aiframework\AIPlugin.py", line 260, in CreateAIModelObj
aiModel = aiModelClass()
File "../src/AgentAI/aimodel\ImitationLearning\ImitationAI.py", line 34, in init
self.network.LoadWeights()
File "../src/AgentAI/aimodel\ImitationLearning\Network.py", line 535, in LoadWeights
self.kerasModel.load_weights(self.modelPath + 'my_model_weights.h5')
File "D:\Program Files\Python3\lib\site-packages\tensorflow\python\keras\engine\network.py", line 1448, in load_weights
saving.load_weights_from_hdf5_group(f, self.layers)
File "D:\Program Files\Python3\lib\site-packages\tensorflow\python\keras\engine\saving.py", line 780, in load_weights_from_hdf5_group
' layers.')
ValueError: You are trying to load a weight file containing 129 layers into a model with 9 layers.

出现报错 报错如下

2>正在生成代码...
2>jsoncpp.lib(json_value.obj) : 找到 MSIL .netmodule 或使用 /GL 编译的模块;正在使用 /LTCG 重新启动链接;将 /LTCG 添加到链接命令行以改进链接器性能
2>正在生成代码
2>已完成代码的生成
2>jsoncpp.lib(json_value.obj) : warning LNK4099: 未找到 PDB“lib_json.pdb”(使用“jsoncpp.lib(json_value.obj)”或在“C:\Users\Administrator\Desktop\aitest\GameAISDK\src\ImgProc\GameRecognize\Windows\Release\lib_json.pdb”中寻找);正在链接对象,如同没有调试信息一样
2>jsoncpp.lib(json_reader.obj) : warning LNK4099: 未找到 PDB“lib_json.pdb”(使用“jsoncpp.lib(json_reader.obj)”或在“C:\Users\Administrator\Desktop\aitest\GameAISDK\src\ImgProc\GameRecognize\Windows\Release\lib_json.pdb”中寻找);正在链接对象,如同没有调试信息一样
2>jsoncpp.lib(json_writer.obj) : warning LNK4099: 未找到 PDB“lib_json.pdb”(使用“jsoncpp.lib(json_writer.obj)”或在“C:\Users\Administrator\Desktop\aitest\GameAISDK\src\ImgProc\GameRecognize\Windows\Release\lib_json.pdb”中寻找);正在链接对象,如同没有调试信息一样
2>GameReg.vcxproj -> C:\Users\Administrator\Desktop\aitest\GameAISDK\src\ImgProc\GameRecognize\Windows\Release\GameReg.exe
2>已完成生成项目“GameReg.vcxproj”的操作。
========== 全部重新生成: 成功 2 个,失败 0 个,跳过 0 个 ==========
已复制 1 个文件。
------------------------------------- build cpp programe end -------------------
已复制 1 个文件。
已复制 1 个文件。
已复制 1 个文件。
已复制 1 个文件。
已复制 1 个文件。

C:\Users\Administrator\Desktop\aitest\GameAISDK\build>if exist ..\src\ImgProc (

)
已复制 1 个文件。
已复制 1 个文件。
已复制 1 个文件。
已复制 1 个文件。

Unable to build docker 'pull access denied for base_aisdktoolclt_ubt16'

When I run the script in the folder tools/docker/start_mac_docker.sh in linux(gentoo)
I get an error message
docker: Error response from daemon: pull access denied for base_aisdktoolclt_ubt16, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Maybe base_aisdktoolclt_ubt16 has been removed in docker hub?

运行demo时,报错 “Exception: get image error”

详细信息:
['D:\platform-tools_r30.0.4-windows\platform-tools\adb.exe', '-s', '74f0b57f', 'shell', 'LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/cloudscreen']
[2020-08-30 23:02:10,366][phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\devicePlatform\WrappedPlatform.py:52][ERROR] : Get frame failed, error code:-2
[2020-08-30 23:02:10,367][phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\androidDevice.py:100][ERROR] : get image error [get image error]
[2020-08-30 23:02:10,369][phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\androidDevice.py:101][ERROR] : Traceback (most recent call last):
File "phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\androidDevice.py", line 93, in getScreen
Exception: get image error

GameReg.exe显示如下:
2020-08-30 22:52:10.8810|e:\gameaisdk\src\imgproc\gamerecognize\src\main.cpp|ParseArg:58|INFO|Run SDK Model
2020-08-30 22:52:10.8830|e:\gameaisdk\src\imgproc\gamerecognize\src\taskmgr\taskmanager.cpp|CTaskManager::UpdateOneMsg:450|INFO|process refer task msg
2020-08-30 22:52:10.8880|e:\gameaisdk\src\imgproc\gamerecognize\src\taskmgr\taskmanager.cpp|CTaskManager::UpdateOneMsg:391|INFO|process group msg
2020-08-30 22:52:10.8880|e:\gameaisdk\src\imgproc\gamerecognize\src\taskmgr\taskcontext.cpp|TaskContext::CreateRecognizer:71|INFO|create fixObj reg
libpng warning: sBIT: invalid

请问是什么原因呢,谢谢!

你好,运行天天酷跑Demo的启动顺序是什么样的呢?

我安装好了依赖环境,依次启动了:
./start_ui_ai.sh
配置了phone_aiclient
但是启动demo.py后 ,游戏并没有反应,此时游戏界面是在天天酷跑准备可以开启游戏的那个界面上
看pycharm的控制台,demo.py貌似也没有报错,
但不知为何游戏没有自动开起来

想问一下,缺少tbus,这个tbus是什么 我在百度上也没找到,尝试用pip安装也没有找到

PS C:\Users\zhangyu> python -u "g:\AIgameTest\GameAISDK\tools\SDKTool\main.py"
Traceback (most recent call last):
File "g:\AIgameTest\GameAISDK\tools\SDKTool\main.py", line 21, in
from src.ui.main_window.tool_main_window import SDKMainWindow
File "g:\AIgameTest\GameAISDK\tools\SDKTool\src\ui\main_window\tool_main_window.py", line 20, in
from ...ui.debug.debug_factory import DebugFactory
from .game_reg_debug import GameRegDebug
File "g:\AIgameTest\GameAISDK\tools\SDKTool\src\ui\debug\game_reg_debug.py", line 22, in
from ...communicate.agent_api_mgr import AgentAPIMgr, MSG_SEND_GROUP_ID, GAME_RESULT_INFO
File "g:\AIgameTest\GameAISDK\tools\SDKTool\src\communicate\agent_api_mgr.py", line 15, in
from .agent_msg_mgr import MsgMgr, MSG_SEND_TASK_CONF, MSG_SEND_GROUP_ID, MSG_SEND_TASK_FLAG, MSG_SEND_ADD_TASK,
File "g:\AIgameTest\GameAISDK\tools\SDKTool\src\communicate\agent_msg_mgr.py", line 27, in
import tbus
ModuleNotFoundError: No module named 'tbus'
PS C:\Users\zhangyu> pip install tbus
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement tbus (from versions: none)
ERROR: No matching distribution found for tbus

编译ImgProc项目的时候报错

大佬,您好,我从"https://git.code.tencent.com/Tencent_Open_Source/GameAISDK/tree/master"上下载了代码,然后在编译ImgProc项目时报了很多错误,
我的环境版本是vs2019,但是我下载了10.0.17134.0的sdk和vs2017的工具集
大佬,有时间麻烦你看下,谢谢!!
1>------ 已启动全部重新生成: 项目: UIRecognize, 配置: Debug_cpu x64 ------
1>activations.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>activation_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>art.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>avgpool_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>batchnorm_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\batchnorm_layer.c(139): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\batchnorm_layer.c(140): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\batchnorm_layer.c(141): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\batchnorm_layer.c(142): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\batchnorm_layer.c(154): warning C4028: 形参 1 与声明不同
1>blas.c
1>box.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\box.c(139): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\box.c(140): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\box.c(141): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\box.c(142): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\box.c(144): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\box.c(161): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\box.c(162): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\box.c(163): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\box.c(164): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\box.c(166): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\box.c(186): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\box.c(187): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\box.c(188): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\box.c(189): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\box.c(191): warning C4305: “初始化”: 从“double”到“float”截断
1>captcha.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>cifar.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\cifar.c(81): warning C4305: “初始化”: 从“double”到“float”截断
1>classifier.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\classifier.c(631): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\classifier.c(632): warning C4305: “初始化”: 从“double”到“float”截断
1>coco.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\coco.c(175): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\coco.c(264): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\coco.c(329): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\coco.c(374): warning C4305: “函数”: 从“double”到“float”截断
1>col2im.c
1>compare.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\compare.c(70): warning C4305: “*=”: 从“double”到“float”截断
1>connected_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\connected_layer.c(144): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\connected_layer.c(145): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\connected_layer.c(146): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\connected_layer.c(147): warning C4305: “函数”: 从“double”到“float”截断
1>convolutional_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\convolutional_layer.c(538): warning C4028: 形参 1 与声明不同
1>cost_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\cost_layer.c(74): warning C4028: 形参 1 与声明不同
1>cpu_gemm.c
1>crnn_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>crop_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>cuda.c
1>正在生成代码...
1>正在编译...
1>darknet.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>data.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\data.c(1065): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\data.c(1095): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\data.c(1132): warning C4305: “函数”: 从“double”到“float”截断
1>deconvolutional_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\deconvolutional_layer.c(85): warning C4113: “void (__cdecl *)(deconvolutional_layer,float,float,float)”和“void (__cdecl )(layer,int,float,float,float)”的参数列表不同
1>demo.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>detection_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>detector.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\detector.c(428): warning C4477: “fprintf”: 格式字符串“%f”需要类型“double”的参数,但可变参数 1 拥有了类型“time_t”
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\detector.c(358): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\detector.c(359): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\detector.c(454): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\detector.c(456): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\detector.c(447): warning C4101: “l”: 未引用的局部变量
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\detector.c(569): warning C4305: “初始化”: 从“double”到“const float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\detector.c(570): warning C4305: “初始化”: 从“double”到“const float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\detector.c(534): warning C4101: “j”: 未引用的局部变量
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\detector.c(1072): warning C4305: “初始化”: 从“double”到“float”截断
1>dice.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\dice.c(38): warning C4305: “
=”: 从“double”到“float”截断
1>dropout_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>gemm.c
1>getopt.c
1>gettimeofday.c
1>go.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\go.c(537): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\go.c(800): warning C4305: “函数”: 从“double”到“float”截断
1>gru_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>im2col.c
1>image.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\image.c(1444): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\image.c(1649): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\image.c(1650): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\image.c(1651): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\image.c(1652): warning C4305: “函数”: 从“double”到“float”截断
1>layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>list.c
1>local_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>matrix.c
1>maxpool_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>正在生成代码...
1>正在编译...
1>network.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\network.c(418): warning C4013: “resize_upsample_layer”未定义;假设外部返回 int
1>nightmare.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\nightmare.c(201): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\nightmare.c(204): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\nightmare.c(205): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\nightmare.c(249): warning C4305: “函数”: 从“double”到“float”截断
1>normalization_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>option_list.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\option_list.c(46): warning C4013: “get_labels”未定义;假设外部返回 int
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\option_list.c(46): warning C4047: “=”:“char **”与“int”的间接级别不同
1>parser.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\parser.c(276): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\parser.c(319): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\parser.c(373): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\parser.c(488): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\parser.c(603): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\parser.c(604): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\parser.c(605): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\parser.c(614): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\parser.c(615): warning C4305: “函数”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\parser.c(616): warning C4305: “函数”: 从“double”到“float”截断
1>region_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\region_layer.c(289): warning C4305: “函数”: 从“double”到“float”截断
1>reorg_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>reorg_old_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>rnn.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\rnn.c(478): warning C4305: “函数”: 从“double”到“float”截断
1>rnn_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>rnn_vid.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>route_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>shortcut_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>softmax_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>super.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>swag.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>tag.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>tree.c
1>upsample_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>utils.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\utils.c(291): warning C4477: “printf”: 格式字符串“%ld”需要类型“long”的参数,但可变参数 1 拥有了类型“size_t”
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\utils.c(291): note: 请考虑在格式字符串中使用“%zd”
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\utils.c(661): warning C4013: “rand_s”未定义;假设外部返回 int
1>正在生成代码...
1>正在编译...
1>voxel.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>writing.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>yolo.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\yolo.c(150): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\yolo.c(236): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\yolo.c(304): warning C4305: “初始化”: 从“double”到“float”截断
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\yolo.c(347): warning C4305: “函数”: 从“double”到“float”截断
1>yolo_layer.c
1>d:\documents\downloads\gameaisdk\modules\darknetv3-win\src\activations.h(59): warning C4305: “return”: 从“double”到“float”截断
1>正在生成代码...
1>http_stream.cpp
1>CColorMatch.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\tsingleton.h(50): error C2065: “_au”: 未声明的标识符
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\tsingleton.h(40): note: 编译 类 模板 成员函数 "T *TSingleton::getInstance(void)" 时
1> with
1> [
1> T=CLog
1> ]
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\imgreg\imgprocess\ccolormatch.cpp(42): note: 参见对正在编译的函数 模板 实例化“T *TSingleton::getInstance(void)”的引用
1> with
1> [
1> T=CLog
1> ]
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\log.h(18): note: 参见对正在编译的 类 模板 实例化 "TSingleton" 的引用
1>CObjDet.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\tsingleton.h(50): error C2065: “_au”: 未声明的标识符
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\tsingleton.h(40): note: 编译 类 模板 成员函数 "T *TSingleton::getInstance(void)" 时
1> with
1> [
1> T=CLog
1> ]
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\imgreg\imgprocess\cobjdet.cpp(24): note: 参见对正在编译的函数 模板 实例化“T *TSingleton::getInstance(void)”的引用
1> with
1> [
1> T=CLog
1> ]
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\log.h(18): note: 参见对正在编译的 类 模板 实例化 "TSingleton" 的引用
1>CORBMatch.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\tsingleton.h(50): error C2065: “_au”: 未声明的标识符
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\tsingleton.h(40): note: 编译 类 模板 成员函数 "T *TSingleton::getInstance(void)" 时
1> with
1> [
1> T=CLog
1> ]
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\imgreg\imgprocess\corbmatch.cpp(41): note: 参见对正在编译的函数 模板 实例化“T *TSingleton::getInstance(void)”的引用
1> with
1> [
1> T=CLog
1> ]
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\log.h(18): note: 参见对正在编译的 类 模板 实例化 "TSingleton" 的引用
1>ImgComn.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\tsingleton.h(50): error C2065: “_au”: 未声明的标识符
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\tsingleton.h(40): note: 编译 类 模板 成员函数 "T *TSingleton::getInstance(void)" 时
1> with
1> [
1> T=CLog
1> ]
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\imgreg\imgprocess\imgcomn.cpp(14): note: 参见对正在编译的函数 模板 实例化“T *TSingleton::getInstance(void)”的引用
1> with
1> [
1> T=CLog
1> ]
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\log.h(18): note: 参见对正在编译的 类 模板 实例化 "TSingleton" 的引用
1>CLocationReg.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\tsingleton.h(50): error C2065: “_au”: 未声明的标识符
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\tsingleton.h(40): note: 编译 类 模板 成员函数 "T *TSingleton::getInstance(void)" 时
1> with
1> [
1> T=CLog
1> ]
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\imgreg\recognizer\clocationreg.cpp(41): note: 参见对正在编译的函数 模板 实例化“T *TSingleton::getInstance(void)”的引用
1> with
1> [
1> T=CLog
1> ]
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\log.h(18): note: 参见对正在编译的 类 模板 实例化 "TSingleton" 的引用
1>TqcWindowsOS.cpp
1>GameUtils.cpp
1>IniConfig.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\tsingleton.h(40): error C3254: “CIniConfig”: 类包含显式重写“getInstance”,但并不从包含函数声明的接口派生
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\tsingleton.h(40): error C2838: “getInstance”: 成员声明中的限定名称非法
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\tqclog.h(47): error C2071: “CIniConfig::g_logLevel”: 非法的存储类
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.cpp(16): error C2535: “CIniConfig::CIniConfig(void)”: 已经定义或声明成员函数
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.h(21): note: 参见“CIniConfig::CIniConfig”的声明
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.cpp(19): error C2535: “CIniConfig::~CIniConfig(void)”: 已经定义或声明成员函数
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.h(22): note: 参见“CIniConfig::~CIniConfig”的声明
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.cpp(22): error C2535: “int CIniConfig::loadFile(const char *)”: 已经定义或声明成员函数
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.h(30): note: 参见“CIniConfig::loadFile”的声明
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.cpp(46): error C2535: “void CIniConfig::closeFile(void)”: 已经定义或声明成员函数
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.h(34): note: 参见“CIniConfig::closeFile”的声明
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.cpp(55): error C2535: “int CIniConfig::getPrivateStr(const char *,const char *,const char *,char *,const int)”: 已经定义或声明成员函数
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.h(40): note: 参见“CIniConfig::getPrivateStr”的声明
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.cpp(64): error C2535: “int CIniConfig::getPrivateAllSection(char *,const int)”: 已经定义或声明成员函数
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.h(46): note: 参见“CIniConfig::getPrivateAllSection”的声明
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.cpp(73): error C2535: “int CIniConfig::getPrivateAllKey(const char *,char *,const int)”: 已经定义或声明成员函数
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.h(51): note: 参见“CIniConfig::getPrivateAllKey”的声明
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.cpp(82): error C2535: “int CIniConfig::getPrivateInt(const char *,const char *,const int)”: 已经定义或声明成员函数
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.h(54): note: 参见“CIniConfig::getPrivateInt”的声明
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.cpp(97): error C2535: “bool CIniConfig::getPrivateBool(const char *,const char *,const int)”: 已经定义或声明成员函数
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.h(58): note: 参见“CIniConfig::getPrivateBool”的声明
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.cpp(185): error C2535: “int CIniConfig::ProcessOperateOne(const char *,char *,const int,char *,int,char *,const int)”: 已经定义或声明成员函数
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.h(66): note: 参见“CIniConfig::ProcessOperateOne”的声明
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.cpp(232): error C2535: “int CIniConfig::ProcessOperateTwo(const char *,char *,const int,char *,int,char *,const int,bool,const char *)”: 已经定义或声明成员函数
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.h(68): note: 参见“CIniConfig::ProcessOperateTwo”的声明
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.cpp(308): error C2535: “int CIniConfig::ProcessOperateThree(const char *,char *,const int,char *,int,char *,const int)”: 已经定义或声明成员函数
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.h(70): note: 参见“CIniConfig::ProcessOperateThree”的声明
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.cpp(372): error C2535: “int CIniConfig::ProcessOperateFour(const char *,const char *,const char *,char *,const int,char *,int,char *,const int)”: 已经定义或声明成员函数
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.h(72): note: 参见“CIniConfig::ProcessOperateFour”的声明
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.cpp(477): error C2535: “int CIniConfig::getPrivateProfileString(const char *,const char *,const char *,char *,const int)”: 已经定义或声明成员函数
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.h(63): note: 参见“CIniConfig::getPrivateProfileString”的声明
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\iniconfig.h(19): fatal error C1075: “{”: 未找到匹配令牌
1>JsonConfig.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\tsingleton.h(50): error C2065: “_au”: 未声明的标识符
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\tsingleton.h(40): note: 编译 类 模板 成员函数 "T *TSingleton::getInstance(void)" 时
1> with
1> [
1> T=CLog
1> ]
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\jsonconfig.cpp(29): note: 参见对正在编译的函数 模板 实例化“T *TSingleton::getInstance(void)”的引用
1> with
1> [
1> T=CLog
1> ]
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\log.h(18): note: 参见对正在编译的 类 模板 实例化 "TSingleton" 的引用
1>Log.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\tsingleton.h(50): error C2065: “_au”: 未声明的标识符
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\tsingleton.h(40): note: 编译 类 模板 成员函数 "T *TSingleton::getInstance(void)" 时
1> with
1> [
1> T=CLog
1> ]
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\log.cpp(123): note: 参见对正在编译的函数 模板 实例化“T *TSingleton::getInstance(void)”的引用
1> with
1> [
1> T=CLog
1> ]
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\log.h(18): note: 参见对正在编译的 类 模板 实例化 "TSingleton" 的引用
1>TqcCommon.cpp
1>TqcLock.cpp
1>TqcString.cpp
1>common.pb.cc
1>c1xx : fatal error C1083: 无法打开源文件: “......\Protobuf\common.pb.cc”: No such file or directory
1>gameregProtoc.pb.cc
1>c1xx : fatal error C1083: 无法打开源文件: “......\Protobuf\gameregProtoc.pb.cc”: No such file or directory
1>Action.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\comm\utils\base64.h(31): warning C4101: “char_array_4”: 未引用的局部变量
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\action\action.h(10): fatal error C1083: 无法打开包括文件: “Protobuf/common.pb.h”: No such file or directory
1>SendAction.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\action\sendaction.h(10): fatal error C1083: 无法打开包括文件: “Protobuf/common.pb.h”: No such file or directory
1>DataManager.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\communicate\datamanager.cpp(10): fatal error C1083: 无法打开包括文件: “Protobuf/common.pb.h”: No such file or directory
1>PBMsgManager.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\communicate\pbmsgmanager.cpp(10): fatal error C1083: 无法打开包括文件: “Protobuf/common.pb.h”: No such file or directory
1>正在生成代码...
1>正在编译...
1>GameOverState.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\action\action.h(10): fatal error C1083: 无法打开包括文件: “Protobuf/common.pb.h”: No such file or directory
1>GameRunState.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\action\action.h(10): fatal error C1083: 无法打开包括文件: “Protobuf/common.pb.h”: No such file or directory
1>GameStartState.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\action\action.h(10): fatal error C1083: 无法打开包括文件: “Protobuf/common.pb.h”: No such file or directory
1>HallState.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\action\action.h(10): fatal error C1083: 无法打开包括文件: “Protobuf/common.pb.h”: No such file or directory
1>main.cpp
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\cvdef.h(58): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\cvdef.h(58): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\mmintrin.h(29): error C2059: 语法错误:“字符串”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\mmintrin.h(29): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\xmmintrin.h(188): error C2059: 语法错误:“字符串”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\xmmintrin.h(188): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\emmintrin.h(69): error C2059: 语法错误:“字符串”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\emmintrin.h(69): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\setjmp.h(21): error C2059: 语法错误:“字符串”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\setjmp.h(21): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\pmmintrin.h(58): error C2059: 语法错误:“字符串”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\pmmintrin.h(58): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\tmmintrin.h(35): error C2059: 语法错误:“字符串”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\tmmintrin.h(35): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\smmintrin.h(83): error C2059: 语法错误:“字符串”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\smmintrin.h(83): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\nmmintrin.h(36): error C2059: 语法错误:“字符串”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\nmmintrin.h(36): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\wmmintrin.h(35): error C2059: 语法错误:“字符串”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\wmmintrin.h(35): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\immintrin.h(31): error C2059: 语法错误:“字符串”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\immintrin.h(31): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\zmmintrin.h(69): error C2059: 语法错误:“字符串”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\zmmintrin.h(69): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\ammintrin.h(32): error C2059: 语法错误:“字符串”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\ammintrin.h(32): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\intrin.h(49): error C2059: 语法错误:“字符串”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\intrin.h(49): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\algorithm(16): error C2059: 语法错误:“字符串”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\algorithm(16): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\algorithm(23): error C2059: 语法错误:“namespace”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\algorithm(23): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\iterator(16): error C2059: 语法错误:“namespace”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\iterator(16): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\iterator(282): error C2059: 语法错误:“namespace”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\iterator(282): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\array(17): error C2059: 语法错误:“namespace”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\array(17): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\cvdef.h(497): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\cvdef.h(497): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\cctype(33): error C2059: 语法错误:“namespace”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\cctype(33): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\cvstd.hpp(64): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\cvstd.hpp(65): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\cvstd.hpp(81): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\cvstd.hpp(81): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\cvstd.hpp(1033): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\cvstd.hpp(1034): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\ptr.inl.hpp(49): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\ptr.inl.hpp(49): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\base.hpp(60): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\base.hpp(61): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\ucrt\assert.h(14): error C2059: 语法错误:“字符串”
1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\ucrt\assert.h(14): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\check.hpp(10): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\check.hpp(10): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\traits.hpp(49): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\traits.hpp(50): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\saturate.hpp(51): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\saturate.hpp(52): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\matx.hpp(60): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\matx.hpp(61): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\vector(20): error C2059: 语法错误:“namespace”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\vector(20): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types.hpp(60): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types.hpp(61): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\bufferpool.hpp(15): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\bufferpool.hpp(16): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\mat.hpp(60): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\mat.hpp(61): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\mat.inl.hpp(57): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\mat.inl.hpp(58): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\persistence.hpp(107): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\persistence.hpp(107): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core.hpp(98): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core.hpp(98): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\operations.hpp(56): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\operations.hpp(57): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\sstream(14): error C2059: 语法错误:“namespace”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\sstream(14): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\complex(40): error C2059: 语法错误:“namespace”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\complex(40): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\cvstd.inl.hpp(57): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\cvstd.inl.hpp(58): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\functional(23): error C2059: 语法错误:“namespace”
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\functional(23): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\utility.hpp(63): error C2059: 语法错误:“namespace”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\utility.hpp(64): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\ucrt\assert.h(14): error C2059: 语法错误:“字符串”
1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\ucrt\assert.h(14): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types_c.h(335): error C2653: “cv”: 不是类或命名空间名称
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types_c.h(335): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types_c.h(335): error C2143: 语法错误: 缺少“,”(在“&”的前面)
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types_c.h(423): error C2371: “CIniConfig::CvMat”: 重定义;不同的基类型
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\persistence.hpp(99): note: 参见“CIniConfig::CvMat”的声明
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types_c.h(462): error C2653: “cv”: 不是类或命名空间名称
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types_c.h(462): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types_c.h(462): error C2143: 语法错误: 缺少“,”(在“&”的前面)
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types_c.h(466): error C2371: “CIniConfig::CvMat”: 重定义;不同的基类型
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\persistence.hpp(99): note: 参见“CIniConfig::CvMat”的声明
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types_c.h(527): error C2027: 使用了未定义类型“CvMat”
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\persistence.hpp(99): note: 参见“CvMat”的声明
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types_c.h(527): error C2653: “cv”: 不是类或命名空间名称
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types_c.h(527): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types_c.h(527): error C2143: 语法错误: 缺少“,”(在“&”的前面)
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types_c.h(528): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types_c.h(626): error C2371: “CIniConfig::CvMatND”: 重定义;不同的基类型
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\persistence.hpp(100): note: 参见“CIniConfig::CvMatND”的声明
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types_c.h(652): error C2653: “cv”: 不是类或命名空间名称
1>d:\documents\downloads\gameaisdk\modules\opencv-3.4.2\include\opencv2\core\types_c.h(652): fatal error C1003: 错误计数超过 100;正在停止编译
1>GameOverCfg.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2059: 语法错误:“{”
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>GameStartCfg.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2059: 语法错误:“{”
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uicfg\gamestartcfg.cpp(37): error C2065: “oVecState”: 未声明的标识符
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uicfg\gamestartcfg.cpp(39): error C2065: “nVecStartID”: 未声明的标识符
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uicfg\gamestartcfg.cpp(49): error C2065: “oVecState”: 未声明的标识符
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uicfg\gamestartcfg.cpp(54): error C2065: “nVecStartID”: 未声明的标识符
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uicfg\gamestartcfg.cpp(56): error C2065: “nVecStartID”: 未声明的标识符
1>CommUICfg.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2059: 语法错误:“{”
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>HallCfg.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2059: 语法错误:“{”
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uicfg\hallcfg.cpp(47): error C2065: “nVecStartID”: 未声明的标识符
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uicfg\hallcfg.cpp(63): error C2065: “nVecStartID”: 未声明的标识符
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uicfg\hallcfg.cpp(63): error C2672: “std::find”: 未找到匹配的重载函数
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uicfg\hallcfg.cpp(63): error C2780: “_InIt std::find(_InIt,const _InIt,const _Ty &)”: 应输入 3 个参数,却提供了 2 个
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\vc\tools\msvc\14.16.27023\include\xutility(3538): note: 参见“std::find”的声明
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uicfg\hallcfg.cpp(70): error C2181: 没有匹配 if 的非法 else
1>POPUICfg.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2059: 语法错误:“{”
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>UIFrameWork.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uiframework.cpp(13): fatal error C1083: 无法打开包括文件: “Protobuf/common.pb.h”: No such file or directory
1>CommonUIReg.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2059: 语法错误:“{”
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>GameOverReg.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2059: 语法错误:“{”
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>GameStartReg.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2059: 语法错误:“{”
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>HallReg.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2059: 语法错误:“{”
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>POPUIReg.cpp
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2059: 语法错误:“{”
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(202): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uireg\popuireg.cpp(123): error C2039: “nFrameCount”: 不是“tagFrameContext”的成员
1>d:\documents\downloads\gameaisdk\src\imgproc\ui\src\uitypes.h(198): note: 参见“tagFrameContext”的声明
1>正在生成代码...
1>已完成生成项目“UIRecognize.vcxproj”的操作 - 失败。
========== 全部重新生成: 成功 0 个,失败 1 个,跳过 0 个 ==========

使用中的一些问题

作为一个初学者,希望得到大佬们的指点,非常感谢。
使用windows docker的方式安装好了,在新建项目的过程中有点疑问。
scene场景是什么意思?我看教学视频里面在天天快跑中建了一个zanting的task,只是捕捉了暂停的按钮。
ai的action必须要选择scene,这两个的关系是什么?
ai的action里面的动作有down,up,swipe等操作,我现在有个人物在界面,我界面上任意地方上下左右滑动人物会同步滑动,这个动作应该怎么设置?没有固定的按钮位置

远程主机关闭了一个已经建立的链接

你好 我在跑demo的过程中当运行sdkTool python main.py的时候不断报错关闭了建立的连接
我是使用mac安装的win环境运行的项目

(py3) python main.py
libpng warning: iCCP: known incorrect sRGB profile
 [37m[INFO] [0m Android deviceID is None ( [1mAndroidGameDevice.py [0m:37)
[2020-12-25 15:34:35,186][C:\Users\Desktop\GameAISDK-KPXYX\GameAISDK\GameAISDK\tools\SDKTool\libs\WrappedDeviceAPI\gamedevice\AndroidGameDevice.py:37][ [37m[INFO] [0m] : Android deviceID is None
[2020-12-25 15:34:35,186][C:\Users\Desktop\GameAISDK-KPXYX\GameAISDK\GameAISDK\tools\SDKTool\libs\WrappedDeviceAPI\gamedevice\AndroidGameDevice.py:37][ [37m[INFO] [0m] : Android deviceID is None
 [37m[INFO] [0m platform getinstance ( [1mWrappedPlatform.py [0m:29)
[2020-12-25 15:34:35,186][C:\Users\Desktop\GameAISDK-KPXYX\GameAISDK\GameAISDK\tools\SDKTool\libs\WrappedDeviceAPI\devicePlatform\WrappedPlatform.py:29][ [37m[INFO] [0m] : platform getinstance
[2020-12-25 15:34:35,186][C:\Users\Desktop\GameAISDK-KPXYX\GameAISDK\GameAISDK\tools\SDKTool\libs\WrappedDeviceAPI\devicePlatform\WrappedPlatform.py:29][ [37m[INFO] [0m] : platform getinstance
 [37m[INFO] [0m platform init ( [1mWrappedPlatform.py [0m:34)
[2020-12-25 15:34:35,217][C:\Users\Desktop\GameAISDK-KPXYX\GameAISDK\GameAISDK\tools\SDKTool\libs\WrappedDeviceAPI\devicePlatform\WrappedPlatform.py:34][ [37m[INFO] [0m] : platform init
[2020-12-25 15:34:35,217][C:\Users\Desktop\GameAISDK-KPXYX\GameAISDK\GameAISDK\tools\SDKTool\libs\WrappedDeviceAPI\devicePlatform\WrappedPlatform.py:34][ [37m[INFO] [0m] : platform init
 [37m[INFO] [0m adi=arm64-v8a, sdk=29 ( [1mInitializer.py [0m:39)
[2020-12-25 15:34:35,436][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:39][ [37m[INFO] [0m] : adi=arm64-v8a, sdk=29
 [37m[INFO] [0m standalone:1 ( [1mPlatformWeTest.py [0m:80)
[2020-12-25 15:34:35,482][D:\workspace\github\modify\PlatformWeTest\demo\PlatformWeTest.py:80][ [37m[INFO] [0m] : standalone:1
 [37m[INFO] [0m Install touch server... ( [1mInitializer.py [0m:44)
[2020-12-25 15:34:35,592][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:44][ [37m[INFO] [0m] : Install touch server...
 [37m[INFO] [0m adi=arm64-v8a, sdk=29 ( [1mInitializer.py [0m:39)
[2020-12-25 15:34:35,592][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:39][ [37m[INFO] [0m] : adi=arm64-v8a, sdk=29
 [37m[INFO] [0m Push touch server to device ( [1mInitializer.py [0m:51)
[2020-12-25 15:34:35,592][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:51][ [37m[INFO] [0m] : Push touch server to device
 [37m[INFO] [0m Install touch server complete ( [1mInitializer.py [0m:55)
[2020-12-25 15:34:35,827][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:55][ [37m[INFO] [0m] : Install touch server complete
 [37m[INFO] [0m Install cloud screen... ( [1mInitializer.py [0m:62)
[2020-12-25 15:34:35,842][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:62][ [37m[INFO] [0m] : Install cloud screen...
 [37m[INFO] [0m adi=arm64-v8a, sdk=29 ( [1mInitializer.py [0m:39)
[2020-12-25 15:34:35,842][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:39][ [37m[INFO] [0m] : adi=arm64-v8a, sdk=29
 [37m[INFO] [0m Push cloudscreen to device ( [1mInitializer.py [0m:73)
[2020-12-25 15:34:35,905][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:73][ [37m[INFO] [0m] : Push cloudscreen to device
 [37m[INFO] [0m Install cloud screen complete ( [1mInitializer.py [0m:77)
[2020-12-25 15:34:36,170][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:77][ [37m[INFO] [0m] : Install cloud screen complete
 [37m[INFO] [0m Install input server... ( [1mInitializer.py [0m:84)
[2020-12-25 15:34:36,170][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:84][ [37m[INFO] [0m] : Install input server...
 [37m[INFO] [0m Install input server complete ( [1mInitializer.py [0m:96)
[2020-12-25 15:34:36,420][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:96][ [37m[INFO] [0m] : Install input server complete
 [37m[INFO] [0m inputserver run begin... ( [1mInitializer.py [0m:125)
[2020-12-25 15:34:36,623][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:125][ [37m[INFO] [0m] : inputserver run begin...
 [37m[INFO] [0m cloudscreen run begin... ( [1mInitializer.py [0m:142)
[2020-12-25 15:34:36,623][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:142][ [37m[INFO] [0m] : cloudscreen run begin...
 [31m[ERROR] [0m cloudscreen run over, return value:255 ( [1mInitializer.py [0m:149)
 [31m[ERROR] [0m inputserver run over, return value:1 ( [1mInitializer.py [0m:132)
[2020-12-25 15:34:37,655][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:149][ [31m[ERROR] [0m] : cloudscreen run over, return value:255
[2020-12-25 15:34:37,655][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:132][ [31m[ERROR] [0m] : inputserver run over, return value:1
 [37m[INFO] [0m cloudscreen run begin... ( [1mInitializer.py [0m:142)
 [37m[INFO] [0m inputserver run begin... ( [1mInitializer.py [0m:125)
[2020-12-25 15:34:38,686][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:142][ [37m[INFO] [0m] : cloudscreen run begin...
[2020-12-25 15:34:38,686][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:125][ [37m[INFO] [0m] : inputserver run begin...
 [31m[ERROR] [0m inputserver run over, return value:1 ( [1mInitializer.py [0m:132)
 [31m[ERROR] [0m cloudscreen run over, return value:255 ( [1mInitializer.py [0m:149)
[2020-12-25 15:34:39,718][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:132][ [31m[ERROR] [0m] : inputserver run over, return value:1
[2020-12-25 15:34:39,718][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:149][ [31m[ERROR] [0m] : cloudscreen run over, return value:255
 [37m[INFO] [0m cloudscreen run begin... ( [1mInitializer.py [0m:142)
 [37m[INFO] [0m inputserver run begin... ( [1mInitializer.py [0m:125)
[2020-12-25 15:34:40,748][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:142][ [37m[INFO] [0m] : cloudscreen run begin...
[2020-12-25 15:34:40,748][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:125][ [37m[INFO] [0m] : inputserver run begin...
 [37m[INFO] [0m input thread started ( [1mPlatformWeTest.py [0m:97)
[2020-12-25 15:34:40,764][D:\workspace\github\modify\PlatformWeTest\demo\PlatformWeTest.py:97][ [37m[INFO] [0m] : input thread started
 [37m[INFO] [0m cloudscreen thread started ( [1mPlatformWeTest.py [0m:105)
[2020-12-25 15:34:40,764][D:\workspace\github\modify\PlatformWeTest\demo\PlatformWeTest.py:105][ [37m[INFO] [0m] : cloudscreen thread started
 [37m[INFO] [0m connect 127.0.0.1:1111 ( [1mTcpSocketHandler.py [0m:231)
[2020-12-25 15:34:40,779][D:\workspace\github\modify\PlatformWeTest\demo\TcpSocketHandler.py:231][ [37m[INFO] [0m] : connect 127.0.0.1:1111
 [37m[INFO] [0m connect 127.0.0.1:1113 ( [1mTcpSocketHandler.py [0m:231)
[2020-12-25 15:34:40,795][D:\workspace\github\modify\PlatformWeTest\demo\TcpSocketHandler.py:231][ [37m[INFO] [0m] : connect 127.0.0.1:1113
 [37m[INFO] [0m set socket option ( [1mTcpSocketHandler.py [0m:235)
 [37m[INFO] [0m set socket option ( [1mTcpSocketHandler.py [0m:235)
[2020-12-25 15:34:40,811][D:\workspace\github\modify\PlatformWeTest\demo\TcpSocketHandler.py:235][ [37m[INFO] [0m] : set socket option
[2020-12-25 15:34:40,811][D:\workspace\github\modify\PlatformWeTest\demo\TcpSocketHandler.py:235][ [37m[INFO] [0m] : set socket option
 [37m[INFO] [0m set event ( [1mTcpSocketHandler.py [0m:260)
 [37m[INFO] [0m set event ( [1mTcpSocketHandler.py [0m:260)
[2020-12-25 15:34:40,826][D:\workspace\github\modify\PlatformWeTest\demo\TcpSocketHandler.py:260][ [37m[INFO] [0m] : set event
[2020-12-25 15:34:40,826][D:\workspace\github\modify\PlatformWeTest\demo\TcpSocketHandler.py:260][ [37m[INFO] [0m] : set event
 [31m[ERROR] [0m cloudscreen run over, return value:255 ( [1mInitializer.py [0m:149)
[2020-12-25 15:34:41,779][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:149][ [31m[ERROR] [0m] : cloudscreen run over, return value:255
 [31m[ERROR] [0m inputserver run over, return value:1 ( [1mInitializer.py [0m:132)
[2020-12-25 15:34:41,779][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:132][ [31m[ERROR] [0m] : inputserver run over, return value:1
 [37m[INFO] [0m get_device_info: timeout=60 ( [1mPlatformWeTest.py [0m:149)
 [37m[INFO] [0m cloudscreen run begin... ( [1mInitializer.py [0m:142)
[2020-12-25 15:34:42,795][D:\workspace\github\modify\PlatformWeTest\demo\PlatformWeTest.py:149][ [37m[INFO] [0m] : get_device_info: timeout=60
[2020-12-25 15:34:42,795][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:142][ [37m[INFO] [0m] : cloudscreen run begin...
 [31m[ERROR] [0m get_display_info: err=0, packet=None ( [1mPlatformWeTest.py [0m:319)
[2020-12-25 15:34:42,795][D:\workspace\github\modify\PlatformWeTest\demo\PlatformWeTest.py:319][ [31m[ERROR] [0m] : get_display_info: err=0, packet=None
 [37m[INFO] [0m inputserver run begin... ( [1mInitializer.py [0m:125)
[2020-12-25 15:34:42,795][D:\workspace\github\modify\PlatformWeTest\demo\Initializer.py:125][ [37m[INFO] [0m] : inputserver run begin...
 [31m[ERROR] [0m read packet exception ( [1mTcpSocketHandler.py [0m:188)
Traceback (most recent call last):
  File "D:\workspace\github\modify\PlatformWeTest\demo\TcpSocketHandler.py", line 159, in run
  File "D:\workspace\github\modify\PlatformWeTest\demo\TcpSocketHandler.py", line 350, in read_packet
  File "D:\workspace\github\modify\PlatformWeTest\demo\TcpSocketHandler.py", line 72, in read_packet_bytes
  File "D:\workspace\github\modify\PlatformWeTest\demo\TcpSocketHandler.py", line 58, in __read_bytes
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。
[2020-12-25 15:34:42,795][D:\workspace\github\modify\PlatformWeTest\demo\TcpSocketHandler.py:188][ [31m[ERROR] [0m] : read packet exception
Traceback (most recent call last):
  File "D:\workspace\github\modify\PlatformWeTest\demo\TcpSocketHandler.py", line 159, in run
  File "D:\workspace\github\modify\PlatformWeTest\demo\TcpSocketHandler.py", line 350, in read_packet
  File "D:\workspace\github\modify\PlatformWeTest\demo\TcpSocketHandler.py", line 72, in read_packet_bytes
  File "D:\workspace\github\modify\PlatformWeTest\demo\TcpSocketHandler.py", line 58, in __read_bytes
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。

连接手机出错,双击序列号直接退出界面

报错如下:
Traceback (most recent call last):
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAdapter.py", line 36, in init
from .deviceAPI.mobileDevice.android.androidDevice import AndroidDevice
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAPI/mobileDevice/android/androidDevice.py", line 18, in
from .androidDeviceAPI import AndroidDeviceAPI
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAPI/mobileDevice/android/androidDeviceAPI.py", line 12, in
from .devicePlatform.WrappedPlatform import PlatformWrapper
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAPI/mobileDevice/android/devicePlatform/WrappedPlatform.py", line 18, in
from ..plugin.Platform_plugin.PlatformWeTest import AdbTool
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAPI/mobileDevice/android/plugin/Platform_plugin/PlatformWeTest/init.py", line 18, in
from .demo_ubuntu16.PlatformWeTest import PlatformWeTest
ImportError: bad magic number in 'src.WrappedDeviceAPI.deviceAPI.mobileDevice.android.plugin.Platform_plugin.PlatformWeTest.demo_ubuntu16': b'\x16\r\r\n'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/ui/op_tree.py", line 293, in double_click_right_tree
ProjectNode().update_right_tree()
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/ui/tree/project_node.py", line 334, in update_right_tree
self.select_phone()
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/ui/tree/project_node.py", line 381, in select_phone
self._init_phone(item, serial)
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/ui/tree/project_node.py", line 850, in _init_phone
long_edge=self.__media_source.long_edge)
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/ui/canvas/data_source.py", line 77, in init_phone
self.__phone = DeviceAdapter(device_type, platform=platform)
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAdapter.py", line 47, in init
raise Exception(err)
Exception: bad magic number in 'src.WrappedDeviceAPI.deviceAPI.mobileDevice.android.plugin.Platform_plugin.PlatformWeTest.demo_ubuntu16': b'\x16\r\r\n'

是因为编译python 版本问题吗?可是版本用的3.6.2阿

成功跑完demo,有需要的过来看一下

花了1天时间跑上demo了。

首先是windows环境(mac环境还行还不支持本地,Ubuntu又要去装一个系统麻烦);
操作系统是win10;

第一步骤:
在window下,使用git下载GameAISDK源码(避免与linux下的文件格式不一致导致编译问题),例如拉下来保存到D:\GameAISDK.

第二步骤:
安装VS2017 专业版(并激活),并配置到windows系统运行环境

第三步骤:
安装python 3.6.2(勾选pip,勾选for all user) ,并配置到windows系统运行环境
更新pip到最新(python -m pip install --upgrade pip)
安装 pip install PyQt5
安装 pip install opencv-python
安装 pip install QtPy(注意大小写)
安装 pip install psutil
安装 pip install msgpack
安装 pip install msgpack_numpy
安装 pip install protobuf
安装 pip install matplotlib
安装 pip install networkx
安装 pip install zmq
安装 pip install pypiwin32

第四步骤
下载android adb工具,并解压,例如D:\android_adb,并配置到windows系统环境

第五步骤
去D:\GameAISDK\src\ImgProc\Projects\Windows\UIRecognize
下用VS2017打开SDK.h,找到工程里面的GameReg 和UIrecognize
右键点击属性,匹配SDK版本为你当前VS2017带的SDK版本,直接下拉保存即可。

第六步骤:
命令行进入D:\GameAISDK\build,执行bulid.sh完成编译,要编译成功2个文件,不能有失败
出现问题直接看FQA
https://github.com/Tencent/GameAISDK/blob/master/doc/opt/FAQ.md

第七步骤
命令行进入D:\GameAISDK\tools\SDKTool
执行python main.py,基本上就能看见SDKtool窗口了。
手机安装好TTPK和打开开发者模式,并授权链接计算机。
SDKtool窗口下加载demo TTPK工程,点击有变动手机序列号就能正常获取手机上的屏幕数据。

其他按照教程上的就可以操作了。

DQN本地训练不能持续

TTKP 项目DQN训练时根据教程操作,双击start test能够进入游戏但游戏不能持续训练,mc,io等模块自动退出,
并且没有显示result游戏界面(和教程中双击start test弹出result界面存在差异),且运行agent.py有以下报错:
[2021-07-01 16:16:17,156][agentai.py:135][ERROR] : exception: 'ROI' msg: Traceback (most recent call last):
File "agentai.py", line 131, in Main
RunFrameWork(args.mode)
File "agentai.py", line 94, in RunFrameWork
aiFramework.Run(True)
File "../src/AgentAI/aiframework/AIFrameWork.py", line 116, in Run
self._DefaultRun(isTestMode)
File "../src/AgentAI/aiframework/AIFrameWork.py", line 142, in _DefaultRun
self._WaitEpisode()
File "../src/AgentAI/aiframework/AIFrameWork.py", line 161, in _WaitEpisode
if self.__agentEnv.IsEpisodeStart() is True:
File "../src/AgentAI/agentenv/DQNEnv.py", line 171, in IsEpisodeStart
self._GetGameInfo()
File "../src/AgentAI/agentenv/DQNEnv.py", line 224, in _GetGameInfo
self.update_scene_task(result, self.__actionController.get_action_dict(), self.__agentAPI)
File "../src/AgentAI/agentenv/GameEnv.py", line 136, in update_scene_task
flag, px, py = self._get_position(result_dict, scene_task_id)
File "../src/AgentAI/agentenv/GameEnv.py", line 160, in _get_position
x = result['ROI']['x']
KeyError: 'ROI'

请问是哪里的问题
操作系统是Ubuntu16.04

调试GameReg过程中显示TBus Send To GameReg Addr return code[-3]

感谢开源~
使用过程中我照着https://github.com/Tencent/GameAISDK/blob/master/doc/SDKTool/TaskConf.md 第五小节配置了手机调试相关参数(SDKTool.ini里),调试过程中在收到第一帧图像后就再也无法收到手机传来的图片,求问是什么原因?

以下为调试过程中SDKTool的log

2020-08-28 15:52:03,658][F:/GameAISDK/GameAISDK/tools/SDKTool/main.py:1232][WARNING] : parent of currentItem is None
[2020-08-28 15:52:03,680][F:/GameAISDK/GameAISDK/tools/SDKTool/main.py:1164][WARNING] : CurrentItemChange failed, currentItem is None
[INFO   ] AgentMsgMgr:Initialize:91 - gamereg addr is 16908545, self addr is 17105153
[2020-08-28 15:52:11,583][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\AgentAPI\AgentMsgMgr.py:91][INFO] : gamereg addr is 16908545, self addr is 17105153
2020-08-28 15:52:11.1730|f:\gameaisdk\gameaisdk\src\imgproc\gamerecognize\src\main.cpp|ParseArg:65|INFO|Run SDKTool Test Model
2020-08-28 15:52:11.1970|f:\gameaisdk\gameaisdk\src\imgproc\gamerecognize\src\gameregframework.cpp|CGameRegFrameWork::RunForSDKTool:258|INFO|recv image from sdktool width 2160, height 1080
2020-08-28 15:52:11.1970|f:\gameaisdk\gameaisdk\src\imgproc\gamerecognize\src\gameregframework.cpp|CGameRegFrameWork::RunForSDKTool:258|INFO|recv image from sdktool width 0, height 0
2020-08-28 15:52:11.2470|f:\gameaisdk\gameaisdk\src\imgproc\gamerecognize\src\gameregframework.cpp|CGameRegFrameWork::RunForSDKTool:258|INFO|recv image from sdktool width 0, height 0
[2020-08-28 15:52:13,996][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\AgentAPI\AgentMsgMgr.py:259][ERROR] : TBus Send To  GameReg Addr return code[-3]
[2020-08-28 15:52:13,997][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\Debug\GameRegDebug.py:49][ERROR] : send frame failed
[2020-08-28 15:52:13,998][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\Debug\AbstractDebug.py:163][DEBUG] : frame is None
[2020-08-28 15:52:13,998][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\Debug\AbstractDebug.py:163][DEBUG] : frame is None
[ERROR  ] AgentMsgMgr:_Send:259 - TBus Send To  GameReg Addr return code[-3]
[ERROR  ] AgentMsgMgr:_Send:259 - TBus Send To  GameReg Addr return code[-3]
[2020-08-28 15:52:14,027][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\AgentAPI\AgentMsgMgr.py:259][ERROR] : TBus Send To  GameReg Addr return code[-3]
[2020-08-28 15:52:14,029][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\Debug\GameRegDebug.py:49][ERROR] : send frame failed
[2020-08-28 15:52:14,029][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\Debug\AbstractDebug.py:163][DEBUG] : frame is None
[2020-08-28 15:52:14,029][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\Debug\AbstractDebug.py:163][DEBUG] : frame is None
[2020-08-28 15:52:14,046][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\AgentAPI\AgentMsgMgr.py:259][ERROR] : TBus Send To  GameReg Addr return code[-3]

SDKTool界面也只显示了第一帧图像后就再也不动了

image

这个项目还在维护吗?

请问该项目还在维护吗?是否有更新?按照部署文档操作无法完成本地部署,docker镜像也无法下载

getBuiltInDisplay()在Android Q上已经去除

cloudscreen中会使用到getBuiltInDisplay()这支api,但是在android q上已经没有这支api了。
想请教一下什么时候会有支持sdk 29的版本?或者cloudscreen的部分是否会开源?
感谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.