Skip to content

Frame Rate on Raspberry Pi #84

Description

@c-keil

Is there anything in the flirpy code that would limit the frame rate to 30hz when using a raspberry pi with a FLIR Boson? I use the following script to assess frame rate, and it hovers right around 30 hz on a raspberry pi, but hits 60hz with the same camera on my laptop.

import cv2
import numpy as np
import time

loop_start_time = None
with Boson() as camera:
    while True:
        img = camera.grab().astype(np.float32)
        if loop_start_time is None:
            loop_start_time = time.time()
        else:
            current_time = time.time()
            rate = 1/(current_time-loop_start_time)
            loop_start_time = current_time
            print(rate)

As far as I can tell, none of the pi's cores are maxed out, and 30hz seems like a suspiciously round number. I took a quick look at the Boson code and didn't see anything obvious.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions