Usage

To use xcv in a project:

import xcv

What does XCV do?

blog/images/sampleImage.png

In-Game Tracking

Template Image

Template Name

Usage

Size

ROI

templates/myTeamBadge.jpg

My Team Badge

Determine which side of the game sreen I am defending

24px X 24px

templates/myTeamScoreboardName.png

My Team Scoreboard Name

Determine which side of the scoreboard we’re on, Game.HomeTeam or Game.AwayTeam And is currently the first indication that we are GameState.InGame

25px X 8px

templates/HomeScore/0.png

Home Score

Digits 0-11 currently used, matched via template matching with moderate success

25px X 8px

templates/AwayScore/0.png

Away Score

Digits 0-1 currently used, matched via template matching with not-so-great success

25px X 8px

Hardware

Pins_Image

CLI

python3 xcv

Options:
-v, --verbose

Display debug information

--port TEXT

Controller port, default is /dev/cu.SLAB_USBtoUART

-auto, --autopilot

Initiate xcv sequence

--push

Enter button to push (A, B, X, Y, S, l, r, w, a, s, d, o, p)

--count INTEGER

Time in seconds before commands

-dry, --dryrun

For testing without xbox controller connected

--help

Show this message and exit.

--debug

List USB ports and check the serial connection