Skip to content

get_image_timeGetImageTimeGetImageTimeget_image_timeget_image_time🔗

説明🔗

get_image_timeGetImageTimeGetImageTimeget_image_timeget_image_time — 画像が生成された時刻を取得する。

書式🔗

get_image_time( image Image, out integer MSecond, out integer Second, out integer Minute, out integer Hour, out integer Day, out integer YDay, out integer Month, out integer Year )void GetImageTime( const HObject& Image, HTuple* MSecond, HTuple* Second, HTuple* Minute, HTuple* Hour, HTuple* Day, HTuple* YDay, HTuple* Month, HTuple* Year )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 )def get_image_time( image: HObject ) -> Tuple[int, int, int, int, int, int, int, int]

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 )

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

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

説明🔗

オペレーター get_image_timeGetImageTime は、その画像がHALCON内で生成された日時を 返します。 ただし画像が取り込まれた時間と一致する保証はありません。 画像が取り込まれた時間が必要な場合、HALCONインターフェースによっては get_framegrabber_paramGetFramegrabberParamで取得することが可能です。

実行情報🔗

実行情報
  • 演算デバイス上のオブジェクトをサポート。

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

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

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

パラメーター🔗

Imageimageimage (input_object) (multichannel-)image → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HImage (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)Hobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

入力画像

MSecondMSecondmsecond (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

ミリ秒 (0..999)

Secondsecondsecond (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

秒 (0..59)

Minuteminuteminute (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

分 (0..59)

Hourhourhour (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

時 (0..23)

Daydayday (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

月の日 (1..31)

YDayYDayyday (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

年の日 (1..366)

Monthmonthmonth (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

月 (1..12)

Yearyearyear (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

年 (xxxx)

結果🔗

正しく1つの画像が渡されると、オペレーター get_image_timeGetImageTime は、値 2 (H_MSG_TRUE) を返します。 入力が空だった場合(入力画像が得られない場合)の動作は、オペレー ター set_system('no_object_result',<Result>) で設定されま す。 必要に応じて、例外処理が発生します。

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

組み合わせ

前処理の候補

read_imageReadImage, grab_imageGrabImage

関連項目

count_secondsCountSeconds

モジュール🔗

Foundation