Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
Video_onnxruntime
Commits
4c0d47f3
Commit
4c0d47f3
authored
Nov 04, 2024
by
lijian6
Browse files
support on dtk24.04.2
Signed-off-by:
lijian
<
lijian6@sugon.com
>
parent
68bc8464
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
12 additions
and
13 deletions
+12
-13
CMakeLists.txt
CMakeLists.txt
+2
-2
README.md
README.md
+1
-1
docker/Dockerfile
docker/Dockerfile
+1
-1
include/CommonUtils.h
include/CommonUtils.h
+1
-1
include/Decoder.h
include/Decoder.h
+3
-4
include/DetectorYOLOV3.h
include/DetectorYOLOV3.h
+1
-1
include/DetectorYOLOV5.h
include/DetectorYOLOV5.h
+1
-1
include/DetectorYOLOV7.h
include/DetectorYOLOV7.h
+1
-1
include/Queuethread.h
include/Queuethread.h
+1
-1
lib/libQueue.so
lib/libQueue.so
+0
-0
lib/libdecode.so
lib/libdecode.so
+0
-0
No files found.
CMakeLists.txt
View file @
4c0d47f3
...
...
@@ -8,7 +8,7 @@ add_definitions(-DUNICODE -D_UNICODE)
add_definitions
(
"-Wall"
)
# project include
set
(
INCLUDE_PATH /usr/local/include
set
(
INCLUDE_PATH /usr/local/include
/opencv4
${
CMAKE_CURRENT_SOURCE_DIR
}
/include
$ENV{ROCM_PATH}/include
)
include_directories
(
${
INCLUDE_PATH
}
)
...
...
@@ -20,7 +20,7 @@ set(LIBRARY_PATH /usr/local/lib
link_directories
(
${
LIBRARY_PATH
}
)
# project lib
set
(
LIBRARY avcodec avdevice avfilter avformat avutil swresample swscale
postproc
set
(
LIBRARY avcodec avdevice avfilter avformat avutil swresample swscale
opencv_core opencv_imgproc opencv_imgcodecs opencv_dnn opencv_highgui opencv_videoio
onnxruntime
)
link_libraries
(
${
LIBRARY
}
)
...
...
README.md
View file @
4c0d47f3
...
...
@@ -19,7 +19,7 @@ YOLOv7的作者提出了 Extended-ELAN (E-ELAN)结构。E-ELAN采用了ELAN类
拉取镜像:
```
plaintext
docker pull image.sourcefind.cn:5000/dcu/admin/base/custom:
tvm0.10_ort1.14.0_migraphx3.
0.0-dtk2
3
.04
docker pull image.sourcefind.cn:5000/dcu/admin/base/custom:
opencv49_ffmpeg4.2.1_ubuntu2
0.0
4
-dtk2
4
.04
.2
```
创建并启动容器:
...
...
docker/Dockerfile
View file @
4c0d47f3
FROM
image.sourcefind.cn:5000/dcu/admin/base/custom:
tvm0.10_ort1.14.0_migraphx3.
0.0-dtk2
3
.04
FROM
image.sourcefind.cn:5000/dcu/admin/base/custom:
opencv49_ffmpeg4.2.1_ubuntu2
0.0
4
-dtk2
4
.04
.2
include/CommonUtils.h
View file @
4c0d47f3
...
...
@@ -2,7 +2,7 @@
#define __COMMON_UTILS_H__
#include <opencv2/core.hpp>
#include <onnxruntime
/core/session/onnxruntime
_cxx_api.h>
#include <onnxruntime_cxx_api.h>
#include <numeric>
#include <sys/stat.h>
...
...
include/Decoder.h
View file @
4c0d47f3
/*
* Decoder
* 202
2.09.23
sugon
* 202
4.11.04
sugon
* */
#ifndef __DECODER_H__
...
...
@@ -12,8 +12,8 @@ extern "C"
#include <stdlib.h>
#include <string.h>
#include <libavcodec/avcodec.h>
#include <libavcodec/packet.h>
#include <libavcodec/codec.h>
//
#include <libavcodec/packet.h>
//
#include <libavcodec/codec.h>
#include <libavutil/imgutils.h>
#include <libavutil/samplefmt.h>
#include <libavutil/timestamp.h>
...
...
@@ -37,7 +37,6 @@ public:
int
video_stream_idx
=
-
1
;
const
char
*
src_filename
=
"../Resource/Images/cr7_1920x1080.h264"
;
//const char *src_filename = "../Resource/Images/Mean.mp4";
};
...
...
include/DetectorYOLOV3.h
View file @
4c0d47f3
...
...
@@ -4,7 +4,7 @@
#include <string>
#include <fstream>
#include <onnxruntime
/core/session/onnxruntime
_cxx_api.h>
#include <onnxruntime_cxx_api.h>
#include <opencv2/opencv.hpp>
#include <opencv2/dnn.hpp>
#include "CommonUtils.h"
...
...
include/DetectorYOLOV5.h
View file @
4c0d47f3
...
...
@@ -4,7 +4,7 @@
#include <string>
#include <fstream>
#include <onnxruntime
/core/session/onnxruntime
_cxx_api.h>
#include <onnxruntime_cxx_api.h>
#include <opencv2/opencv.hpp>
#include <opencv2/dnn.hpp>
#include "CommonUtils.h"
...
...
include/DetectorYOLOV7.h
View file @
4c0d47f3
...
...
@@ -4,7 +4,7 @@
#include <string>
#include <fstream>
#include <onnxruntime
/core/session/onnxruntime
_cxx_api.h>
#include <onnxruntime_cxx_api.h>
#include <opencv2/opencv.hpp>
#include <opencv2/dnn.hpp>
#include "CommonUtils.h"
...
...
include/Queuethread.h
View file @
4c0d47f3
...
...
@@ -22,7 +22,7 @@ using std::queue;
class
Queue
{
public:
Queue
(
size_t
Capacity
=
CAPACITY
);
Queue
(
size_t
Capacity
);
~
Queue
();
...
...
lib/libQueue.so
View file @
4c0d47f3
No preview for this file type
lib/libdecode.so
View file @
4c0d47f3
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment