| 14 | // ---------------------------------------------------------------------------------------- |
| 15 | |
| 16 | void start_track ( |
| 17 | correlation_tracker& tracker, |
| 18 | py::array img, |
| 19 | const drectangle& bounding_box |
| 20 | ) |
| 21 | { |
| 22 | if (is_image<unsigned char>(img)) |
| 23 | { |
| 24 | tracker.start_track(numpy_image<unsigned char>(img), bounding_box); |
| 25 | } |
| 26 | else if (is_image<rgb_pixel>(img)) |
| 27 | { |
| 28 | tracker.start_track(numpy_image<rgb_pixel>(img), bounding_box); |
| 29 | } |
| 30 | else |
| 31 | { |
| 32 | throw dlib::error("Unsupported image type, must be 8bit gray or RGB image."); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | void start_track_rec ( |
| 37 | correlation_tracker& tracker, |
no test coverage detected