Functions
| Descriptions | Screen Shots |
|---|---|
| Detecting Global Moving Direction--Method 1. Output the result in (0, 90] degree. Cannot tell which of the 4 possible directions is the exact one. Need 2nd R&D to demtermine. Robust for complex scenes. [demo video(1.08 MB)] int nCh=0; tgMExEnableGlobalDir1(true, nCh); ... TgImage oImg; int err = tgGetCurrentAVIFrame(oImg); if(0==err){ int rotation = 1; tgMExOneFrame(&oImg, rotation, nCh); } |
![]() |
| Moving Object Detection--Method 1. Output the bounding rectangles of all moving objects. This is the simplest of its kind to save CPU. Sensitive to vibration of video camera. Can work without any setting from user. [demo video(768 KB)] int nCh=0; tgMExEnableMvObj1(true, nCh); ... TgImage oImg; int err = tgGetCurrentAVIFrame(oImg); if(0==err){ int rotation = 1; tgMExOneFrame(&oImg, rotation, nCh); ...(read the data out for user's R&D purpose...) } |
![]() |
| Moving Object Detection--Method 2 . Output the bounding rectangles and moving directions of all moving objects. Can work without any setting from user. [demo video(0.98 MB)] int nCh=0; tgMExEnableMvObj2(true, nCh); ... TgImage oImg; int err = tgGetCurrentAVIFrame(oImg); if(0==err){ int rotation = 1; tgMExOneFrame(&oImg, rotation, nCh); ...(read the data out for user's R&D purpose...) } |
![]() |
| source code in C\C++ | SDK is alvailable. |





