| 37 | // ---------------------------------------------------------------------------------------- |
| 38 | |
| 39 | inline void save_simple_object_detector(const simple_object_detector& detector, const std::string& detector_output_filename) |
| 40 | { |
| 41 | std::ofstream fout(detector_output_filename.c_str(), std::ios::binary); |
| 42 | serialize(detector, fout); |
| 43 | // Don't need to save version of upsampling amount because want to write out the |
| 44 | // object detector just like the C++ code that serializes an object_detector would. |
| 45 | // We also don't know the upsampling amount in this case anyway. |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | #endif // DLIB_SERIALIZE_OBJECT_DETECTOR_H__ |
nothing calls this directly
no test coverage detected