Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
D
datang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaoyunfei
datang
Commits
ef8fea7d
Commit
ef8fea7d
authored
Feb 01, 2021
by
zhaoyunfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test 2021-0201
parent
8265bbd4
Pipeline
#613
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
DetectAnomaly.cpp
DetectAnomaly.cpp
+11
-11
No files found.
DetectAnomaly.cpp
View file @
ef8fea7d
...
...
@@ -29,9 +29,9 @@ double INPUT_RESIZE;
bool
DetectAnomaly
::
detectAnomaly
(
cv
::
Mat
img
,
vector
<
vector
<
int
>>*
resultLocation
)
{
yolo_test
=
img
.
clone
();
cv
::
Rect
rect
(
0
,
750
,
2400
,
77
0
);
cv
::
Rect
rect
(
0
,
610
,
2400
,
91
0
);
img
=
img
(
rect
);
cv
::
resize
(
img
,
img
,
cv
::
Size
(
2400
*
0.25
,
77
0
*
0.25
),
cv
::
INTER_CUBIC
);
cv
::
resize
(
img
,
img
,
cv
::
Size
(
2400
*
0.25
,
91
0
*
0.25
),
cv
::
INTER_CUBIC
);
img
.
copyTo
(
myimg
);
medianBlur
(
mat_myimg
,
mat_myimg
,
3
);
opencv_2_myImage
(
myimg
,
myimg1
);
//transfer opencv data to myimage data
...
...
@@ -91,7 +91,7 @@ DetectAnomaly::DetectAnomaly()
cfgAnomaly
.
max_fg
=
75000
;
cfgAnomaly
.
min_fg
=
50
;
cfgAnomaly
.
buffer_length
=
200
;
cfgAnomaly
.
image_height
=
77
0
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
image_height
=
91
0
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
image_width
=
2400
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
gmm_long_learn_rate
=
0.0001
;
...
...
@@ -120,14 +120,14 @@ DetectAnomaly::DetectAnomaly()
// cfgAnomaly.bottom_left_y = 739 * cfgAnomaly.input_resize;
// cfgAnomaly.bottom_right_x = 2376 * cfgAnomaly.input_resize;
// cfgAnomaly.bottom_right_y = 661 * cfgAnomaly.input_resize;
cfgAnomaly
.
top_left_x
=
562
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
top_left_y
=
58
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
top_right_x
=
13
3
0
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
top_right_y
=
45
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
bottom_left_x
=
65
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
bottom_left_y
=
734
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
bottom_right_x
=
1780
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
bottom_right_y
=
715
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
top_left_x
=
1136
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
top_left_y
=
3
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
top_right_x
=
13
4
0
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
top_right_y
=
10
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
bottom_left_x
=
198
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
bottom_left_y
=
853
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
bottom_right_x
=
2168
*
cfgAnomaly
.
input_resize
;
cfgAnomaly
.
bottom_right_y
=
842
*
cfgAnomaly
.
input_resize
;
obj_left
=
false
;
arr
[
0
]
=
4
;
...
...
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