Why is the gcv_ready() in GPC script always failed?

Gtuner configuration:python 3.8, opencv 4.2.0.34 following the guide:https://www.consoletuner.com/forum/viewtopic.php?t=15147
The problem is when running python cv script normally in cv windows, gcv_ready() in GPC script always failed and info "something wrong" poping up in Gtuner output panel.
I'm confused badly, Why? Could anybody help? Thanks......
The problem is when running python cv script normally in cv windows, gcv_ready() in GPC script always failed and info "something wrong" poping up in Gtuner output panel.
I'm confused badly, Why? Could anybody help? Thanks......
- Code: Select all
int8 gamepadLstick_x = 0;
int8 gamepadLstick_y = 0;
main {
if(gcv_ready()) {
gamepadLstick_x = gcv_read(0);
gamepadLstick_y = gcv_read(1);
printf("test");
}
else printf("something wrong");
}
- Code: Select all
import os
import cv2
class GCVWorker:
def __init__(self, width, height):
os.chdir(os.path.dirname(__file__))
self.gcvdata = bytearray([0x00,0x00])
print("__init__")
print(self.gcvdata)
def __del__(self):
print("__del__")
print(self.gcvdata)
del self.gcvdata
def process(self, frame):
self.gcvdata[0] = 100
self.gcvdata[1] = 100
print("process")
print(self.gcvdata)
return frame,self.gcvdata