Hi,
I have below struct and msg_pack:
struct AlpBox
{
cv::Rect bbox;
double confidence;
int class_id;
MSGPACK_DEFINE(bbox,confidence,class_id);
} ;
struct Alpdetections
{
std::vector<AlpBox> detections;
MSGPACK_DEFINE(detections)
}
it gives :
../libs/postprocesses/alpullu/messaging.h:32:1: required from here │··········
/usr/local/include/msgpack/v1/object.hpp:647:7: error: ‘class cv::Rect_’ has no member named ‘msgpack_unpa│··········
ck’ │··········
647 | v.msgpack_unpack(o.convert());
what is the best practices for above vector of struct pack and unpack in C++
Best
Hi,
I have below struct and msg_pack:
it gives :
../libs/postprocesses/alpullu/messaging.h:32:1: required from here │··········
/usr/local/include/msgpack/v1/object.hpp:647:7: error: ‘class cv::Rect_’ has no member named ‘msgpack_unpa│··········
ck’ │··········
647 | v.msgpack_unpack(o.convert());
what is the best practices for above vector of struct pack and unpack in C++
Best