14 Encapsulation of Ingenic Mobile Tracking Algorithm

overview

        The pan-tilt machine, also known as the head-shaking machine, generally has a pan-tilt motor to control the rotation of the camera. In the indoor monitoring scene, we need to detect the movement of the target object; when the target object moves, we need to turn the pan/tilt appropriately to ensure that the target object is always in the video screen. The difficulty of the mobile tracking algorithm is to ensure the smoothness and timeliness of the motor rotation, and avoid the motor from repeatedly rotating left and right and losing the target object.

        Ingenic's motion tracking algorithm is provided by the IVS module. The Motion_TrackerInterfaceInit function in the header file ivs_interface.h will return an IMPIVSInterface handle, and the corresponding algorithm parameters and result information are defined in the header file ivs_inf_motion_tracker.h.

Mobile Tracking Algorithm Interface Class

        The mobile tracking algorithm interface class mainly includes the following interfaces:

        1. Initialization interface, used to pass in initialization parameters.

        2. Enable the mobile tracking algorithm of a certain channel.

        3. Disable the mobile tracking algorithm of a certain channel.

        4. Whether the mobile tracking algorithm of a certain channel is enabled.

        5. Set the time interval for the gimbal motor of a certain channel from rotating to non-rotating. In some application scenarios, it is necessary to automatically turn the gimbal to the last preset position after stopping tracking for a period of time.

        The header file of the mobile tracking algorithm interface class is as follows:

#pragma once

#include "HP_MPPTypes.h"

class CHP_MotionTrack
{
public:
    virtual int Init(const TMppMotionTrackParam &param) = 0;
    virtual int Enable(unsigned int uiCameraChannel) = 0;
    virtual int Disab

Guess you like

Origin blog.csdn.net/hope_wisdom/article/details/132006510