y9luiz / FaceRecognitionServer

A face recognition server written in C++ [Under development]
1 stars 2 forks source link

Refactor the serializer module #23

Closed y9luiz closed 1 year ago

y9luiz commented 2 years ago

Refactor the serializer module would involve 3 milestones:

  1. Create a Serializable interface
  2. Implements the methods to serialize and deserialize to all necessary classes
  3. For OpenCV classes create a new class that gonna encapsulate it. Eg.:

    class Image : public Serializable
    {
      public:
      //...
       // (whatever we have here)
      //...
    
     cv::Mat m_image;
    }
  4. Make the Serializer receives only Serializable objects
y9luiz commented 1 year ago

I refactored the code and created the Serializable interface, but I'm still using the OpenCV class. I will replace it in the future.

You can check the changes at: https://github.com/y9luiz/FaceRecognitionServer/pull/29