Is there an easy way to scale the "previewout" option to a larger resolution for demos. the default is very small.
Previewout resolution
On OAK-1 that is
Hi mooaharhar ,
Yes, technically this is already possible as the metadata output is there and you can get the high-resolution stream with -s color
. So it's a matter of doing the overlay.
We'll go ahead and produce an example of this and put it in with these examples:
https://github.com/luxonis/depthai-experiments/blob/master/gen2_examples/README.md.
I think this should be relatively quick to implement. And I think we'll have one tomorrow.
Thanks,
Brandon
Hi mooaharhar,
I just started at Luxonis yesterday and I'm still waiting on hardware, but as soon as I receive it I'll start working on an example and follow-up once I do.
Best,
Philip
As quick hack I added to depthai_demo.py on line line 276 just before "cv2.imshow(window_name, frame)"
cv2.namedWindow('previewout-rgb', cv2.WINDOW_NORMAL)
cv2.resizeWindow('previewout-rgb', 800,800)
Where 800,800 is good on my laptop and 1020,1024 on my big monitors.
The default is about 418x418
Just need to add this to the command line input now.
Hi mooaharhar, alternatively you can increase the resolution of frames coming from the camera. I just pushed an example to Github that runs the NN on 300x300 frames while displaying 4K video. It still needs to be reviewed and merged. Let me know if it makes sense!
Hello Philip, the link to the example on Github no longer works. Where might I find the example now?
Richard