close_framegrabberT_close_framegrabberCloseFramegrabberCloseFramegrabberclose_framegrabber (算子名称)
名称
close_framegrabberT_close_framegrabberCloseFramegrabberCloseFramegrabberclose_framegrabber — Close specified image acquisition device.
参数签名
Herror T_close_framegrabber(const Htuple AcqHandle)
def close_framegrabber(acq_handle: HHandle) -> None
描述
该算子 close_framegrabberclose_framegrabberCloseFramegrabberCloseFramegrabberCloseFramegrabberclose_framegrabber closes the image acquisition device
specified by AcqHandleAcqHandleAcqHandleAcqHandleacqHandleacq_handle. In particular, allocated memory for data
buffers is released and the image acquisition device is made available for
other processes.
注意
For a multithreaded application,
info_framegrabberinfo_framegrabberInfoFramegrabberInfoFramegrabberInfoFramegrabberinfo_framegrabber, open_framegrabberopen_framegrabberOpenFramegrabberOpenFramegrabberOpenFramegrabberopen_framegrabber, and
close_framegrabberclose_framegrabberCloseFramegrabberCloseFramegrabberCloseFramegrabberclose_framegrabber are executed exclusively. Thus,
they block the concurrent execution of each other, but run in
parallel with all non-exclusive operators outside of this group.
Make sure that close_framegrabberclose_framegrabberCloseFramegrabberCloseFramegrabberCloseFramegrabberclose_framegrabber is not called for a framegrabber
handle that is being used by another thread concurrently.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
This operator modifies the state of the following input parameter:
During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.
参数表
AcqHandleAcqHandleAcqHandleAcqHandleacqHandleacq_handle (input_control, state is modified) framegrabber → HFramegrabber, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the image acquisition device to be closed.
结果
If the specified image acquisition device could be closed,
close_framegrabberclose_framegrabberCloseFramegrabberCloseFramegrabberCloseFramegrabberclose_framegrabber 返回值 2 (
H_MSG_TRUE)
.
Otherwise an exception is raised.
可能的前置算子
grab_imagegrab_imageGrabImageGrabImageGrabImagegrab_image,
grab_image_asyncgrab_image_asyncGrabImageAsyncGrabImageAsyncGrabImageAsyncgrab_image_async
参考其它
open_framegrabberopen_framegrabberOpenFramegrabberOpenFramegrabberOpenFramegrabberopen_framegrabber
模块
Foundation