1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +02:00
FFmpeg/libavfilter
Ting Fu c38bc5634d dnn/vf_dnn_detect.c: add tensorflow output parse support
Testing model is tensorflow offical model in github repo, please refer
https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf2_detection_zoo.md
to download the detect model as you need.
For example, local testing was carried on with 'ssd_mobilenet_v2_coco_2018_03_29.tar.gz', and
used one image of dog in
https://github.com/tensorflow/models/blob/master/research/object_detection/test_images/image1.jpg

Testing command is:
./ffmpeg -i image1.jpg -vf dnn_detect=dnn_backend=tensorflow:input=image_tensor:output=\
"num_detections&detection_scores&detection_classes&detection_boxes":model=ssd_mobilenet_v2_coco.pb,\
showinfo -f null -

We will see the result similar as below:
[Parsed_showinfo_1 @ 0x33e65f0]   side data - detection bounding boxes:
[Parsed_showinfo_1 @ 0x33e65f0] source: ssd_mobilenet_v2_coco.pb
[Parsed_showinfo_1 @ 0x33e65f0] index: 0,       region: (382, 60) -> (1005, 593), label: 18, confidence: 9834/10000.
[Parsed_showinfo_1 @ 0x33e65f0] index: 1,       region: (12, 8) -> (328, 549), label: 18, confidence: 8555/10000.
[Parsed_showinfo_1 @ 0x33e65f0] index: 2,       region: (293, 7) -> (682, 458), label: 1, confidence: 8033/10000.
[Parsed_showinfo_1 @ 0x33e65f0] index: 3,       region: (342, 0) -> (690, 325), label: 1, confidence: 5878/10000.

There are two boxes of dog with cores 94.05% & 93.45% and two boxes of person with scores 80.33% & 58.78%.

Signed-off-by: Ting Fu <ting.fu@intel.com>
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2021-05-11 10:38:36 +08:00
..
2021-04-19 14:34:10 +02:00
2020-02-14 09:59:27 +01:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-05-10 13:34:29 +08:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-01-17 12:06:01 +01:00
2021-01-17 12:06:01 +01:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-05-10 13:34:29 +08:00
2020-02-14 21:49:47 +01:00
2021-04-11 23:18:20 +08:00
2021-04-11 23:18:20 +08:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2020-02-04 18:28:04 +01:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-05-01 08:45:30 +08:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-04-27 11:48:05 -03:00
2021-02-16 22:26:56 +01:00
2021-04-27 11:48:05 -03:00