get_image_timeget_image_timeGetImageTimeGetImageTimeget_image_time (算子)

名称

get_image_timeget_image_timeGetImageTimeGetImageTimeget_image_time — 请求创建图像的时间。

签名

get_image_time(Image : : : MSecond, Second, Minute, Hour, Day, YDay, Month, Year)

Herror get_image_time(const Hobject Image, Hlong* MSecond, Hlong* Second, Hlong* Minute, Hlong* Hour, Hlong* Day, Hlong* YDay, Hlong* Month, Hlong* Year)

Herror T_get_image_time(const Hobject Image, Htuple* MSecond, Htuple* Second, Htuple* Minute, Htuple* Hour, Htuple* Day, Htuple* YDay, Htuple* Month, Htuple* Year)

void GetImageTime(const HObject& Image, HTuple* MSecond, HTuple* Second, HTuple* Minute, HTuple* Hour, HTuple* Day, HTuple* YDay, HTuple* Month, HTuple* Year)

Hlong HImage::GetImageTime(Hlong* Second, Hlong* Minute, Hlong* Hour, Hlong* Day, Hlong* YDay, Hlong* Month, Hlong* Year) const

static void HOperatorSet.GetImageTime(HObject image, out HTuple MSecond, out HTuple second, out HTuple minute, out HTuple hour, out HTuple day, out HTuple YDay, out HTuple month, out HTuple year)

int HImage.GetImageTime(out int second, out int minute, out int hour, out int day, out int YDay, out int month, out int year)

def get_image_time(image: HObject) -> Tuple[int, int, int, int, int, int, int, int]

描述

算子 get_image_timeget_image_timeGetImageTimeGetImageTimeGetImageTimeget_image_time returns the time at which the image was created internally in HALCON. This time doesn't necessarily correlate with the time the image was acquired.

For some image acquisition interfaces, the time of the acquisition can be queried with get_framegrabber_paramget_framegrabber_paramGetFramegrabberParamGetFramegrabberParamGetFramegrabberParamget_framegrabber_param

执行信息

参数

ImageImageImageImageimageimage (输入对象)  (multichannel-)image objectHImageHObjectHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

输入图像。

MSecondMSecondMSecondMSecondMSecondmsecond (输出控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Milliseconds (0..999).

SecondSecondSecondSecondsecondsecond (输出控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Seconds (0..59).

MinuteMinuteMinuteMinuteminuteminute (输出控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Minutes (0..59).

HourHourHourHourhourhour (输出控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Hours (0..23).

DayDayDayDaydayday (输出控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Day of the month (1..31).

YDayYDayYDayYDayYDayyday (输出控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Day of the year (1..366).

MonthMonthMonthMonthmonthmonth (输出控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Month (1..12).

YearYearYearYearyearyear (输出控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Year (xxxx).

结果

算子 get_image_timeget_image_timeGetImageTimeGetImageTimeGetImageTimeget_image_time 返回值 2 ( H_MSG_TRUE) if exactly one image was passed.当输入为空(无可用输入图像)时可设置行为通过算子 set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>)。如有必要,则抛出异常。

可能的前趋

read_imageread_imageReadImageReadImageReadImageread_image, grab_imagegrab_imageGrabImageGrabImageGrabImagegrab_image

另见

count_secondscount_secondsCountSecondsCountSecondsCountSecondscount_seconds

模块

基础