luxonis / depthai-core

DepthAI C++ Library
MIT License
238 stars 127 forks source link

Enable printing depthai messages #1147

Closed asahtik closed 1 month ago

asahtik commented 1 month ago

C++: use .str() method on a message to get the serialized message string. Python: implemented __str__ method, which gets automatically called when printing.

moratom commented 1 month ago

Thanks!

I think we should use repr instead of str -> https://stackoverflow.com/questions/1436703/what-is-the-difference-between-str-and-repr