Computer Vision on OSX/MAC?

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

Computer Vision on OSX/MAC?

Postby tripflex » Tue May 26, 2020 9:27 pm

So the only guides i've found for computer vision are all related to Windows, but Computer Vision seems to show up in the OSX app.

I'm trying to define python3 but when browsing it does not let me select python3 at all, i tried manually editing the `python_path` in `Gtuner.cfg` but even when i set it to the exact path of python3 it still says in settings can't find python3

How are we supposed to set this up on OSX?

Also, if i select "Detect Devices" it just crashes over and over again

The boxes show red but it does say python was found (after manually editing cfg file). Trying to setup PS4 remote play, and only tutorial on here says to select "Display Capture" but that's not even an option when adding video input device

So is Computer Vision even working on OSX at all?
User avatar
tripflex
Staff Sergeant
Staff Sergeant
 
Posts: 10
Joined: Wed Mar 14, 2018 2:13 am

Re: Computer Vision on OSX/MAC?

Postby J2Kbr » Tue Jun 02, 2020 4:01 pm

The Computer Vision interface was fully tested on Mac and worked as expected in a Macbook Air updated with latest OSX (Catalina). It is required install Python 3.8 (the Python version that comes with OSX does not work).

Today will not be possible, but tomorrow I will recheck to be sure everything still working after the recent OSX updates.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 19173
Joined: Tue Mar 18, 2014 1:39 pm

Re: Computer Vision on OSX/MAC?

Postby bmolls » Tue Jun 16, 2020 10:37 pm

I was able to install Python 3.8 on my Mac (10.15.5 Catalina) and I've installed the OpenCV-Python module (from here https://pypi.org/project/opencv-python/) but GTuner doesn't seem to be able to detect it.

Do I need to move the PIP files somewhere for it to work on the Mac? Any help would be appreciated.
Attachments
Screen Shot 2020-06-16 at 3.33.49 PM.png
Screen Shot 2020-06-16 at 3.33.49 PM.png (76.66 KiB) Viewed 145 times
User avatar
bmolls
Corporal
Corporal
 
Posts: 4
Joined: Sun May 31, 2020 12:38 am

Re: Computer Vision on OSX/MAC?

Postby Mad » Tue Jun 16, 2020 10:42 pm

bmolls wrote:Do I need to move the PIP files somewhere for it to work on the Mac? Any help would be appreciated.

You may have installed it for python2. Try running pip3 install opencv-python
ConsoleTuner Support Team || Discord || YouTube || Twitter
Mad
Colonel
Colonel
 
Posts: 1871
Joined: Wed May 22, 2019 5:39 am

Re: Computer Vision on OSX/MAC?

Postby bmolls » Tue Jun 16, 2020 11:04 pm

That was it - now it shows configured. Thanks man!!!
Attachments
Screen Shot 2020-06-16 at 4.02.50 PM.png
Screen Shot 2020-06-16 at 4.02.50 PM.png (66.88 KiB) Viewed 143 times
User avatar
bmolls
Corporal
Corporal
 
Posts: 4
Joined: Sun May 31, 2020 12:38 am

Re: Computer Vision on OSX/MAC?

Postby bmolls » Wed Jun 17, 2020 5:17 pm

GTuner keeps crashing when I am trying to 'Detect Devices' under the CV section of the Video Input Configuration window.

Any idea what's causing it to crash? I am using the Aver Media GC553 and it is streaming properly within the vendor's software so I know that the video capture card is set up properly between the console and computer.

I've added a few more screen shots. It looks like numpy may not be in the correct directory for Python/CV but I'm just speculating at this point. I updated some packages but didn't seem to fix the issue.
Attachments
Screen Shot 2020-06-17 at 10.40.06 AM.png
Screen Shot 2020-06-17 at 10.40.06 AM.png (11.72 KiB) Viewed 119 times
Screen Shot 2020-06-17 at 10.37.17 AM.png
Screen Shot 2020-06-17 at 10.37.17 AM.png (12.47 KiB) Viewed 119 times
Screen Shot 2020-06-17 at 10.28.11 AM.png
Screen Shot 2020-06-17 at 10.28.11 AM.png (48.5 KiB) Viewed 119 times
Crash.png
Crash.png (96.99 KiB) Viewed 120 times
Screen Shot 2020-06-17 at 10.05.34 AM.png
Screen Shot 2020-06-17 at 10.05.34 AM.png (122.58 KiB) Viewed 120 times
User avatar
bmolls
Corporal
Corporal
 
Posts: 4
Joined: Sun May 31, 2020 12:38 am

Re: Computer Vision on OSX/MAC?

Postby J2Kbr » Thu Jul 02, 2020 11:32 am

Thank you for providing the crash log. I will be checking it shortly.

In the meantime, enter the input device index manually in the field named "Video Input Configuration" and select AVFoundation in the combobox.

The number 0 is possible the webcam (you can try 0 to check if the webcam image shows on computer vision interface). Then try 1, if not yet the Aver Media GC553, try 2, 3 and so on.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 19173
Joined: Tue Mar 18, 2014 1:39 pm


Return to Gtuner Computer Vision

Who is online

Users browsing this forum: No registered users and 5 guests