Titan two CV mouse controller

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

Titan two CV mouse controller

Postby Derappa » Mon Mar 14, 2022 2:58 pm

Hi there

First of all, I would like to say that I bought a new titan two.

Can we move mouse connected to titan 2 port A using python cv2 library script?
User avatar
Derappa
Staff Sergeant
Staff Sergeant
 
Posts: 12
Joined: Fri Mar 04, 2022 2:13 am
Location: Turkey

Re: Titan two CV mouse controller

Postby Mad » Mon Mar 14, 2022 8:31 pm

You'd send the data to the GPC script and then use set_val if using controller or mouse_set if using HID.

https://www.consoletuner.com/wiki/index ... _functions
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

Re: Titan two CV mouse controller

Postby Derappa » Tue Mar 15, 2022 6:01 am

Oh.. Thanx you Mad.

1-I looked at the forum and couldn't find a topic that would draw a suitable path for the scenario in my mind.
2-I looked through the past threads on Github and found a few scripts.
https://github.com/J2Kbr/GtunerIV/issues/406
Save the same code with .py file and it will not work on Computer vision.
Eror:
GCV Error: ('invalid syntax', ('', 7, 6, 'from 1 import GCVWorker\n'))
GCV Error: SyntaxError: invalid syntax (, line 7)
Computer Vision: ERROR: Gpython process exited with error code 111

----------------------------------------------------------------------------------------------------------

The scenario I have in mind is as follows
1-Capture on the 2nd screen with computer vision with remote play
(i am doing this)
2-The script located in the frame of the moving object in the image reflected on the screen.
3-and moving the mouse to the captured frame in this image

Is this scenario possible?
thanks again
User avatar
Derappa
Staff Sergeant
Staff Sergeant
 
Posts: 12
Joined: Fri Mar 04, 2022 2:13 am
Location: Turkey

Re: Titan two CV mouse controller

Postby Mad » Tue Mar 15, 2022 6:51 am

Rename the python file without spaces and it'll run.

Not sure what you mean by 2-
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

Re: Titan two CV mouse controller

Postby Derappa » Tue Mar 15, 2022 6:23 pm

I wanted to say

Is it possible to advance mouse movement to captured object with opencv moving object capture?
User avatar
Derappa
Staff Sergeant
Staff Sergeant
 
Posts: 12
Joined: Fri Mar 04, 2022 2:13 am
Location: Turkey


Return to Gtuner Computer Vision

Who is online

Users browsing this forum: No registered users and 69 guests