Information interaction method, device and electronic equipment
By obtaining and analyzing the orientation and category information in the input instructions, identifying the object and querying the database, it solves the problem of being unable to obtain information when the name of the unknown object is unknown, and realizes the expansion of information interaction functions and the improvement of user experience.
Patent Information
- Application Number
- CN202010519088.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-09
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In some scenarios, when you pass an object but do not know its name, you cannot use the information interaction function to obtain relevant information about the object. For example, if you do not know the name of a hotel while driving, you cannot obtain hotel information.
By obtaining the intent information in the input command, including the orientation information and category of the object, the object's image information is queried and recognized, the object's attribute information is obtained, and then the database is queried based on these attribute information to obtain the object's answer information.
Even if the name of the object is unknown, the information interaction function can be realized, which improves the user experience and expands the application scenarios of voice interaction. Users can obtain relevant information through the location and category of the object.
Smart Images

Figure CN113779184B_ABST
Abstract
Description
Technical Field
[0001] One or more embodiments of the present specification relate to the field of information processing technology, and in particular, to an information interaction method, device, and electronic device. Background Art
[0002] At present, some terminal devices are able to realize information interaction functions. The input commands generally include the names of objects. For example, the input voice commands include road names, place names, etc. According to the names of the objects contained in the voice, a predetermined third-party database or system is queried through the network to obtain and broadcast the query results.
[0003] However, in some scenarios, when you pass by an object but do not know the name of the object, the information interaction function cannot be realized, and the relevant information of the object cannot be obtained by using the information interaction function. For example, while driving, there is a hotel in front of you, but you do not know the name of the hotel and cannot use the voice interaction function of the in-vehicle voice system to obtain relevant information about the hotel. Summary of the invention
[0004] In view of this, an object of one or more embodiments of the present specification is to provide an information interaction method, device, and electronic device, which can implement information interaction functions related to an object even if the name of the object is unknown.
[0005] Based on the above purpose, one or more embodiments of this specification provide an information interaction method, including:
[0006] Get input instructions;
[0007] Determining the intention information contained in the instruction, the intention information including the orientation information of the object, the object category and the object question;
[0008] According to the location information and the object category, query the answer information of the object question;
[0009] The answer information is output.
[0010] Optionally, querying the answer information of the object question according to the position information and the object category includes:
[0011] Acquire image information of the object according to the orientation information and the object category;
[0012] Performing recognition processing on the image information to obtain one or more attribute information of the object;
[0013] The database is queried according to one or more attribute information of the object to obtain answer information of the object.
[0014] Optionally, before querying the answer information of the object question, the method further includes:
[0015] Obtaining location information of the object;
[0016] The querying of a database according to one or more attribute information of the object comprises:
[0017] A database is queried according to the location information of the object.
[0018] Optionally, the method further includes:
[0019] Querying a database according to one or more attribute information of the object to obtain other attribute information of the object;
[0020] A knowledge graph of the object is constructed based on the attribute information of the object.
[0021] Optionally, the method further includes:
[0022] Performing recognition processing on the image information to obtain one or more attribute information of other one or more objects in the image information;
[0023] According to one or more attribute information of the other one or more objects, a knowledge graph of the other one or more objects is constructed.
[0024] Optionally, the object category is a vehicle, and the attribute information includes vehicle appearance attribute information;
[0025] The querying of a database according to one or more attribute information of the object comprises:
[0026] Querying a database based on vehicle appearance attribute information of the vehicle to determine answer information or other attribute information of the vehicle; the vehicle appearance attribute information includes at least one of vehicle size, vehicle outline, vehicle color, and vehicle identification;
[0027] or,
[0028] The object category is a building, and the attribute information includes building appearance attribute information;
[0029] The querying of a database according to one or more attribute information of the object comprises:
[0030] A database is queried according to the building appearance attribute information of the building to determine the answer information or other attribute information of the building; the building appearance attribute information includes at least one of the building size, building outline, building color, and building logo.
[0031] Optionally, the orientation information includes the front, the left, and the right, and the objects include all objects within the field of view in the orientation information;
[0032] The acquiring the image information of the object comprises:
[0033] Obtain the front image information, the left image information and the right image information;
[0034] The identifying and processing the image information to obtain one or more attribute information of the object includes:
[0035] Performing recognition processing on the front image information to obtain the front object and the first position parameter of the front object in the first coordinate system;
[0036] Performing recognition processing on the left image information to obtain the left object and the second position parameter of the left object in the second coordinate system;
[0037] Performing recognition processing on the right image information to obtain the object on the right and a third position parameter of the object on the right in a third coordinate system;
[0038] The first position parameter, the second position parameter and the third position parameter are processed as position parameters in the same coordinate system.
[0039] Optionally, processing the first position parameter, the second position parameter, and the third position parameter as position parameters in the same coordinate system includes:
[0040] Convert the second position parameter into a fourth position parameter in the first coordinate system;
[0041] Converting the third position parameter into a fifth position parameter in the first coordinate system;
[0042] The second coordinate system coincides with the first coordinate system after being rotated by a first angle in a first direction, and the third coordinate system coincides with the first coordinate system after being rotated by a second angle in the first direction.
[0043] Optionally, before querying the database according to one or more attribute information of the object, the method further includes:
[0044] Get current location information;
[0045] One or more attribute information of the object is updated according to the current location information.
[0046] Another aspect of the present specification also provides an information interaction device, including:
[0047] An instruction acquisition module, used to acquire input instructions;
[0048] An instruction analysis module determines the intention information contained in the instruction, wherein the intention information includes the orientation information of the object, the object category and the object problem;
[0049] An answer determination module, used to query the answer information of the object question according to the orientation information and the object category;
[0050] An output module is used to output the answer information.
[0051] Optionally, the answer determination module includes:
[0052] An image acquisition submodule, used to acquire image information of the object according to the orientation information and the object category;
[0053] An image recognition submodule, used to perform recognition processing on the image information to obtain one or more attribute information of the object;
[0054] The information acquisition submodule is used to query the database according to one or more attribute information of the object to obtain answer information of the object.
[0055] Optionally, the device further comprises:
[0056] An object position acquisition module, used to acquire the position information of the object;
[0057] The information acquisition submodule is used to query the database according to the location information of the object.
[0058] Optionally, the device further comprises:
[0059] The information acquisition submodule is used to query the database according to one or more attribute information of the object to obtain other attribute information of the object;
[0060] The graph construction module is used to construct a knowledge graph of the object based on the attribute information of the object.
[0061] Optionally, the device further comprises:
[0062] The image recognition submodule is used to perform recognition processing on the image information to obtain one or more attribute information of one or more other objects in the image information;
[0063] A graph construction module is used to construct a knowledge graph of the one or more other objects based on one or more attribute information of the one or more other objects.
[0064] This specification also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the information interaction method is implemented when the processor executes the program.
[0065] From the above description, it can be seen that the information interaction method, device and electronic device provided in one or more embodiments of this specification obtain the input command, determine the intention information contained in the command, and the intention information includes the position information of the object, the object category and the object question, query the answer information of the object question according to the position information and the object category, and output the answer information. In this way, even if the name of the object is not known, the information interaction function of the object can be realized, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] In order to more clearly illustrate one or more embodiments of the present specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only one or more embodiments of the present specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0067] Figure 1 A schematic diagram of a method flow of one or more embodiments of this specification;
[0068] Figure 2 A flowchart of a method for querying answer information according to one or more embodiments of this specification;
[0069] Figure 3 A schematic diagram of the installation position of an image acquisition device according to one or more embodiments of this specification;
[0070] Figure 4 A block diagram of the device structure of one or more embodiments of this specification;
[0071] Figure 5 A structural block diagram of an electronic device according to one or more embodiments of the present specification. DETAILED DESCRIPTION
[0072] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0073] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in one or more embodiments of this specification should be understood by people with ordinary skills in the field to which this disclosure belongs. The "first", "second" and similar words used in one or more embodiments of this specification do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0074] To achieve the above purpose, the embodiments of this specification provide an information interaction method, device and electronic device, which can be applied to terminal devices with communication functions, such as vehicle-mounted devices, mobile phones, tablet computers and other terminal devices with information interaction functions. The terminal device can be installed with a voice communication module, or an application with a voice communication function, and is configured with a sound collection unit (such as a microphone), and / or the terminal device is configured with information input modules such as a text recognition module, a gesture recognition module, and an operation module, and is also configured with a sound playback unit (such as a receiver, a speaker, etc.), a display unit and other information output modules, so that the terminal device has information interaction functions. The specific form of the terminal device and the configured functional modules are not limited.
[0075] The following first describes in detail the information interaction method provided in the embodiments of this specification.
[0076] Figure 1 The flowchart of the information interaction method of one or more embodiments of this specification is shown in the figure. As shown in the figure, the information interaction method provided by this specification includes:
[0077] S101: Obtain input instructions;
[0078] In this embodiment, the information input module can be used to collect instructions issued by the user, and then obtain instructions. The types of instructions include but are not limited to voice instructions, touch operation instructions, gesture instructions, etc., which are not specifically limited in this embodiment.
[0079] S102: Determine the intention information contained in the instruction, where the intention information includes the orientation information of the object, the object category and the object problem;
[0080] In this embodiment, the acquired instruction includes the intention information of the object that the user wants to know, and the intention information includes the relevant information of the object that the user is interested in and the information that the user wants to know about the object, such as the orientation information of the object, the object category and the object question. In some methods, the orientation information can be the orientation information relative to the user's current location, for example, the orientation information is the orientation of the objects in front, on the left, on the right, etc. relative to the user's current location; if the user is in a car, the orientation information can be the orientation information relative to the vehicle. The object category can be a general term for similar things, such as hotels, vehicles, high-rise buildings, arch bridges, scenery, etc.
[0081] In one embodiment, a voice acquisition unit may be used to acquire voice commands issued by a user, and then acquire voice commands, wherein the voice commands include intention information of the object to be acquired. The acquired voice commands are analyzed to determine the intention information included in the voice commands; wherein the intention information includes the orientation information of the object, the object category, and the object question.
[0082] For example, while the vehicle is driving, a shop appears in front, and the driver issues a voice command "What is the shop in front?", where the object is the shop in front of the vehicle, the direction information is "front", the object category is "shop", and the object question is "what is it?"; for another example, while the vehicle is driving, if the driver wants to know the basic information of the vehicle in front, the driver can issue a voice command "What brand is the vehicle in front?", where the object is the vehicle in front of the vehicle, the direction information is "front", the object category is "vehicle", and the object question is "what brand is it?".
[0083] In another implementation, the gesture recognition module can be used to identify the gesture performed by the user to determine the gesture instruction corresponding to the gesture, wherein the gesture instruction contains the intention information of the object to be known. In some scenarios, for people with language barriers or users who are unable to speak in certain scenarios, the intention information can be expressed through gestures, and the intention information contains relevant information such as the orientation information of the object to be known, the object category, and the object problem.
[0084] S103: querying answer information of the object question according to the location information and the object category;
[0085] S104: Output answer information.
[0086] In this embodiment, according to the orientation information and object category of the object contained in the instruction, the answer information of the object question is queried and determined, and the answer information is output, thereby realizing the information interaction function of the object.
[0087] In some methods, according to the position information and the object category of the object, a database, a knowledge base, a knowledge graph or other information base storing information related to the object is queried to obtain answer information about the object question. The queryable information base may be a pre-built information base including the object and its related information, or may be an information base such as a third-party database that can provide information related to the object, which is not specifically limited in this embodiment.
[0088] In this embodiment, the input instruction is obtained, the intention information contained in the instruction is determined, and the intention information includes the position information of the object, the object category and the object question. According to the position information and the object category, the answer information of the object question is queried, and the answer information is output. In this way, when the user issues an instruction containing an object, the position information, the object category and the object question of the object can be analyzed from the instruction, and the answer information of the object question can be queried according to the position information and the object category. Then, the answer information obtained by the query is output to the user, thereby realizing the information interaction function of the object. Even if the user does not know the name of the object, the relevant information of the object can be obtained, thereby improving the user experience.
[0089] like Figure 2 As shown, in some embodiments, in step S103, querying the answer information of the object question according to the orientation information and the object category includes:
[0090] S201: Acquire image information of the object according to the orientation information and the object category;
[0091] In this embodiment, the terminal device is equipped with an image acquisition device, which can be used to acquire image information of the object. After acquiring the instruction input by the user, the instruction is analyzed to obtain the orientation information, object category and object problem of the object contained in the instruction, and then, according to the orientation information and object category, the image information containing the object is acquired.
[0092] In some embodiments, the number of configured image acquisition devices can be one or multiple devices installed at different locations, and at least one image acquisition device can be used to acquire image information located at different locations. For example, a terminal device is configured with an image acquisition device, and the input command is analyzed to obtain the direction information of "front" and the object category of "shop". According to the direction information and the object category, the image information including the shop in front acquired by the image acquisition device is acquired; for another example, the terminal device is a vehicle-mounted device, and an image acquisition device is respectively installed at the front, left side, and right side of the vehicle. The input command is analyzed to obtain the direction information of "left side" and the object category of "vehicle". According to the direction information and the object category, the image information including the vehicle on the left acquired by the image acquisition device installed on the left side of the vehicle is acquired. The above is only an exemplary description, and the implementation method is not specifically limited.
[0093] S202: performing recognition processing on the image information to obtain one or more attribute information of the object;
[0094] In this embodiment, the acquired image information of the object is subjected to recognition processing to obtain one or more attribute information of the object. Optionally, the one or more attribute information of the object includes, but is not limited to, appearance attribute information, position parameters, and other information that can be obtained through image processing; in some embodiments, the appearance attribute information may be parameters such as size (e.g., length, width, maximum radius, etc.), contour (e.g., contour trajectory), color (e.g., primary color value, color composition, etc.), and logo, which are not specifically limited in this embodiment.
[0095] S203: Query the database according to one or more attribute information of the object to obtain answer information of the object.
[0096] In this embodiment, the database stores relevant information of the object, and the database is queried according to one or more attribute information of the object to obtain the answer information of the object. After performing image recognition processing and obtaining one or more attribute information of the object, the database is queried according to one or more attribute information of the object to obtain the answer information of the object.
[0097] In this embodiment, after analyzing the acquired instructions, the orientation information, object category, and object question of the object are obtained. Based on the orientation information and object category, image information including the object is obtained, and the image information is recognized and processed to obtain one or more attribute information of the object. Then, the database is queried based on the one or more attribute information to obtain the answer information corresponding to the object question. In this way, for an object of interest, even if the name of the object is unknown, the orientation and category of the object relative to the user's location can be used to obtain the attribute information of the object through image recognition, and then the database is queried based on the attribute information of the object to obtain the answer information of the object, thereby expanding the application scenarios of the voice interaction function and improving the user experience.
[0098] For example, the direction information included in the instruction is "front", the object category is "vehicle", and the object question is "what brand is it?" After obtaining image information including the vehicle in front, the image information is recognized and processed to obtain attribute information such as the color of the vehicle in front is red, the contour trajectory, size, license plate number is X, and the vehicle model is a small car. According to one or more of the attribute information such as the color, contour, size, license plate number, etc. of the small car, the preset vehicle database is queried to obtain the brand information of the vehicle.
[0099] For another example, the direction information included in the instruction is "left side", the object category is "shopping mall", and the object question is "What are the business hours?" After obtaining image information including the shopping mall on the left, the image information is recognized and processed to obtain attribute information such as the color, contour trajectory, size, and shopping mall name of the shopping mall on the left. Based on one or more of the attribute information such as the color, contour trajectory, size, and shopping mall name of the shopping mall, the preset building database is queried to obtain the business hours of the shopping mall.
[0100] In some embodiments, before the answer information of the query object question, the following is also included:
[0101] Obtaining location information of the object;
[0102] The querying of a database according to one or more attribute information of the object comprises:
[0103] A database is queried according to the location information of the object.
[0104] In this embodiment, the database can be queried based on the location information of the object to obtain the answer information. Optionally, the location information of the object can be the coordinate information of the object or the information of the city or the area or the road, etc. In one application scenario, the terminal device is a vehicle-mounted device. After receiving the voice command "What is the configuration of the vehicle in front?", the coordinate information of the vehicle in front can be obtained through the vehicle-mounted system, and then the vehicle network database can be queried based on the coordinate information of the vehicle to obtain the performance configuration information of the vehicle.
[0105] In some embodiments, the information interaction method further includes:
[0106] Querying a database based on one or more attribute information of the object to obtain other attribute information of the object; and
[0107] Construct the object's knowledge graph based on the object's attribute information.
[0108] In this embodiment, after the image information is recognized and processed, after obtaining one or more attribute information of the object, the database can be queried according to the one or more attribute information of the object to obtain other attribute information of the object, and further according to the attribute information of the object, a knowledge graph of the object can be constructed. Among them, other attribute information is attribute information different from the answer information, so that not only the answer information of the object can be obtained, but also other attribute information about the object can be queried and obtained, and then the knowledge graph of the object can be constructed based on the acquired attribute information of the object. Since the constructed knowledge graph contains all the acquired attribute information of the object, one way is to output part or all of the attribute information about the object in the knowledge graph to the user in multiple forms (for example, output through a display screen, sent to a device in the form of a message, voice output, etc.), so that the user can have a more comprehensive understanding of the object of interest; another way is that if the subsequent instructions issued by the user are still related to the object, the constructed knowledge graph can be directly queried to obtain the answer information, thereby improving the query efficiency.
[0109] For example, after obtaining image information including the vehicle in front, the image information is identified and processed to obtain attribute information such as the color of the vehicle in front is red, the contour trajectory, size, license plate number is X, and the vehicle model is a small car. According to one or more of the above attribute information of the small car, the preset vehicle database is queried to obtain vehicle-related attribute information about the small car, such as manufacturer, brand, performance configuration, model, etc.; further, the preset Internet of Vehicles database can be queried according to the license plate number parameters of the small car to obtain all driving-related attribute information about the small car, such as driving status (vehicle speed, location information, driving direction, etc.), surrounding road traffic status (road name, road conditions, etc.), communication module (type, rate, communication parameters such as communication public key of the configured communication module), etc. Afterwards, based on all the attribute information of the vehicle obtained, the knowledge graph of the vehicle is constructed, and the attribute information about the vehicle can be obtained later using the knowledge graph.
[0110] For another example, after obtaining image information including the commercial building on the left, the image information is recognized and processed to obtain attribute information such as the color, contour trajectory, size parameters, and name of the commercial building on the left. According to one or more of the above attribute information of the commercial building, the preset building database and map database are queried to obtain all related attribute information about the commercial building, such as geographic location coordinates, nature, purpose, floor height, occupied area, owner, contact information, business hours, etc. Afterwards, based on all the attribute information of the commercial building obtained, a knowledge graph of the commercial building is constructed, and the knowledge graph can be used to obtain attribute information about the commercial building later.
[0111] In some embodiments, the information interaction method further includes:
[0112] Performing recognition processing on the image information to obtain one or more attribute information of one or more other objects in the image information;
[0113] Construct a knowledge graph of one or more other objects based on one or more attribute information of the other one or more other objects.
[0114] In this embodiment, the acquired image information may include an object, as well as one or more objects other than the object. In order to enrich and expand the knowledge graph, the image information may be identified and processed to obtain one or more objects other than the object in the image information, as well as one or more attribute information of each object. Based on the one or more attribute information of each object, a knowledge graph of each object may be constructed, and the knowledge graph may be used to query the attribute information of each object.
[0115] In some embodiments, if the object category is a vehicle, the attribute information includes the vehicle appearance attribute information; then, querying the database according to one or more attribute information of the object includes:
[0116] Querying a database based on the vehicle appearance attribute information of the vehicle to determine the answer information or other attribute information of the vehicle; wherein the vehicle appearance attribute information includes at least one of the vehicle size, vehicle outline, vehicle color, and vehicle identification; or,
[0117] If the object category is a building, the attribute information includes the building appearance attribute information; then,
[0118] Query the database based on one or more attribute information of the object, including:
[0119] The database is queried according to the building appearance attribute information of the building to determine the answer information or other attribute information of the building; the building appearance attribute information includes at least one of the building size, building outline, building color, and building logo.
[0120] In this embodiment, vehicles and buildings are taken as examples to illustrate the method of querying a database based on the attribute information of an object. For a vehicle, the database can be queried based on the vehicle appearance attribute information of the vehicle to determine the answer information of the vehicle, or other attribute information of the vehicle; for a building, the database can be queried based on the building appearance attribute information of the building to determine the answer information of the building, or other attribute information of the building.
[0121] In some embodiments, the orientation information includes the front, the left, and the right, and the objects include all objects within the field of view in the orientation information; then,
[0122] Acquiring image information of the object, including: acquiring front image information, left image information, and right image information;
[0123] The image information is recognized and processed to obtain one or more attribute information of the object, including:
[0124] Recognize and process the front image information to obtain the front object and the first position parameter of the front object in the first coordinate system;
[0125] Recognize and process the left image information to obtain the left object and the second position parameter of the left object in the second coordinate system;
[0126] Recognize and process the right image information to obtain the right object and the third position parameter of the right object in the third coordinate system;
[0127] The first position parameter, the second position parameter and the third position parameter are processed as position parameters in the same coordinate system.
[0128] In this embodiment, in order to obtain all objects within the field of view in the orientation information, a first image acquisition device 10 is configured in front of the terminal device, and a second image acquisition device 20 and a third image acquisition device 30 are respectively configured on the left and right sides of the terminal device. The first image acquisition device 10, the second image acquisition device 20 and the third image acquisition device 30 are respectively used to acquire front image information, left image information and right image information of the front, left and right sides of the terminal device; for the front image information, the objects located in the front and the first position parameters of each object are detected and identified, for the left image information, the objects located on the left and the second position parameters of each object are detected and identified, and for the right image information, the objects located on the right and the third position parameters of each object are detected and identified.
[0129] Optionally, the first image acquisition device 10, the second image acquisition device 20 and the third image acquisition device 30 may use devices that can acquire image information, such as binocular cameras. For binocular cameras, position parameters of objects that can be detected and identified include distance and direction parameters.
[0130] In some embodiments, since the first image acquisition device 10, the second image acquisition device 20 and the third image acquisition device 30 are installed at different positions on the terminal device, the position parameters of the objects contained in the image information respectively acquired by the three are not in the same coordinate system. In order to make the reference coordinates of the position parameters of the objects consistent, the first position parameters, the second position parameters and the third position parameters need to be processed as position parameters in the same coordinate system.
[0131] like Figure 3As shown, for example, the installation position of the second image acquisition device 20 is perpendicular to the installation position of the first image acquisition device 10, and the angle between the two installation positions is 90 degrees; the installation position of the third image acquisition device 30 is perpendicular to the installation position of the first image acquisition device 10, and the angle between the two installation positions is 270 degrees; based on the front image information captured by the first image acquisition device 10, the first position parameters of all objects obtained after recognition processing are in the first coordinate system, based on the left image information captured by the second image acquisition device 20, the second position parameters of all objects obtained after recognition processing are in the second coordinate system, and based on the right image information captured by the third image acquisition device 30, the third position parameters of all objects obtained after recognition processing are in the third coordinate system.
[0132] In some embodiments, the first coordinate system is a three-dimensional coordinate system established based on the image captured by the first image acquisition device 10, with the axis perpendicular to the image and passing through the center of the image as the Z axis, the axis parallel to any edge of the image and passing through the center of the image as the X axis, and the axis passing through the center of the image and perpendicular to the X axis and the Z axis as the Y axis; the second coordinate system is rotated 90 degrees clockwise to coincide with the first coordinate system, and the third coordinate system is rotated 270 degrees clockwise to coincide with the first coordinate system.
[0133] In this embodiment, the first position parameter, the second position parameter and the third position parameter are processed as position parameters in the same coordinate system, including:
[0134] Convert the second position parameter into a fourth position parameter in the first coordinate system;
[0135] Convert the third position parameter into a fifth position parameter in the first coordinate system;
[0136] The second coordinate system coincides with the first coordinate system after being rotated by a first angle in the first direction, and the third coordinate system coincides with the first coordinate system after being rotated by a second angle in the first direction.
[0137] In this embodiment, taking the first coordinate system as a reference, according to the relationship between the first coordinate system and the second coordinate system, the second position parameter in the second coordinate system is transformed to obtain the fourth position parameter in the first coordinate system, and according to the relationship between the first coordinate system and the third coordinate system, the third position parameter in the third coordinate system is transformed to obtain the fifth position parameter in the first coordinate system, thereby unifying the position parameters of objects in front, on the left, and on the right of the terminal device in the same coordinate system.
[0138] In some embodiments, the terminal device is equipped with a positioning unit for acquiring position information, and the specific position information of the object relative to the user's position can be determined based on the acquired current position information of the terminal device and the position parameters of the object. For example, the terminal device is equipped with a GPS positioning unit, and the GPS position information of the terminal device is acquired through the GPS positioning unit. Based on the GPS position information and the position parameters of the object with a relative distance and relative direction to the terminal device, the specific position information of the object relative to the terminal device is determined, for example, the object is located at the ten o'clock direction of the terminal device, etc.
[0139] Considering that the attribute information of the object may change during the movement of the terminal device, in some embodiments, before querying the database according to one or more attribute information of the object, the method further includes:
[0140] Get current location information;
[0141] Update one or more attribute information of the object according to the current location information.
[0142] As the terminal device moves, the position of the object relative to the terminal device changes, and the object's outline and other attributes may change. It is necessary to update one or more attribute information of the object in real time based on the current position information of the terminal device, and then query the database based on the updated one or more attribute information to ensure the accuracy of the obtained answer information or other attribute information. In some methods, the current position information of the terminal device is obtained in real time, and the specific position information and appearance attribute information of the object are determined based on the current position information and the position parameters of the object, and the attribute information of the object is updated. Then, based on the updated attribute information, the attribute information of the object in the knowledge graph is updated to ensure that subsequent queries to the knowledge graph can obtain accurate answer information or other attribute information.
[0143] The information interaction method of this specification is exemplarily described below in conjunction with specific embodiments.
[0144] In this embodiment, when the user is interested in an object on the way and wants to obtain relevant information of the object through voice interaction, the user can issue a corresponding voice command. Alternatively, when the user needs to interact with the object by voice, the user can also issue a corresponding voice command.
[0145] In some methods, natural speech processing is performed on the acquired voice instructions to obtain the intention information contained in the voice instructions, and the orientation information, object category and object problem of the object are obtained.
[0146] Optionally, natural speech processing can be used to analyze the input voice command to obtain object intent information such as the intended object, intended domain (parameter domain), intended action (parameter intent), and intended parameter (parameter slot) contained in the voice command.
[0147] According to the orientation information and the object category, the video data of the object is collected by using an image acquisition device, each video frame in the video data is obtained, and recognition processing is performed on each video frame. The object contained in each video frame and one or more attribute information of the object are detected and identified, and then the answer information of the object question is queried based on the one or more attribute information of the object.
[0148] For example, according to one or more attribute information of an object, the constructed knowledge graph is queried to obtain the answer information of the object; wherein the method of querying the knowledge graph includes:
[0149] According to the object's intention parameters, the knowledge graph is queried to determine the object's answer information. Afterwards, the answer information can be output based on the determined answer information, thereby realizing the object's voice interaction function.
[0150] In one method, the answer information obtained from the query can be directly output to achieve voice interaction.
[0151] For example, in some scenarios, the user issues a voice command "What brand is the car in front?", and the voice command is processed by natural language to determine that the object contained in the voice command is "the car in front", the intent domain is "vehicle", the intended action is "brand query", and the intent parameter is "front". By querying the knowledge graph through "vehicle" and its position information "front", it can be obtained that the brand information of the vehicle in front is "Brand X". Afterwards, according to the answer information obtained from the query, the answer information is processed by natural language to generate natural language that can be output by voice, and the natural language is output, such as "The car in front is Brand X", thereby realizing a voice reply to "What brand is the car in front?" and realizing the voice interaction function.
[0152] In another way, based on the answer information obtained from the query, it is determined that an interactive operation needs to be performed with the object, and then the interactive operation is performed with the object, and the execution result is obtained and output.
[0153] For example, after querying the knowledge graph, it is determined that a third-party interface needs to be called, and the third-party interface is called to perform interactive operations with the object, and the execution results of the third-party interface are output.
[0154] In some application scenarios, the user issues a voice command "Tell the vehicle in front not to occupy the speeding lane". Natural language processing is performed on the voice command to determine that the object contained in the voice command is "the vehicle in front", the intent domain is "V2V (Internet of Vehicles)", the intended action is "send a message", and the intent parameter is "do not occupy the speeding lane"; through the "vehicle" and its position information "front", the knowledge graph is queried to determine the need to interact with the vehicle in front, and then the Internet of Vehicles system needs to be called based on the intent domain and the intended action. The answer information of the knowledge graph query includes the position information and message parameters of the vehicle in front. The answer information is to call the Internet of Vehicles system, and use the Internet of Vehicles system to send a message "Please do not occupy the speeding lane" to the vehicle in front with the corresponding position information. After sending the message, the execution result of successful message sending is obtained, and the execution result is output.
[0155] In this embodiment, by obtaining the voice command input by the user, the voice command is processed by natural language to determine the orientation information, object category and object question contained in the voice command, and then the knowledge graph of the object that has been constructed is queried to obtain the answer information and output the answer information. Other attribute information of the object can also be obtained through the knowledge graph and output in various forms. On the one hand, the user can interact with any object by voice without knowing the name of the object, which is very convenient to use. On the other hand, the user can query the answer information of any object, obtain other relevant information of the object, and perform interactive operations with any object, which expands the application scenarios and improves the user experience.
[0156] It should be noted that the method of one or more embodiments of this specification can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of one or more embodiments of this specification, and the multiple devices will interact with each other to complete the described method.
[0157] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0158] like Figure 4 As shown, one or more embodiments of this specification also provide an information interaction device, including:
[0159] An instruction acquisition module, used to acquire input instructions;
[0160] An instruction analysis module determines the intention information contained in the instruction, the intention information includes the orientation information of the object, the object category and the object problem;
[0161] The answer determination module is used to query the answer information of the object question according to the orientation information and the object category;
[0162] Output module, used to output answer information.
[0163] In some embodiments, the answer determination module includes:
[0164] The image acquisition submodule is used to acquire the image information of the object according to the orientation information and the object category;
[0165] An image recognition submodule is used to recognize and process image information to obtain one or more attribute information of the object;
[0166] The information acquisition submodule is used to query the database according to one or more attribute information of the object to obtain the answer information of the object.
[0167] In some embodiments, the apparatus further comprises:
[0168] An object position acquisition module is used to obtain the position information of the object;
[0169] The information acquisition submodule is used to query the database according to the location information of the object.
[0170] In some embodiments, the apparatus further comprises:
[0171] The information acquisition submodule is used to query the database according to one or more attribute information of the object to obtain other attribute information of the object;
[0172] The graph construction module is used to construct the knowledge graph of the object based on the attribute information of the object.
[0173] In some embodiments, the apparatus further comprises:
[0174] An image recognition submodule is used to perform recognition processing on the image information to obtain one or more attribute information of one or more other objects in the image information;
[0175] The graph construction module is used to construct a knowledge graph of one or more other objects based on one or more attribute information of the other one or more objects.
[0176] For the convenience of description, the above devices are described in terms of functions divided into various modules. Of course, when implementing one or more embodiments of this specification, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0177] The apparatus of the above-mentioned embodiment is used to implement the corresponding method in the above-mentioned embodiment, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0178] Figure 5 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0179] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0180] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0181] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0182] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0183] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0184] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0185] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0186] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. In line with the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present specification as described above, which are not provided in detail for the sake of simplicity.
[0187] In addition, to simplify the description and discussion, and in order not to obscure one or more embodiments of the present specification, known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, devices may be shown in the form of block diagrams to avoid obscuring one or more embodiments of the present specification, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which one or more embodiments of the present specification will be implemented (i.e., these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that one or more embodiments of the present specification may be implemented without these specific details or with variations in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0188] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0189] One or more embodiments of this specification are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of this specification should be included in the scope of protection of this disclosure.
Claims
1. An information interaction method, characterized in that: include: Get input instructions; Determining the intention information contained in the instruction, the intention information including the orientation information of the object, the object category and the object question; According to the location information and the object category, query the answer information of the object question; Outputting the answer information; The querying of answer information of the object question according to the position information and the object category includes: Acquire image information of the object according to the orientation information and the object category; Performing recognition processing on the image information to obtain one or more attribute information of the object; Querying a database according to one or more attribute information of the object to obtain answer information of the object; The method further comprises: According to one or more attribute information of the object, a database is queried to obtain other attribute information of the object, and a knowledge graph of the object is constructed according to the attribute information of the object; the knowledge graph of the object includes all the acquired attribute information of the object, and when the user subsequently issues an instruction related to the object, the knowledge graph of the object is directly queried to obtain answer information; The image information is recognized and processed to obtain one or more attribute information of other one or more objects in the image information; and a knowledge graph of the other one or more objects is constructed based on the one or more attribute information of the other one or more objects. The knowledge graph is used to query the attribute information of the other one or more objects.
2. The method according to claim 1, characterized in that Before querying the answer information of the object question, the method further includes: Obtaining location information of the object; The querying of a database according to one or more attribute information of the object comprises: A database is queried according to the location information of the object.
3. The method according to claim 1, characterized in that The object category is a vehicle, and the attribute information includes vehicle appearance attribute information; The querying of a database according to one or more attribute information of the object comprises: Querying a database based on vehicle appearance attribute information of the vehicle to determine answer information or other attribute information of the vehicle; the vehicle appearance attribute information includes at least one of vehicle size, vehicle outline, vehicle color, and vehicle identification; or, The object category is a building, and the attribute information includes building appearance attribute information; The querying of a database according to one or more attribute information of the object comprises: A database is queried according to the building appearance attribute information of the building to determine the answer information or other attribute information of the building; the building appearance attribute information includes at least one of the building size, building outline, building color, and building logo.
4. The method according to claim 1, characterized in that: The orientation information includes the front, the left, and the right, and the objects include all objects within the field of view in the orientation information; The acquiring the image information of the object comprises: Obtain the front image information, the left image information and the right image information; The identifying and processing the image information to obtain one or more attribute information of the object includes: Performing recognition processing on the front image information to obtain the front object and the first position parameter of the front object in the first coordinate system; Performing recognition processing on the left image information to obtain the left object and the second position parameter of the left object in the second coordinate system; Performing recognition processing on the right image information to obtain the object on the right and a third position parameter of the object on the right in a third coordinate system; The first position parameter, the second position parameter and the third position parameter are processed as position parameters in the same coordinate system.
5. The method according to claim 4, characterized in that The processing of the first position parameter, the second position parameter and the third position parameter as position parameters in the same coordinate system includes: Convert the second position parameter into a fourth position parameter in the first coordinate system; Converting the third position parameter into a fifth position parameter in the first coordinate system; The second coordinate system coincides with the first coordinate system after being rotated by a first angle in a first direction, and the third coordinate system coincides with the first coordinate system after being rotated by a second angle in the first direction.
6. The method according to claim 1, characterized in that Before querying the database according to one or more attribute information of the object, the method further includes: Get current location information; One or more attribute information of the object is updated according to the current location information.
7. An information interaction device, characterized in that: include: An instruction acquisition module, used to acquire input instructions; An instruction analysis module determines the intention information contained in the instruction, wherein the intention information includes the orientation information of the object, the object category and the object problem; An answer determination module, used to query the answer information of the object question according to the orientation information and the object category; An output module, used for outputting the answer information; The answer determination module comprises: An image acquisition submodule, used to acquire image information of the object according to the orientation information and the object category; An image recognition submodule, used to perform recognition processing on the image information to obtain one or more attribute information of the object; An information acquisition submodule, used to query a database according to one or more attribute information of the object to obtain answer information of the object; The device also includes: The information acquisition submodule is used to query the database according to one or more attribute information of the object to obtain other attribute information of the object; A graph construction module is used to construct a knowledge graph of the object according to the attribute information of the object; the knowledge graph of the object includes all the acquired attribute information of the object, and when the user issues a subsequent instruction related to the object, the knowledge graph of the object is directly queried to obtain the answer information; The image recognition submodule is further used to perform recognition processing on the image information to obtain one or more attribute information of one or more other objects in the image information; The graph construction module is also used to construct a knowledge graph of the other one or more objects based on one or more attribute information of the other one or more objects, and the knowledge graph is used to query the attribute information of the other one or more objects.
8. The device according to claim 7, characterized in that The device also includes: An object position acquisition module, used to acquire the position information of the object; The information acquisition submodule is used to query the database according to the location information of the object.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 6 is implemented.
