| TextDetectorCNNCreate Method (String, String, IEnumerableSize) |
Creates an instance of the TextDetectorCNN class using the provided parameters.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static TextDetectorCNN Create(
string modelArchFilename,
string modelWeightsFilename,
IEnumerable<Size> detectionSizes
)
Public Shared Function Create (
modelArchFilename As String,
modelWeightsFilename As String,
detectionSizes As IEnumerable(Of Size)
) As TextDetectorCNN
public:
static TextDetectorCNN^ Create(
String^ modelArchFilename,
String^ modelWeightsFilename,
IEnumerable<Size>^ detectionSizes
)
static member Create :
modelArchFilename : string *
modelWeightsFilename : string *
detectionSizes : IEnumerable<Size> -> TextDetectorCNN
Parameters
- modelArchFilename
- Type: SystemString
the relative or absolute path to the prototxt file describing the classifiers architecture. - modelWeightsFilename
- Type: SystemString
the relative or absolute path to the file containing the pretrained weights of the model in caffe-binary form. - detectionSizes
- Type: System.Collections.GenericIEnumerableSize
a list of sizes for multiscale detection. The values`[(300,300),(700,500),(700,300),(700,700),(1600,1600)]`
are recommended in @cite LiaoSBWL17 to achieve the best quality.
Return Value
Type:
TextDetectorCNN[Missing <returns> documentation for "M:OpenCvSharp.TextDetectorCNN.Create(System.String,System.String,System.Collections.Generic.IEnumerable{OpenCvSharp.Size})"]
See Also