#include<opencv2\core\core.hpp>
#include<opencv2\highgui\highgui.hpp>
#include<opencv2\imgproc\imgproc.hpp>
using namespace cv;
#include<iostream>
#include<vector>
using namespace std;
bool drawing_box = false;
bool gotBox = false;
Rect box;
Point downPoint;
Point destination;
void mouseRectHandler(int event, int x, int y, int flags, void* param)
{
switch (event)
{
case EVENT_MOUSEMOVE:
if (drawing_box)
{
if (x >= downPoint.x && y >= downPoint.y)
{
box.x = downPoint.x;
box.y = downPoint.y;
box.width = x - downPoint.x;
box.height = y - downPoint.y;
}
if (x >= downPoint.x &am