Hello,
first of all, I would like to thank you for your support in my first project with OAK-D-S2. Everything worked properly as I wanted to be.
For spatial coordination detection, I used the code that @erik gave to me which was:
from depthai_sdk import OakCamera, ArgsParser
import argparse
import depthai as dai
def a(packet):
for det in packet.detections:
spatials = det.img_detection.spatialCoordinates
print(spatials.x, spatials.y, spatials.z)
# parse arguments
parser = argparse.ArgumentParser()
parser.add_argument("-conf", "--config", help="Trained YOLO json config path", default='model/yolo.json', type=str)
args = ArgsParser.parseArgs(parser)
with OakCamera(args=args) as oak:
stereo = oak.create_stereo(fps=8)
color = oak.create_camera('color', fps=8)
nn = oak.create_nn(args['config'], color, nn_type='yolo', spatial=stereo)
oak.visualize(nn, fps=True, scale=2/3)
oak.callback(nn.out.passthrough, a)
oak.start(blocking=True)
Right now, I want to make exactly the same project with different devices so that I can detect a larger outdoor space. Therefore, from Waveshare's website, I chose the following combination:
-NVIDIA Jetson Nano Developer Kit (B01)
-High-Resolution High Sensitivity IMX477 Sensor(*2)
-6mm Wide Angle Lens for Raspberry Pi High-Quality Camera(*2)
My question is: Can I apply the same code to them? If not, What should I do to get the same results with them?
Thanks,