FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
onnx_runtime_cpp/examples/MaskRCNN.hpp at develop · cardboardcode/onnx_runtime_cpp · GitHub
cardboardcode
/
onnx_runtime_cpp
Public
forked from
xmba15/onnx_runtime_cpp
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
onnx_runtime_cpp
/
examples
/
MaskRCNN.hpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
46 lines (36 loc) · 1.25 KB
Breadcrumbs
onnx_runtime_cpp
/
examples
/
MaskRCNN.hpp
Copy path
File metadata and controls
46 lines (36 loc) · 1.25 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
*
* @file MaskRCNN.hpp
*
* @author btran
*
*/
#
pragma
once
#
include
<
optional
>
#
include
<
string
>
#
include
<
vector
>
#
include
<
opencv2/opencv.hpp
>
#
include
<
ort_utility/ort_utility.hpp
>
namespace
Ort
{
class
MaskRCNN
:
public
ImageRecognitionOrtSessionHandlerBase
{
public:
static
constexpr
int64_t
MIN_IMAGE_SIZE
=
800
;
static
constexpr
int64_t
IMG_CHANNEL
=
3
;
MaskRCNN
(
const
uint16_t
numClasses,
//
const
std::string& modelPath,
//
const
std::optional<
size_t
>& gpuIdx = std::
nullopt
,
//
const
std::optional<std::vector<std::vector<
int64_t
>>>& inputShapes = std::
nullopt
);
~MaskRCNN
();
void
preprocess
(
float
* dst,
//
const
float
* src,
//
const
int64_t
targetImgWidth,
//
const
int64_t
targetImgHeight,
//
const
int
numChannels)
const
;
void
preprocess
(
float
* dst,
//
const
cv::Mat& imgSrc,
//
const
int64_t
targetImgWidth,
//
const
int64_t
targetImgHeight,
//
const
int
numChannels)
const
;
};
}
//
namespace Ort
Back
|
FazBrowse Home
|
New Git URL