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

Function cv__repr__

tools/python/src/vector.cpp:41–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41string cv__repr__ (const cv& v)
42{
43 std::ostringstream sout;
44 sout << "dlib.vector([";
45 for (long i = 0; i < v.size(); ++i)
46 {
47 sout << v(i);
48 if (i+1 < v.size())
49 sout << ", ";
50 }
51 sout << "])";
52 return sout.str();
53}
54
55std::shared_ptr<cv> cv_from_object(py::object obj)
56{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected