Add interface to modules using Python language
This commit is contained in:
1 parent
d4dddda2c2
commit
468449398a
8 files changed
+664
-1
No files matched your search
@@ -50,6 +50,8 @@ ADD_MODULE_USE_OPENCV( ThreeSixtySpatialtoTemporal "ThreeSixtySpatialtoTemporal"
|
||||
ADD_MODULE_USE_OPENCV( ThreeSixtyFaceExtraction "ThreeSixtyFaceExtraction" VERSION 3.1.0 MODULES core )
|
||||
ADD_MODULE_USE_OPENCV( ThreeSixtyFaceConcatenation "ThreeSixtyFaceConcatenation" VERSION 3.1.0 MODULES core )
|
||||
|
||||
ADD_PYTHON_MODULE( EdgeDetectionPyhton "EdgeDetectionPyhton" )
|
||||
|
||||
IF(EXISTS ${CALYP_EXTRA_MODULES_DIR} )
|
||||
ADD_EXTRA_MODULES( ${CALYP_EXTRA_MODULES_DIR} )
|
||||
ENDIF()
|
||||
@@ -60,7 +62,8 @@ ENDIF()
|
||||
CREATE_MODULE_MACROS()
|
||||
INCLUDE_DIRECTORIES( ${OpenCV_INCLUDE_DIRS} )
|
||||
ADD_LIBRARY( CalypModules ${Calyp_Mod_SRCS} )
|
||||
TARGET_LINK_LIBRARIES( CalypModules ${PROJECT_LIBRARY} ${OpenCV_LIBRARIES} )
|
||||
TARGET_LINK_LIBRARIES( CalypModules ${PROJECT_LIBRARY} ${OpenCV_LIBRARIES} ${PYTHON_LINKER_LIBS} )
|
||||
|
||||
IF( USE_DYNLOAD )
|
||||
TARGET_LINK_LIBRARIES( CalypModules -ldl )
|
||||
ENDIF()
|
||||
@@ -0,0 +1,40 @@
|
||||
/* This file is a part of Calyp project
|
||||
* Copyright (C) 2014-2019 by Joao Carreira (jfmcarreira@gmail.com)
|
||||
* Luis Lucas (luisfrlucas@gmail.com)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file EdgeDetectionPyhton.cpp
|
||||
* \brief Binarize frame module
|
||||
*/
|
||||
|
||||
#include "EdgeDetectionPyhton.h"
|
||||
|
||||
EdgeDetectionPyhton::EdgeDetectionPyhton()
|
||||
{
|
||||
/* Module Definition */
|
||||
m_iModuleAPI = CLP_MODULE_API_2;
|
||||
m_iModuleType = CLP_FRAME_PROCESSING_MODULE;
|
||||
m_pchModuleCategory = "Utilities";
|
||||
m_pchModuleName = "PythonEdgeDetection";
|
||||
m_pchModuleLongName = "Python Edge Detection";
|
||||
m_pchModuleTooltip = "Canny Edge Detection using Python interface";
|
||||
m_uiNumberOfFrames = 1;
|
||||
m_uiModuleRequirements = CLP_MODULE_REQUIRES_NOTHING;
|
||||
m_pchPythonFunctionName = "CalypCannyEdge";
|
||||
m_bConvertToGray = true;
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
/* This file is a part of Calyp project
|
||||
* Copyright (C) 2014-2019 by Joao Carreira (jfmcarreira@gmail.com)
|
||||
* Luis Lucas (luisfrlucas@gmail.com)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file EdgeDetectionPyhton.h
|
||||
* \brief Detect edges using canny algorithm
|
||||
*/
|
||||
|
||||
#ifndef __EDGEDETECTIONPYHTON_H__
|
||||
#define __EDGEDETECTIONPYHTON_H__
|
||||
|
||||
// CalypLib
|
||||
#include "lib/CalypPythonModuleIf.h"
|
||||
|
||||
class EdgeDetectionPyhton : public CalypPythonModuleIf
|
||||
{
|
||||
REGISTER_CLASS_FACTORY( EdgeDetectionPyhton )
|
||||
public:
|
||||
EdgeDetectionPyhton();
|
||||
virtual ~EdgeDetectionPyhton() {}
|
||||
};
|
||||
|
||||
#endif // __EDGEDETECTIONPYHTON_H__
|
||||
Reference in new issue
Block a user