I am connecting my jetson xavier nx to Intel Realsense and get the frame every 0.2 seconds (5Hz). I use vpi harris coners with CUDA to calculate the features on every frame i get. However it runs into segmentation fault after sometimes. This doesnt happen with cpu execution. any reasons?
Yea its a duplicate issue, so I will just produce the code here.
I connected my Jetson to Intel Realsense camera and get the frame from there.
# get frame from realsense camera
cvframe = camera.get_frame()
input = vpi.asimage(cvframe, vpi.Format.BGR8).convert(vpi.Format.S16)
corners, scores = input.harriscorners(strength=0.1, sensitivity=0.01, min_nms_distance=20)
it will run into segmentation fault after random period.
If I remove the sleep function, it runs perfectly fine without segmentation fault
I can provide the c++ code if you need.