1. Field of the Invention
The present invention relates to an information processing apparatus configured to sort information according to positioning information and output the information, also relates to a control method for the same, and a computer-readable storage medium.
2. Description of the Related Art
It has become a general practice to use a personal computer which obtains image files from a photographic apparatus, and the image files are sorted according to attribute information (shooting time, file name, for example) and displayed on a display device.
Further, the photographic apparatus receives position information (such as latitude, longitude, altitude) from a GPS satellite, and adds this position information as attribute information indicating a shooting location to each image file.
Consequently, there arises a demand that image files should be sorted according to attribute information indicating a shooting location and results should be displayed on the display device. However, there is a problem that if image files are sorted merely according to any one of the latitude, longitude, and altitude in position information, its result often deviates from a user's intent and the user finds it difficult to obtain a desired image file.
The present invention is directed to enabling the user to easily recognize information about image files and find out desired images by sorting image files by using attribute information indicating shooting locations according to the user's instruction, and displaying results on the display device.
Further features and aspects of the present invention will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the invention and, together with the description, serve to explain the principles of the invention.
Various exemplary embodiments, features, and aspects of the invention will be described in detail below with reference to the drawings.
The component parts described in the exemplary embodiments of the present invention are for the purpose of illustration only and are not intended to limit the scope of the present invention to those component parts.
A structure of a computer apparatus which realizes an information output apparatus according to a first exemplary embodiment of the present invention will be described with reference to a block diagram in
As illustrated in
A memory device 103 is a random access memory (RAM) or a read only memory (ROM), for example. An operating system (OS), program code, and content files recorded in the hard disk drive 102 are loaded in the memory device 103 and are executed by the arithmetic processing apparatus 101. A user's input operation on an operation unit 104 is detected by the arithmetic processing apparatus 101, and specified processing is performed according to the program code loaded in the memory device 103.
A display unit 105, which is formed by a CRT display, or a liquid crystal panel, displays images of an executed program and image files. An external storage medium drive 106 is used to read information stored in an external storage medium, such as a CD-ROM or a DVD-ROM. In the present exemplary embodiment, a program to be executed and a content file recorded in the hard disk drive 102 are read out. When they are recorded in an external storage medium, for example, they may be read via the external storage medium drive 106, and executed. Similarly, a program to be executed or a content file may be loaded into the memory device 103 via network, and executed. A system bus 107 communicably connects the units 101 to 106 with each other.
An operation of sorting image files according to its position information and a specified orientation will be described with reference to a flowchart in
The arithmetic processing apparatus 101 reads image files from the hard disk drive 102 (step S201), and extracts image files each associated with the position information as sorting objects (step S202). The image files are generated when pictures are taken of objects by photographic apparatuses, and the position information represents the latitude and the longitude of a shooting location. The position information may be written in an image file or written in another file different from the image file and associated with the image file.
The image files extracted in step S202 are sorted according to shooting time and date (step S203), and property information of image files are arranged according to sorting results, and displayed on the display unit 105 (step S204).
Detailed screens displayed in step S204 will be described with reference to
Besides the basis setting units 305, there is a position information setting unit 306, which uses position information as a sorting basis, can select eight orientations. The orientations, up, down, left, and right, of the position information setting unit 306 correspond respectively to the orientations, north, south, east, and west. Furthermore, the orientations, the upper right, upper left, lower left, and lower right correspond to the orientations, north-east, north-west, south-east, and south-west. The orientations are not limited to eight, but may be increased or decreased.
The arithmetic processing apparatus 101 detects whether position information has been set as a basis for sorting image files, in other words, whether the user operates the position information setting unit 306 to specify an orientation as the basis for sorting image files (step S205). In step S205, if it is detected that the user operated the position information setting unit 306 (YES in step S205), a specified orientation is obtained (step S206). According to this exemplary embodiment, in this case, it is presumed that the user specifies the upper right on the position information setting unit 306, and in step S206, obtains the “north-east”.
The arithmetic processing apparatus 101 obtains the latitude and longitude values of each image file from position information associated with image files as sorting objects, and calculates their average values (in step S251), and substitutes a total number of image files to be sorted for an initial value of a variable N (step S252). The arithmetic processing apparatus 101 calculates degrees of conformity of image files based on the latitude and longitude values of image files and the average values (latitude and longitude) obtained in step S251 (step S253). The arithmetic processing apparatus 101 subtracts 1 from the variable N (step S254), and determines whether the variable N is “0” (step S255). If the variable N is determined not to be “0” in step S255 (NO in step S255), the arithmetic processing apparatus 101 performs the operations from step S253 onward for a next image file. When the variable N is determined to be “0”, in other words, when the calculation of conformity of all image files, which are to be sorted, is completed, the image files are classified and sorted according to calculated degrees of conformity (step S256). The arithmetic processing apparatus 101 arranges property information of image files according to sorting results, and displays the property information in the file list area 303 on the detailed screen 301 (step S257).
The calculation processing in step S253 will be described in detail with reference to
In this exemplary embodiment, when the distance from a coordinate point to the reference line is smaller than a predetermined value, an image file corresponding to the coordinate point is treated as a first sorting object, and the image files are sorted by longitude in ascending order. When the distance from a coordinate point to the reference line is larger than a predetermined value, an image file corresponding to the coordinate point is treated as a second sorting object, and the image files are sorted by distance from the reference line in ascending order. In step S256, a sorting result of the second sorting object is added to a sorting result of the first sorting objet. More specifically, the image file corresponding to a coordinate point with a highest degree of conformity takes a first place in a row and the image file corresponding to a coordinate point 401 with a second highest degree of conformity takes a second place in the row. Thus, the two image files are sorted by a degree of conformity in ascending order. However, the image files may be sorted in descending order instead of ascending order. The image file as the first sorting object may be sorted by latitude instead of longitude. Further, only the image file of the first sorting object may be extracted as a display object, and the image files are sorted by them.
The detailed screen displayed in step S257 will be described with reference to
Further, instead of the detailed screen 301, a reduced image screen 501, illustrated in
A point 509 corresponding to the position information of an image file as a sorting object, and a point 510 corresponding to average values (latitude and longitude) of the position information of image files as sorting objects are displayed within the controller image. Location names of places on a map may be displayed. The coordinate point of an image file classified as a first sorting object in step S258 is highlighted by using a color different from the color of the coordinate points of other image files displayed on the orientation specifying controller.
According to the present exemplary embodiment, the user can view the sorted image files arranged along a desired orientation regardless of a shooting date and time, file name, file size, and model of the photographic apparatus. Therefore, by entering a shooting location, the user can easily recognize the image files existing in a specific orientation, and find out a desired image.
In a second exemplary embodiment, instead of an orientation, a route is specified as a basis for sorting. Descriptions similar to those in the first exemplary embodiment will not be repeated, but the structure particular to the second exemplary embodiment will be described in detail.
A reduced-size image screen in the second exemplary embodiment will be described with reference to
An operation of sorting the image files by position information and specified route in an information output apparatus will be described with reference to a flowchart in
The arithmetic processing apparatus 101 determines whether position information has been set as the basis for sorting, in other words, whether the user has operated the route specifying controller to specify a route (step S705). If it is detected that the user has operated the route specifying controller 605 (YES in step S705), the arithmetic processing apparatus 101 obtains information about the specified route (step S706). In the second exemplary embodiment, it is presumed that the user specifies a route illustrated in
In the second exemplary embodiment, the user can view sorted image files arranged along a desired route regardless of shooting date and time, file name, file size, and a model of the photographic apparatus, for example. Therefore, the user can easily recognize image files existing on a specific route and find out a desired image by entering a shooting location as a key word.
Cases where image files are used as sorting objects have been described in the first and second exemplary embodiments. However, the present invention can be applied to files of other contents each associated with position information.
The present invention can also be realized by performing processing as follows. Software (program) to execute the functions of the exemplary embodiments described above is supplied to a system or an apparatus via a network or by using various types of storage media, and a computer (or a CPU or a MPU) of the system or the apparatus reads and executes the program.
To execute the functions of the exemplary embodiments, in addition to executing program code read by the computer, it is also possible to cause an operating system (OS) running on the computer to execute a part of or all of an actual processing based on instructions of the program code and by this processing, the functions of the above-mentioned exemplary embodiments are realized. The functions of the exemplary embodiments can also be realized by a processing as follows. The program code read from a storage medium is written in the memory of a function extension board included in the computer or in a function extension unit connected to the computer. Then, in response to instructions of the program code, a part of or all of actual processing is performed by the CPU in the function extension board or the function extension unit. This case is also included in the scope of the present invention.
Aspects of the present invention can also be realized by a computer of a system or apparatus (or devices such as a CPU or MPU) that reads out and executes a program recorded on a memory device to perform the functions of the above-described embodiment (s), and by a method, the steps of which are performed by a computer of a system or apparatus by, for example, reading out and executing a program recorded on a memory device to perform the functions of the above-described embodiment(s). For this purpose, the program is provided to the computer for example via a network or from a recording medium of various types serving as the memory device (e.g., computer-readable medium).
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all modifications, equivalent structures, and functions.
This application claims priority from Japanese Patent Application No. 2009-263078 filed Nov. 18, 2009, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2009-263078 | Nov 2009 | JP | national |
2010-230647 | Oct 2010 | JP | national |