Coder Social home page Coder Social logo

jchw-forks / puyo-chain-detector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from puyogg/puyo-chain-detector

0.0 2.0 0.0 33.58 MB

A real-time overlay for showing trigger points in Puyo chains. Useful for Twitch/YouTube streamers.

License: MIT License

Python 47.13% C++ 52.87%

puyo-chain-detector's Introduction

Puyo Chain Detector

A real-time overlay for showing trigger points in Puyo chains.

Download

https://github.com/puyogg/puyo-chain-detector/releases

Setup

The Chain Detector uses computer vision to analyze the game screen, so it needs access to a live video feed. Here's two methods to get this working:

  1. Capture a DirectShow device (capture card). This is the most convenient method, and it should work with modern capture cards (e.g. Avermedia, Elgato HD60s or later). Older Elgatos probably won't work.
  2. Pass an OBS scene/source as a virtual camera. This is a workaround that can work with any capture card or the PC Puyo Puyo games. You have to remember to start the Virtualcam service every time you load OBS, but this also lets you use the tool to analyze other people's videos.

Method 1: Capture DirectShow Device

Run setup.exe to pick your capture method and capture device.

Select "DirectShow" as the capture mode. For the capture device, try out all the numbers in the list until your capture card shows up. If none of the numbers work, that means your device couldn't be detected, and you need to use Method 2 (virtual camera).

Click "Save settings" to save your capture mode and device id to a settings.json file.

Method 2: OBS Virtualcam

Install the OBS Virtualcam plugin for OBS Studio.

You can now right-click on an OBS Scene or Source and add a Virtualcam as an Effect Filter. Click "Start" to start broadcasting the OBS source as a virtual webcam.

When you run setup.exe, select DirectShow as the capture method. The virtual camera should show up as new number in the device list.

Click "Save settings" to save your capture mode and device id to a settings.json file.

Green Screen

Once you have your settings saved, run Detector.exe. You should see a quick glimpse of your capture feed, and then it'll show a green screen.

Potential setup errors

Window Capture this in OBS and stretch it over your game screen. Then, apply a Chroma Key Filter. My settings for this are:

  • Similarity: 150
  • Smoothness: 80
  • Color Spill Reduction: 100
  • Opacity: 66

PyInstaller commands

Built under Python version 3.7.4

Setup Tool

cd capture-setup

pyinstaller settings.py --exclude-module=jupyter --exclude-module=ipython --exclude-module=jedi --exclude-module=matplotlib --exclude-module=ipykernel --exclude-module=ipython-genutils --exclude-module=ipywidgets --exclude-module=notebook --onefile --noconsole --add-binary="../venv/Lib/site-packages/cv2/opencv_videoio_ffmpeg430_64.dll:."

puyo-chain-detector's People

Contributors

s2lsoftener avatar

Watchers

James Cloos avatar  avatar

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.