Skip to main content
. 2025 Jul 17;25(14):4450. doi: 10.3390/s25144450
Algorithm 1 Frame Rate Calculation
  • Input: captures, endTimeSlots

  • Output: frameRates

  • N captures.length

  • uniqueCaptures [ ]   (empty list)

  • frameRates {}      (empty dictionary)

  • for endTime in endTimeSlots do

  •     frameRates[endTime] 0

  • end for

  • for i in 1:N do

  •    if captures[i].image ≠ captures[i-1].image then

  •       uniqueCaptures.append(captures[i])

  •    end if

  • end for

  • for capture in uniqueCaptures do

  •     frameRates[⌈ capture.timeStamp ⌉] += 1

  • end for

  • return frameRates