[32/64bit] 与えられたパラメータを用いて,TextDetectorCNN クラスのインスタンスを作成します.
text_TextDetectorCNN_create1 p1,p2,p3,p4,p5
p1 = str : [MarshalAs(UnmanagedType.LPStr)] string modelArchFilename p2 = str : [MarshalAs(UnmanagedType.LPStr)] string modelWeightsFilename p3 = var : [MarshalAs(UnmanagedType.LPArray)] Size[] detectionSizes p4 = int : int detectionSizesLength p5 = var : out IntPtr returnValue
(プラグイン / モジュール : OpenCvSharpExtern.dll)
元関数名(C#): text_TextDetectorCNN_create1 元DLLエクスポート名: text_TextDetectorCNN_create1 参照元CSファイル: Internal\PInvoke\NativeMethods\text\NativeMethods_text_TextDetector.cs ▼ C言語側関数定義
CVAPI(ExceptionStatus) text_TextDetectorCNN_create1(
const char *modelArchFilename, const char *modelWeightsFilename, MyCvSize *detectionSizes, int detectionSizesLength,
cv::Ptr<cv::text::TextDetectorCNN> **returnValue)
{
BEGIN_WRAP
std::vector<cv::Size> detectionSizesVec;
if (detectionSizes != nullptr)
{
detectionSizesVec.resize(detectionSizesLength);
for (int i = 0; i < detectionSizesLength; i++)
detectionSizesVec[i] = cpp(detectionSizes[i]);
}
const auto ptr = cv::text::TextDetectorCNN::create(modelArchFilename, modelWeightsFilename, detectionSizesVec);
*returnValue = clone(ptr);
END_WRAP
}
| プラグイン / モジュール | OpenCvSharpExtern.dll |
| バージョン | 1.00 |
| 作成日 | 2021/11/30 |
| 著作者 | inovia |
| URL | https://hsp.moe/ |
| 備考 | #include "OpenCvSharpExtern32.as"
#include "OpenCvSharpExtern64.as" 使用するHSPランタイムのビット数に合わせたインクルードファイルを使用すること |
| タイプ | OpenCVSharpラッパーDLL |
| グループ | NativeMethods_text_TextDetector |
| 対応環境 |
|
| hs ファイル | hsphelp\OpenCvSharpExtern.hs |