Skip to content

Commit

Permalink
benchmark script ok
Browse files Browse the repository at this point in the history
  • Loading branch information
cnadler86 committed Oct 29, 2024
1 parent 9f715c0 commit 0df98f4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ def measure_fps(duration=2):
return fps

def print_summary_table(results, cam):
(_,_,_,_,target) = os.uname()
print(f"\nBenchmark {target} with {cam.get_sensor_name()}, fb_count: {cam.get_fb_count()}, GrabMode: {cam.get_grab_mode()}:")
print(f"\nBenchmark {os.uname().machine} with {cam.get_sensor_name()}, fb_count: {cam.get_fb_count()}, GrabMode: {cam.get_grab_mode()}:")

pixel_formats = list(results.keys())
print(f"{'Frame Size':<15}", end="")
Expand Down Expand Up @@ -93,6 +92,5 @@ def print_summary_table(results, cam):
print("\nScript interrupted by user.")

finally:
print_summary_table(results,cam) # Tabelle am Ende ausgeben
cam.deinit()
print_summary_table(results) # Tabelle am Ende ausgeben

0 comments on commit 0df98f4

Please sign in to comment.