fix bug when used as lib
This commit is contained in:
parent
cc715bef70
commit
9612f9fe83
|
@ -25,7 +25,6 @@ public:
|
|||
double line_location_a2;
|
||||
|
||||
bool is_load_parameter;
|
||||
|
||||
std::string line_color;
|
||||
|
||||
protected:
|
||||
|
|
|
@ -10,13 +10,10 @@
|
|||
|
||||
namespace sv
|
||||
{
|
||||
#ifdef WITH_CUDA
|
||||
class CommonObjectDetectorCUDAImpl;
|
||||
#endif
|
||||
|
||||
#ifdef WITH_INTEL
|
||||
class CommonObjectDetectorCUDAImpl;
|
||||
class CommonObjectDetectorIntelImpl;
|
||||
#endif
|
||||
|
||||
|
||||
class CommonObjectDetector : public CommonObjectDetectorBase
|
||||
{
|
||||
|
@ -36,13 +33,8 @@ namespace sv
|
|||
std::vector<float> &boxes_score_,
|
||||
std::vector<cv::Mat> &boxes_seg_);
|
||||
|
||||
#ifdef WITH_CUDA
|
||||
CommonObjectDetectorCUDAImpl *_cuda_impl;
|
||||
#endif
|
||||
|
||||
#ifdef WITH_INTEL
|
||||
CommonObjectDetectorIntelImpl *_intel_impl;
|
||||
#endif
|
||||
|
||||
bool _input_4k;
|
||||
};
|
||||
|
|
|
@ -10,13 +10,9 @@
|
|||
|
||||
|
||||
namespace sv {
|
||||
#ifdef WITH_CUDA
|
||||
class LandingMarkerDetectorCUDAImpl;
|
||||
#endif
|
||||
|
||||
#ifdef WITH_INTEL
|
||||
class LandingMarkerDetectorCUDAImpl;
|
||||
class LandingMarkerDetectorIntelImpl;
|
||||
#endif
|
||||
|
||||
class LandingMarkerDetector : public LandingMarkerDetectorBase
|
||||
{
|
||||
|
@ -30,13 +26,8 @@ protected:
|
|||
std::vector<int>& output_labels_
|
||||
);
|
||||
|
||||
#ifdef WITH_CUDA
|
||||
LandingMarkerDetectorCUDAImpl *_cuda_impl;
|
||||
#endif
|
||||
|
||||
#ifdef WITH_INTEL
|
||||
LandingMarkerDetectorIntelImpl *_intel_impl;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -10,13 +10,9 @@
|
|||
|
||||
namespace sv
|
||||
{
|
||||
#ifdef WITH_CUDA
|
||||
class VeriDetectorCUDAImpl;
|
||||
#endif
|
||||
|
||||
#ifdef WITH_INTEL
|
||||
class VeriDetectorCUDAImpl;
|
||||
class VeriDetectorIntelImpl;
|
||||
#endif
|
||||
|
||||
class VeriDetector : public LandingMarkerDetectorBase
|
||||
{
|
||||
|
@ -40,13 +36,8 @@ namespace sv
|
|||
std::vector<float> targetSz = {0, 0}; // H and W of bounding box
|
||||
std::vector<float> targetPos = {0, 0}; // center point of bounding box (x, y)
|
||||
|
||||
#ifdef WITH_CUDA
|
||||
VeriDetectorCUDAImpl *_cuda_impl;
|
||||
#endif
|
||||
|
||||
#ifdef WITH_INTEL
|
||||
VeriDetectorIntelImpl *_intel_impl;
|
||||
#endif
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue