MCPcopy Create free account
hub / github.com/davisking/dlib / start_track

Function start_track

tools/python/src/correlation_tracker.cpp:16–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14// ----------------------------------------------------------------------------------------
15
16void 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
36void start_track_rec (
37 correlation_tracker& tracker,

Callers 1

start_track_recFunction · 0.85

Calls 2

errorClass · 0.85
start_trackMethod · 0.80

Tested by

no test coverage detected