Skip to content

Commit d28f119

Browse files
123vivekrGStreamer Marge Bot
authored and
GStreamer Marge Bot
committed
opencv: add cvtracker plugin
This adds an object tracker plugin. Tracker implementations from https://docs.opencv.org/3.4/d0/d0a/classcv_1_1Tracker.html Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2454>
1 parent 3764a16 commit d28f119

File tree

9 files changed

+797
-2
lines changed

9 files changed

+797
-2
lines changed

docs/plugins/gst_plugins_cache.json

+151
Original file line numberDiff line numberDiff line change
@@ -215782,6 +215782,117 @@
215782215782
},
215783215783
"rank": "none"
215784215784
},
215785+
"cvtracker": {
215786+
"author": "Vivek R <[email protected]>",
215787+
"description": "Performs object tracking on videos and stores it in video buffer metadata.",
215788+
"hierarchy": [
215789+
"GstCVTracker",
215790+
"GstOpencvVideoFilter",
215791+
"GstVideoFilter",
215792+
"GstBaseTransform",
215793+
"GstElement",
215794+
"GstObject",
215795+
"GInitiallyUnowned",
215796+
"GObject"
215797+
],
215798+
"klass": "Filter/Effect/Video",
215799+
"long-name": "cvtracker",
215800+
"pad-templates": {
215801+
"sink": {
215802+
"caps": "video/x-raw:\n format: RGB\n width: [ 1, 2147483647 ]\n height: [ 1, 2147483647 ]\n framerate: [ 0/1, 2147483647/1 ]\n",
215803+
"direction": "sink",
215804+
"presence": "always"
215805+
},
215806+
"src": {
215807+
"caps": "video/x-raw:\n format: RGB\n width: [ 1, 2147483647 ]\n height: [ 1, 2147483647 ]\n framerate: [ 0/1, 2147483647/1 ]\n",
215808+
"direction": "src",
215809+
"presence": "always"
215810+
}
215811+
},
215812+
"properties": {
215813+
"algorithm": {
215814+
"blurb": "Algorithm for tracking objects",
215815+
"conditionally-available": false,
215816+
"construct": false,
215817+
"construct-only": false,
215818+
"controllable": false,
215819+
"default": "MedianFlow (3)",
215820+
"mutable": "null",
215821+
"readable": true,
215822+
"type": "GstOpenCVTrackerAlgorithm",
215823+
"writable": true
215824+
},
215825+
"draw-rect": {
215826+
"blurb": "Draw rectangle around tracked object",
215827+
"conditionally-available": false,
215828+
"construct": false,
215829+
"construct-only": false,
215830+
"controllable": false,
215831+
"default": "true",
215832+
"mutable": "null",
215833+
"readable": true,
215834+
"type": "gboolean",
215835+
"writable": true
215836+
},
215837+
"object-initial-height": {
215838+
"blurb": "Track object box's initial height",
215839+
"conditionally-available": false,
215840+
"construct": false,
215841+
"construct-only": false,
215842+
"controllable": false,
215843+
"default": "50",
215844+
"max": "-1",
215845+
"min": "0",
215846+
"mutable": "null",
215847+
"readable": true,
215848+
"type": "guint",
215849+
"writable": true
215850+
},
215851+
"object-initial-width": {
215852+
"blurb": "Track object box's initial width",
215853+
"conditionally-available": false,
215854+
"construct": false,
215855+
"construct-only": false,
215856+
"controllable": false,
215857+
"default": "50",
215858+
"max": "-1",
215859+
"min": "0",
215860+
"mutable": "null",
215861+
"readable": true,
215862+
"type": "guint",
215863+
"writable": true
215864+
},
215865+
"object-initial-x": {
215866+
"blurb": "Track object box's initial X coordinate",
215867+
"conditionally-available": false,
215868+
"construct": false,
215869+
"construct-only": false,
215870+
"controllable": false,
215871+
"default": "50",
215872+
"max": "-1",
215873+
"min": "0",
215874+
"mutable": "null",
215875+
"readable": true,
215876+
"type": "guint",
215877+
"writable": true
215878+
},
215879+
"object-initial-y": {
215880+
"blurb": "Track object box's initial Y coordinate",
215881+
"conditionally-available": false,
215882+
"construct": false,
215883+
"construct-only": false,
215884+
"controllable": false,
215885+
"default": "50",
215886+
"max": "-1",
215887+
"min": "0",
215888+
"mutable": "null",
215889+
"readable": true,
215890+
"type": "guint",
215891+
"writable": true
215892+
}
215893+
},
215894+
"rank": "none"
215895+
},
215785215896
"dewarp": {
215786215897
"author": "Nicola Murino <[email protected]>",
215787215898
"description": "Dewarp fisheye images",
@@ -217398,6 +217509,46 @@
217398217509
}
217399217510
]
217400217511
},
217512+
"GstOpenCVTrackerAlgorithm": {
217513+
"kind": "enum",
217514+
"values": [
217515+
{
217516+
"desc": "the Boosting tracker",
217517+
"name": "Boosting",
217518+
"value": "0"
217519+
},
217520+
{
217521+
"desc": "the CSRT tracker",
217522+
"name": "CSRT",
217523+
"value": "1"
217524+
},
217525+
{
217526+
"desc": "the KCF (Kernelized Correlation Filter) tracker",
217527+
"name": "KCF",
217528+
"value": "2"
217529+
},
217530+
{
217531+
"desc": "the Median Flow tracker",
217532+
"name": "MedianFlow",
217533+
"value": "3"
217534+
},
217535+
{
217536+
"desc": "the MIL tracker",
217537+
"name": "MIL",
217538+
"value": "4"
217539+
},
217540+
{
217541+
"desc": "the MOSSE (Minimum Output Sum of Squared Error) tracker",
217542+
"name": "MOSSE",
217543+
"value": "5"
217544+
},
217545+
{
217546+
"desc": "the TLD (Tracking, learning and detection) tracker",
217547+
"name": "TLD",
217548+
"value": "6"
217549+
}
217550+
]
217551+
},
217401217552
"GstOpencvFaceBlurFlags": {
217402217553
"kind": "flags",
217403217554
"values": [

0 commit comments

Comments
 (0)