Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 1ee0367

Browse files
authored
Remove unused code (#707)
* Remove unused code
1 parent 87933c3 commit 1ee0367

File tree

7 files changed

+4
-13
lines changed

7 files changed

+4
-13
lines changed

doc/servermd/AnalyticsGuide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ Make sure face detection with cpu pipeline has been installed and model path has
172172
Check ````analytics_agent/plugin.cfg````, The pipeline ID for face detection with CPU is ````dc51138a8284436f873418a21ba8cfa9````, so on the page, in "pipelineID" input text, input the pipeline ID in "analytics id"
173173
edit control, that is, ````dc51138a8284436f873418a21ba8cfa9```` without any extra spaces, and press "startAnalytics" button. The stream you selected will be analyzed, with annotation on the faces in the stream.
174174

175-
Note: If the sample cpu_pipeline analytics failed, please debug as following:
176-
a. Check sample cpu_pipeline is successfully compiled and generated libraries are copied to analytics_agent/lib folder
177-
b. Check ```modelpath``` in analytics_agent/plugin.cfg and make sure it is configured to the correct openmodel zoo model path.
178-
c. For sample cpu_pipeline, the failure is mostly caused by gvadetect and x264enc elements cannot be found, use ```gst-inspect-1.0 gvadetect``` and ```gst-inspect-1.0 x264enc``` to check if used GStreamer elements are successfully installed or configured. If x264enc element is not found, please make sure gstreamer1-plugins-ugly (for CentOS) and gstreamer1.0-plugins-ugly(for Ubuntu). If gvadetect element is not found, please make sure dlstreamer is successfully compiled. Check environment variable GST_PLUGIN_PATH and add x264 and gvadetect libraries to the GST_PLUGIN_PATH as:
175+
**Note:** If the sample cpu_pipeline analytics failed, please debug as following:
176+
a. Check sample cpu_pipeline is successfully compiled and generated libraries are copied to ```analytics_agent/lib``` folder
177+
b. Check ```modelpath``` in ```analytics_agent/plugin.cfg``` and make sure it is configured to the correct openmodel zoo model path.
178+
c. For sample cpu_pipeline, the failure is mostly caused by gvadetect and x264enc elements cannot be found, use ```gst-inspect-1.0 gvadetect``` and ```gst-inspect-1.0 x264enc``` to check if used GStreamer elements are successfully installed or configured. If x264enc element is not found, please make sure ```gstreamer1-plugins-ugly``` (for CentOS) and ```gstreamer1.0-plugins-ugly``` (for Ubuntu). If gvadetect element is not found, please make sure dlstreamer is successfully compiled. Check environment variable ```GST_PLUGIN_PATH``` and add x264 and gvadetect libraries to the ```GST_PLUGIN_PATH``` as:
179179
````
180180
export GST_PLUGIN_PATH=${dl_streamer_lib_path}:/usr/lib/x86_64-linux-gnu/gstreamer-1.0:${GST_PLUGIN_PATH} #for ubuntu18.04
181181
export GST_PLUGIN_PATH=${dl_streamer_lib_path}:/usr/lib64/gstreamer-1.0::${GST_PLUGIN_PATH} #for centos7.6

source/agent/plugins/samples/cpu_pipeline/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ add_library(${TARGET_NAME} SHARED ${SAMPLEPIPELINE_SRC})
2222

2323
set_target_properties(${TARGET_NAME} PROPERTIES "CMAKE_CXX_FLAGS" "${CMAKE_CXX_FLAGS} -fPIE")
2424

25-
target_link_libraries(${TARGET_NAME} boost_thread)
2625
target_link_libraries(${TARGET_NAME} gstreamer-1.0)
2726
target_link_libraries(${TARGET_NAME} gobject-2.0)
2827
target_link_libraries(${TARGET_NAME} glib-2.0)
2928
target_link_libraries(${TARGET_NAME} gstapp-1.0)
3029
target_link_libraries(${TARGET_NAME} gthread-2.0)
31-
target_link_libraries(${TARGET_NAME} boost_system)
3230

source/agent/plugins/samples/cpu_pipeline/mypipeline.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#define MYPIPELINE_H
77

88
#include <gst/gst.h>
9-
#include <boost/thread.hpp>
109
#include "pipeline.h"
1110

1211
// Class definition for the pipeline invoked by the sample service.

source/agent/plugins/samples/detect_pipeline/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ add_library(${TARGET_NAME} SHARED ${SAMPLEPIPELINE_SRC})
2222

2323
set_target_properties(${TARGET_NAME} PROPERTIES "CMAKE_CXX_FLAGS" "${CMAKE_CXX_FLAGS} -fPIE")
2424

25-
target_link_libraries(${TARGET_NAME} boost_thread)
2625
target_link_libraries(${TARGET_NAME} gstreamer-1.0)
2726
target_link_libraries(${TARGET_NAME} gobject-2.0)
2827
target_link_libraries(${TARGET_NAME} glib-2.0)
2928
target_link_libraries(${TARGET_NAME} gstapp-1.0)
3029
target_link_libraries(${TARGET_NAME} gthread-2.0)
31-
target_link_libraries(${TARGET_NAME} boost_system)
3230

source/agent/plugins/samples/detect_pipeline/mypipeline.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#define MYPIPELINE_H
77

88
#include <gst/gst.h>
9-
#include <boost/thread.hpp>
109
#include "pipeline.h"
1110

1211
// Class definition for the pipeline invoked by the sample service.

source/agent/plugins/samples/sample_pipeline/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ add_library(${TARGET_NAME} SHARED ${SAMPLEPIPELINE_SRC})
2323

2424
set_target_properties(${TARGET_NAME} PROPERTIES "CMAKE_CXX_FLAGS" "${CMAKE_CXX_FLAGS} -fPIE")
2525

26-
target_link_libraries(${TARGET_NAME} boost_thread)
2726
target_link_libraries(${TARGET_NAME} gstreamer-1.0)
2827
target_link_libraries(${TARGET_NAME} gobject-2.0)
2928
target_link_libraries(${TARGET_NAME} glib-2.0)
3029
target_link_libraries(${TARGET_NAME} gstapp-1.0)
3130
target_link_libraries(${TARGET_NAME} gthread-2.0)
32-
target_link_libraries(${TARGET_NAME} boost_system)
3331

source/agent/plugins/samples/sample_pipeline/mypipeline.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#define MYPIPELINE_H
77

88
#include <glib-object.h>
9-
#include <boost/thread.hpp>
109
#include "pipeline.h"
1110

1211
// Class definition for the pipeline invoked by the sample service.

0 commit comments

Comments
 (0)