Commit ef8fea7d authored by zhaoyunfei's avatar zhaoyunfei

test 2021-0201

parent 8265bbd4
Pipeline #613 failed with stages
......@@ -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,770);
cv::Rect rect(0,610,2400,910);
img = img(rect);
cv::resize(img, img,cv::Size(2400*0.25, 770*0.25), cv::INTER_CUBIC);
cv::resize(img, img,cv::Size(2400*0.25, 910*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 = 770 * cfgAnomaly.input_resize;
cfgAnomaly.image_height = 910 * 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 = 1330 * 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 = 1340 * 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment