2,599
edits
Efernandez (talk | contribs) |
Efernandez (talk | contribs) |
||
Line 244: | Line 244: | ||
== Example application == | == Example application == | ||
We the library we include a C++ application showing its usage. It can be found in the repository under '''examples/cvexample.cpp'''. In order to get it working | We the library we include a C++ application showing its usage. It can be found in the repository under '''examples/cvexample.cpp'''. | ||
In the application, the usage of the min area and ROI properties are shown. For this example, the ROI was defined as'''(x1, x2, y1, y2) = (0.25, 0.75, 0 1)''' and the minimum area 0.01% of the total area of the image so any object outside of the defined ROI or when an area smaller than 0.01% will be discarded. | |||
In order to get it working | |||
* Build the library following [https://developer.ridgerun.com/wiki/index.php/GPU_Accelerated_Motion_Detector/Getting_Started/Building_GPUMotionDetector#GPU_Accelerated_Motion_Detector_C.2B.2B_Library these instructions]. | * Build the library following [https://developer.ridgerun.com/wiki/index.php/GPU_Accelerated_Motion_Detector/Getting_Started/Building_GPUMotionDetector#GPU_Accelerated_Motion_Detector_C.2B.2B_Library these instructions]. | ||
* Install | * Install GTK dependencies | ||
<pre> | |||
sudo apt install libcanberra-gtk-module libcanberra-gtk3-module | |||
</pre> | |||
* Go to the examples build directory: | * Go to the examples build directory: | ||
<pre> | <pre> |