Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Official news and announcements from the ConsoleTuner team.

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby eom85 » Thu Apr 29, 2021 6:59 pm

Im trying to use the CAP_PROP_FPS option in the Video Input Configuration, but nothing changes about my video stream. Also tried a few other options, no change. Im using an Aver Mini GC311.

Is there a specific command I have to use?
User avatar
eom85
First Sergeant
First Sergeant
 
Posts: 65
Joined: Wed Jun 21, 2017 7:51 pm

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby Scachi » Thu Apr 29, 2021 7:00 pm

perhaps you are hitting your max fps your computer is able to handle.
hard to tell without knowing anything about your current fps, hardware and script you are using.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby eom85 » Fri Apr 30, 2021 6:45 am

FPS comes in unchanged. I realized that I can write anything in that Box, the scripts runs regardless. Thus, I think that it doesn’t even recognize my entry.

I was generally wondering what happens behind the GUI oder that GCVWorker class? Is there some form of „videocapture“ function that automatically runs when clicking the green arrow? How can I look into that code?

Any help is much appreciated!
User avatar
eom85
First Sergeant
First Sergeant
 
Posts: 65
Joined: Wed Jun 21, 2017 7:51 pm

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby Scachi » Fri Apr 30, 2021 7:00 am

your capture card is limited to 60fps according to its specs. if that is what you are currently getting or close to it its fine.
That fps shown there depends also a lot on your gcv script and pc hardware.
that green arrow starts the script selected in the combobox of that computer vision pane.
I think that Video Input Check is a special one that just passes back the captured frame directly to gtuner IV.

Create a new gcv file and you see the basic structure.
The internals of GTuner IV are closed source, only J2kbr knows all the details.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby eom85 » Fri Apr 30, 2021 7:12 am

Damn it J2kbr, let us know what’s going on there! :)
Ah ok, so technically, the combination of

- resolution selection
- AVFoundation
- Video Input Configuration arguments

should affect my „frame“ in the GCVWorker class. I really need to be able have influence on it, as I want to not only limit FPS, but also change it to gray etc. preferable before my .py script even receives the frame.


As I said before, I can write „1234567“ in that Box, nothing changes. It doesn’t seem to pick up the arguments in the configuration window at all
User avatar
eom85
First Sergeant
First Sergeant
 
Posts: 65
Joined: Wed Jun 21, 2017 7:51 pm

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby eom85 » Fri Apr 30, 2021 7:37 am

Just to double check, the flags are suppose to work by merely placing that line in the config window, correct? Example:
CAP_PROP_FPS=30
Correct?

For this one I have no idea what I need to put at the end? Cannot find any documentation on it?
CAP_PROP_IOS_DEVICE_FOCUS=???
User avatar
eom85
First Sergeant
First Sergeant
 
Posts: 65
Joined: Wed Jun 21, 2017 7:51 pm

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby Scachi » Fri Apr 30, 2021 7:39 am

CAP_PROP_FPS doesn't seem to work for me at all. looks like the value of the combo box is always the used one.
no idea what flags are supported by gtuner.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby eom85 » Fri Apr 30, 2021 7:49 am

Another reason why we desperately need some documentation on CV.
So many unknowns... makes it really difficult to get the hang of it :(
User avatar
eom85
First Sergeant
First Sergeant
 
Posts: 65
Joined: Wed Jun 21, 2017 7:51 pm

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby Scachi » Fri Apr 30, 2021 7:50 am

..looks like that CAP options aren't working for me as I am currently using display capture and not a normal opencv capture device that can use those options.

Just do required conversions/cropping/editing in the process function of your gcv script for now.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby eom85 » Fri Apr 30, 2021 1:23 pm

I just tried that but apparently the conversion to Gray does not work on the frame which is imported in the process

I am getting this error:
(-215:Assertion failed) (depth == CV_8U || depth == CV_32F) && type == _templ.type() && _img.dims() <= 2 in function 'matchTemplate'

For all my other scripts where I convert a frame from a video stream, it works.
User avatar
eom85
First Sergeant
First Sergeant
 
Posts: 65
Joined: Wed Jun 21, 2017 7:51 pm

PreviousNext

Return to News and Announcements

Who is online

Users browsing this forum: Lkidd24 and 91 guests