Skip to content

query_image_sourcesQueryImageSourcesQueryImageSourcesquery_image_sourcesT_query_image_sources🔗

説明🔗

query_image_sourcesQueryImageSourcesQueryImageSourcesquery_image_sourcesT_query_image_sources — 画像ソースに対応するハンドルを返す。

書式🔗

query_image_sources( string PluginName, attribute.name GenParamName, attribute.value GenParamValue, out image_source ImageSourceHandles )void QueryImageSources( const HTuple& PluginName, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* ImageSourceHandles )static void HOperatorSet.QueryImageSources( HTuple pluginName, HTuple genParamName, HTuple genParamValue, out HTuple imageSourceHandles )def query_image_sources( plugin_name: str, gen_param_name: Sequence[str], gen_param_value: Sequence[Union[str, HHandle]] ) -> Sequence[HHandle]

Herror T_query_image_sources( const Htuple PluginName, const Htuple GenParamName, const Htuple GenParamValue, Htuple* ImageSourceHandles )

static HImageSourceArray HImageSource::QueryImageSources( const HString& PluginName, const HTuple& GenParamName, const HTuple& GenParamValue )

static HImageSourceArray HImageSource::QueryImageSources( const char* PluginName, const HTuple& GenParamName, const HTuple& GenParamValue )

static HImageSourceArray HImageSource::QueryImageSources( const wchar_t* PluginName, const HTuple& GenParamName, const HTuple& GenParamValue ) (Windows only)

static HImageSource[] HImageSource.QueryImageSources( string pluginName, HTuple genParamName, HTuple genParamValue )

説明🔗

プラグイン名および入力された汎用パラメータで指定されたクエリに従って、 query_image_sourcesQueryImageSources は対応するハンドルを ImageSourceHandlesimageSourceHandlesimage_source_handles に返します。 クエリで取得されたハンドルは未接続の状態です。

画像ソースのさまざまなモジュールに対応するハンドルを取得できます:

  • プラグイン

  • インターフェース

  • デバイス

  • ストリーム

これらのモジュールは階層的な親子構成になっており、各モジュールが次のモジュールの親として機能します。

画像ソースの概念に関する詳細は、Image Source を参照してください。 個々のMVTec画像ソースプラグインに関するドキュメントについては、 MVTec Interfaces Reference Documentationを参照してください。

特定のプラグインにクエリを絞るには、その名前を PluginNamepluginNameplugin_name に指定します。 すべての利用可能なプラグインを同時にクエリするには、'all'"all" を設定します。 特定のプラグインまたはインターフェースハンドルに関する情報を照会する際は、 PluginNamepluginNameplugin_nameを'ignore'"ignore"に設定してください。

値のリスト: 'all'"all", 'ignore'"ignore", '<plugin_name>'"<plugin_name>".

初期値: 'all'"all"

汎用パラメータ GenParamNamegenParamNamegen_param_name と GenParamValuegenParamValuegen_param_value は、クエリの対象範囲を指定するために使用されます。 サポートされている GenParamNamegenParamNamegen_param_name は以下のとおりです:

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

このオペレータはハンドルを返します。このハンドルタイプのインスタンスの状態は、特定のオペレータにおいては、入力パラメータとして使われている場合であっても変更されることがあります。

パラメーター🔗

PluginNamepluginNameplugin_name (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

画像ソースプラグインの名前

初期値: 'all'"all"
推奨値: 'all', 'ignore', 'mvtec_gigevision', 'mvtec_usb3vision', 'mvtec_realsense', 'mvtec_gstreamer', 'mvtec_mediafoundation', '<plugin_name>'"all", "ignore", "mvtec_gigevision", "mvtec_usb3vision", "mvtec_realsense", "mvtec_gstreamer", "mvtec_mediafoundation", "<plugin_name>"

GenParamNamegenParamNamegen_param_name (input_control) attribute.name-array → (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)

汎用パラメータ名

初期値: [][]
推奨値: 'query', 'image_source_handle', 'plugin_handle', 'interface_handle', 'device_handle'"query", "image_source_handle", "plugin_handle", "interface_handle", "device_handle"

GenParamValuegenParamValuegen_param_value (input_control) attribute.value-array → (string / handle)HTuple (HString / HHandle)HTuple (string / HHandle)Sequence[Union[str, HHandle]]Htuple (char* / handle)

汎用パラメータ値

初期値: [][]
推奨値: 'plugins', 'interfaces', 'devices', 'streams'"plugins", "interfaces", "devices", "streams"

ImageSourceHandlesimageSourceHandlesimage_source_handles (output_control) image_source-array → (handle)HTuple (HHandle)HImageSource, HTuple (IntPtr)Sequence[HHandle]Htuple (handle)

システム内のモジュールに対応する画像ソースハンドル

例🔗

(HDevelop)


* Query different modules.
query_image_sources ('all', 'query', 'plugins', Plugins)
query_image_sources ('all', 'query', 'interfaces', Interfaces)
query_image_sources ('all', 'query', 'devices', Devices)
* Connect to an available plugin and interface.
connect_image_source (Plugins[0], [], [])
connect_image_source (Interfaces[0], [], [])
* Restrict query to all device modules of one connected plugin.
query_image_sources ('ignore', 'plugin_handle', Plugins[0], PluginSubHandles)
* Restrict query to all sub-modules down to the interface level of one connected plugin.
query_image_sources ('ignore', ['query', 'plugin_handle'], ['interfaces', Plugins[0]], InterfaceHandlesPluginZero)

結果🔗

パラメータ値が正しければ、query_image_sourcesQueryImageSources は 2 (H_MSG_TRUE) を返します。さもなければ、例外処理が発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

後処理の候補

connect_image_sourceConnectImageSource, get_image_source_paramGetImageSourceParam, set_image_source_paramSetImageSourceParam

他の選択候補

create_image_sourceCreateImageSource

関連項目

create_image_sourceCreateImageSource

モジュール🔗

Foundation