NetReadNetFromTorch Method
|
Reads a network model stored in Torch model file.
Namespace:
OpenCvSharp.Dnn
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
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
OpenCvSharp.Dnn.Net.ReadNetFromTorch = function(model, isBinary);
Parameters
- model
- Type: SystemString
- isBinary (Optional)
- Type: SystemBoolean
Return Value
Type:
Net
RemarksThis is shortcut consisting from createTorchImporter and Net::populateNet calls.
See Also