Page 34 of 54

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

PostPosted: Fri Jan 01, 2021 9:41 pm
by Krakkon
Thanks Mad.

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

PostPosted: Sat Jan 09, 2021 2:56 am
by boxerpram
Hi there, I do get this error, can anyone please suggest the way to fix it please.

GCV Error: _win_os_check()
File "C:\Users\Patipol\AppData\Local\Programs\Python\Python38\Lib\site-packages\numpy\__init__.py", line 302, in _win_os_check
raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('C:\\Users\\Patipol\\AppData\\Local\\Programs\\Python\\Python38\\Lib\\site-packages\\numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https://tinyurl.com/y3dm3h86
numpy.core.multiarray failed to import

Computer Vision: ERROR: Gpython process exited with error code 111

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

PostPosted: Sat Jan 09, 2021 3:00 am
by Scachi

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

PostPosted: Sat Jan 09, 2021 1:59 pm
by inc0S
Finally giving CV a shot.

Does anyone know how to fix this error? In GTuner the image/vid capture is fine, but I have black borders around it, which is breaking the image recognition. A few posts back I see I should add and adjust this in the advanced config:
CAP_CROP_TOP=20
CAP_CROP_LEFT=20
CAP_CROP_RIGHT=20
CAP_CROP_BOTTOM=20

Except when I try running with this I get an error (I am using an Elgato HD 60 S) - so no video :
GCV Error: module 'cv2.cv2' has no attribute 'CAP_CROP_TOP'

GCV Error: Exception ignored in:
Traceback (most recent call last):
File "", line 17, in __del__

GCV Error: File "C:\Users\inc77\T2\_apex_antirecoil\apex_antirecoil.py", line 482, in __del__
del self.idx
AttributeError: idx

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

PostPosted: Sat Jan 09, 2021 10:12 pm
by GDExcedo
So i got everything setup, from mouse/keyboard to titan 2 to pc,
Rapid fire is working fine, it detect the weapons, but anti-recoil does nothing i can put vscale to 1 or 100 it does nothing,
Am i missing something ?
Data_set is 2 as well so i am not sure what is going wrong here, do i need to setup something else as well ?

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

PostPosted: Sun Jan 10, 2021 4:04 am
by boxerpram
May I please have some explanations on which values represent what on GPC , I would like to adjust some delays and anti values on a few guns, please and thank you.

:roll: :roll:

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

PostPosted: Tue Jan 12, 2021 3:15 pm
by J2Kbr
GDExcedo wrote:So i got everything setup, from mouse/keyboard to titan 2 to pc,
Rapid fire is working fine, it detect the weapons, but anti-recoil does nothing i can put vscale to 1 or 100 it does nothing,
Am i missing something ?
Data_set is 2 as well so i am not sure what is going wrong here, do i need to setup something else as well ?

For better help you with this configuration, please connect both PROG and OUTPUT ports of the Titan Two device to your computer with Apex Legends on Firing Range. Then send me a screenshot of Gtuner IV opened on Computer Vision panel so we can check if the video input is working correctly. Thank you.

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

PostPosted: Tue Jan 12, 2021 3:22 pm
by J2Kbr
boxerpram wrote:May I please have some explanations on which values represent what on GPC , I would like to adjust some delays and anti values on a few guns, please and thank you. :roll: :roll:

Normally the values that are needed to adjust are at the beginning of the GCV script (Phyton). These are:

GLOBAL_HSCALE
GLOBAL_VSCALE
DATA_SET
DEADZONE_SIZE

However, if you are referring to the recoil pattern table, a Python tuple :

(0.0, 21.969879150390625, 0.08776084582010905)

has the following meaning:

(<horizontal anti-recoil>, <vertical anti-recoil>, <time>)

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

PostPosted: Wed Jan 13, 2021 6:22 pm
by boxerpram
J2Kbr wrote:
boxerpram wrote:May I please have some explanations on which values represent what on GPC , I would like to adjust some delays and anti values on a few guns, please and thank you. :roll: :roll:

Normally the values that are needed to adjust are at the beginning of the GCV script (Phyton). These are:

GLOBAL_HSCALE
GLOBAL_VSCALE
DATA_SET
DEADZONE_SIZE

However, if you are referring to the recoil pattern table, a Python tuple :

(0.0, 21.969879150390625, 0.08776084582010905)

has the following meaning:

(<horizontal anti-recoil>, <vertical anti-recoil>, <time>)


Thanks very much Mr. J2 may I ask what are those numbers behind these first three ? And if I want to find a new / adjusted pattern for my gun with my preferred dz, is there a GPC that record and summarize the result?

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

PostPosted: Thu Jan 14, 2021 10:53 am
by J2Kbr
boxerpram wrote:
J2Kbr wrote:(<horizontal anti-recoil>, <vertical anti-recoil>, <time>)
Thanks very much Mr. J2 may I ask what are those numbers behind these first three ? And if I want to find a new / adjusted pattern for my gun with my preferred dz, is there a GPC that record and summarize the result?

It is a repeating sequence of tuples. What the script does is apply the <horizontal anti-recoil>, <vertical anti-recoil> for the time defined in <time>, then move to the next tuple and do the same until the "null" tuple is reached (0, 0, 0).