| 44 | } |
| 45 | |
| 46 | double update ( |
| 47 | correlation_tracker& tracker, |
| 48 | py::array img |
| 49 | ) |
| 50 | { |
| 51 | if (is_image<unsigned char>(img)) |
| 52 | { |
| 53 | return tracker.update(numpy_image<unsigned char>(img)); |
| 54 | } |
| 55 | else if (is_image<rgb_pixel>(img)) |
| 56 | { |
| 57 | return tracker.update(numpy_image<rgb_pixel>(img)); |
| 58 | } |
| 59 | else |
| 60 | { |
| 61 | throw dlib::error("Unsupported image type, must be 8bit gray or RGB image."); |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | double update_guess ( |
| 66 | correlation_tracker& tracker, |
no test coverage detected