WO2022257844A1 - Travel note generation method and apparatus - Google Patents

Travel note generation method and apparatus Download PDF

Info

Publication number
WO2022257844A1
WO2022257844A1 PCT/CN2022/096767 CN2022096767W WO2022257844A1 WO 2022257844 A1 WO2022257844 A1 WO 2022257844A1 CN 2022096767 W CN2022096767 W CN 2022096767W WO 2022257844 A1 WO2022257844 A1 WO 2022257844A1
Authority
WO
WIPO (PCT)
Prior art keywords
text
user
input
target
travel
Prior art date
Application number
PCT/CN2022/096767
Other languages
French (fr)
Chinese (zh)
Inventor
龚友臣
Original Assignee
维沃移动通信(杭州)有限公司
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 维沃移动通信(杭州)有限公司 filed Critical 维沃移动通信(杭州)有限公司
Publication of WO2022257844A1 publication Critical patent/WO2022257844A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application belongs to the technical field of communications, and in particular relates to a method and device for generating travel notes.
  • the purpose of the embodiments of the present application is to provide a method and device for generating travel notes, which can solve the problems of long time-consuming and poor user experience in existing travel note generating methods.
  • the embodiment of the present application provides a method for generating travel notes, the method including:
  • a target travel note is generated based on the target text and the travel note information edited by the user.
  • the embodiment of the present application provides a device for generating travel notes, which includes:
  • the first input receiving module is used to receive the user's first input to the target object text during the process of editing the travel note by the user;
  • An object description text display module configured to display object description text information corresponding to the target object text in response to the first input
  • a target text acquisition module configured to acquire the target text selected by the user from the object description text information
  • a target travel note generating module configured to generate a target travel note based on the target text and the travel note information edited by the user.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method for generating travel notes as described in the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the method for generating travel notes as described in the first aspect is implemented A step of.
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect The method for generating travel notes.
  • the target text by receiving the user's first input on the target object text during the process of editing the user's travel note, in response to the first input, displaying the object description text information corresponding to the target object text, and obtaining the user's information from the object description text
  • the target text selected in the information based on the target text and the travel note information edited by the user, generates the target travel note.
  • FIG. 1 is a flow chart of the steps of a method for generating travel notes provided in an embodiment of the present application
  • FIG. 2 is a schematic diagram of an input box display object text provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of generating a target travel note provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a device for generating travel notes provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
  • Figure 7 schematically shows a block diagram of a computing processing device for performing a method according to the present application.
  • Fig. 8 schematically shows a storage unit for holding or carrying program codes for realizing the method according to the present application.
  • FIG. 1 it shows a flowchart of steps of a method for generating travel notes provided by an embodiment of the present application.
  • the method for generating travel notes may specifically include the following steps:
  • Step 101 During the process of the user editing the travel note, receive the user's first input of the target object text.
  • the embodiment of the present application can be applied to a scenario where the description text of the target object text selected by the user is automatically displayed, the user selects the target text in the description text, and combines the target text to generate a travel note.
  • the target object text refers to object text for which the user performs the first input.
  • the target object text can be the object text displayed on the text input box when the user edits the travel note, or the object text obtained by recognizing the image input by the user, or it can be the object text for the user in the process of editing the travel note , object text edited by the user, etc.
  • the first input refers to the input performed by the user on the target object text to obtain the description information of the target object text.
  • the first input may be an input formed by the user long pressing the target object text, for example, when the target object text is the object text displayed in the text input box, when the user needs to obtain the description information of the target object text , the user may press and hold the target object text to obtain the object description information. At this time, the operation of the user long pressing the target object text may be regarded as the first input.
  • the first input may be an input formed by the user clicking on the target object text, for example, when the target object text is the object text displayed in the text input box, when the user needs to obtain the description information of the target object text , the user may click on the target object text to obtain the object description information, and at this time, the operation of the user clicking on the target object text may be regarded as the first input.
  • multiple object texts can be displayed, and when the user needs to obtain the description information of the target object text in the multiple object texts, the user can perform the first input on the target object text, specifically, for this
  • the process can be described in detail in conjunction with the following specific implementations.
  • the above step 101 may include:
  • Sub-step A1 Acquiring the current location information of the user during the process of the user editing the travel note.
  • the current location information refers to the location where the user is when editing the travel notes.
  • the user's location can be obtained in real time through the preset positioning system in the electronic device.
  • the positioning position of the positioning system may be obtained, and the positioning position may be used as the current position information of the user.
  • the positioning system may be GPS (Global Positioning System, Global Positioning System), etc.
  • the specific type of the positioning system may be determined according to business requirements, which is not limited in this embodiment.
  • the current location information of the user may be obtained, and then sub-step A2 is performed.
  • Sub-step A2 Obtain at least one object located within a preset distance range of the current location information, and display the object text of the at least one object in a text edit box.
  • the objects may be tourist attractions, cities, and so on.
  • At least one object located within the preset distance range of the current location information of the user may be obtained, and the object text of at least one object is displayed in the text editing box, for example, as shown in Figure 2 , when you want to edit the text of the travel note, the text box will focus, and the input method will pop up.
  • the input method that pops up can automatically obtain the name of the current city, as well as the name information of tourist attractions, scenic spots and historical sites within a certain distance (for example, within 5 kilometers), as shown in Figure 2 The shown "xx city”, “xx scenic spot”, “xx scenic spot” and “other” and so on.
  • sub-step A3 is performed.
  • Sub-step A3 receiving the first sub-input of the target object text in the object text.
  • the first sub-input refers to a sub-input performed by the user on the target object text.
  • a user's first sub-input on the target object text in the object text may be received.
  • the first sub-input may be used as the first input described in the above steps.
  • the object text of the associated object is displayed in combination with the user's current location, and then the description text of the object can be automatically obtained, so that the user can edit the travel notes without the need for the user to search for relevant information, saving the user's time for editing the travel notes time.
  • step 101 may include:
  • Sub-step B1 Acquiring the target image added by the user during the process of editing the travel note by the user.
  • the target image refers to the image input by the user when editing the travel notes.
  • the target image can be a landscape image, or a figure image, etc. Specifically, it can be determined according to business needs. This implementation The example does not limit this.
  • the target image added by the user may be acquired.
  • sub-step B2 is executed.
  • Sub-step B2 performing image recognition processing on the target image, determining and displaying at least one object text in the target image.
  • image recognition processing may be performed on the target image to determine at least one object text in the target image and display at least one object text, specifically, after the user adds an image, the electronic device may Automatically perform image analysis and recognition, extract the key descriptive information of each picture through image analysis and recognition technology, and display the extracted key descriptive information on the corresponding pictures, such as photos for people, which can be extracted Key words are dusk, relaxation, seaside, etc.
  • sub-step B3 After determining and displaying at least one object text in the target image, sub-step B3 is performed.
  • Sub-step B3 receiving the user's second sub-input on the target object text in the at least one object text.
  • the second sub-input refers to a sub-input performed by a user on a target object text in at least one object text.
  • a second sub-input from the user on the target object text in the at least one object text can be received, at this time, the second sub-input can be regarded as the first sub-input mentioned in the above steps enter.
  • the embodiment of the present application can extract the key information of the picture according to the picture analysis and recognition technology when adding pictures to edit travel notes, and then combine the input method scene to generate words, and quickly and conveniently generate relevant pictures by extracting various travel notes and encyclopedias obtained Feelings, filled in travel notes, can save a lot of time in writing and polishing travel notes, and can give people an immersive feeling.
  • step 101 may include:
  • Sub-step C1 during the process of editing the travel note by the user, receiving the third sub-input of the target object text in the edited text by the user.
  • the target object text is the object text in the edited text.
  • the user can perform the third sub-input on the target object text.
  • the third sub-input can be regarded as The first input mentioned.
  • the user when the user wants to know the detailed information of a certain object text when the user is editing the travel note, the user can directly input the target object text to obtain the detailed information, without the need for the user to consult relevant materials , which saves the time for users to edit travel notes.
  • step 102 After receiving the user's first input of the target object text, step 102 is executed.
  • Step 102 In response to the first input, display object description text information corresponding to the target object text.
  • the object description text information refers to the text information used to describe the target object corresponding to the target object text.
  • the object description text information of the target object can be obtained, and the object description text information corresponding to the target object text can be displayed. For example, as shown in FIG. Click on a place name above the input method to obtain detailed descriptive information such as encyclopedia introductions, travel notes, poems, etc., and display them in the expansion box.
  • step 103 is executed.
  • Step 103 Obtain the target text selected by the user from the object description text information.
  • the target text refers to the text selected by the user from the object description text information.
  • the target text selected by the user from the object description text information can be obtained, and the selection method of the target text can be described in detail in conjunction with the following specific implementations.
  • step 103 may include:
  • Sub-step D1 receiving the user's second input of the object description text information.
  • the second input refers to the input performed by the user on the object description text information for determining the text start position in the object description text.
  • the second input may be an input formed by the user clicking a certain position in the object description text information, or an input formed by the user clicking a certain position in the object description text information through mouse control, etc., specifically Specifically, the specific form of the second input may be determined according to business requirements, which is not limited in this embodiment.
  • a second input from the user on the object description text information may be received, and then sub-step D2 is performed.
  • Sub-step D2 in response to the second input, determine the text start position of the object description text information.
  • the text start position refers to the start position of the text used to select the object description text information.
  • the text start position of the object description text information can be determined in response to the second input, for example, when the second input is a click input, the click input can be The click position in the object description text information is regarded as the text start position and the like.
  • Sub-step D3 receiving a third input from the user on the object description text information.
  • the third input refers to an input performed by the user on the object description text information for determining a text end position in the object description text information.
  • the third input may be an input formed by the user performing a click operation in the object description text information, or an input formed by the user clicking a certain position in the object description text information through mouse control, etc., specifically , the specific form of the third input may be determined according to business requirements, which is not limited in this embodiment.
  • a third input from the user on the object description text information may be received, and then sub-step D4 is executed.
  • Sub-step D4 in response to the third input, determine the text end position of the object description text information.
  • the text end position refers to the end position of the text in the text information for selecting the object description.
  • the text start position of the object description text information can be determined in response to the third input, for example, when the third input is a click input, the click input can be The click position in the object description text information is regarded as the text end position and the like.
  • Sub-step D5 Determine the target text according to the text start position and the text end position.
  • the target text can be determined according to the text start position and the text end position.
  • the rapid positioning of the target text can be realized by combining the user's input of the object description text information, and the operation method is relatively simple, which can save the user's editing time.
  • Step 104 Generate a target travel note based on the target text and the travel note information edited by the user.
  • the target travel notes can be generated by combining the target text and the user-edited travel note information (which may include at least one of text information, image information, etc.), specifically, the target text can be added to the user-edited The corresponding position of the travel note information, after the travel note editing is completed, the target travel note can be generated according to the travel note information edited by the user and the target text.
  • the user-edited travel note information which may include at least one of text information, image information, etc.
  • the object description text information can be displayed through the user's input of the target object text, and the user can directly select the desired text from the object description text information to generate a travel note, without the need for the user to consult relevant information or repeatedly consider to generate a travel note, so that it can be extremely It greatly reduces the time for users to edit travel notes and improves the user experience.
  • the travel note generation method receives the user’s first input on the target object text during the process of editing the travel note by the user, and displays the object description text information corresponding to the target object text in response to the first input, and obtains the user’s information from the The object describes the target text selected in the text information, and generates the target travel note based on the target text and the travel note information edited by the user.
  • the object description text information can be displayed through the user's input of the target object text, and the user can directly select the desired text from the object description text information to generate a travel note, without the need for the user to consult relevant information or repeatedly consider to generate a travel note, so that it can be extremely It greatly reduces the time for users to edit travel notes and improves the user experience.
  • the execution subject may be a device for generating travel notes, or a control module in the device for generating travel notes for executing the method for generating travel notes.
  • the travel note generating device provided in the embodiment of the present application is described by taking the travel note generating device executing the travel note generating method as an example.
  • FIG. 4 it shows a schematic structural diagram of a device for generating travel notes provided by an embodiment of the present application.
  • the device for generating travel notes 400 may specifically include the following modules:
  • the first input receiving module 410 is configured to receive the user's first input to the target object text during the process of editing the travel note by the user;
  • An object description text display module 420 configured to display object description text information corresponding to the target object text in response to the first input
  • a target text acquisition module 430 configured to acquire the target text selected by the user from the object description text information
  • the target travel notes generating module 440 is configured to generate target travel notes based on the target text and the travel note information edited by the user.
  • the first input receiving module 410 includes:
  • a user location acquisition unit configured to acquire the current location information of the user during the process of editing the travel note by the user
  • a first object text display unit configured to acquire at least one object located within a preset distance range of the current location information, and display the object text of the at least one object in a text edit box;
  • the first sub-input receiving unit is configured to receive a first sub-input for the target object text in the object text.
  • the first input receiving module 410 includes:
  • a target image acquisition unit configured to acquire the target image added by the user during the process of editing the travel note by the user
  • a second object text display unit configured to perform image recognition processing on the target image, determine and display at least one object text in the target image
  • the second sub-input receiving unit is configured to receive the user's second sub-input on the target object text in the at least one object text.
  • the first input receiving module 410 includes:
  • the third sub-input receiving unit is configured to receive a third sub-input by the user on the target object text in the edited text during the process of editing the travel note by the user.
  • the target text acquisition module 430 includes:
  • a second input receiving unit configured to receive a second input from the user on the object description text information
  • a text start position determining unit configured to determine a text start position of the object description text information in response to the second input
  • a third input receiving unit configured to receive a third input from the user on the object description text information
  • a text end position determining unit configured to determine the text end position of the object description text information in response to the third input
  • a target text determining unit configured to determine the target text according to the text start position and the text end position.
  • the travel note generation device receives the user's first input on the target object text during the process of the user editing the travel note, and displays the object description text information corresponding to the target object text in response to the first input, and obtains the user's information from the The object describes the target text selected in the text information, and generates the target travel note based on the target text and the travel note information edited by the user.
  • the object description text information can be displayed through the user's input of the target object text, and the user can directly select the desired text from the object description text information to generate a travel note, without the need for the user to consult relevant information or repeatedly consider to generate a travel note, so that it can be extremely It greatly reduces the time for users to edit travel notes and improves the user experience.
  • the device for generating travel notes in the embodiment of the present application may be a device, or a component, an integrated circuit, or a chip in a terminal.
  • the device may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant).
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the device for generating travel notes in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the device for generating travel notes provided in the embodiment of the present application can realize various processes realized in the method embodiment in FIG. 1 , and details are not repeated here to avoid repetition.
  • the embodiment of the present application further provides an electronic device M00, including a processor 501, a memory 502, and programs or instructions stored in the memory 502 and operable on the processor 501,
  • an electronic device M00 including a processor 501, a memory 502, and programs or instructions stored in the memory 502 and operable on the processor 501,
  • the program or instruction is executed by the processor 501, each process of the above-mentioned travel note generation method embodiment can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610, etc. part.
  • the electronic device 600 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 610 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 6 does not constitute a limitation to the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
  • the user input unit 607 is configured to receive the user's first input of the target object text during the process of editing the travel note by the user;
  • a display unit 606, configured to display object description text information corresponding to the target object text in response to the first input
  • the processor 610 is configured to acquire target text selected by the user from the object description text information; and generate target travel notes based on the target text and travel note information edited by the user.
  • the object description text information can be displayed through the user's input of the target object text, and the user can directly select the desired text from the object description text information to generate a travel note, without the need for the user to consult relevant information or repeatedly consider to generate a travel note, so that it can be extremely It greatly reduces the time for users to edit travel notes and improves the user experience.
  • the processor 610 is further configured to acquire the current location information of the user during the process of the user editing the travel note; acquire at least one object within a preset distance range of the current location information, and store the The object text of at least one object is displayed in the text edit box;
  • the user input unit 607 is further configured to receive the user's first sub-input on the target object text in the object text.
  • the processor 610 is further configured to acquire a target image added by the user during the process of editing the travel note by the user; perform image recognition processing on the target image, determine and display at least one object in the target image text;
  • the user input unit 607 is further configured to receive a second sub-input from the user on the target object text in the at least one object text.
  • the user input unit 607 is further configured to receive a third sub-input of the target object text in the edited text by the user during the process of editing the travel note by the user.
  • the user input unit 607 is further configured to receive a second input from the user on the object description text information
  • the processor 610 is further configured to determine a text start position of the object description text information in response to the second input;
  • the user input unit 607 is also used to determine the text end position of the object description text information in response to the third input;
  • the processor 610 is further configured to determine the target text according to the text start position and the text end position.
  • the text corresponding to the target object text is obtained by combining multiple methods and added to the text information edited by the user, which can greatly meet the user's needs and improve the efficiency of the user's travel notes editing.
  • the input unit 604 may include a graphics processor (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processor 6041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 607 includes a touch panel 6071 and other input devices 6072 .
  • the touch panel 6071 is also called a touch screen.
  • the touch panel 6071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 6072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 609 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 610 .
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above embodiment of the method for generating travel notes can be realized, and can achieve the same To avoid repetition, the technical effects will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above-mentioned method for generating travel notes Each process can achieve the same technical effect, so in order to avoid repetition, it will not be repeated here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.
  • the various component embodiments of the present application may be realized in hardware, or in software modules running on one or more processors, or in a combination thereof.
  • a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the computing processing device according to the embodiments of the present application.
  • DSP digital signal processor
  • the present application can also be implemented as an apparatus or apparatus program (eg, computer program and computer program product) for performing a part or all of the methods described herein.
  • Such a program implementing the present application may be stored on a computer-readable medium, or may be in the form of one or more signals.
  • Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
  • FIG. 7 shows a computing processing device that can implement methods according to the present application.
  • the computing processing device conventionally includes a processor 710 and a computer program product or computer readable medium in the form of memory 720 .
  • Memory 720 may be electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the memory 720 has a storage space 730 for program code 731 for performing any method step in the method described above.
  • the storage space 730 for program codes may include respective program codes 731 for respectively implementing various steps in the above methods. These program codes can be read from or written into one or more computer program products.
  • These computer program products comprise program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG. 8 .
  • the storage unit may have storage segments, storage spaces, etc. arranged similarly to the memory 720 in the computing processing device of FIG. 7 .
  • the program code can eg be compressed in a suitable form.
  • the memory unit includes computer readable code 731', i.e. code readable by, for example, a processor such as 710, which code, when executed by a computing processing device, causes the computing processing device to perform the above-described method. each step.
  • any reference signs placed between parentheses shall not be construed as limiting the claim.
  • the word “comprising” does not exclude the presence of elements or steps not listed in a claim.
  • the word “a” or “an” preceding an element does not exclude the presence of a plurality of such elements.
  • the application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware.
  • the use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

Abstract

The present application belongs to the technical field of communications. Disclosed are a travel note generation method and apparatus. The method comprises: in the process of a user editing a travel note, receiving a first input of the user for target object text; in response to the first input, displaying object description text information corresponding to the target object text; acquiring target text, which is selected by the user from the object description text information; and generating a target travel note on the basis of the target text and the travel note, which has been edited by the user.

Description

游记生成方法及装置Method and device for generating travel notes
本申请要求在2021年06月07日提交中国专利局、申请号为202110634571.0、发明名称为“游记生成方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110634571.0 and the title of the invention "method and device for generating travel notes" submitted to the China Patent Office on June 07, 2021, the entire contents of which are incorporated in this application by reference.
技术领域technical field
本申请属于通信技术领域,具体涉及一种游记生成方法及装置。The present application belongs to the technical field of communications, and in particular relates to a method and device for generating travel notes.
背景技术Background technique
很多人都喜欢在旅行中拍摄美景、人物等,与此同时,很多人也喜欢把这些精彩的照片分享到朋友圈或者其他地方,写成游记,供自己在未来慢慢回忆,或者供大家一起欣赏。Many people like to take pictures of beautiful scenery and people during their travels. At the same time, many people also like to share these wonderful photos in the circle of friends or other places, and write them as travel notes for their own memories in the future, or for everyone to enjoy together .
而在人们编辑游记时,可能会需要对某个名胜古迹加以描述,但由于本身不太了解其历史底蕴或其他原因,要先去查阅相关资料再摘取部分文字拷贝过来,或者,在用户想要对图像中的美景加以赞美、对人物状态加以描述时,可能一时想不到该如何表述才能让人有身临其境的感觉,因此,现有的游记生成方式需要花费用户大量的时间,用户的体验较差。When people edit travel notes, they may need to describe a certain place of interest, but because they don’t know much about its historical background or other reasons, they need to check the relevant information first and then extract some text and copy them, or, when the user wants to When you want to praise the beautiful scenery in the image and describe the state of the characters, you may not be able to think of how to express it in order to make people feel immersive. The experience is poor.
发明内容Contents of the invention
本申请实施例的目的是提供一种游记生成方法及装置,能够解决现有中的游记生成方式花费时间较长,用户体验较差的问题。The purpose of the embodiments of the present application is to provide a method and device for generating travel notes, which can solve the problems of long time-consuming and poor user experience in existing travel note generating methods.
第一方面,本申请实施例提供了一种游记生成方法,该方法包括:In the first aspect, the embodiment of the present application provides a method for generating travel notes, the method including:
在用户编辑游记的过程中,接收所述用户对目标对象文本的第一输入;In the process of editing travel notes by the user, receiving the user's first input of the target object text;
响应于所述第一输入,显示所述目标对象文本对应的对象描述文本信息;In response to the first input, displaying object description text information corresponding to the target object text;
获取所述用户从所述对象描述文本信息中选择的目标文本;Acquiring the target text selected by the user from the object description text information;
基于所述目标文本和所述用户已编辑的游记信息,生成目标游记。A target travel note is generated based on the target text and the travel note information edited by the user.
第二方面,本申请实施例提供了一种游记生成装置,该装置包括:In the second aspect, the embodiment of the present application provides a device for generating travel notes, which includes:
第一输入接收模块,用于在用户编辑游记的过程中,接收所述用户对目标对象文本的第一输入;The first input receiving module is used to receive the user's first input to the target object text during the process of editing the travel note by the user;
对象描述文本显示模块,用于响应于所述第一输入,显示所述目标对象文本对应的对象描述文本信息;An object description text display module, configured to display object description text information corresponding to the target object text in response to the first input;
目标文本获取模块,用于获取所述用户从所述对象描述文本信息中选择的目标文本;a target text acquisition module, configured to acquire the target text selected by the user from the object description text information;
目标游记生成模块,用于基于所述目标文本和所述用户已编辑的游记信息,生成目标游记。A target travel note generating module, configured to generate a target travel note based on the target text and the travel note information edited by the user.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的游记生成方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method for generating travel notes as described in the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的游记生成方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the method for generating travel notes as described in the first aspect is implemented A step of.
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的游记生成方法。In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect The method for generating travel notes.
在本申请实施例中,通过在用户编辑游记的过程中,接收用户对目标对象文本的第一输入,响应于第一输入,显示目标对象文本对应的对象描述文本信息,获取用户从对象描述文本信息中选择的目标文本,基于目标文本和用户已编辑的游记信息,生成目标游记。In the embodiment of the present application, by receiving the user's first input on the target object text during the process of editing the user's travel note, in response to the first input, displaying the object description text information corresponding to the target object text, and obtaining the user's information from the object description text The target text selected in the information, based on the target text and the travel note information edited by the user, generates the target travel note.
上述说明仅是本申请技术方案的概述,为了能够更清楚了解本申请的技术手段,而可依照说明书的内容予以实施,并且为了让本申请的上述和其它目的、特征和优点能够更明显易懂,以下特举本申请的具体实施方式。The above description is only an overview of the technical solution of the present application. In order to better understand the technical means of the present application, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present application more obvious and understandable , the following specifically cites the specific implementation manner of the present application.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本申请实施例提供的一种游记生成方法的步骤流程图;FIG. 1 is a flow chart of the steps of a method for generating travel notes provided in an embodiment of the present application;
图2为本申请实施例提供的一种输入框显示对象文本的示意图;FIG. 2 is a schematic diagram of an input box display object text provided by an embodiment of the present application;
图3为本申请实施例提供的一种生成目标游记的示意图;FIG. 3 is a schematic diagram of generating a target travel note provided by an embodiment of the present application;
图4为本申请实施例提供的一种游记生成装置的结构示意图;FIG. 4 is a schematic structural diagram of a device for generating travel notes provided by an embodiment of the present application;
图5为本申请实施例提供的一种电子设备的结构示意图;FIG. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
图6为本申请实施例提供的另一种电子设备的结构示意图;FIG. 6 is a schematic structural diagram of another electronic device provided by an embodiment of the present application;
图7示意性地示出了用于执行根据本申请的方法的计算处理设备的框图;以及Figure 7 schematically shows a block diagram of a computing processing device for performing a method according to the present application; and
图8示意性地示出了用于保持或者携带实现根据本申请的方法的程序代码的存储单元。Fig. 8 schematically shows a storage unit for holding or carrying program codes for realizing the method according to the present application.
具体实施例specific embodiment
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will clearly describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的游记生成方法进行详细地说明。The method for generating travel notes provided by the embodiment of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
参照图1,示出了本申请实施例提供的一种游记生成方法的步骤流程图,如图1所示,该游记生成方法具体可以包括如下步骤:Referring to FIG. 1 , it shows a flowchart of steps of a method for generating travel notes provided by an embodiment of the present application. As shown in FIG. 1 , the method for generating travel notes may specifically include the following steps:
步骤101:在用户编辑游记的过程中,接收所述用户对目标对象文本的第一输入。Step 101: During the process of the user editing the travel note, receive the user's first input of the target object text.
本申请实施例可以应用于自动显示用户选择的目标对象文本的描述文本,由用户选择描述文本中的目标文本,并结合目标文本生成游记的场景中。The embodiment of the present application can be applied to a scenario where the description text of the target object text selected by the user is automatically displayed, the user selects the target text in the description text, and combines the target text to generate a travel note.
目标对象文本是指用户执行第一输入的对象文本。在本示例中,目标对象文本可以为用户在编辑游记时显示于文本输入框上的对象文本,也可以为通过对用户输入的图像进行识别得到的对象文本,还可以为用户编辑游记的 过程中,由用户编辑的对象文本等。The target object text refers to object text for which the user performs the first input. In this example, the target object text can be the object text displayed on the text input box when the user edits the travel note, or the object text obtained by recognizing the image input by the user, or it can be the object text for the user in the process of editing the travel note , object text edited by the user, etc.
第一输入是指用户对目标对象文本执行的用于获取目标对象文本的描述信息的输入。The first input refers to the input performed by the user on the target object text to obtain the description information of the target object text.
在某些示例中,第一输入可以为用户长按目标对象文本所形成的输入,例如,在目标对象文本为显示于文本输入框内的对象文本时,在用户需要获取目标对象文本的描述信息时,可以由用户长按该目标对象文本以获取对象描述信息,此时,可以将用户长按目标对象文本的操作视为第一输入。In some examples, the first input may be an input formed by the user long pressing the target object text, for example, when the target object text is the object text displayed in the text input box, when the user needs to obtain the description information of the target object text , the user may press and hold the target object text to obtain the object description information. At this time, the operation of the user long pressing the target object text may be regarded as the first input.
在某些示例中,第一输入可以为用户点击目标对象文本所形成的输入,例如,在目标对象文本为显示于文本输入框内的对象文本时,在用户需要获取目标对象文本的描述信息时,可以由用户点击该目标对象文本以获取对象描述信息,此时,可以将用户点击目标对象文本的操作视为第一输入。In some examples, the first input may be an input formed by the user clicking on the target object text, for example, when the target object text is the object text displayed in the text input box, when the user needs to obtain the description information of the target object text , the user may click on the target object text to obtain the object description information, and at this time, the operation of the user clicking on the target object text may be regarded as the first input.
可以理解地,上述示例仅是为了更好地理解本申请实施例的技术方案而列举的示例,不作为对本实施例的唯一限制。It can be understood that, the above examples are only examples for better understanding the technical solution of the embodiment of the present application, and are not used as the only limitation to the embodiment.
在用户编辑游记的过程中,可以显示多个对象文本,在用户需要获取多个对象文本中的目标对象文本的描述信息时,可以由用户对目标对象文本执行第一输入,具体地,对于该过程可以结合下述具体实现方式进行详细描述。In the process of editing the travel note by the user, multiple object texts can be displayed, and when the user needs to obtain the description information of the target object text in the multiple object texts, the user can perform the first input on the target object text, specifically, for this The process can be described in detail in conjunction with the following specific implementations.
在本申请的一种具体实现方式中,上述步骤101可以包括:In a specific implementation of the present application, the above step 101 may include:
子步骤A1:在用户编辑游记的过程中,获取所述用户的当前位置信息。Sub-step A1: Acquiring the current location information of the user during the process of the user editing the travel note.
在本实施例中,当前位置信息是指用户在编辑游记时所处的位置,在具体实现中,可以通过电子设备内预先设置的定位系统实时获取用户的位置,在用户编辑游记的过程中,可以获取定位系统的定位位置,并将该定位位置作为用户的当前位置信息。In this embodiment, the current location information refers to the location where the user is when editing the travel notes. In a specific implementation, the user's location can be obtained in real time through the preset positioning system in the electronic device. During the process of editing the travel notes, The positioning position of the positioning system may be obtained, and the positioning position may be used as the current position information of the user.
在本示例中,定位系统可以为GPS(Global Positioning System,全球定位系统)等,具体地,对于定位系统的具体类型可以根据业务需求而定,本实施例对此不加以限制。In this example, the positioning system may be GPS (Global Positioning System, Global Positioning System), etc. Specifically, the specific type of the positioning system may be determined according to business requirements, which is not limited in this embodiment.
在用户编辑游记的过程中,可以获取用户的当前位置信息,进而,执行子步骤A2。During the process of editing travel notes by the user, the current location information of the user may be obtained, and then sub-step A2 is performed.
子步骤A2:获取位于所述当前位置信息的预设距离范围内的至少一个对象,并将所述至少一个对象的对象文本显示于文本编辑框内。Sub-step A2: Obtain at least one object located within a preset distance range of the current location information, and display the object text of the at least one object in a text edit box.
在本示例中,对象可以为旅游景点、城市等对象。In this example, the objects may be tourist attractions, cities, and so on.
在获取到用户的当前位置信息之后,可以获取位于用户当前位置信息的预设距离范围内的至少一个对象,并将至少一个对象的对象文本显示于文本编辑框内,例如,如图2所示,当要编辑游记文字时,文本框聚焦,弹出输入法,弹出的输入法可以自动获取当前城市名称,以及一段距离内(比如5公里内)的旅游景点、名胜古迹等名称信息,如图2所示的“xx城市”、“xx景点”、“xx名胜古迹”及“其他”等等。After obtaining the current location information of the user, at least one object located within the preset distance range of the current location information of the user may be obtained, and the object text of at least one object is displayed in the text editing box, for example, as shown in Figure 2 , when you want to edit the text of the travel note, the text box will focus, and the input method will pop up. The input method that pops up can automatically obtain the name of the current city, as well as the name information of tourist attractions, scenic spots and historical sites within a certain distance (for example, within 5 kilometers), as shown in Figure 2 The shown "xx city", "xx scenic spot", "xx scenic spot" and "other" and so on.
可以理解地,上述示例仅是为了更好地理解本申请实施例的技术方案而列举的示例,不作为对本实施例的唯一限制。It can be understood that, the above examples are only examples for better understanding the technical solution of the embodiment of the present application, and are not used as the only limitation to the embodiment.
在将至少一个对象的对象文本显示于文本编辑框内之后,执行子步骤A3。After the object text of at least one object is displayed in the text edit box, sub-step A3 is performed.
子步骤A3:接收对所述对象文本中的目标对象文本的第一子输入。Sub-step A3: receiving the first sub-input of the target object text in the object text.
第一子输入是指用户对目标对象文本执行的子输入。The first sub-input refers to a sub-input performed by the user on the target object text.
在将至少一个对象文本显示于文本编辑框内之后,可以接收用户对对象文本中的目标对象文本的第一子输入,此时,可以将第一子输入作为上述步骤中描述的第一输入。After at least one object text is displayed in the text editing box, a user's first sub-input on the target object text in the object text may be received. At this time, the first sub-input may be used as the first input described in the above steps.
本申请实施例通过在用户编辑游记时,结合用户当前位置显示关联的对象的对象文本,进而可以自动获取对象的描述文本,以便于用户编辑游记,无需用户查找相关资料,节省了用户编辑游记的时间。In the embodiment of the present application, when the user edits the travel notes, the object text of the associated object is displayed in combination with the user's current location, and then the description text of the object can be automatically obtained, so that the user can edit the travel notes without the need for the user to search for relevant information, saving the user's time for editing the travel notes time.
在本申请的另一种具体实现方式中,上述步骤101可以包括:In another specific implementation manner of the present application, the above step 101 may include:
子步骤B1:在用户编辑游记的过程中,获取所述用户添加的目标图像。Sub-step B1: Acquiring the target image added by the user during the process of editing the travel note by the user.
在本实施例中,目标图像是指用户在编辑游记时输入的图像,在本示例中国,目标图像可以为风景图,也可以为人物图等,具体地,可以根据业务需求而定,本实施例对此不加以限制。In this embodiment, the target image refers to the image input by the user when editing the travel notes. In this example, the target image can be a landscape image, or a figure image, etc. Specifically, it can be determined according to business needs. This implementation The example does not limit this.
在用户编辑游记的过程中,可以获取用户添加的目标图像。During the process of editing the travel note by the user, the target image added by the user may be acquired.
在获取到用户添加的目标图像之后,执行子步骤B2。After the target image added by the user is acquired, sub-step B2 is executed.
子步骤B2:对所述目标图像进行图像识别处理,确定并显示所述目标图像中的至少一个对象文本。Sub-step B2: performing image recognition processing on the target image, determining and displaying at least one object text in the target image.
在获取到用户添加的目标图像之后,可以对目标图像进行图像识别处理,以确定目标图像中的至少一个对象文本,并显示至少一个对象文本,具体地,在用户添加图像之后,可以由电子设备自动进行图像解析识别,通过 图像解析识别技术提取每一张图片的关键描述性信息,并将提取到的关键性描述信息浮于对应的图片之上展示,比如针对人物的照片,可提取出的关键词是黄昏、放松、海边等。After acquiring the target image added by the user, image recognition processing may be performed on the target image to determine at least one object text in the target image and display at least one object text, specifically, after the user adds an image, the electronic device may Automatically perform image analysis and recognition, extract the key descriptive information of each picture through image analysis and recognition technology, and display the extracted key descriptive information on the corresponding pictures, such as photos for people, which can be extracted Key words are dusk, relaxation, seaside, etc.
在确定并显示目标图像中的至少一个对象文本之后,执行子步骤B3。After determining and displaying at least one object text in the target image, sub-step B3 is performed.
子步骤B3:接收所述用户对所述至少一个对象文本中的目标对象文本的第二子输入。Sub-step B3: receiving the user's second sub-input on the target object text in the at least one object text.
第二子输入是指用户对至少一个对象文本中的目标对象文本执行的子输入。The second sub-input refers to a sub-input performed by a user on a target object text in at least one object text.
在显示目标图像中的至少一个对象文本之后,可以接收用户对至少一个对象文本中的目标对象文本的第二子输入,此时,可以将第二子输入视为上述步骤中提及的第一输入。After displaying at least one object text in the target image, a second sub-input from the user on the target object text in the at least one object text can be received, at this time, the second sub-input can be regarded as the first sub-input mentioned in the above steps enter.
本申请实施例可以在添加图片编辑游记时,根据图片解析识别技术提取图片关键性信息,然后结合输入法场景出词,通过摘取获得的各种游记及百科等,快速便捷的生成相关图片的感想,填充到游记中,可以节省很多撰写及润色游记的时间,并且可以给人身临其境的感受。The embodiment of the present application can extract the key information of the picture according to the picture analysis and recognition technology when adding pictures to edit travel notes, and then combine the input method scene to generate words, and quickly and conveniently generate relevant pictures by extracting various travel notes and encyclopedias obtained Feelings, filled in travel notes, can save a lot of time in writing and polishing travel notes, and can give people an immersive feeling.
在本申请的另一种具体实现方式中,上述步骤101可以包括:In another specific implementation manner of the present application, the above step 101 may include:
子步骤C1:在用户编辑游记的过程中,接收所述用户对已编辑文本中的目标对象文本的第三子输入。Sub-step C1: during the process of editing the travel note by the user, receiving the third sub-input of the target object text in the edited text by the user.
在本实施例中,目标对象文本为已编辑文本中的对象文本。In this embodiment, the target object text is the object text in the edited text.
在用户编辑游记的过程中,若想获取编辑文本中的某个对象文本的描述信息,可以由用户对目标对象文本执行第三子输入,此时,可以将第三子输入视为上述步骤中提及的第一输入。In the process of editing travel notes, if the user wants to obtain the description information of a certain object text in the edited text, the user can perform the third sub-input on the target object text. At this time, the third sub-input can be regarded as The first input mentioned.
本申请实施例中,在用户编辑游记的过程中,在用户想要了解某个对象文本的详细信息时,可以直接由用户对目标对象文本执行输入,即可获取详情信息,无需用户查阅相关资料,节省了用户编辑游记的时间。In the embodiment of this application, when the user wants to know the detailed information of a certain object text when the user is editing the travel note, the user can directly input the target object text to obtain the detailed information, without the need for the user to consult relevant materials , which saves the time for users to edit travel notes.
在接收到用户对目标对象文本的第一输入之后,执行步骤102。After receiving the user's first input of the target object text, step 102 is executed.
步骤102:响应于所述第一输入,显示所述目标对象文本对应的对象描述文本信息。Step 102: In response to the first input, display object description text information corresponding to the target object text.
对象描述文本信息是指用于描述目标对象文本对应的目标对象的文本信息,例如,在目标对象文本为景区时,对象描述文本信息可以为描述景区 历史、特色景点等文本信息,也可以为描述该景区的诗词文本信息等。The object description text information refers to the text information used to describe the target object corresponding to the target object text. The poem text information of the scenic spot, etc.
在接收到用户对目标对象文本的第一输入之后,可以获取目标对象的对象描述文本信息,并显示目标对象文本对应的对象描述文本信息,例如,如图3所示,在获取到某个地点的详细信息后,点击输入法上方的某个地点名称即可获取与之对应的百科介绍、游记、诗词等详细描述性信息,并在展开框中显示。After receiving the user's first input on the target object text, the object description text information of the target object can be obtained, and the object description text information corresponding to the target object text can be displayed. For example, as shown in FIG. Click on a place name above the input method to obtain detailed descriptive information such as encyclopedia introductions, travel notes, poems, etc., and display them in the expansion box.
可以理解地,上述示例仅是为了更好地理解本申请实施例的技术方案而列举的示例,不作为对本实施例的唯一限制。It can be understood that, the above examples are only examples for better understanding the technical solution of the embodiment of the present application, and are not used as the only limitation to the embodiment.
在显示目标对象文本对应的对象描述文本信息之后,执行步骤103。After the object description text information corresponding to the target object text is displayed, step 103 is executed.
步骤103:获取所述用户从所述对象描述文本信息中选择的目标文本。Step 103: Obtain the target text selected by the user from the object description text information.
目标文本是指用户从对象描述文本信息中选择的文本。The target text refers to the text selected by the user from the object description text information.
在显示目标对象文本对应的对象描述文本信息之后,可以获取用户从对象描述文本信息中选择的目标文本,对于目标文本的选择方式可以结合下述具体实现方式进行详细描述。After the object description text information corresponding to the target object text is displayed, the target text selected by the user from the object description text information can be obtained, and the selection method of the target text can be described in detail in conjunction with the following specific implementations.
在本申请的另一种具体实现方式中,上述步骤103可以包括:In another specific implementation manner of the present application, the above step 103 may include:
子步骤D1:接收所述用户对所述对象描述文本信息的第二输入。Sub-step D1: receiving the user's second input of the object description text information.
在本实施例中,第二输入是指用户对对象描述文本信息执行的用于确定对象描述文本中的文本起始位置的输入。In this embodiment, the second input refers to the input performed by the user on the object description text information for determining the text start position in the object description text.
在本示例中,第二输入可以为用户点击对象描述文本信息中的某个位置所形成的输入,也可以为用户通过鼠标控制点击对象描述文本信息中的某个位置所形成的输入等,具体地,对于第二输入的具体形式可以根据业务需求而定,本实施例对此不加以限制。In this example, the second input may be an input formed by the user clicking a certain position in the object description text information, or an input formed by the user clicking a certain position in the object description text information through mouse control, etc., specifically Specifically, the specific form of the second input may be determined according to business requirements, which is not limited in this embodiment.
在显示对象描述文本信息之后,可以接收用户对对象描述文本信息的第二输入,进而,执行子步骤D2。After the object description text information is displayed, a second input from the user on the object description text information may be received, and then sub-step D2 is performed.
子步骤D2:响应于所述第二输入,确定所述对象描述文本信息的文本起始位置。Sub-step D2: in response to the second input, determine the text start position of the object description text information.
文本起始位置是指用于选择对象描述文本信息中的文本的起始位置。The text start position refers to the start position of the text used to select the object description text information.
在接收到用户对对象描述文本信息的第二输入之后,可以响应于该第二输入,确定出对象描述文本信息的文本起始位置,例如,在第二输入为点击输入时,可以将点击输入在对象描述文本信息中的点击位置视为文本起始位 置等。After receiving the user's second input on the object description text information, the text start position of the object description text information can be determined in response to the second input, for example, when the second input is a click input, the click input can be The click position in the object description text information is regarded as the text start position and the like.
在确定出对象描述文本信息的文本起始位置之后,执行子步骤D3。After determining the text start position of the object description text information, execute sub-step D3.
子步骤D3:接收所述用户对所述对象描述文本信息的第三输入。Sub-step D3: receiving a third input from the user on the object description text information.
第三输入是指用户对对象描述文本信息执行的用于确定对象描述文本信息中的文本结束位置的输入。The third input refers to an input performed by the user on the object description text information for determining a text end position in the object description text information.
在本示例中,第三输入可以为用户在对象描述文本信息中执行点击操作所形成的输入,也可以为用户通过鼠标控制点击对象描述文本信息中的某个位置所形成的输入等,具体地,对于第三输入的具体形式可以根据业务需求而定,本实施例对此不加以限制。In this example, the third input may be an input formed by the user performing a click operation in the object description text information, or an input formed by the user clicking a certain position in the object description text information through mouse control, etc., specifically , the specific form of the third input may be determined according to business requirements, which is not limited in this embodiment.
在确定出对象描述文本信息中的文本起始位置之后,可以接收用户对对象描述文本信息的第三输入,进而执行子步骤D4。After the starting position of the text in the object description text information is determined, a third input from the user on the object description text information may be received, and then sub-step D4 is executed.
子步骤D4:响应于所述第三输入,确定所述对象描述文本信息的文本结束位置。Sub-step D4: in response to the third input, determine the text end position of the object description text information.
文本结束位置是指用于选择对象描述文本信息中的文本的结束位置。The text end position refers to the end position of the text in the text information for selecting the object description.
在接收到用户对对象描述文本信息的第三输入之后,可以响应于该第三输入,确定出对象描述文本信息的文本起始位置,例如,在第三输入为点击输入时,可以将点击输入在对象描述文本信息中的点击位置视为文本结束位置等。After receiving the user's third input on the object description text information, the text start position of the object description text information can be determined in response to the third input, for example, when the third input is a click input, the click input can be The click position in the object description text information is regarded as the text end position and the like.
在确定对象描述文本信息的文本结束位置之后,执行子步骤D5。After determining the text end position of the object description text information, execute sub-step D5.
子步骤D5:根据所述文本起始位置和所述文本结束位置,确定所述目标文本。Sub-step D5: Determine the target text according to the text start position and the text end position.
在获取到文本起始位置和文本结束位置之后,可以根据文本起始位置和文本结束位置确定出目标文本。After the text start position and the text end position are obtained, the target text can be determined according to the text start position and the text end position.
本申请实施例通过结合用户对对象描述文本信息的输入即可实现目标文本的快速定位,操作方式较为简单,能够节省用户编辑时间。In the embodiment of the present application, the rapid positioning of the target text can be realized by combining the user's input of the object description text information, and the operation method is relatively simple, which can save the user's editing time.
步骤104:基于所述目标文本和所述用户已编辑的游记信息,生成目标游记。Step 104: Generate a target travel note based on the target text and the travel note information edited by the user.
在获取到目标文本之后,可以结合目标文本和用户已编辑的游记信息(可以包括文本信息、图像信息等信息中的至少一种)生成目标游记,具体地,可以将目标文本添加于用户编辑的游记信息的对应位置,在游记编辑完 成之后,可以根据用户编辑的游记信息和目标文本生成目标游记。After the target text is obtained, the target travel notes can be generated by combining the target text and the user-edited travel note information (which may include at least one of text information, image information, etc.), specifically, the target text can be added to the user-edited The corresponding position of the travel note information, after the travel note editing is completed, the target travel note can be generated according to the travel note information edited by the user and the target text.
本申请实施例通过用户对目标对象文本的输入,即可显示对象描述文本信息,用户可以直接从对象描述文本信息选择所需文本生成游记,无需用户查阅相关资料或反复斟酌生成游记,从而可以极大地减少用户编辑游记的时间,提高了用户的使用体验。In the embodiment of the present application, the object description text information can be displayed through the user's input of the target object text, and the user can directly select the desired text from the object description text information to generate a travel note, without the need for the user to consult relevant information or repeatedly consider to generate a travel note, so that it can be extremely It greatly reduces the time for users to edit travel notes and improves the user experience.
本申请实施例提供的游记生成方法,通过在用户编辑游记的过程中,接收用户对目标对象文本的第一输入,响应于第一输入,显示目标对象文本对应的对象描述文本信息,获取用户从对象描述文本信息中选择的目标文本,基于目标文本和用户已编辑的游记信息,生成目标游记。本申请实施例通过用户对目标对象文本的输入,即可显示对象描述文本信息,用户可以直接从对象描述文本信息选择所需文本生成游记,无需用户查阅相关资料或反复斟酌生成游记,从而可以极大地减少用户编辑游记的时间,提高了用户的使用体验。The travel note generation method provided by the embodiment of the present application receives the user’s first input on the target object text during the process of editing the travel note by the user, and displays the object description text information corresponding to the target object text in response to the first input, and obtains the user’s information from the The object describes the target text selected in the text information, and generates the target travel note based on the target text and the travel note information edited by the user. In the embodiment of the present application, the object description text information can be displayed through the user's input of the target object text, and the user can directly select the desired text from the object description text information to generate a travel note, without the need for the user to consult relevant information or repeatedly consider to generate a travel note, so that it can be extremely It greatly reduces the time for users to edit travel notes and improves the user experience.
需要说明的是,本申请实施例提供的游记生成方法,执行主体可以为游记生成装置,或者该游记生成装置中的用于执行游记生成方法的控制模块。本申请实施例中以游记生成装置执行游记生成方法为例,说明本申请实施例提供的游记生成装置。It should be noted that, for the method for generating travel notes provided in the embodiment of the present application, the execution subject may be a device for generating travel notes, or a control module in the device for generating travel notes for executing the method for generating travel notes. In the embodiment of the present application, the travel note generating device provided in the embodiment of the present application is described by taking the travel note generating device executing the travel note generating method as an example.
参照图4,示出了本申请实施例提供的一种游记生成装置的结构示意图,如图4所示,该游记生成装置400具体可以包括如下模块:Referring to FIG. 4 , it shows a schematic structural diagram of a device for generating travel notes provided by an embodiment of the present application. As shown in FIG. 4 , the device for generating travel notes 400 may specifically include the following modules:
第一输入接收模块410,用于在用户编辑游记的过程中,接收所述用户对目标对象文本的第一输入;The first input receiving module 410 is configured to receive the user's first input to the target object text during the process of editing the travel note by the user;
对象描述文本显示模块420,用于响应于所述第一输入,显示所述目标对象文本对应的对象描述文本信息;An object description text display module 420, configured to display object description text information corresponding to the target object text in response to the first input;
目标文本获取模块430,用于获取所述用户从所述对象描述文本信息中选择的目标文本;A target text acquisition module 430, configured to acquire the target text selected by the user from the object description text information;
目标游记生成模块440,用于基于所述目标文本和所述用户已编辑的游记信息,生成目标游记。The target travel notes generating module 440 is configured to generate target travel notes based on the target text and the travel note information edited by the user.
可选地,所述第一输入接收模块410包括:Optionally, the first input receiving module 410 includes:
用户位置获取单元,用于在用户编辑游记的过程中,获取所述用户的当前位置信息;A user location acquisition unit, configured to acquire the current location information of the user during the process of editing the travel note by the user;
第一对象文本显示单元,用于获取位于所述当前位置信息的预设距离范围内的至少一个对象,并将所述至少一个对象的对象文本显示于文本编辑框内;A first object text display unit, configured to acquire at least one object located within a preset distance range of the current location information, and display the object text of the at least one object in a text edit box;
第一子输入接收单元,用于接收对所述对象文本中的目标对象文本的第一子输入。The first sub-input receiving unit is configured to receive a first sub-input for the target object text in the object text.
可选地,所述第一输入接收模块410包括:Optionally, the first input receiving module 410 includes:
目标图像获取单元,用于在用户编辑游记的过程中,获取所述用户添加的目标图像;A target image acquisition unit, configured to acquire the target image added by the user during the process of editing the travel note by the user;
第二对象文本显示单元,用于对所述目标图像进行图像识别处理,确定并显示所述目标图像中的至少一个对象文本;A second object text display unit, configured to perform image recognition processing on the target image, determine and display at least one object text in the target image;
第二子输入接收单元,用于接收所述用户对所述至少一个对象文本中的目标对象文本的第二子输入。The second sub-input receiving unit is configured to receive the user's second sub-input on the target object text in the at least one object text.
可选地,所述第一输入接收模块410包括:Optionally, the first input receiving module 410 includes:
第三子输入接收单元,用于在用户编辑游记的过程中,接收所述用户对已编辑文本中的目标对象文本的第三子输入。The third sub-input receiving unit is configured to receive a third sub-input by the user on the target object text in the edited text during the process of editing the travel note by the user.
可选地,所述目标文本获取模块430包括:Optionally, the target text acquisition module 430 includes:
第二输入接收单元,用于接收所述用户对所述对象描述文本信息的第二输入;a second input receiving unit, configured to receive a second input from the user on the object description text information;
文本起始位置确定单元,用于响应于所述第二输入,确定所述对象描述文本信息的文本起始位置;a text start position determining unit, configured to determine a text start position of the object description text information in response to the second input;
第三输入接收单元,用于接收所述用户对所述对象描述文本信息的第三输入;a third input receiving unit, configured to receive a third input from the user on the object description text information;
文本结束位置确定单元,用于响应于所述第三输入,确定所述对象描述文本信息的文本结束位置;a text end position determining unit, configured to determine the text end position of the object description text information in response to the third input;
目标文本确定单元,用于根据所述文本起始位置和所述文本结束位置,确定所述目标文本。A target text determining unit, configured to determine the target text according to the text start position and the text end position.
本申请实施例提供的游记生成装置,通过在用户编辑游记的过程中,接收用户对目标对象文本的第一输入,响应于第一输入,显示目标对象文本对应的对象描述文本信息,获取用户从对象描述文本信息中选择的目标文本,基于目标文本和用户已编辑的游记信息,生成目标游记。本申请实施例通过 用户对目标对象文本的输入,即可显示对象描述文本信息,用户可以直接从对象描述文本信息选择所需文本生成游记,无需用户查阅相关资料或反复斟酌生成游记,从而可以极大地减少用户编辑游记的时间,提高了用户的使用体验。The travel note generation device provided by the embodiment of the present application receives the user's first input on the target object text during the process of the user editing the travel note, and displays the object description text information corresponding to the target object text in response to the first input, and obtains the user's information from the The object describes the target text selected in the text information, and generates the target travel note based on the target text and the travel note information edited by the user. In the embodiment of the present application, the object description text information can be displayed through the user's input of the target object text, and the user can directly select the desired text from the object description text information to generate a travel note, without the need for the user to consult relevant information or repeatedly consider to generate a travel note, so that it can be extremely It greatly reduces the time for users to edit travel notes and improves the user experience.
本申请实施例中的游记生成装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The device for generating travel notes in the embodiment of the present application may be a device, or a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的游记生成装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The device for generating travel notes in the embodiment of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
本申请实施例提供的游记生成装置能够实现图1的方法实施例实现的各个过程,为避免重复,这里不再赘述。The device for generating travel notes provided in the embodiment of the present application can realize various processes realized in the method embodiment in FIG. 1 , and details are not repeated here to avoid repetition.
可选地,如图5所示,本申请实施例还提供一种电子设备M00,包括处理器501,存储器502,存储在存储器502上并可在所述处理器501上运行的程序或指令,该程序或指令被处理器501执行时实现上述游记生成方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 5 , the embodiment of the present application further provides an electronic device M00, including a processor 501, a memory 502, and programs or instructions stored in the memory 502 and operable on the processor 501, When the program or instruction is executed by the processor 501, each process of the above-mentioned travel note generation method embodiment can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图6为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器605、显示单元606、用户输入单元607、接口单元608、存储器609、以及处理器610等部件。The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610, etc. part.
本领域技术人员可以理解,电子设备600还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示 出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 600 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 610 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions. The structure of the electronic device shown in FIG. 6 does not constitute a limitation to the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
其中,用户输入单元607,用于在用户编辑游记的过程中,接收所述用户对目标对象文本的第一输入;Wherein, the user input unit 607 is configured to receive the user's first input of the target object text during the process of editing the travel note by the user;
显示单元606,用于响应于所述第一输入,显示所述目标对象文本对应的对象描述文本信息;A display unit 606, configured to display object description text information corresponding to the target object text in response to the first input;
处理器610,用于获取所述用户从所述对象描述文本信息中选择的目标文本;基于所述目标文本和所述用户已编辑的游记信息,生成目标游记。The processor 610 is configured to acquire target text selected by the user from the object description text information; and generate target travel notes based on the target text and travel note information edited by the user.
本申请实施例通过用户对目标对象文本的输入,即可显示对象描述文本信息,用户可以直接从对象描述文本信息选择所需文本生成游记,无需用户查阅相关资料或反复斟酌生成游记,从而可以极大地减少用户编辑游记的时间,提高了用户的使用体验。In the embodiment of the present application, the object description text information can be displayed through the user's input of the target object text, and the user can directly select the desired text from the object description text information to generate a travel note, without the need for the user to consult relevant information or repeatedly consider to generate a travel note, so that it can be extremely It greatly reduces the time for users to edit travel notes and improves the user experience.
可选地,处理器610,还用于在用户编辑游记的过程中,获取所述用户的当前位置信息;获取位于所述当前位置信息的预设距离范围内的至少一个对象,并将所述至少一个对象的对象文本显示于文本编辑框内;Optionally, the processor 610 is further configured to acquire the current location information of the user during the process of the user editing the travel note; acquire at least one object within a preset distance range of the current location information, and store the The object text of at least one object is displayed in the text edit box;
用户输入单元607,还用于接收所述用户对所述对象文本中的目标对象文本的第一子输入。The user input unit 607 is further configured to receive the user's first sub-input on the target object text in the object text.
可选地,处理器610,还用于在用户编辑游记的过程中,获取所述用户添加的目标图像;对所述目标图像进行图像识别处理,确定并显示所述目标图像中的至少一个对象文本;Optionally, the processor 610 is further configured to acquire a target image added by the user during the process of editing the travel note by the user; perform image recognition processing on the target image, determine and display at least one object in the target image text;
用户输入单元607,还用于接收所述用户对所述至少一个对象文本中的目标对象文本的第二子输入。The user input unit 607 is further configured to receive a second sub-input from the user on the target object text in the at least one object text.
可选地,用户输入单元607,还用于在用户编辑游记的过程中,接收所述用户对已编辑文本中的目标对象文本的第三子输入。Optionally, the user input unit 607 is further configured to receive a third sub-input of the target object text in the edited text by the user during the process of editing the travel note by the user.
可选地,用户输入单元607,还用于接收所述用户对所述对象描述文本信息的第二输入;Optionally, the user input unit 607 is further configured to receive a second input from the user on the object description text information;
处理器610,还用于响应于所述第二输入,确定所述对象描述文本信息的文本起始位置;The processor 610 is further configured to determine a text start position of the object description text information in response to the second input;
接收所述用户对所述对象描述文本信息的第三输入;receiving a third input by the user of the object description text information;
用户输入单元607,还用于响应于所述第三输入,确定所述对象描述文 本信息的文本结束位置;The user input unit 607 is also used to determine the text end position of the object description text information in response to the third input;
处理器610,还用于根据所述文本起始位置和所述文本结束位置,确定所述目标文本。The processor 610 is further configured to determine the target text according to the text start position and the text end position.
本申请实施例通过结合多种方式获取目标对象文本对应的文本并添加于用户编辑的文本信息中,可以极大地满足用户的需求,提高用户编辑游记的效率。In this embodiment of the present application, the text corresponding to the target object text is obtained by combining multiple methods and added to the text information edited by the user, which can greatly meet the user's needs and improve the efficiency of the user's travel notes editing.
应理解的是,本申请实施例中,输入单元604可以包括图形处理器(Graphics Processing Unit,GPU)6041和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元606可包括显示面板6061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板6061。用户输入单元607包括触控面板6071以及其他输入设备6072。触控面板6071,也称为触摸屏。触控面板6071可包括触摸检测装置和触摸控制器两个部分。其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器609可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器610可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。It should be understood that, in the embodiment of the present application, the input unit 604 may include a graphics processor (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processor 6041 is used for the image capture device ( Such as the image data of the still picture or video obtained by the camera) for processing. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 607 includes a touch panel 6071 and other input devices 6072 . The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts, a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 609 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 610 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述游记生成方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above embodiment of the method for generating travel notes can be realized, and can achieve the same To avoid repetition, the technical effects will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述游记生成方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above-mentioned method for generating travel notes Each process can achieve the same technical effect, so in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.
本申请的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本申请实施例的计算处理设备中的一些或者全部部件的一些或者全部功能。本申请还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本申请的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present application may be realized in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the computing processing device according to the embodiments of the present application. The present application can also be implemented as an apparatus or apparatus program (eg, computer program and computer program product) for performing a part or all of the methods described herein. Such a program implementing the present application may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
例如,图7示出了可以实现根据本申请的方法的计算处理设备。该计算处理设备传统上包括处理器710和以存储器720形式的计算机程序产品或者计算机可读介质。存储器720可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器720具有用于执行上述方法中的任何方法步骤的程序代码731的存储空间730。例如,用于程序代码的存储空间730可以包括分别用于实现上面的方法中的各种步骤的各个程序代码731。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图8所述的便携式或者固定存储单元。该存储单元可以具有与图7的计算处理设备中的存储器720类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码731',即可以由例如诸如710之类的处理器读取的 代码,这些代码当由计算处理设备运行时,导致该计算处理设备执行上面所描述的方法中的各个步骤。For example, FIG. 7 shows a computing processing device that can implement methods according to the present application. The computing processing device conventionally includes a processor 710 and a computer program product or computer readable medium in the form of memory 720 . Memory 720 may be electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. The memory 720 has a storage space 730 for program code 731 for performing any method step in the method described above. For example, the storage space 730 for program codes may include respective program codes 731 for respectively implementing various steps in the above methods. These program codes can be read from or written into one or more computer program products. These computer program products comprise program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG. 8 . The storage unit may have storage segments, storage spaces, etc. arranged similarly to the memory 720 in the computing processing device of FIG. 7 . The program code can eg be compressed in a suitable form. Typically, the memory unit includes computer readable code 731', i.e. code readable by, for example, a processor such as 710, which code, when executed by a computing processing device, causes the computing processing device to perform the above-described method. each step.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本申请的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。Reference herein to "one embodiment," "an embodiment," or "one or more embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Additionally, please note that examples of the word "in one embodiment" herein do not necessarily all refer to the same embodiment.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本申请的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本申请可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims (14)

  1. 一种游记生成方法,包括:A method for generating travel notes, comprising:
    在用户编辑游记的过程中,接收所述用户对目标对象文本的第一输入;In the process of editing travel notes by the user, receiving the user's first input of the target object text;
    响应于所述第一输入,显示所述目标对象文本对应的对象描述文本信息;In response to the first input, displaying object description text information corresponding to the target object text;
    获取所述用户从所述对象描述文本信息中选择的目标文本;Acquiring the target text selected by the user from the object description text information;
    基于所述目标文本和所述用户已编辑的游记信息,生成目标游记。A target travel note is generated based on the target text and the travel note information edited by the user.
  2. 根据权利要求1所述的方法,其中,所述在用户编辑游记的过程中,接收所述用户对目标对象文本的第一输入,包括:The method according to claim 1, wherein, in the process of editing the travel note by the user, receiving the user's first input of the target object text includes:
    在用户编辑游记的过程中,获取所述用户的当前位置信息;In the process of editing travel notes by the user, obtain the current location information of the user;
    获取位于所述当前位置信息的预设距离范围内的至少一个对象,并将所述至少一个对象的对象文本显示于文本编辑框内;Obtaining at least one object located within a preset distance range of the current location information, and displaying object text of the at least one object in a text edit box;
    接收对所述对象文本中的目标对象文本的第一子输入。A first sub-input for a target object text in the object text is received.
  3. 根据权利要求1所述的方法,其中,所述在用户编辑游记的过程中,接收所述用户对目标对象文本的第一输入,包括:The method according to claim 1, wherein, in the process of editing the travel note by the user, receiving the user's first input of the target object text includes:
    在用户编辑游记的过程中,获取所述用户添加的目标图像;In the process of editing travel notes by the user, acquiring the target image added by the user;
    对所述目标图像进行图像识别处理,确定并显示所述目标图像中的至少一个对象文本;performing image recognition processing on the target image, determining and displaying at least one object text in the target image;
    接收所述用户对所述至少一个对象文本中的目标对象文本的第二子输入。receiving a second sub-input from the user on target object text in the at least one object text.
  4. 根据权利要求1所述的方法,其中,所述在用户编辑游记的过程中,接收所述用户对目标对象文本的第一输入,包括:The method according to claim 1, wherein, in the process of editing the travel note by the user, receiving the user's first input of the target object text includes:
    在用户编辑游记的过程中,接收所述用户对已编辑文本中的目标对象文本的第三子输入。During the process of editing the travel note by the user, a third sub-input of the target object text in the edited text by the user is received.
  5. 根据权利要求1所述的方法,其中,所述获取所述用户从所述对象描述文本中选择的目标文本,包括:The method according to claim 1, wherein said obtaining the target text selected by the user from the object description text comprises:
    接收所述用户对所述对象描述文本信息的第二输入;receiving a second input by the user of the object description text information;
    响应于所述第二输入,确定所述对象描述文本信息的文本起始位 置;Responsive to the second input, determining a text start position of the object description text information;
    接收所述用户对所述对象描述文本信息的第三输入;receiving a third input by the user of the object description text information;
    响应于所述第三输入,确定所述对象描述文本信息的文本结束位置;determining a text end position of the object description text information in response to the third input;
    根据所述文本起始位置和所述文本结束位置,确定所述目标文本。The target text is determined according to the text start position and the text end position.
  6. 一种游记生成装置,包括:A device for generating travel notes, comprising:
    第一输入接收模块,用于在用户编辑游记的过程中,接收所述用户对目标对象文本的第一输入;The first input receiving module is used to receive the user's first input to the target object text during the process of editing the travel note by the user;
    对象描述文本显示模块,用于响应于所述第一输入,显示所述目标对象文本对应的对象描述文本信息;An object description text display module, configured to display object description text information corresponding to the target object text in response to the first input;
    目标文本获取模块,用于获取所述用户从所述对象描述文本信息中选择的目标文本;a target text acquisition module, configured to acquire the target text selected by the user from the object description text information;
    目标游记生成模块,用于基于所述目标文本和所述用户已编辑的游记信息,生成目标游记。A target travel note generating module, configured to generate a target travel note based on the target text and the travel note information edited by the user.
  7. 根据权利要求6所述的装置,其中,所述第一输入接收模块包括:The device according to claim 6, wherein the first input receiving module comprises:
    用户位置获取单元,用于在用户编辑游记的过程中,获取所述用户的当前位置信息;A user location acquisition unit, configured to acquire the current location information of the user during the process of editing the travel note by the user;
    第一对象文本显示单元,用于获取位于所述当前位置信息的预设距离范围内的至少一个对象,并将所述至少一个对象的对象文本显示于文本编辑框内;A first object text display unit, configured to acquire at least one object located within a preset distance range of the current location information, and display the object text of the at least one object in a text edit box;
    第一子输入接收单元,用于接收对所述对象文本中的目标对象文本的第一子输入。The first sub-input receiving unit is configured to receive a first sub-input for the target object text in the object text.
  8. 根据权利要求6所述的装置,其中,所述第一输入接收模块包括:The device according to claim 6, wherein the first input receiving module comprises:
    目标图像获取单元,用于在用户编辑游记的过程中,获取所述用户添加的目标图像;A target image acquisition unit, configured to acquire the target image added by the user during the process of editing the travel note by the user;
    第二对象文本显示单元,用于对所述目标图像进行图像识别处理,确定并显示所述目标图像中的至少一个对象文本;A second object text display unit, configured to perform image recognition processing on the target image, determine and display at least one object text in the target image;
    第二子输入接收单元,用于接收所述用户对所述至少一个对象文 本中的目标对象文本的第二子输入。The second sub-input receiving unit is configured to receive the user's second sub-input on the target object text in the at least one object text.
  9. 根据权利要求6所述的装置,其中,所述第一输入接收模块包括:The device according to claim 6, wherein the first input receiving module comprises:
    第三子输入接收单元,用于在用户编辑游记的过程中,接收所述用户对已编辑文本中的目标对象文本的第三子输入。The third sub-input receiving unit is configured to receive a third sub-input by the user on the target object text in the edited text during the process of editing the travel note by the user.
  10. 根据权利要求6所述的装置,其中,所述目标文本获取模块包括:The device according to claim 6, wherein the target text acquisition module comprises:
    第二输入接收单元,用于接收所述用户对所述对象描述文本的第二输入;a second input receiving unit, configured to receive a second input from the user on the object description text;
    文本起始位置确定单元,用于响应于所述第二输入,确定所述对象描述文本信息的文本起始位置;a text start position determining unit, configured to determine a text start position of the object description text information in response to the second input;
    第三输入接收单元,用于接收所述用户对所述对象描述文本信息的第三输入;a third input receiving unit, configured to receive a third input from the user on the object description text information;
    文本结束位置确定单元,用于响应于所述第三输入,确定所述对象描述文本的文本结束位置;a text end position determining unit, configured to determine a text end position of the object description text in response to the third input;
    目标文本确定单元,用于根据所述文本起始位置和所述文本结束位置,确定所述目标文本。A target text determining unit, configured to determine the target text according to the text start position and the text end position.
  11. 一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现权利要求1-5中任一项所述的游记生成方法的步骤。An electronic device comprising a processor, a memory, and a program or instruction stored on the memory and operable on the processor, when the program or instruction is executed by the processor, claim 1 is realized -The steps of any one of the travel note generating methods in 5.
  12. 一种计算处理设备,包括:A computing processing device comprising:
    存储器,其中存储有计算机可读代码;a memory having computer readable code stored therein;
    一个或多个处理器,当所述计算机可读代码被所述一个或多个处理器执行时,所述计算处理设备执行如权利要求1-5中任一项所述的游记生成方法。One or more processors, when the computer-readable code is executed by the one or more processors, the computing processing device executes the travel note generating method according to any one of claims 1-5.
  13. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算处理设备上运行时,导致所述计算处理设备执行根据权利要求1-5中任一项所述的游记生成方法。A computer program, comprising computer-readable codes, when the computer-readable codes are run on a computing processing device, causing the computing processing device to execute the travel note generating method according to any one of claims 1-5.
  14. 一种计算机可读介质,其中存储了如权利要求13所述的计算机程序。A computer readable medium in which the computer program according to claim 13 is stored.
PCT/CN2022/096767 2021-06-07 2022-06-02 Travel note generation method and apparatus WO2022257844A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110634571.0A CN113268961A (en) 2021-06-07 2021-06-07 Travel note generation method and device
CN202110634571.0 2021-06-07

Publications (1)

Publication Number Publication Date
WO2022257844A1 true WO2022257844A1 (en) 2022-12-15

Family

ID=77234441

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/096767 WO2022257844A1 (en) 2021-06-07 2022-06-02 Travel note generation method and apparatus

Country Status (2)

Country Link
CN (1) CN113268961A (en)
WO (1) WO2022257844A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113268961A (en) * 2021-06-07 2021-08-17 维沃移动通信(杭州)有限公司 Travel note generation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246710A (en) * 2013-04-22 2013-08-14 张经纶 Method and device for automatically generating multimedia travel notes
CN109815462A (en) * 2018-12-10 2019-05-28 维沃移动通信有限公司 A kind of document creation method and terminal device
US20200201877A1 (en) * 2019-06-21 2020-06-25 Alibaba Group Holding Limited Geographic location-based multimedia information display
CN113268961A (en) * 2021-06-07 2021-08-17 维沃移动通信(杭州)有限公司 Travel note generation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246710A (en) * 2013-04-22 2013-08-14 张经纶 Method and device for automatically generating multimedia travel notes
CN109815462A (en) * 2018-12-10 2019-05-28 维沃移动通信有限公司 A kind of document creation method and terminal device
US20200201877A1 (en) * 2019-06-21 2020-06-25 Alibaba Group Holding Limited Geographic location-based multimedia information display
CN113268961A (en) * 2021-06-07 2021-08-17 维沃移动通信(杭州)有限公司 Travel note generation method and device

Also Published As

Publication number Publication date
CN113268961A (en) 2021-08-17

Similar Documents

Publication Publication Date Title
JP6868659B2 (en) Image display method and electronic device
US20230137850A1 (en) Method, apparatus, device and medium for posting a video or image
TWI592021B (en) Method, device, and terminal for generating video
EP3528140A1 (en) Picture processing method, device, electronic device and graphic user interface
CN109597900A (en) The management of local and remote media item
US20240061560A1 (en) Audio sharing method and apparatus, device and medium
CN104166851A (en) Multimedia interactive learning system and method for paper textbooks
CN112181576A (en) Form processing method, device, terminal and storage medium
WO2023061414A1 (en) File generation method and apparatus, and electronic device
US20240119082A1 (en) Method, apparatus, device, readable storage medium and product for media content processing
KR20160083759A (en) Method for providing an annotation and apparatus thereof
CN111970571A (en) Video production method, device, equipment and storage medium
CN112632445A (en) Webpage playing method, device, equipment and storage medium
WO2022257844A1 (en) Travel note generation method and apparatus
WO2022111458A1 (en) Image capture method and apparatus, electronic device, and storage medium
WO2022068721A1 (en) Screen capture method and apparatus, and electronic device
CN112887794B (en) Video editing method and device
CN112711368B (en) Operation guidance method and device and electronic equipment
WO2023155858A1 (en) Document editing method and apparatus
WO2022228433A1 (en) Information processing method and apparatus, and electronic device
KR102102959B1 (en) User device and operating method thereof
CN115037874A (en) Photographing method and device and electronic equipment
CN113362426A (en) Image editing method and image editing device
KR102109915B1 (en) User device and operating method thereof
CN112862735A (en) Image processing method and system, electronic device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22819442

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE