|
|
@ -67,7 +67,10 @@ void DriverViewScene::paintEvent(QPaintEvent* event) { |
|
|
|
float face_std = std::max(std_list[0], std_list[1]); |
|
|
|
float face_std = std::max(std_list[0], std_list[1]); |
|
|
|
|
|
|
|
|
|
|
|
float alpha = 0.7; |
|
|
|
float alpha = 0.7; |
|
|
|
const int box_size = 250; |
|
|
|
if (face_std > 0.15) { |
|
|
|
|
|
|
|
alpha = std::max(0.7 - (face_std-0.15)*3.5, 0.0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
const int box_size = 220; |
|
|
|
// use approx instead of distort_points
|
|
|
|
// use approx instead of distort_points
|
|
|
|
int fbox_x = 964.0 + 1530.0 * (is_rhd ? face_x : -face_x); |
|
|
|
int fbox_x = 964.0 + 1530.0 * (is_rhd ? face_x : -face_x); |
|
|
|
int fbox_y = (450.0 + std::abs(face_x)*100.0) + (1076.0 - std::abs(face_x)*646.0) * face_y; |
|
|
|
int fbox_y = (450.0 + std::abs(face_x)*100.0) + (1076.0 - std::abs(face_x)*646.0) * face_y; |
|
|
|