 | CvDnnReadNetFromTorch Method |
Reads a network model stored in Torch model file.
Namespace:
OpenCvSharp.Dnn
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntaxpublic static Net ReadNetFromTorch(
string model,
bool isBinary = true
)
Public Shared Function ReadNetFromTorch (
model As String,
Optional isBinary As Boolean = true
) As Net
public:
static Net^ ReadNetFromTorch(
String^ model,
bool isBinary = true
)
static member ReadNetFromTorch :
model : string *
?isBinary : bool
(* Defaults:
let _isBinary = defaultArg isBinary true
*)
-> Net
Parameters
- model
- Type: SystemString
[Missing <param name="model"/> documentation for "M:OpenCvSharp.Dnn.CvDnn.ReadNetFromTorch(System.String,System.Boolean)"]
- isBinary (Optional)
- Type: SystemBoolean
[Missing <param name="isBinary"/> documentation for "M:OpenCvSharp.Dnn.CvDnn.ReadNetFromTorch(System.String,System.Boolean)"]
Return Value
Type:
Net[Missing <returns> documentation for "M:OpenCvSharp.Dnn.CvDnn.ReadNetFromTorch(System.String,System.Boolean)"]
RemarksThis is shortcut consisting from createTorchImporter and Net::populateNet calls.
See Also