MohamedMagdyGaberDarwish
Add a callback function:
with OakCamera() as oak:
color = oak.create_camera('color', resolution="1080p")
model_config = {
'source': 'roboflow', # Specify that we are downloading the model from Roboflow
'model':'american-sign-language-letters/6',
'key':'coFlxareOlro' # Fake API key, replace with your own!
}
def cb(packet: DetectionPacket):
detections = packet.detections
for detection in detections:
print(detection.top_left, detection.bottom_right)
nn = oak.create_nn(model_config, color)
oak.visualize(nn, fps=True)
oak.callback(nn, cb)
oak.start(blocking=True)
Thanks,
Jaka