This commit is contained in:
Your Name 2024-01-01 11:18:37 +08:00
parent c556994c45
commit 7a5012bd31
7 changed files with 27 additions and 27 deletions

View File

@ -272,7 +272,7 @@ elseif(PLATFORM STREQUAL "X86_INTEL") # Links to Intel-OpenVINO libraries here
sv_world ${OpenCV_LIBS}
sv_gimbal
${InferenceEngine_LIBRARIES}
/opt/intel/openvino_2022/runtime/lib/intel64/libopenvino.so
/opt/intel/openvino_2022/runtime/lib/intel64/libopenvino.so
)
endif()

View File

@ -38,9 +38,9 @@ SpireCV is an **real-time edge perception SDK** built for **intelligent unmanned
- **Platform level**
- [x] X86 + Nvidia GPUs (10 series, 20 series, and 30 series graphics cards recommended)
- [x] Jetson (AGX Orin/Xavier、Orin NX/Nano、Xavier NX)
- [ ] Intel CPU (coming soon)
- [ ] Rockchip (coming soon)
- [x] Intel CPU
- [ ] HUAWEI Ascend (coming soon)
- [ ] Rockchip (coming soon)
## Demos
- **QR code detection**

View File

@ -38,9 +38,9 @@ SpireCV是一个专为**智能无人系统**打造的**边缘实时感知SDK**
- **平台层**
- [x] X86+Nvidia GPU推荐10系、20系、30系显卡
- [x] JetsonAGX Orin/Xavier、Orin NX/Nano、Xavier NX
- [ ] Intel CPU推进中
- [ ] Rockchip推进中
- [x] Intel CPU
- [ ] HUAWEI Ascend推进中
- [ ] Rockchip推进中
## 功能展示
- **二维码检测**

View File

@ -24,7 +24,7 @@ CommonObjectDetector::CommonObjectDetector(bool input_4k)
#endif
#ifdef WITH_INTEL
this->_intel_impl = new CommonObjectDetectorIntelImpl;
this->_intel_impl = new CommonObjectDetectorIntelImpl;
#endif
}
CommonObjectDetector::~CommonObjectDetector()
@ -65,22 +65,21 @@ void CommonObjectDetector::detectImpl(
boxes_label_,
boxes_score_,
boxes_seg_,
this->_input_4k
);
this->_input_4k);
#endif
#ifdef WITH_INTEL
this->_intel_impl->intelDetect(
this,
img_,
boxes_x_,
boxes_y_,
boxes_w_,
boxes_h_,
boxes_label_,
boxes_score_,
boxes_seg_,
this->_input_4k);
this->_intel_impl->intelDetect(
this,
img_,
boxes_x_,
boxes_y_,
boxes_w_,
boxes_h_,
boxes_label_,
boxes_score_,
boxes_seg_,
this->_input_4k);
#endif
}

View File

@ -128,7 +128,7 @@ namespace sv
}
}
void VeriDetector::getSubwindow(cv::Mat &dstCrop, cv::Mat &srcImg, int originalSz, int resizeSz)
void VeriDetector::getSubwindow(cv::Mat &dstCrop, cv::Mat &srcImg, int originalSz, int resizeSz)
{
cv::Scalar avgChans = mean(srcImg);
cv::Size imgSz = srcImg.size();

View File

@ -15,5 +15,6 @@ sudo -E ./install_dependencies/install_openvino_dependencies.sh
cd /opt/intel
sudo ln -s openvino_2022.3.1 openvino_2022
source /opt/intel/openvino_2022/setupvars.sh
echo "source /opt/intel/openvino_2022/setupvars.sh" >> ~/.bashrc
source ~/.bashrc
cd ${current_dir}

View File

@ -6,10 +6,10 @@
#include "writer_gstreamer_impl.h"
#endif
#ifdef WITH_FFMPEG
#ifdef PLATFORM_X86_CUDA
#if defined(PLATFORM_X86_CUDA)
#include "x86_cuda/bs_push_streamer.h"
#include "x86_cuda/bs_video_saver.h"
#else
#elif defined(PLATFORM_X86_INTEL)
#include "x86_intel/bs_push_streamer.h"
#include "x86_intel/bs_video_saver.h"
#endif
@ -42,9 +42,9 @@ bool VideoWriter::setupImpl(std::string file_name_)
return this->_gstreamer_impl->gstreamerSetup(this, file_name_);
#endif
#ifdef WITH_FFMPEG
#ifdef PLATFORM_X86_CUDA
#if defined(PLATFORM_X86_CUDA)
std::string enc = "h264_nvenc";
#else
#elif defined(PLATFORM_X86_INTEL)
std::string enc = "h264_vaapi";
#endif
return this->_ffmpeg_impl->setup(file_path + file_name_ + ".avi", img_sz.width, img_sz.height, (int)fps, enc, 4);
@ -110,9 +110,9 @@ bool VideoStreamer::setupImpl()
#endif
#ifdef WITH_FFMPEG
std::string rtsp_url = "rtsp://127.0.0.1/live" + url;
#ifdef PLATFORM_X86_CUDA
#if defined(PLATFORM_X86_CUDA)
std::string enc = "h264_nvenc";
#else
#elif defined(PLATFORM_X86_INTEL)
std::string enc = "h264_vaapi";
#endif
return this->_ffmpeg_impl->setup(rtsp_url, img_sz.width, img_sz.height, 24, enc, bitrate);