Currently, in ObjectDetectionModel , the virtual function matToBlob has no implementation and each derived classes have their own implemantation.
We want to refine the common function to the ObjectDetectionModel or BaseModel. For the model specific pre-process, we can use some functions to implemente which can be overrideed. For example:
bool matToBlob (...) {
[some common implementation];
func_1();
func_2();
}
func_1() / func_2() can be overrideed by derived model classes and implement some model specific pre-process logic.
Currently, in ObjectDetectionModel , the virtual function matToBlob has no implementation and each derived classes have their own implemantation. We want to refine the common function to the ObjectDetectionModel or BaseModel. For the model specific pre-process, we can use some functions to implemente which can be overrideed. For example:
func_1() / func_2() can be overrideed by derived model classes and implement some model specific pre-process logic.