Skip to content

cv::Rect in a struct pack - unpack #1052

Description

@MyraBaba

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions