Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Official news and announcements from the ConsoleTuner team.

Re: [UPDATE Feb-18] Gtuner IV 1.07 BETA-10 (Computer Vision)

Postby Gjin Yuko » Tue Feb 18, 2020 9:43 pm

J2Kbr wrote:
Gjin Yuko wrote:When i go to Python Location and choose the folder there is nothing in there

This is expected, the dialog window is to select the Python installation folder and will not show files.

The folder path is something like:

C:\Program Files\Python\Python38
or
C:\Users\<your_username>\AppData\Local\Programs\Python\Python38


Ok, got the first one working but how can i install OpenCV Python Module?
Last edited by Gjin Yuko on Tue Feb 18, 2020 9:49 pm, edited 1 time in total.
YouTube /Gjin Yuko
Facebook /Gjin Yuko
Twitter /Gjin Yuko
Discord /Gjin Yuko
Xbox /Gjin Yuko
Playstation Dont have one, Xbox is the better Console :P
User avatar
Gjin Yuko
Sergeant Major
Sergeant Major
 
Posts: 95
Joined: Mon Aug 05, 2019 10:00 pm
Location: Germany

Re: [UPDATE Feb-18] Gtuner IV 1.07 BETA-10 (Computer Vision)

Postby Mad » Tue Feb 18, 2020 10:03 pm

Gjin Yuko wrote:Ok, got the first one working but how can i install OpenCV Python Module?

From the windows cmd prompt enter pip install opencv-python
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: [UPDATE Feb-18] Gtuner IV 1.07 BETA-10 (Computer Vision)

Postby Gjin Yuko » Tue Feb 18, 2020 10:12 pm

Mad wrote:
Gjin Yuko wrote:Ok, got the first one working but how can i install OpenCV Python Module?

From the windows cmd prompt enter pip install opencv-python

Thanks Mad got it Working now
YouTube /Gjin Yuko
Facebook /Gjin Yuko
Twitter /Gjin Yuko
Discord /Gjin Yuko
Xbox /Gjin Yuko
Playstation Dont have one, Xbox is the better Console :P
User avatar
Gjin Yuko
Sergeant Major
Sergeant Major
 
Posts: 95
Joined: Mon Aug 05, 2019 10:00 pm
Location: Germany

Re: [UPDATE Feb-18] Gtuner IV 1.07 BETA-10 (Computer Vision)

Postby J2Kbr » Tue Feb 18, 2020 10:43 pm

DontAtMe wrote:Computer Vision now Works with the Xbox App :a1chill_angry1:
Image
Image

Awesome! For the posted results and for realize you are also Pepe appreciator. :a1chill_angry1:
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: [UPDATE Feb-18] Gtuner IV 1.07 BETA-10 (Computer Vision)

Postby J2Kbr » Tue Feb 18, 2020 10:53 pm

hammer wrote:Window capture seems to be not working on a laptop or pc. It outputs only a black feed.

Applications such as chrome, edge, firefox normally have bunch of hidden windows (technically named cloaked window). This is done to optimize speed when opening new tabs.

On Gtuner IV "Detect Windows" dialog we are using the OS API function "DwmGetWindowAttribute" to filter such windows. However, on Python side this function is not available. Therefore, if the filter you set for the window title match a cloaked window the result will be a blank screen.

You can try make the matching string for the window title more specific to avoid that.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: [UPDATE Feb-18] Gtuner IV 1.07 BETA-10 (Computer Vision)

Postby hammer » Tue Feb 18, 2020 11:46 pm

J2Kbr wrote:
hammer wrote:Window capture seems to be not working on a laptop or pc. It outputs only a black feed.

Applications such as chrome, edge, firefox normally have bunch of hidden windows (technically named cloaked window). This is done to optimize speed when opening new tabs.

On Gtuner IV "Detect Windows" dialog we are using the OS API function "DwmGetWindowAttribute" to filter such windows. However, on Python side this function is not available. Therefore, if the filter you set for the window title match a cloaked window the result will be a blank screen.

You can try make the matching string for the window title more specific to avoid that.



So basicly what youre saying is that we dont have control over that? Not really sure what you mean by "matching strings"
User avatar
hammer
Sergeant Major
Sergeant Major
 
Posts: 104
Joined: Sun Sep 30, 2018 1:36 pm
Location: Germany

Re: [UPDATE Feb-18] Gtuner IV 1.07 BETA-10 (Computer Vision)

Postby J2Kbr » Wed Feb 19, 2020 12:24 am

hammer wrote:So basicly what youre saying is that we dont have control over that? Not really sure what you mean by "matching strings"

Before the public release, I will try find a way to avoid cloaked windows on Python side.

Just to be sure you can at least capture one window, please try with Gtuner. Add a new video input (+), select Window Capture, then "Detect Windows" - > "Gtuner IV 1.7 Beta". After that, edit the Video Input Configuration to:

Gtuner*

Click Add and start the the computer vision processing (the green play icon at CV toolbar).

Please let me know if you successful captured the Gtuner's window, something like this:
GtunerWinCap.png
GtunerWinCap.png (483.5 KiB) Viewed 2978 times
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: [UPDATE Feb-18] Gtuner IV 1.07 BETA-10 (Computer Vision)

Postby hammer » Wed Feb 19, 2020 12:39 am

Yeah that works with Gtuner* and the original name from the window.

Image

But the Xbox Console Companion App is black. Xbox* or full name doesnt matter
User avatar
hammer
Sergeant Major
Sergeant Major
 
Posts: 104
Joined: Sun Sep 30, 2018 1:36 pm
Location: Germany

Re: Gtuner IV 1.07 BETA (Scriptable Computer Vision Interfac

Postby datzbrandon » Wed Feb 19, 2020 1:09 am

J2Kbr wrote:The Apex Legeds GCV script I published, at first moment, is to serve as example. It is not working for you because the colors of your capture card seems too much saturated and/or with high contrast. Take a look in the image file downloaded with the script (apex_legends.png), these are the templates used to detect weapon, attachment, etc. If the color does not match, the detection will fail. Down-the-road I will be improving this GCV script to be more robust against differences in lighting and color saturation.

alright damn that sucks.. guess ill just wait :)
User avatar
datzbrandon
Command Sergeant Major
Command Sergeant Major
 
Posts: 116
Joined: Sun Nov 01, 2015 8:57 pm

Re: [UPDATE Feb-18] Gtuner IV 1.07 BETA-10 (Computer Vision)

Postby Scachi » Wed Feb 19, 2020 2:53 am

Is it possible to pass values the other way around ? From .gpc script to python .py to control something in the python script dynamically via my controller/keyboard input ? Something like "gcv_write" ?
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

PreviousNext

Return to News and Announcements

Who is online

Users browsing this forum: Antidemon, LexLace, UrASimp and 118 guests