Getting Started with Computer Vision

GCV scripting for Gtuner IV and Titan Two. Configuration, examples, questions.

Getting Started with Computer Vision

Postby Trials » Thu Oct 07, 2021 4:39 pm

I followed the topic "Gtuner IV Computer Vision Setup and Info" successully. I have made several GPC scripts, but I don't know where to start for CV. Could someone direct me to a tutorial and/or provide a simple CV to read the color of a pixel at X, Y and send the result to a GPC script (if this makes sense)?
User avatar
Trials
Sergeant
Sergeant
 
Posts: 7
Joined: Thu Jul 02, 2020 8:50 pm

Re: Getting Started with Computer Vision

Postby Mad » Sun Oct 10, 2021 8:29 am

To read in GPC from Python: https://www.consoletuner.com/wiki/index ... _functions

To send to Python:
Code: Select all
 printf("GCMD:ComputerVision.PY:%d", 69);

and the Python side:
Code: Select all
gpc_string = gtuner.gpc_string()
if gpc_string != None: self.weapon = int(gpc_string)

And the Gtuner Module Test in the online resource (Misc section)

For anything else CV related you'll find plenty of tutorials outside of ConsoleTuner with a quick search. :smile0517:
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am


Return to Gtuner Computer Vision

Who is online

Users browsing this forum: No registered users and 57 guests