Commit 43db0d54 authored by marina.kolpakova's avatar marina.kolpakova

fix win warnings

parent 318257f3
......@@ -43,7 +43,8 @@
#include "precomp.hpp"
cv::softcascade::Detection::Detection(const cv::Rect& b, const float c, int k)
: x(b.x), y(b.y), w(b.width), h(b.height), confidence(c), kind(k) {}
: x(static_cast<ushort>(b.x)), y(static_cast<ushort>(b.y)),
w(static_cast<ushort>(b.width)), h(static_cast<ushort>(b.height)), confidence(c), kind(k) {}
cv::Rect cv::softcascade::Detection::bb() const
{
......
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