Skip to main content
. 2015 Aug 18;15(8):20204–20231. doi: 10.3390/s150820204
Algorithm 1. Pseudocode of D-ROI and DFS methods for minimizing computing load.
frame ← the frames from camera device
s ← vehicular speed value
ΔA ← vehicular acceleration value
Initialised ROI = S-ROI, frame_count = 0, D-ROI_count = 0, target_searching = false
for all frame do
    frame _count = (frame _count + 1) % FRinp
    FRskip% = min [α × standardisation(s) × standardisation (ΔA), FRinp]
    if FRskip % frame_count = 0 then
        if ROI ≠ S-ROI then
           D-ROI_ count += 1
        end if
    else then
        target_searching, CR = recognition_algorithm (ROI)
        If target_searching = false or D-ROI_ count > D-ROI_ threshold then
           ROI = S-ROI
           D-ROI_ count = 0
        else then
           D-ROI = CR + MR
           ROI = D-ROI
           D-ROI_ count += 1
        end if
    end if
end for