Detect damage in a video feed played by OBS from the game. It detect the damage by template matching the percent score of each player.
npm i
will install all you need for the python script and the nodeJS test server
You can install only python dependency with pip install -r requirements.txt
First you need to setup obs:
- use a 1920x1080 canvas
- right click on the preview and open a
Windowed Projector (Preview)
- make sur to maximise the
Windowed Projector (Preview)
to fullscreen - In
win_capture.py
make sur that the name inFindWindow
setting is the same has your preview - optional: you can disable the obs preview for better performance
npm start
or python win_capture.py
Make sur to match ip in the requests.post
at the end of the matchTemplate
function to the ip of the device.
npm run serve