| 16 | } |
| 17 | |
| 18 | inline void deserialize (dlib::simple_object_detector_py& item, std::istream& in) |
| 19 | { |
| 20 | int version = 0; |
| 21 | deserialize(item.detector, in); |
| 22 | deserialize(version, in); |
| 23 | if (version != 1) |
| 24 | throw dlib::serialization_error("Unexpected version found while deserializing a simple_object_detector."); |
| 25 | deserialize(item.upsampling_amount, in); |
| 26 | } |
| 27 | |
| 28 | inline void save_simple_object_detector_py(const simple_object_detector_py& detector, const std::string& detector_output_filename) |
| 29 | { |
nothing calls this directly
no test coverage detected