add opencv serialization code