How to send data from gpc to python computer vision script?

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

How to send data from gpc to python computer vision script?

Postby GarrisonXV » Fri Nov 20, 2020 5:54 pm

Is there anyway to send data as simple as the state of a boolean variable in the gpc script to the python computer vision script? I know you can use gcvdata to send information from python to gpc but can you do something similar the other way?
For example: Once my combo has ran I set a boolean isFinished = True and I want my python computer vision script to see that the isFinished is now true and can start searching the screen for a different image. Any info someone could provide would be helpful thanks!
User avatar
GarrisonXV
Sergeant
Sergeant
 
Posts: 9
Joined: Wed Nov 11, 2020 1:03 am

Re: How to send data from gpc to python computer vision scri

Postby Scachi » Fri Nov 20, 2020 6:37 pm

use some unused buttons/input .
hit F1 in gtuner IV .. I use accel_2_x/y/z for that purpose
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: How to send data from gpc to python computer vision scri

Postby GarrisonXV » Fri Nov 20, 2020 6:39 pm

Scachi wrote:use some unused buttons/input .
hit F1 in gtuner IV .. I use accel_2_x/y/z for that purpose

Thats a great idea. Thanks!
User avatar
GarrisonXV
Sergeant
Sergeant
 
Posts: 9
Joined: Wed Nov 11, 2020 1:03 am


Return to Gtuner Computer Vision

Who is online

Users browsing this forum: No registered users and 80 guests