Disclosure of Invention
In order to enrich the interaction process when people participate in the garden exhibition, the application provides a tourist interaction method, a device, electronic equipment and a medium based on graphics.
In a first aspect, the present application provides a graph-based tourist interaction method, which adopts the following technical scheme:
a graphics-based guest interaction method, comprising:
acquiring at least one target picture, wherein the target picture is a picture uploaded based on terminal equipment;
determining at least one target flower information based on the flowers in all the target pictures;
and determining collocation information based on the target flower information, and sending the collocation information to the terminal equipment, wherein the collocation information is picture information at least comprising the target flower information.
Through adopting above-mentioned technical scheme, the user acquires the target picture that contains flowers through terminal equipment when appreciating flowers, according to the collocation information is confirmed to target flowers information, feeds back the collocation information of picture form to terminal equipment, and the user of being convenient for appreciates the picture of this flowers after the art collocation, and the user can not only appreciate flowers alone, can also appreciate the flower arrangement work of art picture that flowers formed of selecting according to oneself hobby, has strengthened user's sight and admire interactive.
In a possible implementation manner, the determining collocation information based on the target flower information includes:
judging whether elements successfully matched with all the target flower information exist in a preset database or not;
and if the matching information exists, taking the successfully matched element as the collocation information, wherein the element is picture information at least comprising one flower.
By adopting the technical scheme, if all the target flower information is successfully matched with any element in the database, the matching information corresponding picture contains all the target flower information, so that a user can view the flower arrangement artwork matched according to the selected flowers, and the user experience is improved.
In a possible implementation manner, the determining collocation information based on the target flower information includes:
and judging whether an element successfully matched with any target flower information exists in the database, and if so, taking the element successfully matched as the collocation information.
By adopting the technical scheme, if an element successfully matched with any one of the target flower information exists, the matching information corresponding to each target flower information in the database is fed back, and the matching diversity shown to the user is increased.
In a possible implementation manner, the determining collocation information based on the target flower information includes: and generating the collocation information based on the target flower information and the trained network model.
By adopting the technical scheme, the collocation information is automatically generated according to the trained network model based on the target flowers selected by the user, and the function of automatically collocating the flowers preferred by the user is realized.
In one possible implementation, the method further includes:
acquiring first selected information, and determining the collocation information corresponding to the first selected information, wherein the first selected information is selected information sent by a user based on terminal equipment;
determining object information in the collocation information corresponding to the first selected information, wherein the object information is target information except all the target flower information in the collocation information;
and sending the object information to the terminal equipment.
By adopting the technical scheme, after the collocation information is displayed to the user, if the object information exists in the collocation information, the object information is sent to the terminal equipment, so that the viewer can further know the object information (other plant varieties).
In a possible implementation manner, after determining the object information in the collocation information corresponding to the first selected information, the method further includes:
judging whether the object information exists in a preset plant database or not;
if so, generating feedback information;
and if the object information does not exist in the plant database, determining an element with the maximum similarity to the object information as the object information in the elements of the plant database.
By adopting the technical scheme, the collocation information pushed to the user is generated based on object information and flower collocation corresponding to the flower type information, if the plant database does not contain the object information, the object information does not exist in the current gardening area, the plant with the highest similarity to the object information is pushed according to the similarity, and the user can conveniently collocate the flower arrangement artwork according to the plant in the gardening area.
In a possible implementation manner, after determining the object information in the collocation information corresponding to the first selected information, the method further includes:
determining first position information corresponding to each object information;
acquiring second position information of preset terminal equipment;
determining travel path information based on all of the first location information and the second location information;
and sending the traveling path information to the terminal equipment.
By adopting the technical scheme, the user can conveniently and accurately reach the planting area where the object information is located by planning the information of the travel path, and the viewing convenience of the user is improved.
In a second aspect, the present application provides a visitor interaction device based on graphics, which adopts the following technical solution:
the acquisition module is used for acquiring at least one target picture by a user, wherein the target picture is uploaded based on terminal equipment;
the analysis module is used for determining at least one target flower information based on all the flowers in the target picture;
and the pushing module is used for determining collocation information based on the target flower information and sending the collocation information to the terminal equipment, wherein the collocation information is picture information at least comprising the target flower information.
In a possible implementation manner, the determining, by the analysis module, collocation information based on the target flower information includes:
judging whether elements successfully matched with all the target flower information exist in a preset database or not;
and if the matching information exists, taking the successfully matched element as the collocation information, wherein the element is picture information at least comprising one flower.
In a possible implementation manner, the determining, by the analysis module, collocation information based on the target flower information includes:
and judging whether an element successfully matched with any target flower information exists in the database, and if so, taking the element successfully matched as the collocation information.
In a possible implementation manner, the determining, by the analysis module, collocation information based on the target flower information includes: and generating the collocation information based on the target flower information and the trained network model.
In one possible implementation, the pushing module is further configured to:
acquiring first selected information, and determining the collocation information corresponding to the first selected information, wherein the first selected information is selected information sent by a user based on terminal equipment;
determining object information in the collocation information corresponding to the first selected information, wherein the object information is target information except all the target flower information in the collocation information;
and sending the object information to the terminal equipment.
In a possible implementation manner, after determining object information in the collocation information corresponding to the first selected information, the pushing module further includes:
judging whether the object information exists in a preset plant database or not;
if so, generating feedback information;
and if the object information does not exist in the plant database, determining an element with the maximum similarity to the object information as the object information in the elements of the plant database.
In a possible implementation manner, after determining object information in the collocation information corresponding to the first selected information, the pushing module further includes:
determining first position information corresponding to each object information;
acquiring second position information of preset terminal equipment;
determining travel path information based on all of the first location information and the second location information;
and sending the traveling path information to the terminal equipment.
In a third aspect, the present application provides an electronic device, which adopts the following technical solutions:
an electronic device, comprising:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: a method of performing the above-described graphics-based guest interaction.
In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer-readable storage medium, comprising: a computer program is stored which can be loaded by a processor and which implements the above described graphics based guest interaction method.
Detailed Description
The present application is described in further detail below with reference to the attached drawings.
A person skilled in the art, after reading the present specification, may make modifications to the present embodiments as necessary without inventive contribution, but only within the scope of the claims of the present application are protected by patent laws.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified.
The embodiment of the application provides a tourist interaction method based on graphics, which is executed by electronic equipment and comprises the following steps:
with reference to figure 1 of the drawings,
step S101, at least one target picture is obtained.
The target picture is a picture uploaded based on the terminal equipment, the user collects pictures of flowers and other plants through the terminal equipment with an image collecting device carried by the user in the process of viewing and gardening, the picture is the target picture, the local target picture of the terminal equipment is uploaded to the electronic equipment through a wireless network, and each terminal equipment is provided with unique identification information.
In the gardening area, the flower type planted in each area is single, a user can shoot flowers in one area, and the flower type in the target picture is one; or a target picture taken by a user may contain at least two flowers; or the user takes a plurality of target pictures, and the target pictures may contain one or more than two flowers.
With reference to figure 1 of the drawings,
and S102, determining at least one target flower information based on the flowers in all the target pictures.
Wherein, the mode of flowers in the discernment target picture can adopt machine learning's mode, including supervised learning and unsupervised learning, discerns flowers through the mode of target classification, for example, the target flowers are: "Red peony", "Pink China rose" and "white lily" … …
With reference to figure 1 of the drawings,
and S103, determining collocation information based on the target flower information, and sending the collocation information to the terminal equipment.
Wherein, the collocation information is picture information at least including target flower information, for example: the target flower information uploaded by the user is red peony, the pictures corresponding to the matching information at least comprise red peony and possibly yellow babysbreath and green lining leaves … …, wherein the red peony, the yellow babysbreath and the green lining leaves are matched in a certain artistic shape so as to meet the requirements of the viewing/consumption experience of the user, namely the artistic works.
Through the mode, after the user selects the favorite flowers, the background electronic equipment obtains the matching information corresponding to the target flower information based on the target flower information, and then feeds the matching information back to the terminal equipment, so that the user can view and admire the flower arrangement artistic works formed according to the selected flowers, and the interactive experience of the user in gardening viewing is improved.
In step S103, a possible implementation manner of the embodiment of the application, determining the collocation information based on the target flower information includes: and judging whether the preset database has elements successfully matched with all the target flower information, and if so, taking the successfully matched elements as collocation information.
Wherein the element is picture information at least containing one flower. For example, the following steps are carried out: target flower information uploaded by a user in a target picture is flowers of two types, namely 'red peony' and 'white lily'; the preset database comprises elements { a, b, c … }, each element is in the form of a picture, and when picture information is input, a label can be added to each picture.
For example: the picture a corresponds to 'red peony + white lily', the picture b corresponds to 'yellow babysbreath + purple violet', the picture c corresponds to label information such as 'red peony + yellow babysbreath', and the like, and at this time, the element successfully matched with all the target flower information is the picture a.
In step S103, a possible implementation manner of the embodiment of the application, determining the collocation information based on the target flower information includes: and judging whether an element successfully matched with any target flower information exists in the database, and if so, taking the successfully matched element as collocation information.
In the above example, the target flower information in the target picture uploaded by the user is "red peony", the preset database contains elements { a, b, c … } respectively, and each element is in the form of a picture, for example: the picture a corresponds to 'red peony + white lily', the picture b corresponds to 'yellow babysbreath + purple violet', the picture c corresponds to 'red peony + yellow babysbreath', and other label information, at this time, the picture a and the picture b are both fed back to the user as collocation information, more kinds of collocation information are sent to the user, and inspiration of the user for flower arrangement collocation is inspired.
A possible implementation manner of the embodiment of the application, determining the collocation information based on the target flower information, includes: and generating collocation information based on the information of each target flower and the trained network model. The method for training the network model comprises the following steps: acquiring a flower image sample set, wherein the flower image sample set comprises flower arrangement works corresponding to all flower images for training a network model; and training a network model based on the obtained flower image sample set. Specifically, to this application embodiment, the network model can be trained according to flowers image sample set and Loss function, and flowers image sample set includes a plurality of flowers images, and the more flowers images are concentrated in flowers image sample set, the better the collocation information effect that the network model trained through flowers image sample set obtained.
In a possible implementation manner of the embodiment of the present application, the method further includes step S104 (not shown in the figure), where the step S104 is disposed after the step S103, and includes: acquiring first selected information, and determining collocation information corresponding to the first selected information; determining object information in collocation information corresponding to the first selected information; and sending the object information to the terminal equipment.
The first selected information is selected information sent by a user based on terminal equipment, and the object information is target information except all target flower information in the collocation information.
Specifically, at least one collocation information is generated based on a target flower selected by a user, the user selects one or more collocation information from the at least one collocation information according to own preference, and the first selection information represents the selection operation of the user; in the flower arrangement works, the flower arrangement works usually not only comprise target flowers selected by a user, but also comprise other flowers playing a decorative role, and also can comprise lining leaves playing a decorative role, and the like. For example: the target flower information in the target picture uploaded by the user is 'red peony', the picture corresponding to the collocation information selected by the user is 'red peony + yellow hyacinth + lining leaf', the plant varieties except 'red peony' in the collocation information are 'yellow hyacinth' + 'lining leaf', and the 'yellow hyacinth' + 'lining leaf' is pushed to the terminal equipment, so that the user can know more kinds of other plants.
In a possible implementation manner of the embodiment of the application, after determining the object information in the collocation information corresponding to the first selected information, the method further includes: judging whether object information exists in a preset plant database or not; if so, generating feedback information; and if the object information does not exist in the plant database, determining the element with the maximum similarity with the object information as the object information in the elements of the plant database.
If the plant variety (i.e., object information) as the matching and decoration is not included in the plant variety covered by the botanical garden, the user may not be able to perform the flower arrangement work according to the recommended matching information, and thus the experience of the user may be affected; and by searching the plant with the maximum similarity to the object information in the plant database, the similarity comprises color, petal shape and the like, the user can select the plant with the maximum similarity in the plant database (the plant covered in the plant garden), and the matching requirements of the user are met in a similar mode.
In a possible implementation manner of the embodiment of the application, after determining the object information in the collocation information corresponding to the first selected information, the method further includes: determining first position information corresponding to each object information; acquiring second position information of preset terminal equipment; determining travel path information based on all of the first location information and the second location information; and transmitting the traveling path information to the terminal equipment. After the object information is determined, the user can reach the planting area corresponding to the object information according to the planned traveling path information between the first position information and the second position information, the user can view the pre-matched plants, and convenience for viewing is improved for the user through a path planning guiding mode.
The above embodiments describe a method for graphical-based guest interaction from the perspective of method flow, and the following embodiments describe an XX apparatus from the perspective of virtual modules or virtual cells, as described in detail in the following embodiments.
The embodiment of the present application provides a device 100 for interaction between tourists based on graphics, and referring to fig. 2, the device 100 for interaction between tourists based on graphics specifically may include:
an obtaining module 1001, in which a user obtains at least one target picture, and the target picture is a picture uploaded based on terminal equipment;
the analysis module 1002 is configured to determine at least one target flower information based on the flowers in all the target pictures;
the pushing module 1003 is configured to determine collocation information based on the target flower information, and send the collocation information to the terminal device, where the collocation information is picture information at least including the target flower information.
In a possible implementation manner of the embodiment of the application, the analyzing module 1002 determines the collocation information based on the target flower information, including:
judging whether elements successfully matched with all the target flower information exist in a preset database or not;
if the matching information exists, the successfully matched element is used as the matching information, wherein the element at least comprises the picture information of one flower.
In a possible implementation manner of the embodiment of the application, the analyzing module 1002 determines the collocation information based on the target flower information, including:
and judging whether an element successfully matched with any target flower information exists in the database, and if so, taking the successfully matched element as collocation information.
In a possible implementation manner of the embodiment of the application, the analyzing module 1002 determines the collocation information based on the target flower information, including: and generating collocation information based on the information of each target flower and the trained network model.
In a possible implementation manner of the embodiment of the present application, the pushing module 1003 is further configured to:
acquiring first selected information, and determining collocation information corresponding to the first selected information, wherein the first selected information is selected information sent by a user based on terminal equipment;
determining object information in the collocation information corresponding to the first selected information, wherein the object information is target information except all target flower information in the collocation information;
and sending the object information to the terminal equipment.
In a possible implementation manner of the embodiment of the present application, after determining the object information in the matching information corresponding to the first selected information, the pushing module 1003 further includes:
judging whether object information exists in a preset plant database or not;
if so, generating feedback information;
and if the object information does not exist in the plant database, determining the element with the maximum similarity with the object information as the object information in the elements of the plant database.
In a possible implementation manner of the embodiment of the present application, after determining the object information in the matching information corresponding to the first selected information, the pushing module 1003 further includes:
determining first position information corresponding to each object information;
acquiring second position information of preset terminal equipment;
determining travel path information based on all of the first location information and the second location information;
and transmitting the traveling path information to the terminal equipment.
In an embodiment of the present application, an electronic device is provided, and referring to fig. 3, an electronic device 1100 shown in fig. 3 includes: a processor 1101 and a memory 1103. The processor 1101 is coupled to the memory 1103, such as by a bus 1102. Optionally, the electronic device 1100 may also include a transceiver 1104. It should be noted that the transceiver 1104 is not limited to one in practical applications, and the structure of the electronic device 1100 is not limited to the embodiment of the present application.
The Processor 1101 may be a CPU (Central Processing Unit), a general purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 1101 may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs and microprocessors, and the like.
Bus 1102 may include a path that transfers information between the above components. The bus 1102 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 1102 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
The Memory 1103 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
The memory 1103 is used for storing application program codes for executing the present application, and the execution is controlled by the processor 1101. The processor 1101 is configured to execute application program code stored in the memory 1103 to implement the content shown in the foregoing method embodiments.
Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. But also a server, etc. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The present application provides a computer-readable storage medium, on which a computer program is stored, which, when running on a computer, enables the computer to execute the corresponding content in the foregoing method embodiments.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.