Skip to content

Commit d78472b

Browse files
committed
LP-109 video: cleanup camera calibration plugin
1 parent ba29f52 commit d78472b

14 files changed

Lines changed: 12 additions & 707 deletions

ground/gcs/src/libs/gstreamer/gstreamer.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ include(../utils/utils.pri)
99

1010
include(gstreamer_dependencies.pri)
1111

12-
gstreamer_plugins:include(plugins/plugins.pro)
12+
include(plugins/plugins.pro)
1313

1414
HEADERS += \
1515
gst_global.h \

ground/gcs/src/libs/gstreamer/plugins/cameracalibration/cameraevent.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/* GStreamer
2-
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3-
* Library <2002> Ronald Bultje <rbultje@ronald.bitfreak.net>
4-
* Copyright (C) 2007 David A. Schleef <ds@schleef.org>
2+
* Copyright (C) <2017> Philippe Renon <philippe_renon@yahoo.fr>
53
*
64
* This library is free software; you can redistribute it and/or
75
* modify it under the terms of the GNU Library General Public

ground/gcs/src/libs/gstreamer/plugins/cameracalibration/cameraevent.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* GStreamer
2-
* Copyright (C) <2011> Wim Taymans <wim.taymans@gmail.com>
2+
* Copyright (C) <2017> Philippe Renon <philippe_renon@yahoo.fr>
33
*
44
* This library is free software; you can redistribute it and/or
55
* modify it under the terms of the GNU Library General Public

ground/gcs/src/libs/gstreamer/plugins/cameracalibration/camerautils.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/* GStreamer
2-
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3-
* Library <2002> Ronald Bultje <rbultje@ronald.bitfreak.net>
4-
* Copyright (C) 2007 David A. Schleef <ds@schleef.org>
2+
* Copyright (C) <2017> Philippe Renon <philippe_renon@yahoo.fr>
53
*
64
* This library is free software; you can redistribute it and/or
75
* modify it under the terms of the GNU Library General Public

ground/gcs/src/libs/gstreamer/plugins/cameracalibration/camerautils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* GStreamer
2-
* Copyright (C) <2011> Wim Taymans <wim.taymans@gmail.com>
2+
* Copyright (C) <2017> Philippe Renon <philippe_renon@yahoo.fr>
33
*
44
* This library is free software; you can redistribute it and/or
55
* modify it under the terms of the GNU Library General Public

ground/gcs/src/libs/gstreamer/plugins/cameracalibration/gstcameracalibration.cpp

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
/*
22
* GStreamer
3-
* Copyright (C) 2005 Thomas Vander Stichele <thomas@apestaart.org>
4-
* Copyright (C) 2005 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
5-
* Copyright (C) 2008 Michael Sheldon <mike@mikeasoft.com>
6-
* Copyright (C) 2011 Stefan Sauer <ensonic@users.sf.net>
7-
* Copyright (C) 2014 Robert Jobbagy <jobbagy.robert@gmail.com>
3+
* Copyright (C) <2017> Philippe Renon <philippe_renon@yahoo.fr>
84
*
95
* Permission is hereby granted, free of charge, to any person obtaining a
106
* copy of this software and associated documentation files (the "Software"),
@@ -48,28 +44,7 @@
4844
/**
4945
* SECTION:element-cameracalibration
5046
*
51-
* Performs face detection on videos and images.
52-
* If you have high cpu load you need to use videoscale with capsfilter and reduce the video resolution.
53-
*
54-
* The image is scaled down multiple times using the GstCameraCalibration::scale-factor
55-
* until the size is &lt;= GstCameraCalibration::min-size-width or
56-
* GstCameraCalibration::min-size-height.
57-
*
58-
* <refsect2>
59-
* <title>Example launch line</title>
60-
* |[
61-
* gst-launch-1.0 autovideosrc ! decodebin ! colorspace ! cameracalibration ! videoconvert ! xvimagesink
62-
* ]| Detect and show faces
63-
* |[
64-
* gst-launch-1.0 autovideosrc ! video/x-raw,width=320,height=240 ! videoconvert ! cameracalibration min-size-width=60 min-size-height=60 ! colorspace ! xvimagesink
65-
* ]| Detect large faces on a smaller image
66-
*
67-
* </refsect2>
68-
*/
69-
70-
/* FIXME: development version of OpenCV has CV_HAAR_FIND_BIGGEST_OBJECT which
71-
* we might want to use if available
72-
* see https://code.ros.org/svn/opencv/trunk/opencv/modules/objdetect/src/haar.cpp
47+
* Performs fcamera calibration.
7348
*/
7449

7550
#ifdef HAVE_CONFIG_H

ground/gcs/src/libs/gstreamer/plugins/cameracalibration/gstcameracalibration.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
/*
22
* GStreamer
3-
* Copyright (C) 2005 Thomas Vander Stichele <thomas@apestaart.org>
4-
* Copyright (C) 2005 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
5-
* Copyright (C) 2008 Michael Sheldon <mike@mikeasoft.com>
6-
* Copyright (C) 2011 Stefan Sauer <ensonic@users.sf.net>
7-
* Copyright (C) 2011 Robert Jobbagy <jobbagy.robert@gmail.com>
3+
* Copyright (C) <2017> Philippe Renon <philippe_renon@yahoo.fr>
84
*
95
* Permission is hereby granted, free of charge, to any person obtaining a
106
* copy of this software and associated documentation files (the "Software"),

ground/gcs/src/libs/gstreamer/plugins/cameracalibration/gstcameraundistort.cpp

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
/*
22
* GStreamer
3-
* Copyright (C) 2005 Thomas Vander Stichele <thomas@apestaart.org>
4-
* Copyright (C) 2005 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
5-
* Copyright (C) 2008 Michael Sheldon <mike@mikeasoft.com>
6-
* Copyright (C) 2011 Stefan Sauer <ensonic@users.sf.net>
7-
* Copyright (C) 2014 Robert Jobbagy <jobbagy.robert@gmail.com>
3+
* Copyright (C) <2017> Philippe Renon <philippe_renon@yahoo.fr>
84
*
95
* Permission is hereby granted, free of charge, to any person obtaining a
106
* copy of this software and associated documentation files (the "Software"),
@@ -48,28 +44,8 @@
4844
/**
4945
* SECTION:element-cameraundistort
5046
*
51-
* Performs face detection on videos and images.
52-
* If you have high cpu load you need to use videoscale with capsfilter and reduce the video resolution.
47+
* Performs camera distortion correction.
5348
*
54-
* The image is scaled down multiple times using the GstCameraCalibration::scale-factor
55-
* until the size is &lt;= GstCameraCalibration::min-size-width or
56-
* GstCameraCalibration::min-size-height.
57-
*
58-
* <refsect2>
59-
* <title>Example launch line</title>
60-
* |[
61-
* gst-launch-1.0 autovideosrc ! decodebin ! colorspace ! cameraundistort ! videoconvert ! xvimagesink
62-
* ]| Detect and show faces
63-
* |[
64-
* gst-launch-1.0 autovideosrc ! video/x-raw,width=320,height=240 ! videoconvert ! cameraundistort min-size-width=60 min-size-height=60 ! colorspace ! xvimagesink
65-
* ]| Detect large faces on a smaller image
66-
*
67-
* </refsect2>
68-
*/
69-
70-
/* FIXME: development version of OpenCV has CV_HAAR_FIND_BIGGEST_OBJECT which
71-
* we might want to use if available
72-
* see https://code.ros.org/svn/opencv/trunk/opencv/modules/objdetect/src/haar.cpp
7349
*/
7450

7551
#ifdef HAVE_CONFIG_H
@@ -174,7 +150,7 @@ gst_camera_undistort_class_init (GstCameraUndistortClass * klass)
174150

175151
g_object_class_install_property (gobject_class, PROP_ALPHA,
176152
g_param_spec_float ("alpha", "Pixels",
177-
"Pixels bla bla...",
153+
"Show all pixels (1), only valid ones (0) or something in between",
178154
0.0, 1.0, DEFAULT_ALPHA,
179155
(GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)));
180156

ground/gcs/src/libs/gstreamer/plugins/cameracalibration/gstcameraundistort.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
/*
22
* GStreamer
3-
* Copyright (C) 2005 Thomas Vander Stichele <thomas@apestaart.org>
4-
* Copyright (C) 2005 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
5-
* Copyright (C) 2008 Michael Sheldon <mike@mikeasoft.com>
6-
* Copyright (C) 2011 Stefan Sauer <ensonic@users.sf.net>
7-
* Copyright (C) 2011 Robert Jobbagy <jobbagy.robert@gmail.com>
3+
* Copyright (C) <2017> Philippe Renon <philippe_renon@yahoo.fr>
84
*
95
* Permission is hereby granted, free of charge, to any person obtaining a
106
* copy of this software and associated documentation files (the "Software"),
@@ -51,7 +47,6 @@
5147
#include <gst/gst.h>
5248

5349
#include <gst/opencv/gstopencvvideofilter.h>
54-
//#include "gstopencvvideofilter.h"
5550

5651
#include <opencv2/core.hpp>
5752

ground/gcs/src/libs/gstreamer/plugins/cameracalibration/gstopencvutils.cpp

Lines changed: 0 additions & 178 deletions
This file was deleted.

0 commit comments

Comments
 (0)