Travel diary generation method, device, equipment and storage medium
By obtaining the location information when the terminal device takes pictures, using computer vision and GIS technology to determine the scenic spot description information, and generating travel notes containing pictures, descriptions and distances, solving the problem of low efficiency in travel notes in the existing technology, and realizing automatic generation. Improved efficiency and reference.
Patent Information
- Application Number
- CN202111531884.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-15
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2041-12-15
AI Technical Summary
When generating travel notes, the existing travel notes requires users to manually enter the scenic spot description information, which leads to inefficiency, especially when there are many attractions, which is even more troublesome.
By obtaining the location information when the terminal device takes pictures, using computer vision technology and GIS technology to determine the scenic spot description information, and generating travel notes containing pictures, description information and scenic spot distances to avoid manual input by users.
It improves the efficiency of travel notes, and the generated travel notes are more reference-oriented. Users do not need to manually edit text information and adjust picture locations, saving time and enhancing the user experience.
Smart Images

Figure CN116320153B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a travel diary generation method, device, equipment and storage medium. Background Art
[0002] When traveling, people often take photos and input relevant text information for these photos to generate travel logs, i.e., travel notes. However, this method of generating travel notes is cumbersome and inefficient.
[0003] Based on the above problems, technicians have proposed a travel diary system technology. The travel diary system can generate travel diaries containing pictures and text information containing the location information based on photos and the location information attached to the photos.
[0004] Although the travel diary system can save the user's time in receiving the location information of the picture and improve the efficiency of travel diary generation to a certain extent, the user is still required to input other content, such as the description information of the scenic spot where the picture was taken, which affects the efficiency of travel diary generation.
[0005] Therefore, how to improve the efficiency of travel diary generation by the travel diary system has become a technical problem that needs to be solved urgently. Summary of the invention
[0006] The embodiments of the present application provide a travel note generation method, apparatus, device and storage medium, which are used to solve the problem of low travel note generation efficiency in the technical solution of generating travel notes through a travel note system in the prior art.
[0007] In a first aspect, an embodiment of the present application provides a travel note generating method, the method comprising: obtaining location information of a terminal device when the terminal device takes a target picture; determining, based on the location information, description information of a first scenic spot where the terminal device was located when the terminal device took the target picture; generating a travel note based on the target picture and the description information, the travel note comprising the target picture and the description information.
[0008] The technical solution provided by the embodiment of the present application may include the following beneficial effects: by obtaining the location information of the terminal device when the terminal device takes a target picture, the description information of the first scenic spot where the terminal device is located at this time can be directly determined according to the location information, thereby generating a travel note including the target picture and the description information. Since the user is prevented from entering the description information himself, the efficiency of obtaining the description information of the first scenic spot can be improved, thereby improving the efficiency of generating the travel note.
[0009] In a second aspect, an embodiment of the present application provides a travel diary generating device, which includes various functional modules for implementing the method of the first aspect, and any functional module can be implemented by software and / or hardware.
[0010] For example, the apparatus may include an acquisition module, a determination module, and a generation module.
[0011] The acquisition module is used to obtain the location information of the terminal device when the terminal device takes the target picture; the determination module is used to determine the description information of the first scenic spot where the terminal device is located when the terminal device takes the target picture according to the location information; the generation module is used to generate a travel note according to the target picture and the description information, and the travel note includes the target picture and the description information.
[0012] The technical solution provided by the embodiment of the present application may include the following beneficial effects: by obtaining the location information of the terminal device when the terminal device takes a target picture, the description information of the first scenic spot where the terminal device is located at this time can be directly determined according to the location information, thereby generating a travel note including the target picture and the description information. Since the user is prevented from entering the description information himself, the efficiency of obtaining the description information of the first scenic spot can be improved, thereby improving the efficiency of generating the travel note.
[0013] In a third aspect, an embodiment of the present application provides a terminal device, comprising: a processor, a memory, and an interactive interface; the memory is used to store executable instructions of the processor; wherein the processor is configured to execute the travel note generation method of the first aspect by executing the executable instructions.
[0014] The technical solution provided by the embodiment of the present application may include the following beneficial effects: by obtaining the location information of the terminal device when the terminal device takes a target picture, the description information of the first scenic spot where the terminal device is located at this time can be directly determined according to the location information, thereby generating a travel note including the target picture and the description information. Since the user is prevented from entering the description information himself, the efficiency of obtaining the description information of the first scenic spot can be improved, thereby improving the efficiency of generating the travel note.
[0015] In a fourth aspect, an embodiment of the present application provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the travel diary generating method of the first aspect is implemented.
[0016] The technical solution provided by the embodiment of the present application may include the following beneficial effects: by obtaining the location information of the terminal device when the terminal device takes a target picture, the description information of the first scenic spot where the terminal device is located at this time can be directly determined according to the location information, thereby generating a travel note including the target picture and the description information. Since the user is prevented from entering the description information himself, the efficiency of obtaining the description information of the first scenic spot can be improved, thereby improving the efficiency of generating the travel note.
[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the travel diary generation method of the first aspect.
[0018] The technical solution provided by the embodiment of the present application may include the following beneficial effects: by obtaining the location information of the terminal device when the terminal device takes a target picture, the description information of the first scenic spot where the terminal device is located at this time can be directly determined according to the location information, thereby generating a travel note including the target picture and the description information. Since the user is prevented from entering the description information himself, the efficiency of obtaining the description information of the first scenic spot can be improved, thereby improving the efficiency of generating the travel note. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] Figure 1 A schematic diagram of an application scenario of the travel diary generation method provided in an embodiment of the present application;
[0021] Figure 2 A flow chart of a travel diary generation method provided in an embodiment of the present application;
[0022] Figure 3 A schematic diagram of the structure of a camera device provided in an embodiment of the present application;
[0023] Figure 4 A schematic diagram of the structure of a travel diary generating device provided in an embodiment of the present application;
[0024] Figure 5 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments made by ordinary technicians in this field under the enlightenment of the embodiments belong to the scope of protection of the present application.
[0026] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] In the prior art provided in the background technology, when generating travel notes through the travel note system, there are at least the following technical problems:
[0028] (1) The travel note system can generate travel notes containing pictures and text information containing the location information based on the pictures and the location information attached to the pictures. However, although the travel note system can save the user's time in receiving the location information of the pictures and improve the efficiency of travel note generation to a certain extent, it still requires the user to input other content, such as requiring the user to input the description information of the scenic spot where the picture was taken, etc., which affects the efficiency of travel note generation and leads to the problem of low travel note generation efficiency.
[0029] (2) When users generate travel notes using pictures and text information, they usually edit the text information manually and adjust the positions of the pictures and text information manually. For example, they manually splice the pictures taken during the trip and manually input the corresponding text information description on the spliced pictures. When there are many scenic spots, it means that there will be more pictures used to generate travel notes, and the corresponding text information used to describe the pictures will also increase. Therefore, it is troublesome for users to handle it themselves, resulting in the problem of low travel note generation efficiency.
[0030] In view of the above problems, the present application proposes a travel note generation method, which obtains the location information of the terminal device when shooting the target picture, determines the description information of the first scenic spot at the location of the terminal device, and determines the shooting time of the target picture at the same time; then determines the second scenic spot in the visible area of the terminal device when the terminal device shoots the target picture, and determines the scenic spot distance between the first scenic spot and the second scenic spot, and finally generates a travel note including the target picture, description information and distance information for indicating the distance of the scenic spot. At this time, the travel note generation for the current first scenic spot is completed. If the user is at the next scenic spot (for example, the second scenic spot), the user can take pictures again, thereby automatically generating a travel note for the current scenic spot, until the user completes the tour, a complete travel note can be generated, and the pictures in the travel note are sorted according to the shooting time, and the corresponding description information and distance information are also generated at the location of the corresponding picture. Since the scheme avoids the user inputting the description information of the picture by himself, the generation efficiency of the travel note can be improved, and the travel note generated by the scheme is also more referenceable. The following first explains the terms involved in the present application.
[0031] Terminal device: A device that inputs programs and data into a computer via communication facilities or receives computer output processing results.
[0032] Azimuth: The horizontal angle from the north direction line of a certain point to the target direction line in a clockwise direction, expressed in degrees and mils. It is often used to determine the direction, indicate the target and maintain the direction of travel.
[0033] Inclination angle: also known as the tilt angle. In a plane rectangular coordinate system, when the straight line l intersects the X-axis, the X-axis is taken as the reference, and the minimum positive angle when the X-axis rotates counterclockwise (positive direction) around the intersection point until it coincides with the straight line l is recorded as α, then α is called the tilt angle of the straight line l. When l is parallel to or coincides with the X-axis, the tilt angle of the straight line l is defined as zero degrees.
[0034] The core idea of the travel note generation method provided by the present application is to obtain the position of the terminal device when taking the target picture, as well as the posture information of the terminal device at this time, so that the first scenic spot where the current terminal device is located and the description information of the first scenic spot can be automatically identified by spatial calculation, and the scenic spots around the first scenic spot and the distance between the first scenic spot and the surrounding scenic spots can be determined, thereby automatically generating a travel note including the target picture, the description information of the first scenic spot and the distance information. If the travel note includes multiple pictures, the multiple pictures can be sorted in the order of the shooting time of the multiple pictures, and the description information corresponding to each picture is also located at the corresponding position of the picture, and the distance information between each scenic spot is also marked in the travel note. Therefore, the travel note generated by this method can not only avoid the user manually entering the description information of the scenic spot, thereby improving the generation efficiency of the travel note, but also the generated travel note will be more valuable for reference, thereby overcoming the above-mentioned problems that are prone to occur during data processing.
[0035] In a possible implementation, the travel diary generation method of this embodiment can be applied in an application scenario. Figure 1 A schematic diagram of an application scenario of the travel diary generation method provided in an embodiment of the present application, such as Figure 1 As shown, in this scenario, when the terminal device starts to take pictures, the processor in the terminal device can obtain the location information of the current location of the terminal device and the posture information of the terminal device when taking pictures at the moment of taking pictures, so as to use computer vision technology and geographic information system (Geographic Information System or Geo-Information system, referred to as GIS) to perform spatial calculation on the obtained location information and posture information, automatically determine the first scenic spot where the terminal device is currently located, and the second scenic spot around the first scenic spot, and obtain the distance between the first scenic spot and the second scenic spot, which includes the straight-line distance and the navigation distance, so as to generate distance information. After obtaining the first scenic spot, the description information of the first scenic spot can be marked in the target picture taken by the terminal device, and finally a travel note including the target picture, description information and distance information can be generated, and the user can continue to take pictures of the subsequent scenic spots in the subsequent travel process, so as to add the pictures, description information and corresponding distance information of the subsequent scenic spots in the travel note, and finally after the user's travel ends, a detailed and complete travel note can be generated, so as to improve the generation efficiency of the travel note and ensure that the generated travel note will have more reference value.
[0036] Based on the above scenario, the travel diary generation method is described in detail below through several exemplary implementations.
[0037] Figure 2A flow chart of a travel diary generation method provided in an embodiment of the present application, such as Figure 2 As shown, the travel diary generation method includes the following steps:
[0038] S201: Acquire the location information of the terminal device when the terminal device takes a target picture.
[0039] In this step, the terminal device can be a mobile phone. When the user wants to take a target picture, he can first open the corresponding application (Application, referred to as: APP) on the terminal device, and then grant the APP permission, so that the APP can use the high-definition camera of the terminal device to take the target picture. The user can also take the target picture through the camera of the terminal device, and then store it in the album of the terminal device, and then open the APP to select the target picture in the album.
[0040] In the above scheme, while the terminal device is taking a picture of a target, the location information of the terminal device may be acquired through the Global Positioning System (GPS), and the location information may include the longitude, latitude and altitude of the current terminal device.
[0041] S202: Determine, according to the location information, description information of a first scenic spot where the terminal device is located when the terminal device captures the target image.
[0042] In this step, after obtaining the location information of the terminal device, computer vision technology and GIS technology can be used to perform spatial calculations on the location information of the terminal device, so as to determine the first scenic spot where the terminal device was located when taking the target image. After determining the first scenic spot, the corresponding description information of the first scenic spot can be obtained. The description information may include relevant text introduction of the first scenic spot, such as the location, geography, climate, humanities or related historical knowledge of the first scenic spot, and may also include relevant introductions to the surrounding scenic spots of the first scenic spot.
[0043] In the above solution, after the first scenic spot is determined, the name of the first scenic spot can be determined, so that the description information of the first scenic spot can be obtained from major related websites through the Internet.
[0044] For example, if the name of the first scenic spot in the target image is a famous scenic spot in a certain place, the historical knowledge of the famous scenic spot in a certain place can be obtained. The historical knowledge can include major events, etc., so that the history of the scenic spot can be presented, which can not only make tourists' memories of the scenic spot in a certain place more profound, but also supplement and expand the corresponding historical knowledge points for tourists. By establishing a mapping relationship between the scenic spot and the corresponding historical knowledge, the generated travel notes can have more historical interest and can make the generated travel notes richer. It should be noted that in addition to matching the corresponding historical knowledge for the target image, the target image can also be matched with anecdotes, etc. Specifically, the anecdotes can be legends of scenic spots, etc., which are not limited here.
[0045] S203: Generate a travel note according to the target picture and the description information, where the travel note includes the target picture and the description information.
[0046] In this step, after obtaining the target image and description information, the target image and description information can be used to generate a travel note. In addition, in the travel note, the target image and description information need to correspond to each other. For example, the description information can be marked next to the target image and indicated by an arrow, etc.
[0047] The travel note generation method provided in this embodiment obtains the location information of the terminal device when the terminal device takes a target picture, and then directly determines the description information of the first scenic spot where the terminal device is located at this time based on the location information, thereby generating a travel note including the target picture and the description information. Since the user is prevented from inputting the description information himself, the efficiency of obtaining the description information of the first scenic spot can be improved, thereby improving the efficiency of generating the travel note.
[0048] The travel notes generation method mentioned above is introduced in detail below.
[0049] In a possible implementation, the method also includes: obtaining posture information of the terminal device when taking a target picture, the posture information including the azimuth and inclination angle of the terminal device when taking the target picture; determining a visible area when the terminal device takes the target picture according to the position information and the posture information; determining a second scenic spot contained in a preset range in the visible area; determining a scenic spot distance between the first scenic spot and the second scenic spot, the scenic spot distance including a straight-line distance and / or a navigation distance between the first scenic spot and the second scenic spot; accordingly, generating a travel note according to the target picture and the description information, including: generating a travel note according to the target picture, the description information and the scenic spot distance, the travel note also including distance information, the distance information is used to indicate that the distance between the second scenic spot contained in the target picture and the first scenic spot is the scenic spot distance.
[0050] In this solution, when the terminal device takes a target picture, in addition to obtaining the location information of the terminal device, it can also obtain the posture information of the terminal device when taking the target picture, such as the azimuth and inclination angle of the terminal device. In this way, the posture information of the terminal device can be used to determine the specific field of view such as the line of sight starting point, visible area and visible angle when the terminal device takes pictures at the current position, so that computer vision technology and GIS technology can be used to perform spatial calculations on the location information and posture information of the terminal device, so as to determine other attractions included in the visible area of the terminal device when taking pictures at the current first scenic spot, and then set a preset range for the visible area, determine the second scenic spot in the preset range, and determine the straight-line distance and / or navigation distance between the first scenic spot and the second scenic spot, so that when generating a travel note, the travel note can also include the distance information between the first scenic spot and the second scenic spot, which not only improves the efficiency of generating the travel note, but also makes the generated travel note more practical.
[0051] In the above scheme, when the user is taking pictures of the first scenic spot, if the user wants to take multiple pictures, then when generating the travel notes, an album of the first scenic spot can be generated at the location of the target picture. The cover picture of the album can be selected by the user from multiple pictures as the target picture, or a random picture can be selected as the target picture, and a prompt message can be set for the album, for example, "click on the picture to view all pictures of the scenic spot". This can avoid too many pictures occupying the length of the travel notes, and can also make it convenient for users to view more pictures about the first scenic spot.
[0052] In the above solution, the album may include not only static pictures but also dynamic images, such as short videos, so that the user can see the dynamic first scenic spot. In addition, in order to avoid the short video data being too large, the recording time or size of the shot short video may be limited, for example, the recording time of the short video may be limited to no more than 10 seconds, or the size of the short video may be limited to no more than 200 megabytes (MByte), etc.
[0053] In the above solution, when the terminal device takes the target picture of the first scenic spot, the target picture can be taken by a camera device in the terminal device, such as a high-definition camera. Figure 3 A schematic diagram of the structure of the camera device provided in the embodiment of the present application is shown in FIG. Figure 3As shown, the camera device may include: a camera module, which may be used to obtain image data by shooting a still picture image or a dynamic image; and a display module, which may be used to display the image obtained by shooting based on the image data. When shooting an image of a first scenic spot, the camera device may obtain posture information, and the posture information may include at least one of the azimuth and inclination angles of the shooting direction of the image of the first scenic spot, and at least one of the viewing angle (visible angle) of the image of the first scenic spot or the viewing angle related information capable of calculating the viewing angle. For at least two images of the first scenic spot shot (if the user shoots multiple images), when the second shooting direction of the second image is included within the range of the first viewing angle of the first shooting direction of the first image, the second image is associated with the first image, and the first image may be selected to be displayed in the display module based on the user's operation, and then the second image associated with the first image is displayed in a state of overlapping the first image.
[0054] In the above scheme, after obtaining the target image taken by the terminal device, the target image can be directly processed by image processing technology to identify the first scenic spot corresponding to the target image, and after obtaining the posture information of the terminal device, other scenic spots in the visible area are searched by spatial computing technology. If other scenic spots are found, the locations of the other scenic spots are projected to the plane position of the visible area. In this way, when generating travel notes later, the relative position relationship between the first scenic spot and other scenic spots and the distance between the scenic spots can be intuitively seen based on the plane positions of other scenic spots in the visible area, thereby improving the authenticity of the generated travel notes.
[0055] In a possible implementation, the target image is one of multiple images for which a travel note is to be generated; the method further includes: obtaining the shooting time of each of the multiple images; accordingly, generating a travel note based on the target image and the description information, including: generating a travel note based on the description information of each of the multiple images in the order of the shooting time of the multiple images from front to back, wherein in the travel note, the image with an earlier shooting time is located before the image with a later shooting time, and the description information corresponding to the image with an earlier shooting time is located before the description information corresponding to the image with a later shooting time.
[0056] In this scheme, if there are multiple pictures used to generate travel notes, the shooting time of each picture can be recorded when the picture is taken. In this way, when generating the travel notes, multiple pictures and corresponding description information can be generated in the order of the shooting time from front to back, and the travel notes can be fed back to the user. Since the user is prevented from manually adjusting the positions of multiple pictures, the efficiency of generating travel notes is improved when there are many pictures.
[0057] In the above solution, each of the multiple pictures may correspond to a different scenic spot.
[0058] In a possible implementation, the description information of the first scenic spot where the terminal device was located when the terminal device took the target picture is determined based on the location information, including: obtaining the location information of each picture in a plurality of pictures; determining the scenic spot corresponding to each picture based on the location information of each picture in the plurality of pictures, the scenic spot corresponding to each picture being the scenic spot where the terminal device was located when each picture was taken; and obtaining the description information of the same scenic spot once among the plurality of scenic spots corresponding one to one to the plurality of pictures.
[0059] In this solution, when a user takes multiple pictures, the scenic spot corresponding to each picture can be determined by the location information of the terminal device when each picture is taken. If some of the multiple pictures correspond to the same scenic spot, in order to avoid repeatedly obtaining the description information of the same scenic spot, for these pictures of the same scenic spot, the description information can be obtained only once, thereby improving the efficiency of travel notes generation.
[0060] In the above scheme, for multiple pictures of the same scenic spot, a picture set can be generated. The user can select one of the multiple pictures as the cover of the picture set, and then the picture set is displayed at the corresponding position in the travel notes. The user can also use a random picture of the multiple pictures as the cover of the picture set. In addition, the description information can be marked on the cover picture or near the picture set, and associated with the corresponding picture set by indicators such as arrows.
[0061] In a possible implementation, the method further includes: displaying the travel note through an editable interface; receiving editing information input by the user on the editable page, the editing information being used to edit the travel note; and editing the travel note according to the editing information to obtain a target travel note.
[0062] In this solution, during the travel note generation process or after the travel note generation is completed, the user can edit the currently generated travel note. For example, the user can record interesting things that happened during the journey in the corresponding position in the travel note in the form of text, pictures, videos or audio. Since the pictures or videos in the travel note contain time information, location information, etc., the content in the travel note can be retrieved according to the time information or location information. If there is a travel note record at the corresponding time or place in the travel note, the record in the travel note can be displayed in order from the previous to the next shooting time, which is convenient for the user to recall the journey.
[0063] In the above solution, when the user wants to edit the travel notes through audio, the APP needs to obtain the microphone permission of the mobile phone.
[0064] In one possible implementation, the editing information includes one or more of the following information: deleting pictures or text information in the travel notes, adding pictures or text information in the travel notes, modifying the text information or pictures in the travel notes, adjusting the position of the pictures in the travel notes, and adjusting the position of the text information in the travel notes.
[0065] In a possible implementation, in the process of generating a travel note, the travel note may be interrupted before it is completed due to uncontrollable factors. Therefore, when the user opens the APP next time, the user can be prompted that the last travel note was accidentally closed and whether to continue the last travel note. If the user is sure to continue, the travel note will continue to be generated based on the last unfinished travel note. If the user chooses not to continue, the last unfinished travel note will be saved and a new travel note will be created. For the unfinished travel note, the user can choose whether to keep it according to his or her wishes, thereby improving the user experience.
[0066] In one possible implementation, after the travel notes are generated, the user can also choose to share his or her travel notes on major social platforms, or directly share them in the dynamic circle of the corresponding travel notes APP on the terminal device. At the same time, the user can also view travel notes generated by other users on the corresponding travel notes APP on the terminal device, or the user can also chat with other users in real time through the corresponding travel notes APP on the terminal device, thereby improving the user experience.
[0067] In one possible implementation, when the corresponding travel note APP on the terminal device automatically generates a travel note, it can select the default template style to generate the travel note. After the travel note generation is completed, the user can also select other template styles to change the generated travel note, such as changing the text style, background style, layout style, etc. Users can also create their own travel note templates.
[0068] The travel note generation method provided in the embodiment of the present application only requires the user to open the corresponding APP on the terminal device to take photos, and the travel note of the user during the travel can be automatically generated. At the same time, it also meets the user's need to edit the automatically generated travel note, avoiding the need for the user to manually typeset the pictures and the need for the user to manually edit the description information corresponding to the scenic spots, thereby saving the user's time, facilitating the user's operation, and improving the efficiency of generating travel notes.
[0069] Generally speaking, the technical solution provided by this application requires that users only need to open the corresponding APP on the terminal device to take photos, or use the APP to select photos from the album to automatically generate travel notes. This is a technical implementation method that can improve both user experience and the efficiency of travel note generation.
[0070] Figure 4 A schematic diagram of the structure of a travel diary generating device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the travel diary generating device 40 includes:
[0071] An acquisition module 41 is used to acquire the location information of the terminal device when the terminal device takes a target picture;
[0072] A determination module 42, configured to determine, based on the location information, description information of a first scenic spot where the terminal device is located when the terminal device captures the target image;
[0073] The generating module 43 is used to generate a travel note according to the target picture and the description information, and the travel note includes the target picture and the description information.
[0074] Optionally, the device is also used to obtain the posture information of the terminal device when shooting the target picture, the posture information includes the azimuth and inclination angle of the terminal device when shooting the target picture; determine the visible area of the terminal device when shooting the target picture according to the position information and the posture information; determine the second scenic spot included in the preset range of the visible area; determine the scenic spot distance between the first scenic spot and the second scenic spot, the scenic spot distance includes the straight-line distance and / or navigation distance between the first scenic spot and the second scenic spot. Accordingly, the generation module 43 is also used to generate a travel note according to the target picture, the description information and the scenic spot distance, and the travel note also includes the distance information, and the distance information is used to indicate that the distance between the second scenic spot and the first scenic spot included in the target picture is the scenic spot distance.
[0075] Optionally, the target image is one of multiple images for which a travel note is to be generated; the device is also used to obtain the shooting time of each of the multiple images; accordingly, the generation module 43 is also used to generate a travel note according to the description information of each of the multiple images in the order of the shooting time of the multiple images from front to back, in which the image with an earlier shooting time is located before the image with a later shooting time, and the description information corresponding to the image with an earlier shooting time is located before the description information corresponding to the image with a later shooting time.
[0076] Optionally, the determination module 42 is also used to obtain the location information of each picture in the multiple pictures; determine the scenic spot corresponding to each picture according to the location information of each picture in the multiple pictures, and the scenic spot corresponding to each picture is the scenic spot where the terminal device is located when taking each picture; for the same scenic spot in the multiple scenic spots corresponding to the multiple pictures, obtain the description information of the same scenic spot once.
[0077] Optionally, the device is also used to display the travel notes through an editable interface; receive editing information input by the user on the editable page, the editing information is used to edit the travel notes; edit the travel notes according to the editing information to obtain the target travel notes.
[0078] Optionally, the editing information includes one or more of the following information: deleting pictures or text information in the travel notes, adding pictures or text information in the travel notes, modifying the text information or pictures in the travel notes, adjusting the position of pictures in the travel notes, and adjusting the position of text information in the travel notes.
[0079] The travel diary generating device provided in this embodiment is used to execute the technical solution of the travel diary generating method in the aforementioned method embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0080] Figure 5 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application, such as Figure 5 As shown, the terminal device 500 includes:
[0081] Processor 511, memory 512, and interactive interface 513;
[0082] The memory 512 is used to store executable instructions executable by the processor 511;
[0083] Among them, the processor 511 is configured to execute the technical solution of the travel note generation method provided by the aforementioned method embodiment by executing executable instructions.
[0084] In the above terminal device, the memory 512 and the processor 511 are electrically connected directly or indirectly to realize data transmission or interaction. For example, these elements can be electrically connected to each other through one or more communication buses or signal lines, such as through a bus connection. The memory 512 stores computer-executable instructions for implementing the travel diary generation method, including at least one software function module that can be stored in the memory in the form of software or firmware. The processor 511 executes various functional applications and data processing by running the software programs and modules stored in the memory 512.
[0085] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory is used to store programs, and the processor executes the programs after receiving the execution instructions. Furthermore, the software programs and modules in the above-mentioned memory may also include an operating system, which may include various software components and / or drivers for managing system tasks (such as memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.
[0086] The processor may be an integrated circuit chip having the ability to process signals. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. The methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0087] The terminal device is used to execute the technical solution of the travel diary generation method provided in the aforementioned method embodiment. Its implementation principle and technical effect are similar to those in the aforementioned method embodiment and will not be repeated here.
[0088] An embodiment of the present application also provides a readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the technical solution of the travel diary generation method provided in the aforementioned method embodiment is implemented.
[0089] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the technical solution of the travel diary generation method provided in the aforementioned method embodiment.
[0090] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A travel diary generation method, characterized in that: The method comprises: Obtaining the location information of the terminal device when the terminal device takes the target image; Determine, according to the location information, description information of a first scenic spot where the terminal device is located when the terminal device takes the target picture; Acquire posture information of the terminal device when taking the target picture, wherein the posture information includes an azimuth and an inclination angle of the terminal device when taking the target picture; Determine, according to the position information and the posture information, a visible area when the terminal device takes the target image and other scenic spots included in the visible area of the terminal device; Performing projection processing on the other scenic spots to determine the plane positions of the other scenic spots in the visible area; Determine a second scenic spot included in a preset range in the visible area; Determine a scenic spot distance between the first scenic spot and the second scenic spot, wherein the scenic spot distance includes a straight-line distance and / or a navigation distance between the first scenic spot and the second scenic spot; A travel note is generated according to the target image, the description information, the distance to the scenic spot and the plane position of other scenic spots in the visible area, wherein the travel note includes the target image, the description information, the distance to the scenic spot and the plane position of other scenic spots in the visible area, and the distance information is used to indicate that the distance between the second scenic spot contained in the target image and the first scenic spot is the scenic spot distance.
2. The method according to claim 1, characterized in that: The target image is one of the multiple images for which the travel notes are to be generated; The method further comprises: Obtaining the shooting time of each of the multiple pictures; Accordingly, generating a travel note according to the target image and the description information includes: The travel note is generated according to the description information of each of the multiple pictures in the order of shooting time from front to back, wherein the pictures with earlier shooting time are located before the pictures with later shooting time, and the description information corresponding to the pictures with earlier shooting time is located before the description information corresponding to the pictures with later shooting time.
3. The method according to claim 2, characterized in that The determining, according to the location information, the description information of the first scenic spot where the terminal device is located when the terminal device takes the target picture includes: Obtaining location information of each picture in the plurality of pictures; Determine a scenic spot corresponding to each picture according to the location information of each picture in the multiple pictures, where the scenic spot corresponding to each picture is the scenic spot where the terminal device is located when taking each picture; For a same scenic spot among the multiple scenic spots corresponding to the multiple pictures, description information of the same scenic spot is obtained once.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: Displaying the travel notes through an editable interface; Receiving editing information input by a user on the editable page, wherein the editing information is used to edit the travel diary; The travel note is edited according to the editing information to obtain a target travel note.
5. The method according to claim 4, characterized in that The editing information includes one or more of the following information: deleting pictures or text information in the travel notes, adding pictures or text information in the travel notes, modifying text information or pictures in the travel notes, adjusting the position of pictures in the travel notes, and adjusting the position of text information in the travel notes.
6. A travel diary generating device, characterized in that: include: A module for executing the travel diary generation method as described in any one of claims 1 to 5.
7. A terminal device, characterized in that: include: Processor, memory, and interactive interface; The memory is used to store executable instructions executable by the processor; Wherein, the processor is configured to execute the travel note generating method according to any one of claims 1 to 5 by executing the executable instructions.
8. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the travel diary generating method according to any one of claims 1 to 5 is implemented.
9. A computer program product, characterized in that It includes a computer program, which is used to implement the travel diary generation method described in any one of claims 1 to 5 when executed by a processor.
