这是英文,点击到中文
DLL dynamic link library that obtains the character's position on the map from the Genshin Impact client through the image matching algorithm
- This project uses window screenshots of the game screen to perform image processing algorithms to achieve all functions. It does not read or write the game memory, so there is no risk of account ban, but the effect also has certain limitations.
- The project has only been tested under limited conditions. If you need to troubleshoot errors, it is strongly recommended to configure the environment as described below.
- Genshin Impact client > Paimon in the upper right corner > Settings > Anti-aliasing, set to
SMAA
- Genshin Impact client > Paimon in the upper right corner > Settings > Others > Minimap lock, set to
Lock direction
- Genshin Impact client > Paimon in the upper right corner > Settings > Anti-aliasing, set to
- [Kong Ying Tavern Genshin Impact Manual Update/Testing Tutorial] (doc/kyjg.md)
- Contact QQ group 717355752
- Added angle and field of view recognition in the secret realm
- Realize field of view recognition without transparent channel
- Implement log controllable non-output
- Add inertial acceleration navigation algorithm for positioning (see giAlgorithmVerification library)
- Add automatic calibration algorithm for positioning
- Support any map area
- Supports passing in maps instead of embedding them
- Optional embedded precomputed results
- Higher matching accuracy
- Use binary files instead of xml serialization to track feature points
- No longer embed precomputed results, the first run will generate cache xml in the run directory
- Currently supports any resolution and controller mode, but the [Follow Perspective] of the minimap setting is not currently supported and only [Lock Direction] is supported.
- Download the compiled dynamic link library.
- After loading the dynamic link library, call or encapsulate the relevant functions according to [Function Directory] (#Function Directory).
- For calling some languages, please refer to the calling examples in the impl folder.
- Since the default interface outputs the coordinates of [Tianli Coordinate Model] (doc/天理坐标模型_en.md), the user needs to set the world center and scaling coefficient according to the mapping relationship between their own map coordinate system and the Tianli Coordinate Model. Or convert manually later.
-
Environmental requirements, Visual Studio 2019 + 、Opencv 4.5.0 static lib zip
-
Install Visual Studio 2019+
-
Create environment variables for the Opencv library. If you do not use environment variables, you need to manually modify the
Additional Include Directory
andAdditional Library Directory
of the cvAutoTrack project.$OpenCvDir = C:\projects\opencv\
-
Download Opencv 4.5.0 static lib zip and extract it to any directory
7z x ./*.zip -y -o%OpenCvDir%
-
Clone code
Git Clone https://github.com/GengGode/cvAutoTrack
-
Enter the project folder and extract the resource files
cd .\cvAutoTrack | 7z -x resource.zip
-
Compile the project
msbuild cvAutoTrack.sln
- cvAutoTrack, dll project
- doc, documents and some illustrations
- impl, calling examples in some languages
- Cpp/TEST_cvAutoTrack_Cpp C++ call
- CSharp/TEST_cvAutoTrack_CSharp C# call
- Python Python call