I want to deep copy instance of cv::dnn::Net:
cv::dnn::Net n1 = cv::dnn::readNetFromONNX("");
cv::dnn::Net n2 = n1;
But this class uses implicit sharing, as I understand it. And I did not find any way to do this in documentation. Is there any possibility (some method copy(), for example) that allows to completely copy the instance?