How to resize and move a detection box?

To move a detection box, simply tap and drag it to a new position. To resize it, drag the white circle at one of its corners or edges.