Skip to main content
. 2022 Mar 3;8(3):61. doi: 10.3390/jimaging8030061
Algorithm 1 Online tracking algorithm.
Input: Pre-trained CNN (w1,…,w5)
            Initial target b0*
            Sequence of V frames {F0;F1;;Ft;,FV}
Output: Estimated sequence of target bounding-boxes {bt*}t=1V
  • 1:

    Randomly initialize parameters w6-w9

  • 2:

    Draw training samples X0 around b0*, MS.push(X0), ML.push(X0)

  • 3:

    Update parameters w4-w9

  • 4:

    fort=1,,Vdo

  • 5:

        bt0bt1*

  • 6:

        for k=1,,max_iter do

  • 7:

            ptk=fb(btk1,Ft)

  • 8:

            Select N refinements φi based on Transformation-Net(ptk)

  • 9:

            Apply φi with i[1,N] to the bounding-box to estimate btk

  • 10:

        end for

  • 11:

        Evaluate confidence score q*= Confidence-Net(fb(btk,Ft)))

  • 12:

        if q*>0.5 then

  • 13:

            bt*btk

  • 14:

            Draw sample Xt around bt*

  • 15:

            Update MS and ML by adding Xt and limiting their size

  • 16:

        end if

  • 17:

        if q*<=0.5 then (failure!) apply Re-detection to find bt*

  • 18:

            Evaluate confidence score q*= Confidence-Net(fb(bt*,Ft))

  • 19:

        end if

  • 20:

        if q*<=0.5 then Update w4w9 by using MS

  • 21:

        else if t mod 10=0then Update w4w9 by using ML

  • 22:

        end if

  • 23:

    end for