Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6128770B2 - Log generating apparatus, method and program - Google Patents
[go: Go Back, main page]

JP6128770B2 - Log generating apparatus, method and program - Google Patents

Log generating apparatus, method and program Download PDF

Info

Publication number
JP6128770B2
JP6128770B2 JP2012164350A JP2012164350A JP6128770B2 JP 6128770 B2 JP6128770 B2 JP 6128770B2 JP 2012164350 A JP2012164350 A JP 2012164350A JP 2012164350 A JP2012164350 A JP 2012164350A JP 6128770 B2 JP6128770 B2 JP 6128770B2
Authority
JP
Japan
Prior art keywords
time
date
log
log file
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2012164350A
Other languages
Japanese (ja)
Other versions
JP2014026017A (en
Inventor
健一郎 原
健一郎 原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2012164350A priority Critical patent/JP6128770B2/en
Publication of JP2014026017A publication Critical patent/JP2014026017A/en
Application granted granted Critical
Publication of JP6128770B2 publication Critical patent/JP6128770B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Instructional Devices (AREA)
  • Navigation (AREA)

Description

本発明は、GPS(全地球測位システム)等の測位手段による位置情報を時間の経過とともに記録するログ生成装置、方法及びプログラムに関する。   The present invention relates to a log generation device, a method, and a program for recording position information obtained by positioning means such as GPS (Global Positioning System) over time.

地上座標系での測位システムとしてGPS(Global Positioning System)システムが周知である。特に、GPSにより測定された位置情報を時間の経過と共に継続的に記録する装置、所謂GPSロガーが市販され、マラソンや自転車での移動コースの記録に活用されている(特許文献1参照)。また、撮影旅行において撮影場所の記録にも利用されている。   A GPS (Global Positioning System) system is well known as a positioning system in the ground coordinate system. In particular, a so-called GPS logger, which continuously records position information measured by GPS with the passage of time, is commercially available and is used for recording a moving course in a marathon or a bicycle (see Patent Document 1). In addition, it is also used for recording a shooting location in a shooting trip.

携帯電話にGPS機能が標準的に装備され、また、好みのアプリケーションソフトウエア(以下、「アプリ」と略す)をユーザがインストール/アンインストール可能なスマートフォンが普及している。このような状況で、スマートフォンのGPS機能を利用し、位置情報を経時的に記録するアプリ(以下、「位置記録アプリ」という。)も出現している。   Smartphones that are equipped with GPS functions as standard on mobile phones and that allow users to install / uninstall favorite application software (hereinafter abbreviated as “applications”) have become widespread. Under such circumstances, an application (hereinafter referred to as “position recording application”) that records position information with time by using the GPS function of a smartphone has also appeared.

測位に関して、GPS受信機に種々のジャイロを組み合わせることで、GPS衛星からの電波を受信できない環境でも測位を可能にするシステムも知られている。また、位置決定精度は落ちるものの、各地に設置される無線LANベースステーションの設置位置を事前にデータベースに登録しておき、その圏内で測位する方法や、携帯通信網の基地局からの距離により測位する方法も知られている。   Regarding positioning, a system that enables positioning even in an environment where radio waves from GPS satellites cannot be received by combining various gyros with a GPS receiver is also known. In addition, although the position determination accuracy is reduced, the installation position of the wireless LAN base station installed in each place is registered in the database in advance, and the positioning is performed within that area, or the distance from the base station of the mobile communication network The method of doing is also known.

特開2012−108001号公報JP2012-108001A

GPSロガーもスマートフォン上の位置記録アプリも、測定した3次元(緯度、経度及び高度)又は2次元(緯度及び経度)の位置情報と測位した時刻とを対にして、測位ログファイルとして記録するのが一般的である。他方、既存のデジタルカメラには、撮影時刻を画像データファイルに埋め込んでいるものが多い。画像データの撮影時刻と、測位ログファイルの測位時刻とを突き合わせることで、撮影位置を特定でき、画像ファイルに撮影位置情報として埋め込むことも可能になる。   Both GPS loggers and smartphone location recording applications record measured 3D (latitude, longitude and altitude) or 2D (latitude and longitude) location information and positioning time as a positioning log file. Is common. On the other hand, many existing digital cameras have the shooting time embedded in an image data file. By matching the shooting time of the image data with the positioning time of the positioning log file, the shooting position can be specified and can be embedded in the image file as shooting position information.

専用機としてのGPSロガーが生成する測位ログファイルに記録される時刻データはGPS衛星からの電波信号(GPS信号)から計算されたものであり、高精度である。他方、スマートフォン上の位置記録アプリは、GPSによる測位で得られる位置情報は正確であるものの、測位時の時刻としては、スマートフォンに装備されるRTC(リアルタイムクロック)の出力を参照するので、時刻精度が当該RTCの精度に依存する。   Time data recorded in a positioning log file generated by a GPS logger as a dedicated machine is calculated from a radio wave signal (GPS signal) from a GPS satellite, and has high accuracy. On the other hand, the location recording application on the smartphone refers to the output of the RTC (real-time clock) installed in the smartphone as the time of positioning, although the position information obtained by positioning by GPS is accurate. Depends on the accuracy of the RTC.

一般的に、携帯電話は内蔵するRTCの時刻を携帯通信網に問い合わせて補正する機能を具備しており、スマートフォンにも同様の機能が実装される。GPS信号から算出される時刻でRTCを補正しても良いが、そのためにはGPS受信回路に電源を投入して動作させる必要があり、これにより電力消費を無視できない。従って、GPS機能を具備する携帯電話もスマートフォンも、RTCの時刻補正には携帯通信網上のタイマを参照するのが普通である。   In general, a mobile phone has a function of inquiring and correcting the time of an RTC built in the mobile communication network, and a similar function is also implemented in a smartphone. The RTC may be corrected at the time calculated from the GPS signal. However, for this purpose, it is necessary to turn on the GPS receiving circuit to operate it, and thus power consumption cannot be ignored. Therefore, a mobile phone and a smartphone having a GPS function usually refer to a timer on the mobile communication network for RTC time correction.

このように別途時刻調整されるRTCの出力時刻を逐次的に記録する場合、記録途中でRTCの時刻が変更されると、時間的な連続性が破られ、いわば時刻記録が不連続な測位ログデータになってしまう。このような測位ログデータを利用すると、例えば、移動経路のグラフ化とか、撮影画像の時刻データの位置データへの変換を行う際に、不自然な位置ズレが生じてしまうため、取り扱いが難しい。   In this way, when the RTC output time, which is separately adjusted in time, is sequentially recorded, if the RTC time is changed during recording, temporal continuity is broken, so to speak, a positioning log in which time recording is discontinuous. It becomes data. When such positioning log data is used, for example, when graphing a movement path or converting time data of a captured image into position data, an unnatural position shift occurs, which is difficult to handle.

本発明は、このような不都合を解消し、RTCの時刻調整が介在しても取り扱いの簡単なログデータを生成することを目的とする。   An object of the present invention is to eliminate such inconveniences and to generate log data that is easy to handle even when RTC time adjustment is involved.

本発明に係るログ生成装置は、撮像装置と無線通信することが可能なログ生成装置であって、位置情報を取得する位置取得手段と、日時を計時する計時部から、前記位置取得手段により位置情報を取得した際の日時を示す日時情報を取得する日時取得手段と、複数の位置情報とそれぞれの位置情報を取得した際の日時を示す日時情報と対応づけられたログデータを含むログファイルを生成する生成手段と、前記計時部が計時する日時の調整を検出する検出手段と、画像を識別するための情報と、該画像に対応付けられている時刻情報とを前記撮像装置から受信する受信手段と、前記受信手段により受信された時刻情報と、前記ログファイルに含まれる日時情報とに基づき、前記画像を識別するための情報と前記ログファイルに含まれる位置情報とを対応付ける照合処理を実行する対応付け手段と、前記対応付け手段により実行される前記照合処理の結果を前記撮像装置に送信する送信手段とを有し、前記検出手段により日時の調整が検出された場合、前記生成手段は既存のログファイルとは別の新たなログファイルを生成し、前記対応付け手段は、前記既存のログファイルと前記新たなログファイルのうち、前記新たなログファイルを優先して前記照合処理に利用することを特徴とする。

A log generation device according to the present invention is a log generation device capable of wirelessly communicating with an imaging device, and includes a position acquisition unit that acquires position information, and a time measurement unit that measures time and date by the position acquisition unit. log file that contains the date and time acquisition section, a log data and the date and time information associated indicating the date and time when obtaining the positional information of the respective plurality of positional information to acquire date and time information indicating the date and time when the information was acquired a generating means for generating a receive detection means for detecting the adjustment of date and time the timing unit is timing, and information for identifying the image, and time information associated with the image from the imaging device a receiving means, and time information received by the receiving means, a position based on said date and time information included in the log file contains the information and the log files to identify the image And correlating means for executing a matching process associating the broadcast, the correspondence and a transmitting means for transmitting the result of the matching processing to the image pickup device executed by means detecting the adjustment of the time by the detecting means The generating unit generates a new log file different from the existing log file, and the associating unit selects the new log file from the existing log file and the new log file. It is preferentially used for the collation process .

本発明によれば、RTCの時刻調整が介在しても取り扱いの簡単なログデータを生成することができる。   According to the present invention, easy-to-handle log data can be generated even when RTC time adjustment is involved.

本発明の第1実施例の概略構成ブロック図である。It is a schematic block diagram of the first embodiment of the present invention. 第1実施例の位置記録アプリの動作フローチャートである。It is an operation | movement flowchart of the position recording application of 1st Example. 第1実施例で起動直後に生成されるログファイルの一例である。It is an example of the log file produced | generated immediately after starting in 1st Example. 第1実施例で時刻調整後に生成されるログファイルの一例である。It is an example of the log file produced | generated after time adjustment in 1st Example. デジタルカメラの概略構成ブロック図である。It is a schematic block diagram of a digital camera. 位置決定アプリによる撮影画像の撮影時刻を撮影位置に変更する動作のシーケンス図である。It is a sequence diagram of the operation | movement which changes the imaging | photography time of the picked-up image by the position determination application to a shooting position. 位置決定アプリによる撮影画像の撮影時刻を撮影位置に変更する動作の別のシーケンス図である。It is another sequence diagram of the operation | movement which changes the imaging | photography time of the picked-up image by a position determination application to a shooting position. 本発明の第2実施例の概略構成ブロック図である。It is a schematic block diagram of the second embodiment of the present invention. 第2実施例の位置記録アプリの動作フローチャートである。It is an operation | movement flowchart of the position recording application of 2nd Example. 第2実施例で起動直後に生成されるログファイルの一例である。It is an example of the log file produced | generated immediately after starting in 2nd Example. 第2実施例で時刻調整後に生成されるログファイルの一例である。It is an example of the log file produced | generated after time adjustment in 2nd Example. 時刻調整を含む単一ログファイルの例である。It is an example of a single log file including time adjustment.

以下、図面を参照して、本発明の実施例を詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図1は、本発明の一実施例の概略構成ブロック図を示す。本実施例は、スマートフォン上の位置記録アプリとして実装されている。   FIG. 1 shows a schematic block diagram of an embodiment of the present invention. This embodiment is implemented as a position recording application on a smartphone.

スマートフォン10は、コンピュータと同様にCPU12、ROM14、主記憶としてのRAM16、及び補助記憶としてのSSD(Solid State Drive)18を具備する。SSD18はインターフェース20を介してバス22に接続し、当該バス22にCPU12、ROM14及びRAM16も接続する。バス22は、データと制御信号をバス22に接続するデバイス間で転送する媒体として使用される。   The smartphone 10 includes a CPU 12, a ROM 14, a RAM 16 as a main memory, and an SSD (Solid State Drive) 18 as an auxiliary memory, like a computer. The SSD 18 is connected to the bus 22 via the interface 20, and the CPU 12, ROM 14 and RAM 16 are also connected to the bus 22. The bus 22 is used as a medium for transferring data and control signals between devices connected to the bus 22.

ROM14には、種々の固定データ及びファームウエア等が記録されている。SSD18には、CPU12が実行する基本ソフトウエアであるOS(オペレーティングシステム)50と、CPU12が実行する応用ソフトウエアであるアプリが記録されている。スマートフォン10のSSD18には、応用ソフトウエアとして位置記録アプリ60および位置決定アプリ62が記録されている。なお、位置記録アプリ60と位置決定アプリ62の両方の機能を備えた一つのアプリが記録されていてもよい。位置記録アプリ60は、スマートフォン10の所在の緯度経度を時系列で記録するログファイルを生成する位置情報記録プログラムである。位置決定アプリ62は、位置記録アプリ60で生成されるログファイルを参照し、作成日時付きのファイルの、作成時の位置情報を決定するアプリである。作成日時付きのファイルは例えば、デジタルカメラによる撮影時刻を埋め込む又は付加された画像ファイルであり、作成時の位置情報は撮影時の位置情報に相当する。   The ROM 14 stores various fixed data and firmware. The SSD 18 records an OS (operating system) 50 that is basic software executed by the CPU 12 and an application that is application software executed by the CPU 12. In the SSD 18 of the smartphone 10, a position recording application 60 and a position determination application 62 are recorded as application software. One application having the functions of both the position recording application 60 and the position determination application 62 may be recorded. The position recording application 60 is a position information recording program that generates a log file that records the latitude and longitude of the location of the smartphone 10 in time series. The position determination application 62 is an application that refers to a log file generated by the position recording application 60 and determines position information at the time of creation of a file with a creation date and time. The file with the creation date and time is, for example, an image file in which the shooting time by the digital camera is embedded or added, and the position information at the time of creation corresponds to the position information at the time of shooting.

バス22には例えば液晶ディスプレイ(LCD)からなる表示装置24と、表示装置24の画面上に接着されたタッチパネル26と、機械的スイッチ類からなる操作装置28が接続する。なお、表示装置24は、着脱可能であってもよい。操作装置28は、電源スイッチ、音量を変更するボリュームスイッチ、及び、画面スリープを指示するスリープボタン等を具備する。バス22に接続する音声入出力装置29は、音声入力のためのマイクと音声出力のためのスピーカからなり、主に通話に使われる。   For example, a display device 24 made of a liquid crystal display (LCD), a touch panel 26 bonded on the screen of the display device 24, and an operation device 28 made of mechanical switches are connected to the bus 22. The display device 24 may be detachable. The operation device 28 includes a power switch, a volume switch for changing the volume, a sleep button for instructing screen sleep, and the like. The voice input / output device 29 connected to the bus 22 includes a microphone for voice input and a speaker for voice output, and is mainly used for calls.

ユーザが操作装置28の電源スイッチをオンにすると、スマートフォン10が起動し、CPU12は、SSDからOS50を読み出してRAM16に展開し、OS50を逐次取り込んで実行する。また、OSと、OS上にインストールされるアプリケーションに従って、スマートフォン10の各部を制御する。以下の説明では、CPU12がアプリケーション(またはアプリケーションの機能、あるいはOSやOSのサービス等)に従って所定の処理を実行することを、「アプリケーション(またはアプリケーションの機能、あるいはOSやOSのサービス等)は所定の処理を行う」のように表現する。なお、CPU12が装置全体を制御する代わりに、複数のハードウェアが処理を分担することでスマートフォン10の各部を制御してもよい。   When the user turns on the power switch of the operation device 28, the smartphone 10 is activated, and the CPU 12 reads out the OS 50 from the SSD, expands it in the RAM 16, and sequentially loads and executes the OS 50. Moreover, each part of the smart phone 10 is controlled according to OS and the application installed on OS. In the following description, the CPU 12 executes a predetermined process according to an application (or an application function or an OS or OS service), and “an application (or an application function or an OS or OS service) is predetermined. It is expressed as “Perform processing”. In addition, instead of the CPU 12 controlling the entire apparatus, a plurality of hardware may control each part of the smartphone 10 by sharing the processing.

電話機能自体は、既存の携帯電話と同じである。バス22には、携帯通信網34との通信を制御するネットワーク制御ユニット(NCU)30が接続し、NCU30に携帯通信アンテナ32が接続する。CPU12(OS50)は、表示装置24にテンキーを表示し、ユーザはタッチパネル26を使って相手電話番号を入力し、発呼をOS50に指示する。OS50は、この発呼指示に従い、バス22に介してNCU30を制御して相手端末に発呼させる。NCU30が出力する発呼信号は、携帯通信アンテナ32及び携帯通信網34を介して相手端末に到達する。相手端末の着呼操作により、スマートフォン10と相手端末との間での通話接続が確立し、通話が可能になる。   The telephone function itself is the same as an existing mobile phone. A network control unit (NCU) 30 that controls communication with the mobile communication network 34 is connected to the bus 22, and a mobile communication antenna 32 is connected to the NCU 30. The CPU 12 (OS 50) displays a numeric keypad on the display device 24, and the user inputs the other party telephone number using the touch panel 26 and instructs the OS 50 to make a call. In accordance with this call instruction, the OS 50 controls the NCU 30 via the bus 22 to call the partner terminal. The call signal output from the NCU 30 reaches the partner terminal via the portable communication antenna 32 and the portable communication network 34. A call connection between the smartphone 10 and the partner terminal is established by the incoming call operation of the partner terminal, and a call becomes possible.

相手端末の接続状態において、相手端末からの音声は、NCU30から音声入出力装置29に転送されて音響出力される。また、スマートフォン10のユーザの音声は、音声入出力装置29により入力され、NCU30、携帯通信アンテナ32及び携帯通信網34を介して相手端末に伝送される。   In the connection state of the counterpart terminal, the voice from the counterpart terminal is transferred from the NCU 30 to the voice input / output device 29 and is acoustically output. The voice of the user of the smartphone 10 is input by the voice input / output device 29 and transmitted to the partner terminal via the NCU 30, the mobile communication antenna 32, and the mobile communication network 34.

バス22には他に、GPS受信装置36、無線LAN通信装置42及び現在の日時を計時するRTC(Real Time Clock)48が接続する。GPS受信装置36はその起動をCPU12により制御されている。GPS受信装置36は、起動時にはCPU12からの指示に従いGPSアンテナ38によりGPS衛星40からの電波信号を受信し、測位を実行し、緯度・経度(及び標高)の位置データを出力する。無線LAN通信装置42は、無線LANアンテナ44を介して無線LANアクセスポイントと所定のプロトコルで無線通信し、無線LANアクセスポイントはインターネット等に接続する。   In addition, a GPS receiver 36, a wireless LAN communication device 42, and an RTC (Real Time Clock) 48 that measures the current date and time are connected to the bus 22. The activation of the GPS receiver 36 is controlled by the CPU 12. The GPS receiving device 36 receives a radio signal from the GPS satellite 40 by the GPS antenna 38 according to an instruction from the CPU 12 at the time of activation, performs positioning, and outputs position data of latitude and longitude (and altitude). The wireless LAN communication device 42 communicates wirelessly with a wireless LAN access point via a wireless LAN antenna 44 using a predetermined protocol, and the wireless LAN access point is connected to the Internet or the like.

RTC48は、図示しないクロックを計数することで、現在の日時を計時する。RTC48が協定世界時UTC(Universal Time, Coordinated)で時刻を計時する。必要に応じてCPU12が、RTC48のUTC出力をスマートフォン10の所在地のタイムゾーンに従いローカルタイムに変換する。日時情報サービス54は、日時情報をUTC、ローカルタイム、及びその両方の何れで日時情報を管理することができる。日時情報サービス54の時刻調整機能54aは、RTC48の出力を、携帯通信網34上のタイマの値に基づき調整する。例えば、携帯通信網34上のタイマがローカルタイムで、RTC48がUTCである場合、日時情報サービス54の時刻調整機能54aは、予め設定される又はGPSで判明するタイムゾーンに従い、ローカルタイムをUTCに変換し、RTC48の出力を変換したUTCを示すように調整する。   The RTC 48 measures the current date and time by counting clocks (not shown). The RTC 48 measures time in Coordinated Universal Time UTC (Universal Time, Coordinated). If necessary, the CPU 12 converts the UTC output of the RTC 48 into local time according to the time zone of the location of the smartphone 10. The date / time information service 54 can manage date / time information in UTC, local time, or both. The time adjustment function 54 a of the date information service 54 adjusts the output of the RTC 48 based on the timer value on the mobile communication network 34. For example, when the timer on the mobile communication network 34 is local time and the RTC 48 is UTC, the time adjustment function 54a of the date / time information service 54 sets the local time to UTC according to a preset time zone or determined by GPS. Convert and adjust the output of the RTC 48 to indicate the converted UTC.

RTC48は無線LANで接続するインターネット上のNTPサーバと同期することで時刻調整されてもよいし、GPSによる測位で得られる日時情報で時刻調整されてもよい。   The RTC 48 may adjust the time by synchronizing with an NTP server on the Internet connected by a wireless LAN, or may adjust the time by date and time information obtained by positioning by GPS.

通信装置49は、スマートフォン10を外部装置(以下に説明する例ではデジタルカメラ)との間で相互にデータを送受信する。通信装置49は、例えばUSB規格に準拠する通信により外部装置とデータのやり取りを行う。   The communication device 49 transmits / receives data to / from the smartphone 10 with an external device (a digital camera in the example described below). The communication device 49 exchanges data with an external device by communication conforming to the USB standard, for example.

データ通信機能として、スマートフォン10は、携帯通信網34を介してインターネット等にアクセスできるだけでなく、無線接続する無線LANアクセスポイントを介してもインターネットにアクセスできる。すなわち、CPU12上で動作するアプリのうち、インターネットアクセスを必要とするアプリ(例えば、ブラウザアプリ及びメールアプリ等)は、携帯通信網34又は無線LANアクセスポイントを介してインターネットに接続できる。   As a data communication function, the smartphone 10 can access the Internet not only via the mobile communication network 34 but also via a wireless LAN access point connected wirelessly. That is, of the apps that run on the CPU 12, apps that require Internet access (for example, browser apps and mail apps) can connect to the Internet via the mobile communication network 34 or a wireless LAN access point.

OS50は、スマートフォン10に装備されるデバイスを制御する上述した一般的な機能を具備するだけでなく、アプリに対して種々のサービスを提供する。本実施例に特徴的な機能として、OS50は、位置情報サービス52と日時情報サービス54を具備する。   The OS 50 not only has the above-described general function for controlling a device installed in the smartphone 10, but also provides various services to the application. As functions characteristic of this embodiment, the OS 50 includes a location information service 52 and a date / time information service 54.

位置情報サービス52は、位置記録アプリ60等の位置情報を必要とするアプリからの問合せに応じてスマートフォン10の位置情報を提供する。換言すると、位置情報サービス52は、位置記録アプリ60にとって測位手段として機能する。本実施例では、位置情報サービス52は、位置情報要求に対して、スマートフォン10の位置情報を要求元に単純に返信する単一応答モードと、指定された距離の移動ごとに位置情報を要求元に返信する距離毎応答モードとを具備する。   The position information service 52 provides the position information of the smartphone 10 in response to an inquiry from an application that requires position information, such as the position recording application 60. In other words, the location information service 52 functions as a positioning unit for the location recording application 60. In the present embodiment, the location information service 52 responds to a location information request with a single response mode in which the location information of the smartphone 10 is simply returned to the request source, and the location information is requested for each movement of the specified distance. And a response mode for each distance for replying to.

昨今では、無線LANアクセスポイントのMACアドレスをその設置位置と対応付けて記憶し、位置情報を外部に提供する無線LAN位置サービスが存在する。また、携帯通信網34の基地局からの距離によるスマートフォン10の位置探索技術も知られている。位置情報サービス52は、GPSを利用可能な場合にはGPSによる測位を使用し、GPSを利用できない場合には、無線LANアクセスポイント46による測位を使用し、いずれも使用できない場合には、携帯基地局からの測位を使用する。   Recently, there is a wireless LAN location service that stores a MAC address of a wireless LAN access point in association with its installation location and provides location information to the outside. Further, a technique for searching for the position of the smartphone 10 based on the distance from the base station of the mobile communication network 34 is also known. The location information service 52 uses positioning by GPS when GPS is available, and uses positioning by the wireless LAN access point 46 when GPS cannot be used. Use positioning from the station.

位置情報サービス52の位置決定機能52aは、GPS受信装置36から位置情報を読み出す、または無線LANアクセスポイント46の出力する無線信号のMACアドレスを上述の無線LAN位置サービスに問い合わせてそれらの無線LANアクセスポイントの位置情報を取得する、あるいは携帯通信網34の基地局からの距離を使って、スマートフォン10の位置を決定する。位置情報サービス52の移動距離演算機能52bは、位置決定機能52aで得られる位置情報を参照して移動距離を算出する手段であり、距離毎応答モードで動作する。   The position determination function 52a of the position information service 52 reads out the position information from the GPS receiver 36 or inquires of the above-mentioned wireless LAN position service for the MAC address of the wireless signal output from the wireless LAN access point 46, and accesses those wireless LANs. The position information of the point is acquired, or the position of the smartphone 10 is determined using the distance from the base station of the mobile communication network 34. The movement distance calculation function 52b of the position information service 52 is means for calculating a movement distance by referring to the position information obtained by the position determination function 52a, and operates in a distance-by-distance response mode.

日時情報サービス54の日時調整機能54aは、計時手段としてのRTC48の示す日時を携帯通信網34上の基準タイマと比較し、一定以上の時間差(例えば、1分)を検知すると、RTC48を当該基準タイマに同期させる。これにより、RTC48は、その精度に応じて1日に1乃至数回の頻度で時刻調整される。この日時調整機能54aによるRTC48の計時する日時の調整は、位置情報サービス52とは独立かつ並行して実行される。日時情報サービス54の日時出力機能54bは、位置記録アプリ60等のアプリの問合せに応じて、現在の日時情報をRTC48の出力から取り込み、要求元のアプリに提供する。   The date and time adjustment function 54a of the date and time information service 54 compares the date and time indicated by the RTC 48 as a time measuring means with a reference timer on the mobile communication network 34, and detects a time difference (for example, 1 minute) above a certain level, Synchronize with a timer. As a result, the RTC 48 is time-adjusted once or several times a day according to the accuracy. The adjustment of the date and time counted by the RTC 48 by the date and time adjustment function 54a is performed independently and in parallel with the location information service 52. The date / time output function 54b of the date / time information service 54 captures the current date / time information from the output of the RTC 48 in response to an inquiry from an application such as the position recording application 60, and provides it to the requesting application.

図2を参照して、位置記録アプリ60によるログ生成動作を詳細に説明する。図2は位置記録アプリ60に従って動作するCPU12によるログファイル生成のフローチャートを示す。このフローチャートの各処理は、CPU12が位置記録アプリ60およびOS50の機能に従って動作することにより実現される。また、このフローチャートは位置記録アプリ60が起動することにより開始される。図2に示すフローでは位置情報サービス52の距離毎応答モードを利用する。位置記録アプリ60は特徴的な機能としてログ生成機能60a及びログ記録機能60bを具備する。ログ生成機能60aは、ログファイルをオープン/クローズする機能である。ログ記録機能60bは、ログファイルに位置情報と日時情報を対で記録する機能である。   With reference to FIG. 2, the log generation operation by the position recording application 60 will be described in detail. FIG. 2 shows a flowchart of log file generation by the CPU 12 operating in accordance with the position recording application 60. Each process of this flowchart is realized by the CPU 12 operating according to the functions of the position recording application 60 and the OS 50. This flowchart is started when the position recording application 60 is activated. In the flow shown in FIG. 2, the response mode for each distance of the location information service 52 is used. The position recording application 60 includes a log generation function 60a and a log recording function 60b as characteristic functions. The log generation function 60a is a function for opening / closing a log file. The log recording function 60b is a function for recording a pair of position information and date / time information in a log file.

位置記録アプリ60は起動すると、位置情報サービスに設定する移動距離D、時刻調整の有無を判定する閾値Δt及びその他の内部変数を初期化する(S1)。   When the location recording application 60 is activated, the location recording application 60 initializes a movement distance D set in the location information service, a threshold value Δt for determining whether or not to adjust time, and other internal variables (S1).

次に、ログ生成機能60aが、ログファイルを記録媒体上、即ちSSD18上に新規オープンする(S2)。   Next, the log generation function 60a newly opens a log file on the recording medium, that is, on the SSD 18 (S2).

位置記録アプリ60は、移動距離D(ここでは水平の移動距離)を指定した距離毎応答モードの位置情報要求をOS50の位置情報サービス52に供給する(S3)。この要求に従い、位置情報サービス52の位置決定機能52aはGPS受信装置36を起動し、GPS受信装置36から出力される位置情報の逐次的な取り込みを開始する。この逐次的な取り込みを開始した後、位置情報サービス52は、最初に取りこんだ位置情報を位置記録アプリ60に送信する。その後は、移動距離演算機能52bが、位置決定機能52aにより決定された位置情報と、前回位置記録アプリ60に送信した位置情報とを用いて移動距離を計算し、指定された移動距離Dの移動ごとに、その時点の位置情報(緯度(x),経度(y))を位置記録アプリ60に送信又は供給する。なお、本実施例では、二点間の距離を算出することで移動距離を求める場合を例に挙げて説明するが、移動距離の計算はこれに限られるものではない。例えば、位置情報が取り込まれる度に前回取りこまれた位置情報との差から移動距離を計算し、前回計算した結果に加算していくようにしてもよい。   The position recording application 60 supplies a position information request in the response mode for each distance specifying the movement distance D (here, horizontal movement distance) to the position information service 52 of the OS 50 (S3). In accordance with this request, the position determination function 52a of the position information service 52 activates the GPS receiver 36 and starts to sequentially acquire the position information output from the GPS receiver 36. After starting this sequential capture, the location information service 52 transmits the location information that was first captured to the location recording application 60. Thereafter, the movement distance calculation function 52b calculates the movement distance using the position information determined by the position determination function 52a and the position information transmitted to the previous position recording application 60, and the movement of the specified movement distance D is performed. Each time, position information (latitude (x), longitude (y)) at that time is transmitted or supplied to the position recording application 60. In this embodiment, the case where the movement distance is obtained by calculating the distance between two points will be described as an example. However, the calculation of the movement distance is not limited to this. For example, each time position information is captured, the movement distance may be calculated from the difference from the previously acquired position information, and added to the previously calculated result.

先に説明したように、位置情報サービス52の位置決定機能52aは、GPS測位を利用できないときには無線LANによる測位を試行し、無線LANによる測位も利用できないときには携帯通信網34の基地局による測位を試行する。位置情報サービス52の位置決定機能52aは、GPS受信装置36からの情報、無線通信LAN通信装置42からの情報、NCU30からの情報を組み合わせて位置情報を決定してもよい。   As described above, the position determination function 52a of the location information service 52 tries the positioning by the wireless LAN when the GPS positioning cannot be used, and performs the positioning by the base station of the mobile communication network 34 when the positioning by the wireless LAN cannot be used. Try. The position determination function 52a of the position information service 52 may determine position information by combining information from the GPS receiver 36, information from the wireless communication LAN communication apparatus 42, and information from the NCU 30.

位置記録アプリ60は、OS50の位置情報サービス52から位置情報を受信するのを待機する(S4)。位置情報サービス52から位置情報を受信すると、受信した緯度及び経度を変数(Px,Py)に代入する(S5)。続いて、位置記録アプリ60は、OS50の日時情報サービス54に現在の日時を問い合わせる(S6)。OS50の日時情報サービス54の日時出力機能54bは、RTC48の出力値である現在日時を読み込み、要求元である位置記録アプリ60に供給する。これにより、位置記録アプリ60は現在日時情報を受信する。   The location recording application 60 waits to receive location information from the location information service 52 of the OS 50 (S4). When the position information is received from the position information service 52, the received latitude and longitude are substituted into variables (Px, Py) (S5). Subsequently, the location recording application 60 inquires the date and time information service 54 of the OS 50 about the current date and time (S6). The date / time output function 54b of the date / time information service 54 of the OS 50 reads the current date / time, which is the output value of the RTC 48, and supplies it to the location recording application 60 that is the request source. Thereby, the position recording application 60 receives the current date and time information.

次に、位置記録アプリ60は、ログファイルに既に位置情報が書き込まれているか否かを判定する(S7)。換言すれば、ログファイルにこれから書き込む位置情報が、ログファイルに書きこまれる最初の位置情報となるか否かを判定する。   Next, the position recording application 60 determines whether or not position information has already been written in the log file (S7). In other words, it is determined whether or not the position information to be written to the log file is the first position information to be written to the log file.

まず、位置記録アプリ60がログファイルに既に位置情報が書き込まれていないと判定した場合について述べる。この場合、位置記録アプリ60は日時情報サービス54から受信した現在日時情報を変数Tpに代入する(S8)。次いで、位置記録アプリ60のログ記録機能60bが、ステップS5の位置情報(Px,Py)とステップS8の日時情報Tpを対にしてログファイルに記録する(S9)。その後、処理はステップS16に進む。ステップS16以降の説明は後述する。   First, a case where the position recording application 60 determines that position information has not been written in the log file will be described. In this case, the position recording application 60 substitutes the current date and time information received from the date and time information service 54 for the variable Tp (S8). Next, the log recording function 60b of the position recording application 60 records the position information (Px, Py) in step S5 and the date / time information Tp in step S8 in pairs in the log file (S9). Thereafter, the process proceeds to step S16. The description after step S16 will be described later.

一方、位置記録アプリ60がログファイルに既に位置情報が書き込まれていると判定した場合について述べる。この場合、位置記録アプリ60は、日時情報サービス54から受信した現在日時情報を変数Tcに代入する(S10)。   On the other hand, a case where the position recording application 60 determines that position information has already been written in the log file will be described. In this case, the location recording application 60 substitutes the current date and time information received from the date and time information service 54 for the variable Tc (S10).

位置記録アプリ60は、誤差Δtの下で今回取得の日時Tcと前回取得の日時Tpとを比較し、時間的に隣接する2つの測位時刻間に時間的な矛盾が想定できるかどうかで時刻調整の有無を判定する(S11)。具体的には、Tp+ΔtがTcより小さいかどうかを調べる。例えば、設定した移動距離Dに対して、測位の時間間隔が5分程度になると想定される場合に、Δtを3分と設定する。このとき、TcがTpから3分未満の経過を示す場合に、位置記録アプリ60はRTC48の時刻調整が行われたと判定する。Δtに0を設定している場合、Tc<TpであるとRTC48の時刻調整が実行されたことになる。このステップは、時刻調整検出手段として、また、時刻調整検出ステップとして作用する。   The position recording application 60 compares the current acquisition date and time Tc with the previous acquisition date and time Tp under an error Δt, and adjusts the time according to whether or not a temporal contradiction can be assumed between two temporally adjacent positioning times. Whether or not there is is determined (S11). Specifically, it is examined whether Tp + Δt is smaller than Tc. For example, when it is assumed that the positioning time interval is about 5 minutes with respect to the set movement distance D, Δt is set to 3 minutes. At this time, if Tc indicates that less than 3 minutes have elapsed from Tp, the position recording application 60 determines that the time adjustment of the RTC 48 has been performed. When 0 is set in Δt, the time adjustment of the RTC 48 is executed when Tc <Tp. This step acts as a time adjustment detection means and a time adjustment detection step.

位置記録アプリ60が時刻調整があったと判定した場合、処理はステップS10に進む。具体的にはTp+ΔtがTcより小さい場合(S11でN)、位置記録アプリ60のログ生成機能60aは、オープンしているログファイルをクローズする(S12)。ログ生成機能60aは続いて、ステップS8で取得した日時をファイル名に組み入れた新規ログファイルをオープンする(S13)。そして、ログ記録機能60bが、ステップS6の位置情報(Px,Py)とステップS8の日時情報Tcを対にしてログファイルに追記する(S14)。   If the position recording application 60 determines that the time has been adjusted, the process proceeds to step S10. Specifically, when Tp + Δt is smaller than Tc (N in S11), the log generation function 60a of the position recording application 60 closes the open log file (S12). Subsequently, the log generation function 60a opens a new log file in which the date and time acquired in step S8 is incorporated in the file name (S13). Then, the log recording function 60b adds the position information (Px, Py) at step S6 and the date / time information Tc at step S8 to the log file (S14).

位置記録アプリ60が時刻調整がなかったと判定した場合、処理はステップS12に進む。具体的にはTp+ΔtがTc以上である場合(S11でY)、ログ記録機能60bが、ステップS5の位置情報(Px,Py)とステップS8の日時情報Tcを対にしてログファイルに追記する(S14)。   If the position recording application 60 determines that the time has not been adjusted, the process proceeds to step S12. Specifically, when Tp + Δt is equal to or greater than Tc (Y in S11), the log recording function 60b adds the position information (Px, Py) in step S5 and the date / time information Tc in step S8 as a pair to the log file ( S14).

ステップS14の後、位置記録アプリ60は、日時Tcを直前日時の変数Tpに代入し(S15)、ユーザによる終了操作の有無を確認する(S16)。位置記録アプリ60が終了操作を受け付けていないと判断した場合(S16でN)、処理は、ステップS5に戻る。位置記録アプリ60が終了操作を受け付けたと判断した場合(S16でY)、位置記録アプリ60は、ログ生成機能60aによりオープン中のログファイルをクローズさせて(S17)、終了する。   After step S14, the position recording application 60 substitutes the date and time Tc into the immediately preceding date and time variable Tp (S15), and confirms whether or not the user has performed an end operation (S16). When it is determined that the position recording application 60 has not accepted the end operation (N in S16), the process returns to step S5. When it is determined that the position recording application 60 has received the end operation (Y in S16), the position recording application 60 closes the open log file by the log generation function 60a (S17) and ends.

図3は、図2に示すフローチャートにより最初に生成されるログファイルの例を示す。図4は、図3に示すログファイルに続いて、ステップS10で別ファイルとして生成されるログファイル例を示す。図3に示すログファイル及び図4に示すログファイルにおいて、ファイル名はログファイルの生成順に付される連番と、ログファイルに最初に記録された位置情報に対応する日時情報から生成されている。   FIG. 3 shows an example of the log file generated first by the flowchart shown in FIG. FIG. 4 shows an example of a log file generated as a separate file in step S10 following the log file shown in FIG. In the log file shown in FIG. 3 and the log file shown in FIG. 4, the file name is generated from the serial number given in the log file generation order and the date / time information corresponding to the position information recorded first in the log file. .

図3に示すログファイルの最後のレコードの地点から所定距離Dだけ移動した地点での記録が、図4に示すログファイルに最初の地点として記録される。すなわち、図3及び図4に示す例では、地点(35.680999,139.766018)から地点(35.680999,139.766021)に移動するまでの間にRTC48の時刻調整が行われたことになる。図3に示すログファイルの最後のエントリ又はレコードの日時に対して、図4に示すログファイルの先頭のエントリ又はレコードの日時が相対的に過去であり、これがRTC48の時刻調整の発生を示している。   A record at a point moved by a predetermined distance D from the point of the last record in the log file shown in FIG. 3 is recorded as the first point in the log file shown in FIG. That is, in the example shown in FIG. 3 and FIG. 4, the time adjustment of the RTC 48 was performed before moving from the point (35.680999, 139.766018) to the point (35.680999, 139.766021). Become. The date and time of the first entry or record of the log file shown in FIG. 4 is relatively past with respect to the date and time of the last entry or record of the log file shown in FIG. 3, and this indicates the occurrence of time adjustment of the RTC 48. Yes.

このように、本実施例では、RTC48の有意な時刻調整が行われる都度、新たなログファイルが生成される。これにより、ログデータの記録中にRTC48の時刻調整が行われたとしても、一つのログファイル内での時間の連続性が保たれる。   As described above, in this embodiment, a new log file is generated each time a significant time adjustment of the RTC 48 is performed. Thereby, even if the time of the RTC 48 is adjusted during the recording of the log data, the continuity of time within one log file is maintained.

本実施例では位置情報として緯度と経度を記録するとしたが、標高値を加えても良いことは明らかである。この場合、移動距離Dに対しては、高度差を加味した距離とする。   In the present embodiment, latitude and longitude are recorded as position information, but it is obvious that an altitude value may be added. In this case, the moving distance D is a distance that takes into account the altitude difference.

このように位置記録アプリ60により生成されたログファイルを使って、デジタルカメラによる撮影時刻付きの撮影画像に位置情報を付加することができる。   Using the log file generated by the position recording application 60 in this manner, position information can be added to a photographed image with a photographing time by a digital camera.

図5は、撮影時刻付きの撮影画像に位置情報を付加して記録するデジタルカメラの概略構成ブロック図を示す。撮像装置510の制御装置524は、レリーズボタンを含む操作装置528の操作及び設定に従い各部を制御し、特に、レリーズボタンの操作に従い、撮像部514の撮像条件(露出及びシャッタ速度)を決定し、記録処理を始動する。   FIG. 5 is a block diagram showing a schematic configuration of a digital camera that records position information added to a shot image with a shooting time. The control device 524 of the imaging device 510 controls each unit according to the operation and setting of the operation device 528 including the release button, and particularly determines the imaging conditions (exposure and shutter speed) of the imaging unit 514 according to the operation of the release button. Start the recording process.

撮像部514は、撮影レンズ512による被写体の光学像を電気画像信号に変換する。カメラ信号処理装置516は、撮像部514からの画像信号に色バランス調整及びガンマ変換等の周知のカメラ信号処理を施す。符号化装置518は、制御装置524からの記録指示に従い、カメラ信号処理装置516から出力される画像信号を公知の符号化方式、例えば、JPEG方式で圧縮符号化し、圧縮画像データを書込み読み出し装置520に供給する。   The imaging unit 514 converts an optical image of a subject by the photographing lens 512 into an electric image signal. The camera signal processing device 516 performs known camera signal processing such as color balance adjustment and gamma conversion on the image signal from the imaging unit 514. In accordance with a recording instruction from the control device 524, the encoding device 518 compresses and encodes an image signal output from the camera signal processing device 516 using a known encoding method, for example, the JPEG method, and writes and reads the compressed image data. To supply.

制御装置524は、RTC526を参照して撮像時の時刻、すなわち撮影時刻を決定し、撮像条件と共に書込み読出し装置520に供給する。書込み読出し装置520は、符号化装置518からの圧縮画像データに制御装置524からの情報を撮影パラメータとして多重し、記録媒体522に記録する。撮影パラメータは例えば、圧縮画像データを収容する画像ファイルのヘッダに格納されるが、勿論、画像ファイルと1対1に対応する別のファイル又は場所に記録されることもある。記録媒体522は、例えば、フラッシュメモリ又はハードディスク等の不揮発性記録媒体からなる。   The control device 524 refers to the RTC 526 to determine the time of imaging, that is, the imaging time, and supplies it to the writing / reading device 520 together with the imaging conditions. The writing / reading device 520 multiplexes the information from the control device 524 as the imaging parameter with the compressed image data from the encoding device 518, and records it on the recording medium 522. The shooting parameters are stored in, for example, the header of an image file that contains compressed image data, but may of course be recorded in another file or location that has a one-to-one correspondence with the image file. The recording medium 522 is composed of a nonvolatile recording medium such as a flash memory or a hard disk.

制御装置524は、以下に説明するように、通信装置530を介して外部装置、ここではスマートフォン10と協働して記録媒体522に記録される画像ファイルに撮影場所の位置座標(撮影位置座標)を埋め込む又は対応付けることができる。   As will be described below, the control device 524 cooperates with the external device, here the smartphone 10, via the communication device 530, and in the image file recorded on the recording medium 522, the position coordinates of the shooting location (shooting position coordinates). Can be embedded or associated.

図6は、スマートフォン10の位置決定アプリ62がデジタルカメラ510と協働して、デジタルカメラ510の記録媒体522に記録される撮影画像に撮影位置座標を埋め込む動作のシーケンス例を示す。   FIG. 6 shows a sequence example of an operation in which the position determination application 62 of the smartphone 10 embeds shooting position coordinates in a shot image recorded on the recording medium 522 of the digital camera 510 in cooperation with the digital camera 510.

位置決定アプリ62(スマートフォン10)は、カメラ510に対しRTC526が示す日時情報を要求する(S601)。カメラ510の制御装置524は、この要求に応じて、現在の日時情報をRTC526の出力から読み取り、位置決定アプリ62に送信する(S611)。   The position determination application 62 (smart phone 10) requests the camera 510 for date and time information indicated by the RTC 526 (S601). In response to this request, the control device 524 of the camera 510 reads the current date and time information from the output of the RTC 526 and transmits it to the position determination application 62 (S611).

位置決定アプリ62は、カメラ510から受信したカメラ510の日時情報と、RTC48の出力する日時情報とを比較し、両者の時差を計算する(S602)。この時差を取得することで、カメラ510の撮影画像の撮影時刻と、位置記録アプリ60で記録されるログファイルの測位時刻とを精度良く照合することが可能になる。位置決定アプリ62は、計算した時差で位置記録アプリ60のログ収集期間(開始時刻と終了時刻)を補正し、補正したログ収集期間をカメラ510に送信する(S603)。これにより、ログ収集期間中に撮影された画像のID(例えば、シリアル番号)と撮影時刻を要求する。このように要求する情報をログ収集期間により指定することで、余計な通信を行うことを防ぐことができる。この後、位置決定アプリ62は、カメラ510からの応答を待機する。   The position determination application 62 compares the date / time information of the camera 510 received from the camera 510 with the date / time information output from the RTC 48, and calculates the time difference between the two (S602). By acquiring this time difference, it is possible to accurately collate the photographing time of the photographed image of the camera 510 with the positioning time of the log file recorded by the position recording application 60. The position determination application 62 corrects the log collection period (start time and end time) of the position recording application 60 with the calculated time difference, and transmits the corrected log collection period to the camera 510 (S603). As a result, the ID (for example, serial number) of the image taken during the log collection period and the shooting time are requested. By specifying the requested information by the log collection period in this way, it is possible to prevent unnecessary communication. Thereafter, the position determination application 62 waits for a response from the camera 510.

カメラ510の制御装置524は、位置決定アプリ62からの時差で補正されたログ収集期間に従い、このログ収集期間内に入る撮影画像を抽出する(S612)。ログ収集期間内に入っているかどうかは、記録媒体522に記録済みの撮影画像に付加されている撮影時刻を読み出し、その撮影時刻がログ収集期間内に入っているかどうかで確認できる。   The control device 524 of the camera 510 extracts a captured image that falls within the log collection period according to the log collection period corrected by the time difference from the position determination application 62 (S612). Whether or not it is within the log collection period can be confirmed by reading the photographing time added to the photographed image recorded in the recording medium 522 and checking whether or not the photographing time is within the log collection period.

カメラ510の制御装置524は、抽出した撮影画像から一つを選択し(S613)、選択した撮影画像のID(例えば、シリアル番号)と撮影時刻を、通信装置530を介してスマートフォン10に送信する(S614)。カメラ510は、同じIDに対する位置情報の受信を待機する。   The control device 524 of the camera 510 selects one of the extracted captured images (S613), and transmits the ID (for example, serial number) and the capturing time of the selected captured image to the smartphone 10 via the communication device 530. (S614). The camera 510 waits for reception of position information for the same ID.

位置決定アプリ62は、カメラ510から送信された撮影時刻をステップS602で計算した時差で補正し(S604)、補正後の撮影時刻と位置記録アプリ60が生成したログファイルに含まれる日時情報とを照合する(S605)。なお、複数のログファイルが記録されている場合、より新しく生成されたログファイルとの照合を優先する。例えば、図3と図4のログファイルが記録されている場合は、先に図4のログファイルと照合する。このようにするのは以下の理由による。例えば図4のログファイルが生成される場合のように、時刻の調整によって新たにログファイルが生成される場合がある。この新たに生成されたログファイルに記録される日時情報は、調整後の日時情報であるため、例えば図3のログファイルの日時情報に比べて、図4のログファイルの日時情報のほうが正確であると考えられる。そのため、より正確な日時情報を用いて生成されるログファイルを優先するという意図で、新たに生成されたログファイルを優先して照合する。位置決定アプリ62は、この照合の結果、時刻が対応する位置情報を撮影位置として決定し、撮影時刻と一緒に受信したIDと対にしてカメラ510に送信する。位置決定アプリ62は、カメラ510から終了通知を受信するか(S606)、次の画像のIDと撮影時刻を受信するのを待機する。   The position determination application 62 corrects the shooting time transmitted from the camera 510 by the time difference calculated in step S602 (S604), and calculates the corrected shooting time and date / time information included in the log file generated by the position recording application 60. Collation is performed (S605). If a plurality of log files are recorded, priority is given to collation with a newly generated log file. For example, when the log files of FIGS. 3 and 4 are recorded, the log file of FIG. 4 is collated first. This is done for the following reason. For example, as in the case where the log file of FIG. 4 is generated, a new log file may be generated by adjusting the time. Since the date and time information recorded in the newly generated log file is the date and time information after adjustment, for example, the date and time information of the log file in FIG. 4 is more accurate than the date and time information of the log file in FIG. It is believed that there is. Therefore, the newly generated log file is preferentially collated with the intention of giving priority to the log file generated using more accurate date and time information. As a result of this collation, the position determination application 62 determines position information corresponding to the time as a shooting position, and transmits it to the camera 510 as a pair with the received ID together with the shooting time. The position determination application 62 receives an end notification from the camera 510 (S606), or waits to receive the ID and shooting time of the next image.

カメラ510の制御装置524は、位置決定アプリ62から位置情報とIDを受信すると、受信した位置情報を、受信したIDが示す撮影画像に付加する(S615)。受信したIDが先にステップS614で位置決定アプリ62に送信したIDと一致しない場合、どこかでエラーが生じていることになる。このとき、制御装置524は、その旨を図示しない表示装置に表示して図6に示す処理を中断する。   Upon receiving the position information and the ID from the position determination application 62, the control device 524 of the camera 510 adds the received position information to the captured image indicated by the received ID (S615). If the received ID does not match the ID previously transmitted to the position determination application 62 in step S614, an error has occurred somewhere. At this time, the control device 524 displays the fact on a display device (not shown) and interrupts the processing shown in FIG.

カメラ510の制御装置524は、抽出した撮影画像の中で未だ撮影位置を付加していない撮影画像があるかどうかを調べる(S616)。未処理の撮影画像がある場合(S616)、次の未処理の撮影画像を選択し(S617)、ステップS614、S615を繰り返す。抽出した撮影画像の全てを処理した場合(S166)、制御装置524は、位置決定アプリ62に終了通知を送信して(S618)、終了する。   The control device 524 of the camera 510 checks whether or not there is a photographic image that has not yet been added with the photographic position in the extracted photographic image (S616). If there is an unprocessed captured image (S616), the next unprocessed captured image is selected (S617), and steps S614 and S615 are repeated. When all the extracted captured images have been processed (S166), the control device 524 transmits an end notification to the position determination application 62 (S618), and ends.

位置決定アプリ62は、カメラ510から終了通知を受信するまで、次の画像のIDと撮影時刻の受信を待機する。カメラ510から終了通知を受信すると、位置決定アプリ62は、終了する。   The position determination application 62 waits for reception of the next image ID and shooting time until receiving an end notification from the camera 510. When the end notification is received from the camera 510, the position determination application 62 ends.

図6に示すシーケンスでは、カメラ510の制御装置524とスマートフォン10の位置決定アプリ62が相互に作用している。例えば、最近のデジタルカメラの記録媒体は、カメラに装着した状態でUSBマスストレージとして外部装置にマウントできるようになっていることが多い。そこで、スマートフォン10がカメラ510の記録媒体522をUSBのマスストレージとしてマウントする場合には、図6に示すシーケンスをスマートフォン10上のアプリのみで実行できることになる。   In the sequence illustrated in FIG. 6, the control device 524 of the camera 510 and the position determination application 62 of the smartphone 10 interact with each other. For example, a recording medium of a recent digital camera can often be mounted on an external device as a USB mass storage while attached to the camera. Therefore, when the smartphone 10 mounts the recording medium 522 of the camera 510 as a USB mass storage, the sequence shown in FIG. 6 can be executed only by the application on the smartphone 10.

図7は、スマートフォン10の位置決定アプリ62が、デジタルカメラ510の記録媒体522に記録される撮影画像に撮影位置座標を埋め込む動作の別のシーケンス例を示す。   FIG. 7 shows another sequence example of the operation in which the position determination application 62 of the smartphone 10 embeds the shooting position coordinates in the shot image recorded on the recording medium 522 of the digital camera 510.

位置決定アプリ62(スマートフォン10)は、カメラ510に対しRTC526が示す日時情報を要求する(S701)。カメラ510(の制御装置524)は、この要求に応じて、現在の日時情報をRTC526の出力から読み取り、位置決定アプリ62に送信する(S711)。   The position determination application 62 (smart phone 10) requests the camera 510 for date and time information indicated by the RTC 526 (S701). In response to this request, the camera 510 (the control device 524) reads the current date / time information from the output of the RTC 526 and transmits it to the position determination application 62 (S711).

位置決定アプリ62は、カメラ510から受信したカメラ510の日時情報と、RTC48の出力する日時情報とを比較し、両者の時差を計算する(S702)。位置決定アプリ62は、計算した時差で位置記録アプリ60のログ収集期間(開始時刻と終了時刻)を補正し、補正したログ収集期間をカメラ510に送信する(S703)。この後、位置決定アプリ62は、カメラ510からの応答を待機する。   The position determination application 62 compares the date / time information of the camera 510 received from the camera 510 with the date / time information output from the RTC 48, and calculates the time difference between the two (S702). The position determination application 62 corrects the log collection period (start time and end time) of the position recording application 60 with the calculated time difference, and transmits the corrected log collection period to the camera 510 (S703). Thereafter, the position determination application 62 waits for a response from the camera 510.

カメラ510の制御装置524は、位置決定アプリ62からの時差で補正されたログ収集期間に従い、このログ収集期間内に入る撮影画像を抽出する(S712)。制御装置524は、抽出した各撮影画像の撮影時刻を読み出し、各撮影画像のIDと対にしたリストを生成して位置決定アプリに送信する(S713)。デジタルカメラ510は、位置決定アプリ62からの応答を待機する。   The control device 524 of the camera 510 extracts a captured image that falls within the log collection period according to the log collection period corrected by the time difference from the position determination application 62 (S712). The control device 524 reads the shooting time of each extracted captured image, generates a list paired with the ID of each captured image, and transmits it to the position determination application (S713). The digital camera 510 waits for a response from the position determination application 62.

位置決定アプリ62は、カメラ510からリストを受信すると、リストに記述される最初の撮影時刻を選択し(S704)、その撮影時刻を時差で補正する(S705)。位置決定アプリ62は、時差補正した撮影時刻を、位置記録アプリ60がログデータと照合する(S706)。位置決定アプリ62は、この照合の結果、時刻が対応する位置情報を撮影位置として決定し、撮影時刻と一緒に受信したIDと対にして記憶する。   When receiving the list from the camera 510, the position determination application 62 selects the first shooting time described in the list (S704), and corrects the shooting time with a time difference (S705). In the position determination application 62, the position recording application 60 collates the shooting time corrected for time difference with the log data (S706). As a result of this collation, the position determination application 62 determines the position information corresponding to the time as the shooting position, and stores it as a pair with the ID received together with the shooting time.

位置決定アプリ62は、リストに次の未処理の撮影時刻があるかどうかを調べ(S707)、ある場合には(S707)、次の撮影時刻を選択してステップS705,S706を繰り返す。未処理の撮影時刻がリストに存在しない場合(S707)、位置決定アプリ62は、ステップS706で決定したIDと撮影位置のリストをカメラ510に送信して(S709)、終了する。   The position determination application 62 checks whether there is a next unprocessed shooting time in the list (S707), and if there is (S707), selects the next shooting time and repeats steps S705 and S706. When the unprocessed shooting time does not exist in the list (S707), the position determination application 62 transmits the ID and shooting position list determined in step S706 to the camera 510 (S709), and ends.

デジタルカメラ510の制御装置524は、位置決定アプリ62から送信されたリストに従い、当該リストのIDで特定される撮影画像に、当該IDと対になる位置情報を撮影位置として付加する(S714)。リストの全IDを処理したら、制御装置524は、図7に示す処理を終了する。   In accordance with the list transmitted from the position determination application 62, the control device 524 of the digital camera 510 adds position information paired with the ID as a shooting position to the shot image specified by the ID of the list (S714). When all the IDs in the list have been processed, the control device 524 ends the processing shown in FIG.

以上のように、本実施例では、日時情報の調整が行われたと判断されたタイミングでログデータを分けることで、一つのログデータ内での日時の連続性を保つ。これにより、例えば、移動経路のグラフ化や、撮影画像の時刻データの位置データへの変換を行う際の不自然な位置ズレ等を防ぐことができる。   As described above, in this embodiment, the log data is divided at the timing when it is determined that the date / time information is adjusted, thereby maintaining the continuity of the date / time in one log data. Thereby, for example, it is possible to prevent a movement path from being graphed or an unnatural position shift or the like when converting time data of a captured image into position data.

図8は、本発明の第2実施例の概略構成ブロック図を示す。図1と同じ構成要素には同じ符号を付してある。具体的には、スマートフォン810は、OS850がOS50の機能とは異なり、この相違に応じて、位置記録アプリ860の機能が位置記録アプリ60とは異なる。   FIG. 8 shows a schematic block diagram of the second embodiment of the present invention. The same components as those in FIG. 1 are denoted by the same reference numerals. Specifically, in the smartphone 810, the OS 850 is different from the function of the OS 50, and the function of the position recording application 860 is different from that of the position recording application 60 according to this difference.

以下、変更部分及び本実施例に特徴的な部分を中心に説明する。OS850は、OS50と同様に、スマートフォン810に装備されるデバイスを制御する一般的な機能を具備するだけでなく、アプリに対して種々のサービスを提供する。   The following description will focus on the changed part and the characteristic part of the present embodiment. Similar to the OS 50, the OS 850 not only has a general function of controlling a device installed in the smartphone 810, but also provides various services to the application.

OS850の位置情報サービス852は、位置情報サービス52と同様の機能を具備する。位置決定機能852a、移動距離演算機能852bの機能は、それぞれ実施例1で説明した位置情報サービス52の位置決定機能52a、移動距離演算機能52bと同様である。   The location information service 852 of the OS 850 has the same function as the location information service 52. The functions of the position determination function 852a and the movement distance calculation function 852b are the same as the position determination function 52a and the movement distance calculation function 52b of the position information service 52 described in the first embodiment, respectively.

日時情報サービス854の日時調整機能854aは、RTC48の時刻調整が発生するとその旨の通知(RTC調整通知信号)を位置記録アプリ860に供給する。また、日時情報サービス854の日時出力機能854bは、日時出力機能54bと同様に、位置記録アプリ860からの問合せに応じて現在の日時情報をRTC48の出力から取り込み、位置記録アプリ860に提供する。   When the time adjustment of the RTC 48 occurs, the date adjustment function 854a of the date information service 854 supplies a notification to that effect (RTC adjustment notification signal) to the position recording application 860. In addition, the date / time output function 854b of the date / time information service 854 captures the current date / time information from the output of the RTC 48 in response to an inquiry from the position recording application 860 and provides it to the position recording application 860 in the same manner as the date / time output function 54b.

図9を参照して、位置記録アプリ860によるログ生成動作を詳細に説明する。図9は位置記録アプリ860によるログファイル生成のフローチャートを示す。図9に示すフローでは位置情報サービス852の距離毎応答モードを利用する。位置記録アプリ860は特徴的な機能としてログ生成機能860a、ログ記録機能860b及びRTC調整値記憶機能860cを具備する。ログ生成機能860aは、ログファイルをオープン/クローズする機能である。ログ記録機能860bは、ログファイルに位置情報と日時情報を対で記録する機能である。RTC調整値記憶機能860cは、RTC48の時刻調整値と時刻調整を行った日時を記憶する機能である。   With reference to FIG. 9, the log generation operation by the position recording application 860 will be described in detail. FIG. 9 shows a flowchart of log file generation by the position recording application 860. In the flow shown in FIG. 9, the response mode for each distance of the location information service 852 is used. The position recording application 860 includes a log generation function 860a, a log recording function 860b, and an RTC adjustment value storage function 860c as characteristic functions. The log generation function 860a is a function for opening / closing a log file. The log recording function 860b is a function for recording a pair of position information and date / time information in a log file. The RTC adjustment value storage function 860c is a function of storing the time adjustment value of the RTC 48 and the date and time when the time adjustment is performed.

位置記録アプリ860は起動すると、位置情報サービスに設定する距離D、その他の内部変数を初期化する(S901)。このとき、位置記録アプリ860は、OS850の日時情報サービス854に対し、RTC48の時刻調整が行われた場合にその調整値を通知するように要求する。この要求に応じて、日時情報サービス854の日時調整機能854aは、RTC48の時刻を調整したときに、調整後の日時と、その調整により変更した日時の量を示す日時調整値とを含む日時調整通知を位置記録アプリ860に通知する。   When the location recording application 860 is activated, it initializes the distance D set in the location information service and other internal variables (S901). At this time, the location recording application 860 requests the date and time information service 854 of the OS 850 to notify the adjustment value when the time adjustment of the RTC 48 is performed. In response to this request, the date / time adjustment function 854a of the date / time information service 854 adjusts the time of the RTC 48 and includes the date / time after adjustment and a date / time adjustment value indicating the amount of date / time changed by the adjustment. The position notification application 860 is notified of the notification.

次に、位置記録アプリ860のログ生成機能860aが、ログファイルをSSD18上に新規オープンする(S902)。   Next, the log generation function 860a of the position recording application 860 newly opens a log file on the SSD 18 (S902).

位置記録アプリ860は、移動距離D(ここでは水平の移動距離)を指定した距離毎応答モードの位置情報要求をOS850の位置情報サービス852に供給する(S903)。この要求に従い、位置情報サービス852の位置決定機能52aはGPS受信装置36を起動し、GPS受信装置36から出力される位置情報の逐次的な取り込みを開始する。ステップS903の処理とそれに応答する位置情報サービス852の処理は、図2のステップS3で行われる処理とそれに応答する位置情報サービス52の処理と同様である。   The position recording application 860 supplies the position information request in the response mode for each distance designating the movement distance D (here, the horizontal movement distance) to the position information service 852 of the OS 850 (S903). In accordance with this request, the position determination function 52a of the position information service 852 activates the GPS receiver 36 and starts to sequentially acquire position information output from the GPS receiver 36. The process of step S903 and the process of the location information service 852 responding thereto are the same as the process performed in step S3 of FIG. 2 and the process of the location information service 52 responding thereto.

位置記録アプリ860は、OS850の位置情報サービス852から位置情報を受信するのを待機する(S904)。位置情報サービス852から位置情報を受信すると、位置記録アプリ860は、受信した位置情報の2次元座標値を変数(Px,Py)に代入する(S905)。続いて、位置記録アプリ860は、日時情報サービス854に現在の日時を問い合わせる(S906)。日時情報サービス854の日時出力機能854bは、RTC48の出力値である現在日時を読み込み、要求元である位置記録アプリ860に供給する。これにより、位置記録アプリ860は現在日時情報を受信する。   The location recording application 860 waits to receive location information from the location information service 852 of the OS 850 (S904). When receiving the position information from the position information service 852, the position recording application 860 substitutes the two-dimensional coordinate value of the received position information into variables (Px, Py) (S905). Subsequently, the position recording application 860 inquires the date and time information service 854 about the current date and time (S906). The date and time output function 854b of the date and time information service 854 reads the current date and time that is the output value of the RTC 48 and supplies it to the location recording application 860 that is the request source. Thereby, the position recording application 860 receives the current date and time information.

位置記録アプリ860は、日時情報サービス854から取得した現在日時情報を変数Tcに代入する(S907)。   The position recording application 860 substitutes the current date and time information acquired from the date and time information service 854 for the variable Tc (S907).

次に、位置記録アプリ860は、ログファイルに既に位置情報が書き込まれているか否かを判定する(S908)。換言すれば、ログファイルにこれから書き込む位置情報が、ログファイルに書きこまれる最初の位置情報となるか否かを判定する。   Next, the location recording application 860 determines whether location information has already been written in the log file (S908). In other words, it is determined whether or not the position information to be written to the log file is the first position information to be written to the log file.

位置記録アプリ860がログファイルに既に位置情報が書き込まれていないと判定した場合、処理はステップS909を経ずに、ステップS913に進む。位置記録アプリ860のログ記録機能860bは、オープンしているログファイルにステップS905の位置情報(Px,Py)とステップS907の日時情報Tcを対にして追記する(S913)。   If the position recording application 860 determines that position information has not been written in the log file, the process proceeds to step S913 without passing through step S909. The log recording function 860b of the position recording application 860 appends the position information (Px, Py) in step S905 and the date / time information Tc in step S907 as a pair to the open log file (S913).

一方、位置記録アプリ860がログファイルに既に位置情報が書き込まれていると判定した場合、処理はステップS909に進む。   On the other hand, if the position recording application 860 determines that position information has already been written in the log file, the process proceeds to step S909.

位置記録アプリ860は、今回の日時取得と前回の日時取得の間に日時調整通知を日時情報サービス854から受け取っていたかどうかを確認する(S909)。RTC調整値記憶機能860cが、日時情報サービス854からの日時調整通知(日時調整後の日時と日時調整値を含む)を記憶している。   The position recording application 860 checks whether or not a date / time adjustment notification has been received from the date / time information service 854 between the current date acquisition and the previous date / time acquisition (S909). The RTC adjustment value storage function 860c stores the date / time adjustment notification (including the date / time after the date / time adjustment and the date / time adjustment value) from the date / time information service 854.

日時調整通知を受け取っていた場合(S909でY)、位置記録アプリ860は、起動時からの日時調整値を累積し、ログ記録機能860bがログファイルに累積した日時調整値を記録する(S910)。位置記録アプリ860のログ生成機能860aが、オープンしているログファイルをクローズし(S911)、続いて、ステップS907で取得した日時をファイル名に組み入れた新規ログファイルをオープンする(S912)。そして、位置記録アプリ860のログ記録機能860bは、オープンされたログファイルに、ステップS905の位置情報(Px,Py)とステップS907の日時情報Tcを対にして追記する(S913)。   When the date / time adjustment notification has been received (Y in S909), the position recording application 860 accumulates the date / time adjustment value from the time of activation, and records the date / time adjustment value accumulated in the log file by the log recording function 860b (S910). . The log generation function 860a of the position recording application 860 closes the opened log file (S911), and then opens a new log file in which the date and time acquired in step S907 is incorporated in the file name (S912). Then, the log recording function 860b of the position recording application 860 appends the position information (Px, Py) in step S905 and the date / time information Tc in step S907 to the opened log file as a pair (S913).

日時調整通知を受け取っていない場合(S909でN)、位置記録アプリ860のログ記録機能860bは、オープンしているログファイルにステップS905の位置情報(Px,Py)とステップS907の日時情報Tcを対にして追記する(S913)。   When the date / time adjustment notification has not been received (N in S909), the log recording function 860b of the position recording application 860 adds the position information (Px, Py) in step S905 and the date / time information Tc in step S907 to the open log file. Additional information is added as a pair (S913).

ステップS913の後、位置記録アプリ860は、ユーザによる終了操作の有無を確認する(S914)。終了操作が無い場合(S914でN)、位置記録アプリ860は、ステップS904に戻る。終了操作がなされている場合(S914でY)、位置記録アプリ860は、ログ生成機能860aによりオープンしているログファイルをクローズさせて(S915)、終了する。   After step S913, the position recording application 860 confirms the presence / absence of an end operation by the user (S914). If there is no end operation (N in S914), the position recording application 860 returns to Step S904. If the end operation has been performed (Y in S914), the position recording application 860 closes the log file opened by the log generation function 860a (S915), and ends.

図10は、図9に示すフローチャートにより最初に生成されるログファイルの例を示す。図11は、図10に示すログファイルに続いて、時刻調整により別ファイルとして生成されるログファイル例を示す。図10に示すログファイルは日時調整の発生によりクローズされるので、ステップS910により、日時調整値が最後に記録されている。図10に示す例では、RTC48が6分だけ後送りされている。この日時調整値は、ログファイルのヘッダ部に記録しても、ファイル名に埋め込む形で記録しても良い。なお、図10に示すログファイル及び図11に示すログファイルにおいて、ファイル名はログファイルの生成順に付される連番と、ログファイルに最初に記録された位置情報に対応する日時情報から生成されている。   FIG. 10 shows an example of a log file generated first by the flowchart shown in FIG. FIG. 11 shows an example of a log file generated as a separate file by time adjustment following the log file shown in FIG. Since the log file shown in FIG. 10 is closed when the date / time adjustment occurs, the date / time adjustment value is recorded last in step S910. In the example shown in FIG. 10, the RTC 48 is postponed by 6 minutes. This date and time adjustment value may be recorded in the header part of the log file or may be recorded in the form embedded in the file name. In the log file shown in FIG. 10 and the log file shown in FIG. 11, the file name is generated from the serial number given in the log file generation order and the date / time information corresponding to the position information first recorded in the log file. ing.

図10に示すログファイルの最後のレコードの地点から所定距離Dだけ移動した地点での記録が、図11に示すログファイルに最初の地点として記録される。すなわち、図10及び図11に示す例では、地点(35.680999,139.766018)から地点(35.680999,139.766021)に移動するまでの間にRTC48の日時調整が行われたことになる。   A record at a point moved by a predetermined distance D from the point of the last record in the log file shown in FIG. 10 is recorded as the first point in the log file shown in FIG. That is, in the example shown in FIG. 10 and FIG. 11, the date and time adjustment of the RTC 48 was performed before moving from the point (35.680999, 139.766018) to the point (35.680999, 139.766021). Become.

図10に示すログファイルのように、日時調整値が記録されるログファイルでは、各ログデータの日時は、日時調整値により修正された後で時刻比較に利用される。この日時調整値による修正後では、図10に示すログファイルと図11に示すログファイルは、同一時間時上に並ぶデータファイルとなりうる。   As in the log file shown in FIG. 10, in the log file in which the date / time adjustment value is recorded, the date / time of each log data is used for time comparison after being corrected by the date / time adjustment value. After the correction by the date and time adjustment value, the log file shown in FIG. 10 and the log file shown in FIG. 11 can be data files lined up at the same time.

例えば、図6及び図7に示すような時刻比較を行う場合、図10に示すログファイルの各時刻データは、同じログファイルに記録されている日時調整値で調整された上で、時差の調整と時刻の比較に供されることになる。   For example, when performing time comparison as shown in FIG. 6 and FIG. 7, each time data of the log file shown in FIG. 10 is adjusted with the date and time adjustment value recorded in the same log file, and the time difference is adjusted. And will be used for time comparison.

このように、本実施例では、RTC48の日時調整が行われる都度、新たなログファイルが生成され、ログファイルに日時調整値(複数の日時調整を経ている場合には累積値)を記録される。これにより、ログファイルの内容を参照したときに、日時調整を容易に修正して、計時的な移動軌跡や移動速度等を正確に描出できる。まだ、デジタルカメラで撮影しタイムスタンプが埋め込まれた画像に撮影位置情報を関連付ける場合でRTC48の日時調整がなされていても、より適切な位置情報を関連付けることが可能になる。   As described above, in this embodiment, a new log file is generated every time the date / time adjustment of the RTC 48 is performed, and the date / time adjustment value (a cumulative value when a plurality of date / time adjustments have been performed) is recorded in the log file. . As a result, when referring to the contents of the log file, the date and time adjustment can be easily corrected, and the timely movement trajectory and movement speed can be accurately depicted. Even when the shooting position information is associated with an image shot with a digital camera and the time stamp is embedded, more appropriate position information can be associated even when the date and time of the RTC 48 is adjusted.

なお、位置情報として緯度と経度を記録するとしたが、標高値を加えても良いことは明らかである。この場合、移動距離Dに対しては、高度差を加味した距離とする。   Although latitude and longitude are recorded as position information, it is obvious that an altitude value may be added. In this case, the moving distance D is a distance that takes into account the altitude difference.

図10及び図11に示すログファイル例では、RTCの日時調整が発生する直前の位置を先行するログファイルの最後のレコードとし、RTCの日時調整直後の位置を新規のログファイルの先頭レコードとしている。   In the log file examples shown in FIGS. 10 and 11, the position immediately before the RTC date and time adjustment occurs is the last record of the preceding log file, and the position immediately after the RTC date and time adjustment is the first record of the new log file. .

これに対し、RTC48の時刻調整が発生する直前の位置を新規ログファイルの先頭レコードとしてもよい。その際、先頭レコードとして記録される測位の日時は、時刻調整値で調整した値とする。   On the other hand, the position immediately before the time adjustment of the RTC 48 may be set as the first record of the new log file. In this case, the positioning date and time recorded as the first record is a value adjusted by the time adjustment value.

更には、RTC48の時刻調整が発生する直前の測位データをログファイルの最後のレコードとしつつ、新規ログファイルの先頭レコードとしても記録しても良い。すなわち、2つのログファイルに重複登録する。この際、新規ログファイルの先頭レコードとして記録される測位の日時は時刻調整値で調整した値とする。   Further, the positioning data immediately before the time adjustment of the RTC 48 may be recorded as the first record of the new log file while being the last record of the log file. That is, duplicate registration is performed in two log files. At this time, the positioning date and time recorded as the first record of the new log file is a value adjusted by the time adjustment value.

上記実施例では、時刻調整の前後でログファイルを別ファイルとした。これに対し、単一のログファイルにおいて各レコード又はエントリに時刻調整値のフィールドを設け、時刻調整以後のレコードに対して時刻調整値(累積値)を記録するようにしてよい。この場合、ログファイルの先頭に単独で記録する時刻調整値は、当然に不要になる。測位の日時にはRTC48から供給される日時を記録する。図12は、図10及び図11に示すログ例に対応する単一ログファイル例を示す。   In the above embodiment, the log file is a separate file before and after the time adjustment. In contrast, a time adjustment value field may be provided for each record or entry in a single log file, and the time adjustment value (cumulative value) may be recorded for records after the time adjustment. In this case, the time adjustment value recorded independently at the head of the log file is naturally unnecessary. The date and time supplied from the RTC 48 is recorded as the date and time of positioning. FIG. 12 shows a single log file example corresponding to the log examples shown in FIGS.

このようなログファイルにより、任意の時刻調整をその過去に遡っても、また、未来に向けても適用することが容易に実現できる。これは、絶対的な日時よりも相対的な時間差を重視する場合に有用である。また、時間基準を任意の時点に設定できることにもなり、多様な利用が可能になる。   By using such a log file, it is possible to easily realize any time adjustment from the past or the future. This is useful when a relative time difference is more important than an absolute date and time. In addition, the time reference can be set at an arbitrary time point, and various uses are possible.

変更例として、時刻調整があった場合、記録済みのログファイルのレコード又はエントリの日時情報を過去に遡って同様に調整しても良い。   As a modification example, when the time is adjusted, the date / time information of the record or entry of the recorded log file may be adjusted similarly in the past.

上述の実施例に加えて、時刻調整が行われた場合、その時刻調整よりも古いログファイルについて、ファイル名その他の要素に、時刻調整前の日時が記録されている旨を示すデータ又はフラグを付加してもよい。これにより、記録された日時に対する信頼性を確認しやすくなる。   In addition to the above-described embodiment, when time adjustment is performed, for a log file older than the time adjustment, data or flag indicating that the date and time before time adjustment is recorded in the file name and other elements It may be added. Thereby, it becomes easy to confirm the reliability with respect to the recorded date.

また、時刻調整で分離される複数のログファイルを一連で利用できると便利である。そのような用途には、ファイル名の前半には同じ名前を設定しつつ、後半部に一定規則の下でシリアル番号を付加するファイル命名規則を採用すれば良い。単純なシリアル番号の代わりに、日時情報の変化量を示すテキストを採用しても良い。何れの方法でも、複数のログファイルを1つのログファイルに容易に集約できるので、以後の利用が容易になる。   It is also convenient if a plurality of log files separated by time adjustment can be used in series. For such a use, a file naming rule may be adopted in which the same name is set in the first half of the file name and a serial number is added to the second half under a certain rule. Instead of a simple serial number, text indicating the amount of change in date / time information may be adopted. In any method, since a plurality of log files can be easily aggregated into one log file, subsequent use becomes easy.

上述した実施例は、本発明の実現手段としての一例であり、本発明が適用される装置の構成や各種条件によって適宜修正又は変更されうる。また、各実施例は適宜組み合わせ可能である。   The above-described embodiments are examples as means for realizing the present invention, and can be appropriately modified or changed depending on the configuration of the apparatus to which the present invention is applied and various conditions. Moreover, each Example can be combined suitably.

なお、上述の実施例は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウエア(プログラム)を、ネットワーク又は各種記録媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。   The above-described embodiment can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various recording media, and a computer (or CPU, MPU, etc.) of the system or apparatus reads the program. To be executed.

また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施例の機能が実現されるだけではない。例えば、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーションシステム)などが実際の処理の一部または全部を行い、その処理によって前述した実施例の機能が実現される場合も含まれることは言うまでもない。   The functions of the above-described embodiments are not only realized by executing the program code read by the computer. For example, an OS (operation system) running on a computer performs part or all of the actual processing based on an instruction of the program code, and the functions of the above-described embodiments may be realized by the processing. Needless to say, it is included.

さらに、以下のような処理によって前述した実施例の機能が実現される場合も含まれることは言うまでもない。まず、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書きこまれる。その後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行う。
Furthermore, it goes without saying that the case where the functions of the above-described embodiments are realized by the following processing is also included. First, the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, based on the instruction of the program code, the CPU provided in the function expansion board or function expansion unit performs part or all of the actual processing.

Claims (10)

撮像装置と無線通信することが可能なログ生成装置であって、
位置情報を取得する位置取得手段と、
日時を計時する計時部から、前記位置取得手段により位置情報を取得した際の日時を示す日時情報を取得する日時取得手段と、
複数の位置情報とそれぞれの位置情報を取得した際の日時を示す日時情報と対応づけられたログデータを含むログファイルを生成する生成手段と、
前記計時部が計時する日時の調整を検出する検出手段と、
画像を識別するための情報と、該画像に対応付けられている時刻情報とを前記撮像装置から受信する受信手段と、
前記受信手段により受信された時刻情報と、前記ログファイルに含まれる日時情報とに基づき、前記画像を識別するための情報と前記ログファイルに含まれる位置情報とを対応付ける照合処理を実行する対応付け手段と、
前記対応付け手段により実行される前記照合処理の結果を前記撮像装置に送信する送信手段
を有し、
前記検出手段により日時の調整が検出された場合、前記生成手段は既存のログファイルとは別の新たなログファイルを生成し、
前記対応付け手段は、前記既存のログファイルと前記新たなログファイルのうち、前記新たなログファイルを優先して前記照合処理に利用する
ことを特徴とするログ生成装置。
A log generation device capable of wireless communication with an imaging device,
Position acquisition means for acquiring position information;
Date and time acquisition means for acquiring date and time information indicating the date and time when the position information is acquired by the position acquisition means from the time measuring unit that measures the date and time;
Generating means for generating a log file containing the log data and the date and time information associated indicating the date and time when obtaining the positional information of each a plurality of position information,
Detection means for detecting adjustment of the date and time that the timekeeping unit measures,
Receiving means for receiving information for identifying an image and time information associated with the image from the imaging device;
Correspondence for executing collation processing for associating information for identifying the image and position information included in the log file based on time information received by the receiving unit and date / time information included in the log file Means,
Transmission means for transmitting the result of the collation processing executed by the association means to the imaging device
And
When the date and time adjustment is detected by the detecting means, the generating means generates a new log file different from the existing log file ,
The association unit preferentially uses the new log file among the existing log file and the new log file for the collation process .
前記検出手段により日時の調整が検出された後に取得される位置情報は前記生成手段により新たに生成された別のログファイルに記録されることを特徴とする請求項1に記載のログ生成装置。 2. The log generating apparatus according to claim 1, wherein the position information acquired after the date and time adjustment is detected by the detecting unit is recorded in another log file newly generated by the generating unit. 前記検出手段により日時の調整が検出される前に取得される位置情報と前記検出手段により日時の調整が検出された後に取得される位置情報とは、それぞれ別のログファイルに記録されることを特徴とする請求項1に記載のログ生成装置。 The position information acquired before the detection unit detects the date and time adjustment and the position information acquired after the detection unit detects the date and time adjustment are recorded in separate log files. The log generation device according to claim 1, wherein 前記検出手段は、前記日時取得手段により連続して取得される複数の日時情報の間の時間差に基づき前記日時の調整を検出することを特徴とする請求項1乃至のいずれか1項に記載のログ生成装置。 The said detection means detects the adjustment of the said date based on the time difference between the several date information acquired continuously by the said date acquisition means, The said date and time of any one of Claim 1 thru | or 3 characterized by the above-mentioned. Log generator. 前記日時取得手段により連続して取得される複数の日時情報のうち、後に取得された日時情報が先に取得された日時情報の示す日時よりも過去の日時を示す場合、前記検出手段は前記日時の調整が行われたことを検出する請求項1乃至のいずれか1項に記載のログ生成装置。 When the date and time information acquired later among the plurality of date and time information continuously acquired by the date and time acquisition unit indicates a date and time that is earlier than the date and time indicated by the date and time information acquired earlier, the detection unit log generating device according to any one of claims 1 to 4 for detecting that the adjustments were made. 前記日時取得手段により連続して取得される複数の日時情報のうち、後に取得された日時情報が先に取得された日時情報の示す日時よりも所定の時間以上後の日時を示す場合、前記検出手段は前記日時の調整が行われたことを検出する請求項1乃至のいずれか1項に記載のログ生成装置。 Of the plurality of date and time information continuously acquired by the date and time acquisition means, when the date and time information acquired later indicates a date and time that is a predetermined time or more after the date and time indicated by the date and time information acquired earlier It means log generating device according to any one of claims 1 to 5 to detect that the adjustment of the time is performed. 記検出手段により日時の調整が検出された場合、前記生成手段は、既存のログファイルをクローズし新たなログファイルをオープンすることで、新たなログファイルを生成することを特徴とする請求項1乃至のいずれか1項に記載のログ生成装置。 If the adjustment of the time is detected by the pre-Symbol detection means, said generating means, by opening the closed new log files existing log file, claims, characterized in that to generate a new log file The log generation device according to any one of 1 to 6 . 前記検出手段により日時の調整が検出された場合、前記生成手段は、前記日時が調整された量を示す値を既存のログファイルに記録して前記既存のログファイルをクローズすることを特徴とする請求項に記載のログ生成装置。 When the date and time adjustment is detected by the detection unit, the generation unit records a value indicating the amount of the date and time adjustment in an existing log file and closes the existing log file. The log generation device according to claim 7 . 撮像装置と無線通信することが可能なログ生成装置の制御方法であって、
位置情報を取得する位置取得工程と、
日時を計時する計時部から位置情報を取得した際の日時を示す日時情報を取得する日時取得工程と、
複数の位置情報とそれぞれの位置情報を取得した際の日時を示す日時情報と対応づけられたログデータを含むログファイルを生成する第1の生成工程と、
前記計時部が計時する日時の調整を検出する検出工程と、
画像を識別するための情報と、該画像に対応付けられている時刻情報とを前記撮像装置から受信する受信工程と、
前記受信工程で受信された時刻情報と、前記ログファイルに含まれる日時情報とに基づき、前記画像を識別するための情報と前記ログファイルに含まれる位置情報とを対応付ける照合処理を実行する対応付け工程と、
前記対応付け工程で実行される前記照合処理の結果を前記撮像装置に送信する送信工程と
前記検出工程で日時の調整が検出された場合、既存のログデータとは別の新たなログデータを生成する第2の生成工程
とを有することを特徴とするログ生成方法。
A method of controlling a log generation device capable of wireless communication with an imaging device,
A position acquisition step of acquiring position information;
A date and time acquisition step of acquiring date and time information indicating the date and time when the position information is acquired from the time measuring unit that measures the date and time;
A first generating step of generating a log file containing the log data and the date and time information associated indicating the date and time when obtaining the positional information of each a plurality of position information,
A detection step of detecting an adjustment of the date and time that the timekeeping unit counts;
A receiving step of receiving information for identifying an image and time information associated with the image from the imaging device;
Correspondence for executing collation processing for associating information for identifying the image and position information included in the log file based on the time information received in the reception step and the date / time information included in the log file Process,
A transmission step of transmitting the result of the collation processing executed in the association step to the imaging device ;
A log generation method comprising: a second generation step of generating new log data different from existing log data when date and time adjustment is detected in the detection step.
コンピュータを請求項1乃至のいずれか1項に記載のログ生成装置の各手段として機能させるための、コンピュータが読み取り可能なプログラム。 A computer-readable program for causing a computer to function as each unit of the log generation device according to any one of claims 1 to 8 .
JP2012164350A 2012-07-25 2012-07-25 Log generating apparatus, method and program Active JP6128770B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012164350A JP6128770B2 (en) 2012-07-25 2012-07-25 Log generating apparatus, method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012164350A JP6128770B2 (en) 2012-07-25 2012-07-25 Log generating apparatus, method and program

Publications (2)

Publication Number Publication Date
JP2014026017A JP2014026017A (en) 2014-02-06
JP6128770B2 true JP6128770B2 (en) 2017-05-17

Family

ID=50199729

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012164350A Active JP6128770B2 (en) 2012-07-25 2012-07-25 Log generating apparatus, method and program

Country Status (1)

Country Link
JP (1) JP6128770B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582532B (en) * 2018-10-25 2022-07-22 平安科技(深圳)有限公司 Electronic device, log switch control method, and computer-readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002335566A (en) * 2001-05-08 2002-11-22 Kyocera Corp Mobile communication terminal and its search system
JP2003046459A (en) * 2001-08-02 2003-02-14 K Laboratory Co Ltd Time bookmark system
JP2003315478A (en) * 2002-04-23 2003-11-06 Hidefumi Imoto Method for correcting time of built-in clock part of cellular phone having internet connection function
JP2004199410A (en) * 2002-12-18 2004-07-15 Fuji Xerox Co Ltd History recording device and its method
JP2004274514A (en) * 2003-03-10 2004-09-30 Ricoh Co Ltd Data recording / reproducing system, data recording / reproducing method, data recording / reproducing program, and recording medium
JP4687258B2 (en) * 2005-06-09 2011-05-25 セイコーエプソン株式会社 Log information management apparatus, log information management method and program thereof

Also Published As

Publication number Publication date
JP2014026017A (en) 2014-02-06

Similar Documents

Publication Publication Date Title
US9961214B2 (en) Image shooting apparatus for adding information to image
KR101720190B1 (en) Digital photographing apparatus and control method thereof
RU2665304C2 (en) Method and apparatus for setting photographing parameter
JP5952670B2 (en) Electronic device and control method thereof
JP5446794B2 (en) Imaging apparatus, data processing method, and program
KR20060101245A (en) Time shift image distribution system, time shift image distribution method, time shift image requesting device and image server
JP2013207721A (en) Image pickup device and its white balance correction method and white balance correction program
US8478308B2 (en) Positioning system for adding location information to the metadata of an image and positioning method thereof
CN107211088A (en) Camera apparatus, camera system, control method and program
CN103581554B (en) Communicator and the control method of this communicator
US10158696B2 (en) Image transmission method for transmitting image data between image transmission apparatus and a plurality of terminal devices
JP6128770B2 (en) Log generating apparatus, method and program
JP2011055294A (en) Imaging apparatus, imaging system and imaging method
WO2017079735A1 (en) Method and device for capturing synchronized video and sound across multiple mobile devices
JP2013187826A (en) Imaging device, imaging system, and imaging method
JP2010068247A (en) Device, method, program and system for outputting content
JP2012199811A (en) Information terminal device, transmission method, and program
JP2009111827A (en) Imaging device and image file providing system
JP2013207418A (en) Imaging system and imaging management server
JP5702328B2 (en) Image data transfer device, imaging device, image data transfer method, and computer program
JP6089988B2 (en) Imaging system, imaging apparatus, and program
JP2009003760A (en) Authentication system and authentication method
EP2490138A1 (en) Method and arrangement for transferring multimedia data
US20120246180A1 (en) Portable device
JP5995580B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150717

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160727

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160802

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160926

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170314

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170411

R151 Written notification of patent or utility model registration

Ref document number: 6128770

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: R3D03