• DepthAI
  • I want to change the FPS after running oak-d

I need to change the FPS of the color camera depending on the scene.
Hawever,It seems that FPS does not change even if I execute-> setFps after OAK-D running.
How can I change the FPS after OAK-D is up and running?

  • erik replied to this.
    4 days later

    Hello g04356 , sorry for the delay. It's currently not possible to change FPS in runtime, but it would be possible to use Script node as "proxy" and just dispose some frames, to get lower FPS. A similar example is here, where frames are forwarded as well (this case both are sent to the host).
    Thanks, Erik

    6 days later

    Thank you Erik. I followed the advice and tried. Erik's advice seems to make it possible for me to do what I was looking for. May I ask another question about this?
    I want to throw a trigger message from the outside to a script node. If possible, I would be grateful if there was sample code etc.

    • erik replied to this.

      Hello g04356 , awesome to hear that it's working as expected! For the "trigger message", see example here. So from host you can send some message/trigger, Script node would decode it and control the flow / FPS of the frames. Hopefully, that makes sense!
      Thanks, Erik