CN107016163B - Plant species recommendation method and device - Google Patents

Plant species recommendation method and device Download PDF

Info

Publication number
CN107016163B
CN107016163B CN201710132266.5A CN201710132266A CN107016163B CN 107016163 B CN107016163 B CN 107016163B CN 201710132266 A CN201710132266 A CN 201710132266A CN 107016163 B CN107016163 B CN 107016163B
Authority
CN
China
Prior art keywords
current environment
plant
objects
decoration
scene picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710132266.5A
Other languages
Chinese (zh)
Other versions
CN107016163A (en
Inventor
吴珂
谢迎春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710132266.5A priority Critical patent/CN107016163B/en
Publication of CN107016163A publication Critical patent/CN107016163A/en
Application granted granted Critical
Publication of CN107016163B publication Critical patent/CN107016163B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/5838Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using colour

Abstract

The disclosure relates to a plant species recommendation method and device. The method comprises the following steps: acquiring a scene picture, wherein the scene picture comprises images of a plurality of objects of a current environment; identifying a plurality of objects appearing in the current environment according to images of the plurality of objects included in the scene picture; confirming the decoration style of the current environment according to the matching degree of the plurality of objects and different preset data groups in a preset database; the preset database comprises a plurality of preset data groups, and different preset data groups comprise a plurality of elements with different decoration styles; and according to the decoration style, obtaining the plant type recommendation information of the current environment, wherein the plant type recommendation information comprises at least one plant type suitable for the decoration style of the current environment. According to the technical scheme, when the user needs to improve the living environment, the proper plant species can be recommended to the user, so that the user can select the plant species matched with the decoration style of the current living environment when purchasing green plants, the user is prevented from frequently purchasing plants for beautifying the living environment, and the economic cost of purchasing the plants by the user is reduced.

Description

Plant species recommendation method and device
Technical Field
The disclosure relates to the technical field of image processing, and in particular relates to a plant species recommendation method and device.
Background
With the improvement of the quality of life, users also put higher requirements on the living environment, and not only exquisite and appropriate decoration but also decoration matched with the decoration is required.
For example, a user may place appropriate greenery in a room to not only beautify the living environment, but also improve the air quality within the room.
Disclosure of Invention
In order to overcome the problems in the related art, the embodiments of the present disclosure provide a plant species recommendation method and apparatus. The technical scheme is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a plant species recommendation method, including:
acquiring a scene picture, wherein the scene picture comprises images of a plurality of objects of a current environment;
identifying a plurality of objects appearing in the current environment according to images of the plurality of objects included in the scene picture;
confirming the decoration style of the current environment according to the matching degree of the objects and different preset data groups in a preset database; the preset database comprises a plurality of preset data groups, and different preset data groups comprise a plurality of elements with different decoration styles;
and acquiring the plant type recommendation information of the current environment according to the decoration style, wherein the plant type recommendation information comprises at least one plant type suitable for the decoration style of the current environment.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when a user needs to improve the living environment, a proper plant type can be recommended to the user, so that the user can select the plant type matched with the decoration style of the current living environment when purchasing green plants, the user is prevented from frequently purchasing plants for beautifying the living environment, and the economic cost of purchasing the plants by the user is reduced.
In one embodiment, the obtaining of the plant species recommendation information of the current environment according to the decoration style includes:
acquiring at least one plant species suitable for the current environment according to the corresponding relation between the decoration style and the plant species;
acquiring a scene green plant simulation diagram according to the at least one plant species suitable for the current environment and the scene picture;
and generating the plant species recommendation information according to the scene green plant simulation diagram.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when a user needs to improve the living environment, the scene green plant simulation diagram of the current environment can be provided for the user, so that the user can visually look up the plant types, the placing modes, the placing places and the like matched with the current environment, the user is prevented from frequently purchasing plants for beautifying the living environment, and the economic cost of purchasing the plants by the user is reduced.
In one embodiment, the identifying, according to the images of the plurality of objects included in the scene picture, the plurality of objects appearing in the current environment includes:
identifying each object appearing in the current environment and the type of each object according to texture features, color features and/or shape features of a plurality of object images included in the scene picture, wherein the types comprise furniture, decorative patterns or ornaments;
the determining the decoration style of the current environment according to the matching degree of the plurality of objects and different preset data groups in a preset database comprises:
according to the type of each object appearing in the current environment, matching each type of object with the corresponding type of element included in the first preset data group in the preset database; the first preset data set comprises a plurality of elements of a first decoration style, and the elements are divided into a home element, a decoration element and a decoration element;
and if the matching degrees of the plurality of objects and the plurality of elements included in the first preset data group are larger than or equal to a preset threshold value, determining that the decoration style of the current environment is the first decoration style.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the decoration style of the current environment is determined according to the matching degree of the plurality of objects of the current environment and the databases with different decoration styles, so that the accuracy and the rapidness of judging the decoration style of the current environment are improved.
In one embodiment, the scene picture is a panoramic scene picture;
the acquiring the scene picture comprises:
acquiring a plurality of pictures of the current environment by adjusting the shooting angle and the shooting focal length;
and synthesizing the plurality of pictures into the panoramic scene picture.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the decoration style of the current environment is judged through the panoramic scene picture of the current environment, and the accuracy of judging the decoration style of the current environment is improved.
In one embodiment, the method further comprises:
and sending the plant type recommendation information to a terminal so that the terminal can display the plant type recommendation information according to an operation instruction.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the obtained plant type recommendation information is sent to the terminal, and when a user needs to purchase a plant, the user can look up the plant type recommendation information in time through the operation terminal, so that the convenience of the user for purchasing the plant is improved, and the user experience is further improved.
According to a second aspect of the embodiments of the present disclosure, there is provided a plant species recommendation apparatus including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a scene picture which comprises images of a plurality of objects of a current environment;
the identification module is used for identifying a plurality of objects appearing in the current environment according to images of the plurality of objects included in the scene picture;
the confirmation module is used for confirming the decoration style of the current environment according to the matching degree of the objects and different preset data groups in a preset database; the preset database comprises a plurality of preset data groups, and different preset data groups comprise a plurality of elements with different decoration styles;
and the second acquisition module is used for acquiring the plant type recommendation information of the current environment according to the decoration style, wherein the plant type recommendation information comprises at least one plant type suitable for the decoration style of the current environment.
In one embodiment, the second obtaining module comprises:
the first obtaining submodule is used for obtaining at least one plant type suitable for the current environment according to the corresponding relation between the decoration style and the plant type;
the second obtaining submodule is used for obtaining a scene green plant simulation diagram according to the at least one plant type suitable for the current environment and the scene picture;
and the generation submodule is used for generating the plant species recommendation information according to the scene green plant simulation diagram.
In one embodiment, the identification module comprises:
the identification submodule is used for identifying each object appearing in the current environment and the type of each object according to texture features, color features and/or shape features of a plurality of object images included in the scene picture, wherein the types include furniture, decorative patterns or ornaments;
the confirmation module comprises:
the matching submodule is used for matching each type of object with elements of corresponding types included in a first preset data group in the preset database according to the type of each object appearing in the current environment; the first preset data set comprises a plurality of elements of a first decoration style, and the elements are divided into a home element, a decoration element and a decoration element;
and the confirming submodule is used for confirming that the decoration style of the current environment is the first decoration style if the matching degree of the plurality of objects and the plurality of elements included in the first preset data group is greater than or equal to a preset threshold value.
In one embodiment, the scene picture is a panoramic scene picture;
the first obtaining module comprises:
the third obtaining submodule is used for obtaining a plurality of pictures of the current environment by adjusting the shooting angle and the shooting focal length;
and the synthesis submodule is used for synthesizing the plurality of pictures into the panoramic scene picture.
In one embodiment, the apparatus further comprises:
and the sending module is used for sending the plant type recommendation information to a terminal so that the terminal can display the plant type recommendation information according to an operation instruction.
According to a third aspect of the embodiments of the present disclosure, there is provided a plant species recommendation device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a scene picture, wherein the scene picture comprises images of a plurality of objects of a current environment;
identifying a plurality of objects appearing in the current environment according to images of the plurality of objects included in the scene picture;
confirming the decoration style of the current environment according to the matching degree of the objects and different preset data groups in a preset database; the preset database comprises a plurality of preset data groups, and different preset data groups comprise a plurality of elements with different decoration styles;
and acquiring the plant type recommendation information of the current environment according to the decoration style, wherein the plant type recommendation information comprises at least one plant type suitable for the decoration style of the current environment.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1a is a flowchart illustrating a plant species recommendation method according to an exemplary embodiment.
Fig. 1b is a flowchart illustrating a plant species recommendation method according to an exemplary embodiment.
Fig. 1c is a flowchart illustrating a plant species recommendation method according to an exemplary embodiment.
Fig. 1d is a flowchart illustrating a plant species recommendation method according to an exemplary embodiment.
Fig. 1e is a flowchart illustrating a plant species recommendation method according to an exemplary embodiment.
Fig. 1f is a flow chart illustrating a plant species recommendation method according to an exemplary embodiment.
Fig. 1g is a flowchart illustrating a plant species recommendation method according to an exemplary embodiment.
Fig. 1h is a flowchart illustrating a plant species recommendation method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a plant species recommendation method according to an exemplary embodiment.
Fig. 3 is an interaction diagram illustrating a plant species recommendation method according to an example embodiment.
Fig. 4a is a schematic structural diagram illustrating a plant species recommendation apparatus according to an exemplary embodiment.
Fig. 4b is a schematic structural diagram of a plant species recommendation device according to an exemplary embodiment.
Fig. 4c is a schematic structural diagram of a plant species recommendation device according to an exemplary embodiment.
Fig. 4d is a schematic structural diagram illustrating a plant species recommendation apparatus according to an exemplary embodiment.
Fig. 4e is a schematic structural diagram of a plant species recommendation device according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating a configuration of a plant species recommending apparatus according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating a configuration of a plant species recommending apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The technical scheme provided by the embodiment of the disclosure relates to a terminal and a server, wherein the terminal can be a mobile phone, a tablet computer, a personal computer and other equipment with a photographing function, and the embodiment of the disclosure is not limited thereto. The server may be a server provided by a communication carrier, a server provided by a network carrier, or a server provided by a third-party platform. In the related art, a decoration design company can provide a decoration effect map for a user before decorating a house, and the decoration effect map can be matched with green plant materials and simulate the matched simulation effect after decoration construction. However, for the house which has been finished, if a finishing company is requested to design the green plants placed in the house, the design cost is high, and the green plants selected by the user can not be matched with the house finishing style, so that the house is not beautiful enough. According to the technical scheme provided by the embodiment of the disclosure, when a user needs to improve the living environment, the terminal or the server can recommend a proper plant type to the user, so that the user can select the plant type matched with the decoration style of the current living environment when purchasing green plants, the user is prevented from frequently purchasing plants for beautifying the living environment, and the economic cost of purchasing the plants by the user is reduced.
The embodiment of the disclosure provides a plant species recommendation method, an execution main body implementing the method comprises a terminal and a server, and the terminal can be a mobile phone, a tablet computer, a personal computer and other equipment with a photographing function. The server may be a server provided by a communication carrier, a server provided by a network carrier, or a server provided by a third-party platform. According to different implementation main bodies of the method, the embodiment of the disclosure arranges two sets of implementation methods for recommending plant species, which are as follows:
and a terminal side.
Fig. 1a is a flowchart illustrating a plant species recommendation method according to an exemplary embodiment, as shown in fig. 1a, the plant species recommendation method for a terminal includes the following steps 101 to 104:
in step 101, a terminal acquires a scene picture including images of a plurality of objects of a current environment.
For example, the terminal may capture a scene picture of the current environment through a built-in camera, and may also receive a picture captured by a camera installed in the current environment, and use the picture as the scene picture of the current environment. For example, the terminal may first install an APP (Application) of the plant recommendation class, then call a camera of the terminal to start through the APP, and the camera takes a picture of the current environment, where the picture is a scene picture of the current environment.
In step 102, the terminal identifies a plurality of objects appearing in the current environment according to images of the plurality of objects included in the scene picture.
For example, the scene picture includes images of a plurality of objects, each image of the object includes respective image features, and the plurality of objects appearing in the current environment can be identified from the scene picture according to the image features of each object.
The image features mainly refer to image information extracted from a scene picture, and the main process of extracting the image information is to divide each point in the image into different subsets, wherein each subset is an isolated point, a continuous curve or a continuous area and the like on the image. The image features can comprise texture features, color features, shape features and the like, the color features are global features which are based on the features of pixel points, the colors of the image are mainly described, and the color features can be extracted through a color histogram; the texture feature is also a global feature, describes regular distribution caused by repeated arrangement of scenes on an image, and is usually extracted by adopting a statistical method; the shape feature describes the shape of a scene on the image and can be extracted by a boundary feature method. After the terminal obtains the image characteristics of each object, the image characteristics are correspondingly processed, and a plurality of objects appearing in the current environment are identified by using a pre-trained image identification model.
In step 103, the terminal confirms the decoration style of the current environment according to the matching degree of the plurality of objects and different preset data sets in the preset database.
For example, the preset database includes a plurality of preset data sets, and different preset data sets include a plurality of elements of different finishing styles. Different decoration style characteristics are different, and different characteristics can be embodied by elements of different decoration styles, and the elements can be classified into furniture elements, decoration elements and ornament elements. For example, the finishing style may be a harmony style, a modern concision style, a rococo style, or a chinese classical style. Among the elements capable of embodying the style characteristics of the Chinese style, the decorative elements comprise tatami, a platform and the like; the furniture elements comprise a heaven and earth bag cabinet body, a push-pull grille, a Japanese tea table and the like; the ornament elements comprise Japanese carp flags, a defense, Japanese wealth bringing cats, Jianghu bells and the like. Among the elements capable of embodying modern simple style characteristics, decorative elements include high-purity colored walls and the like; the furniture elements comprise furniture with concise lines, hanging pictures of abstract groups and the like; the decoration elements comprise metal lampshades, glass lamps and the like. Among the elements that can embody rococo style characteristics, decorative elements include arcs and S-shaped lines, light-tone walls, and the like; the ornament elements comprise shells, vortexes, mountain stones, fireplaces and the like; among the elements capable of representing the classical style characteristics of China, the decorative elements comprise dragon, phoenix, tortoise lion decorations, calligraphy and painting, inscribed boards, hanging screens and the like; the furniture elements comprise a screen, a antique shelf and the like; the ornament elements comprise bonsais, chinaware, antiques and the like; among the elements that can embody nature style characteristic, furniture element includes bamboo furniture, and decorative element and goods of furniture for display rather than for use element include the ornament and goods of furniture for display rather than for use of simulation nature everything etc..
During initialization, the terminal can be provided with a plurality of preset data sets to form a preset database, different preset data sets correspond to different decoration styles, and each preset data set comprises a plurality of elements capable of reflecting the characteristics of the corresponding decoration style. After the terminal acquires the scene picture, a plurality of objects appearing in the current environment can be identified through the scene picture, then the plurality of objects are respectively matched with the plurality of preset data groups, and then the decoration style of the current environment is determined according to the matching degree of the plurality of objects and different preset data groups.
In step 104, the terminal acquires the plant type recommendation information of the current environment according to the decoration style.
Illustratively, the plant species recommendation information includes at least one plant species applicable to the current environmental finishing style. During initialization, the terminal can preset the corresponding relationship between the decoration style and the plant type, and the corresponding relationship indicates that different decoration styles correspond to different types of plants. For example, the plant species corresponding to modern simple styles include fine and durable plants with simple styles such as abelmoschus manihot and ficus microcarpa; the plant species corresponding to the classical style of China comprise bonsai plants with beautiful shapes; the plant types corresponding to the formula style comprise withered mountains and waters, red maple bonsai and the like; the plant species corresponding to the rococo style comprise mixed fresh flowers, green plant combined dishes and the like; the plant species corresponding to the natural style comprise thatch, vines and the like.
After the terminal obtains the decoration style of the current environment, at least one plant type used by the current environment can be obtained according to the corresponding relation between the preset decoration style and the plant type, and then plant type recommendation information is generated.
According to the technical scheme provided by the embodiment of the disclosure, when a user needs to improve the living environment, a proper plant type can be recommended to the user, so that the user can select the plant type matched with the decoration style of the current living environment when purchasing green plants, the user is prevented from frequently purchasing plants for beautifying the living environment, and the economic cost of purchasing the plants by the user is reduced.
In an embodiment, as shown in fig. 1b, in step 104, the terminal obtains the plant species recommendation information of the current environment according to the decoration style, which may be implemented through steps 1041 to 1043:
in step 1041, the terminal obtains at least one plant type suitable for the current environment according to the corresponding relationship between the decoration style and the plant type.
In step 1042, the terminal obtains a scene green plant simulation diagram according to at least one plant species and scene picture suitable for the current environment.
In step 1043, the terminal generates the plant species recommendation information according to the scene green plant simulation diagram.
For example, after the terminal acquires a plurality of plant types suitable for the current environment, a plant image of each plant type may be acquired, and then the acquired plurality of plant images are simulated in a scene picture of the current environment, that is, the plant images are arranged at different positions of the scene picture according to an aesthetic rule or a spatial collocation rule, so as to acquire a scene green planting simulation diagram. And then generating plant species recommendation information according to the scene green plant simulation diagram, wherein the plant species recommendation information also can comprise information such as the name of each plant, a maintenance method and the like.
According to the technical scheme provided by the embodiment of the disclosure, when a user needs to improve a living environment, a scene green plant simulation diagram of the current environment can be provided for the user, so that the user can visually look up the plant types, the placing modes, the placing places and the like matched with the current environment, the user is prevented from frequently purchasing plants for beautifying the living environment, and the economic cost of purchasing the plants by the user is reduced.
In one embodiment, as shown in fig. 1c, in step 102, the terminal identifies a plurality of objects appearing in the current environment according to images of the plurality of objects included in the scene picture, which may be implemented by step 1021:
in step 1021, the terminal identifies each object appearing in the current environment and the type of each object according to texture features, color features and/or shape features of a plurality of object images included in the scene picture.
Exemplary types of objects include furniture, decorative motifs or furnishings. If the color feature of the first object image is walnut color and the shape feature is cabinet shape, the terminal can identify that the first object is a cabinet of walnut according to the feature of the first object image, and the type of the first object image is furniture. Or, if the color feature of the first object image is a white background color pattern, the texture feature is a repeated work pen lotus, and the shape feature is a water bottle shape, the terminal can recognize that the first object is a porcelain bottle with white background color work pen lotus patterns according to the feature of the first object image, and the type of the porcelain bottle is a decoration. Or, if the color feature of the first object image is light blue and the texture feature is a repeated moire, the terminal may identify that the first object is a light blue moire according to the feature of the first object image, and the type of the first object is a decorative pattern.
In step 103, the terminal determines the decoration style of the current environment according to the matching degrees of the multiple objects and different preset data sets in the preset database, and may implement steps 1031 and 1032:
in step 1031, the terminal matches each type of object with a corresponding type of element included in a first preset data group in a preset database according to the type of each object appearing in the current environment. The first preset data set comprises a plurality of elements of a first decoration style, and the plurality of elements are divided into three types, namely household elements, decoration elements and ornament elements.
In step 1032, if the matching degrees of the plurality of objects and the plurality of elements included in the first preset data set are greater than or equal to a preset threshold, the terminal determines that the decoration style of the current environment is the first decoration style.
For example, the matching degree between the multiple objects and the different preset data sets in the preset database is the number of coincided multiple objects and multiple elements included in the different preset data sets, and the more the number of coincided multiple objects, the higher the matching degree is, the less the number of coincided multiple objects, the lower the matching degree is.
If directly compare every object with a plurality of elements that every predetermines the data set and include in proper order, inefficiency may appear, the problem of consuming time is longer, consequently can be with a plurality of elements that every predetermines the data set and include divide into the house element, three types of decoration element and goods of furniture for display rather than for use element, a plurality of objects that the terminal appears in discerning the current environment, and after the type of every object, can be according to the type of every object, match every type of object respectively with the element of the corresponding type that different predetermine the data set include in predetermineeing the database, can determine the matching degree of a plurality of objects and every predetermine the data set. Taking the first preset data group as an example, if the matching degrees of the plurality of objects and the plurality of elements included in the first preset data group are greater than or equal to a preset threshold, the terminal may determine that the decoration style of the current environment is the first decoration style.
For example, assuming that the preset threshold is 3, the terminal recognizes that the furniture objects in the plurality of objects appearing in the current environment include a push-pull grille and a japanese tea table, the decorative pattern objects include tatami, and the decoration objects include a river aeolian bell, calligraphy and painting and porcelain. The decoration style embodied by the first preset data group is a sum style, and the decoration elements of the first preset data group comprise tatami, a platform and the like; the furniture elements comprise a heaven and earth bag cabinet body, a push-pull grille, a Japanese tea table and the like; the ornament elements comprise Japanese carp flags, a defense, Japanese wealth bringing cats, Jianghu bells and the like.
By the above, the coincidence degree of the decorative pattern object and the decorative element of the first preset data group in the multiple objects appearing in the current environment is 1, the coincidence degree of the decorative pattern object and the decorative element of the first preset data group in the decoration object and the first preset data group is 1, and the coincidence degree of the furniture object and the furniture element of the first preset data group in the furniture object is 2, so that the matching degree of the multiple objects appearing in the current environment and the first preset data group is 4, which indicates that the matching degree of the multiple objects and the first preset data group is greater than or equal to a preset threshold value, and at this moment, the terminal can confirm that the decoration style of the current environment is a sum style.
The above embodiments are equally applicable to the solution shown in fig. 1 b.
According to the technical scheme provided by the embodiment of the disclosure, the decoration style of the current environment is determined according to the matching degree of the plurality of objects of the current environment and the databases with different decoration styles, so that the accuracy and the rapidness of judging the decoration style of the current environment are improved.
In one embodiment, the scene picture is a panoramic scene picture. As shown in fig. 1d, in step 101, the terminal acquires a scene picture, which can be implemented by steps 1011 and 1012:
in step 1011, the terminal obtains multiple pictures of the current environment by adjusting the shooting angle and the focal length.
In step 1012, the terminal synthesizes the plurality of pictures into a panoramic scene picture.
In an example, in order to more accurately confirm the decoration style of the current environment, the terminal can acquire a plurality of pictures of the current environment by adjusting the shooting angle and the shooting focal length of the camera, and then synthesize a panoramic scene picture of the current environment according to the plurality of pictures, wherein the panoramic scene picture can comprehensively reflect objects appearing in the current environment in a surrounding angle.
The above embodiments are equally applicable to the solutions shown in fig. 1b and 1 c.
According to the technical scheme provided by the embodiment of the disclosure, the decoration style of the current environment is judged through the panoramic scene picture of the current environment, so that the accuracy of judging the decoration style of the current environment is improved.
Server side
Fig. 1e is a flowchart illustrating a plant species recommendation method according to an exemplary embodiment, as shown in fig. 1e, the method is applied to a server, the server can be linked with a terminal through bluetooth, infrared, a wired network or a wireless network, the plant species recommendation method includes the following steps 105 to 108:
in step 105, the server obtains a scene picture including images of a plurality of objects of the current environment.
For example, when a user needs to improve a living environment, an APP of a plant recommendation class may be installed on a terminal first, then the APP is instructed to operate, the APP calls a camera of the terminal to start, and a plurality of pictures of the current environment are obtained by adjusting an angle and a focal length shot by the camera. The terminal can synthesize the panoramic scene picture of the current environment according to the multiple pictures and send the panoramic scene picture to the server. And the server takes the received panoramic scene picture as a scene picture of the current environment.
In step 106, the server identifies a plurality of objects appearing in the current environment from images of the plurality of objects included in the scene picture.
For example, the scene picture includes images of a plurality of objects, each image of the object includes respective image features, and the plurality of objects appearing in the current environment can be identified from the scene picture according to the image features of each object.
The image features mainly refer to image information extracted from a scene picture, and the main process of extracting the image information is to divide each point in the image into different subsets, wherein each subset is an isolated point, a continuous curve or a continuous area and the like on the image. The image features can comprise texture features, color features, shape features and the like, the color features are global features which are based on the features of pixel points, the colors of the image are mainly described, and the color features can be extracted through a color histogram; the texture feature is also a global feature, describes regular distribution caused by repeated arrangement of scenes on an image, and is usually extracted by adopting a statistical method; the shape feature describes the shape of a scene on the image and can be extracted by a boundary feature method. After the server obtains the image characteristics of each object, the image characteristics are correspondingly processed, and a plurality of objects appearing in the current environment are identified by using a pre-trained image identification model.
In step 107, the server confirms the decoration style of the current environment according to the matching degree of the plurality of objects and different preset data sets in the preset database.
For example, the preset database includes a plurality of preset data sets, and different preset data sets include a plurality of elements of different finishing styles. Different decoration style characteristics are different, and different characteristics can be embodied by elements of different decoration styles, and the elements can be classified into furniture elements, decoration elements and ornament elements. For example, the finishing style may be a harmony style, a modern concision style, a rococo style, or a chinese classical style. Among the elements capable of embodying the style characteristics of the Chinese style, the decorative elements comprise tatami, a platform and the like; the furniture elements comprise a heaven and earth bag cabinet body, a push-pull grille, a Japanese tea table and the like; the ornament elements comprise Japanese carp flags, a defense, Japanese wealth bringing cats, Jianghu bells and the like. Among the elements capable of embodying modern simple style characteristics, decorative elements include high-purity colored walls and the like; the furniture elements comprise furniture with concise lines, hanging pictures of abstract groups and the like; the decoration elements comprise metal lampshades, glass lamps and the like. Among the elements that can embody rococo style characteristics, decorative elements include arcs and S-shaped lines, light-tone walls, and the like; the ornament elements comprise shells, vortexes, mountain stones, fireplaces and the like; among the elements capable of representing the classical style characteristics of China, the decorative elements comprise dragon, phoenix, tortoise lion decorations, calligraphy and painting, inscribed boards, hanging screens and the like; the furniture elements comprise a screen, a antique shelf and the like; the ornament elements comprise bonsais, chinaware, antiques and the like; among the elements that can embody nature style characteristic, furniture element includes bamboo furniture, and decorative element and goods of furniture for display rather than for use element include the ornament and goods of furniture for display rather than for use of simulation nature everything etc..
During initialization, the server can set a plurality of preset data sets to form a preset database, different preset data sets correspond to different decoration styles, and each preset data set comprises a plurality of elements capable of reflecting the characteristics of the corresponding decoration style. After the server acquires the scene picture, a plurality of objects appearing in the current environment can be identified through the scene picture, then the plurality of objects are respectively matched with the plurality of preset data groups, and then the decoration style of the current environment is determined according to the matching degree of the plurality of objects and different preset data groups.
In step 108, the server obtains the plant type recommendation information of the current environment according to the decoration style.
Illustratively, the plant species recommendation information includes at least one plant species applicable to the current environmental finishing style. During initialization, the server may preset a correspondence between the decoration style and the plant type, which indicates that different decoration styles correspond to different types of plants. For example, the plant species corresponding to modern simple styles include fine and durable plants with simple styles such as abelmoschus manihot and ficus microcarpa; the plant species corresponding to the classical style of China comprise bonsai plants with beautiful shapes; the plant types corresponding to the formula style comprise withered mountains and waters, red maple bonsai and the like; the plant species corresponding to the rococo style comprise mixed fresh flowers, green plant combined dishes and the like; the plant species corresponding to the natural style comprise thatch, vines and the like.
After the decoration style of the current environment is obtained, the server can obtain at least one plant type used by the current environment according to the corresponding relation between the preset decoration style and the plant type, and then plant type recommendation information is generated.
According to the technical scheme provided by the embodiment of the disclosure, when a user needs to improve the living environment, a proper plant type can be recommended to the user, so that the user can select the plant type matched with the decoration style of the current living environment when purchasing green plants, the user is prevented from frequently purchasing plants for beautifying the living environment, and the economic cost of purchasing the plants by the user is reduced.
In one embodiment, as shown in fig. 1f, in step 108, the server obtains the plant species recommendation information of the current environment according to the decoration style, which can be implemented through steps 1081 to 1083:
in step 1081, the server obtains at least one plant type suitable for the current environment according to the correspondence between the decoration style and the plant type.
In step 1082, the server obtains a scene green simulation graph according to at least one plant type and scene picture applicable to the current environment.
In step 1083, the server generates plant species recommendation information according to the scene green plant simulation diagram.
For example, after the server obtains a plurality of plant types suitable for the current environment, a plant image of each plant type may be obtained, and then the obtained plurality of plant images are simulated in a scene picture of the current environment, that is, the plant images are arranged at different positions of the scene picture according to an aesthetic rule or a spatial collocation rule, so as to obtain a scene green plant simulation diagram. And then generating plant species recommendation information according to the scene green plant simulation diagram, wherein the plant species recommendation information also can comprise information such as the name of each plant, a maintenance method and the like.
According to the technical scheme provided by the embodiment of the disclosure, when a user needs to improve a living environment, a scene green plant simulation diagram of the current environment can be provided for the user, so that the user can visually look up the plant types, the placing modes, the placing places and the like matched with the current environment, the user is prevented from frequently purchasing plants for beautifying the living environment, and the economic cost of purchasing the plants by the user is reduced.
In one embodiment, as shown in fig. 1g, in step 106, the server identifies a plurality of objects appearing in the current environment according to images of the plurality of objects included in the scene picture, which may be implemented by step 1061:
in step 1061, the server identifies each object appearing in the current environment and a type of each object according to texture features, color features and/or shape features of a plurality of object images included in the scene picture, where the type includes furniture, decorative patterns or ornaments.
For example, if the color feature of the second object image is gray and the shape feature is a sofa shape, the server may identify that the second object is a sofa with gray color according to the feature of the second object image, and the type of the sofa should be furniture. Or, if the color feature of the second object image is colorless and the shape feature is a water bottle shape, the server may recognize that the second object is a transparent glass bottle according to the feature of the second object image, and the type of the second object image is a decoration. Or, if the color feature of the second object image is red and the texture feature is raised, the server may identify that the second object is red raised according to the feature of the second object image, and the type of the second object image is a decorative pattern.
In step 107, the server determines the decoration style of the current environment according to the matching degrees of the plurality of objects and different preset data sets in the preset database, and may implement steps 1071 and 1072:
in step 1071, the server matches each type of object with the corresponding type of element included in the first preset data group in the preset database according to the type of each object appearing in the current environment; the first preset data set comprises a plurality of elements of a first decoration style, and the plurality of elements are divided into three types, namely household elements, decoration elements and ornament elements.
In step 1072, if the matching degree between the plurality of objects and the plurality of elements included in the first preset data set is greater than or equal to the preset threshold, the server determines that the decoration style of the current environment is the first decoration style.
For example, the matching degree between the multiple objects and the different preset data sets in the preset database is the number of coincided multiple objects and multiple elements included in the different preset data sets, and the more the number of coincided multiple objects, the higher the matching degree is, the less the number of coincided multiple objects, the lower the matching degree is.
If directly compare every object with a plurality of elements that every predetermines the data set and include in proper order, inefficiency may appear, the problem of consuming time is longer, consequently can be with a plurality of elements that every predetermines the data set and include divide into the house element, three types of decoration element and goods of furniture for display rather than for use element, a plurality of objects that the server appears in discerning the current environment, and after the type of every object, can be according to the type of every object, match every type of object respectively with the element of the corresponding type that different predetermine the data set include in predetermineeing the database, can determine the matching degree of a plurality of objects and every predetermine the data set. Taking the first preset data group as an example, if the matching degrees of the plurality of objects and the plurality of elements included in the first preset data group are greater than or equal to a preset threshold, the server may determine that the decoration style of the current environment is the first decoration style.
For example, assuming that the preset threshold is 5, the server recognizes that the furniture objects in the plurality of objects appearing in the current environment include a antique-and-curio shelf and a Japanese-style tea table, the decorative pattern objects include calligraphy and painting, a horizontal inscribed board and a hanging screen, and the decoration objects include bonsai, porcelain, ancient playing and a wind bell of a river family. The decoration style embodied by the first preset data group is a Chinese classical style, and the decoration elements of the first preset data group comprise dragon-phoenix turtle lion decoration, calligraphy and painting, horizontal inscribed board, hanging screen and the like; the furniture elements comprise a screen, a antique shelf and the like; the ornament elements comprise bonsais, chinaware, antiques and the like.
By the above, the coincidence degree of the decorative pattern object and the decorative element of the first preset data group in the multiple objects appearing in the current environment is 1, the coincidence degree of the decorative pattern object and the decorative element of the first preset data group in the decorative pattern object and the furniture element of the first preset data group in the furniture object is 3, and the coincidence degree of the furniture object and the furniture element of the first preset data group in the furniture object is 1, so that the matching degree of the multiple objects appearing in the current environment and the first preset data group is 5, which indicates that the matching degree of the multiple objects and the first preset data group is greater than or equal to the preset threshold value, and at this moment, the server can confirm that the decoration style of the current environment is the Chinese classical style.
According to the technical scheme provided by the embodiment of the disclosure, the decoration style of the current environment is determined according to the matching degree of the plurality of objects of the current environment and the databases with different decoration styles, so that the accuracy and the rapidness of judging the decoration style of the current environment are improved.
In one embodiment, as shown in fig. 1h, the method further comprises step 109:
in step 109, the server sends the plant species recommendation information to the terminal, so that the terminal can display the plant species recommendation information according to the operation instruction.
For example, after the server obtains the plant species recommendation information, the plant species recommendation information may be sent to the terminal. When the user needs to check the plant type recommendation information, the user can open the APP and indicate the APP to display the plant type recommendation information. The terminal can display the plant type recommendation information in a scene green plant simulation diagram form through the APP, and meanwhile, information such as the name of each plant and a maintenance method can be displayed on the displayed scene green plant simulation diagram.
According to the technical scheme, the obtained plant type recommendation information is sent to the terminal, when a user needs to purchase a plant, the user can look up the plant type recommendation information in time through the operation terminal, convenience of the user in purchasing the plant is improved, and user experience is further improved.
The implementation is described in detail below by way of several embodiments.
Fig. 2 is a flowchart illustrating a plant species recommendation method according to an exemplary embodiment, where an execution subject is a terminal, as shown in fig. 2, and the method includes the following steps 201 to 209:
in step 201, multiple pictures of the current environment are obtained by adjusting the angle and the focal length of the camera.
In step 202, a panoramic scene picture of the current environment is synthesized from the plurality of pictures.
In step 203, each object appearing in the current environment and the type of each object are identified according to texture features, color features and/or shape features of a plurality of object images included in the panoramic scene picture.
In step 204, according to the type of each object appearing in the current environment, each type of object is respectively matched with the element of the corresponding type included in each preset data group in the preset database.
In step 205, a decoration style corresponding to a preset data set with the matching degrees of the plurality of objects being greater than or equal to a preset threshold is obtained as a decoration style of the current environment.
In step 206, at least one plant species suitable for the current environment is obtained according to the corresponding relationship between the decoration style and the plant species.
In step 207, a scene green plant simulation diagram is obtained according to at least one plant species and panoramic scene picture suitable for the current environment.
In step 208, plant species recommendation information is generated according to the scene green plant simulation diagram.
In step 209, a first operation instruction input by the user is obtained, and the plant species recommendation information is displayed in response to the first operation instruction.
The embodiment of the disclosure provides a plant type recommending method, which can recommend a proper plant type to a user when the user needs to improve the living environment, so that the user can select the plant type matched with the decoration style of the current living environment when purchasing green plants, the user is prevented from frequently purchasing plants for beautifying the living environment, and the economic cost of purchasing the plants by the user is reduced.
Fig. 3 is an interaction diagram illustrating a plant species recommendation method according to an exemplary embodiment, as shown in fig. 3, the plant species recommendation method includes the following steps 301 to 311:
in step 301, the terminal obtains multiple pictures of the current environment by adjusting the shooting angle and the focal length of the camera.
In step 302, the terminal synthesizes a panoramic scene picture of the current environment according to the plurality of pictures.
In step 303, the terminal transmits the panoramic scene picture to the server.
In step 304, the server identifies each object present in the current environment and the type of each object based on texture features, color features, and/or shape features of a plurality of object images included in the panoramic scene picture.
In step 305, the server matches each type of object with a corresponding type of element included in each preset data group in the preset database according to the type of each object appearing in the current environment.
In step 306, the server obtains a decoration style corresponding to a preset data set with the matching degrees of the plurality of objects being greater than or equal to a preset threshold as a decoration style of the current environment.
In step 307, the server obtains at least one plant species suitable for the current environment according to the corresponding relationship between the decoration style and the plant species.
In step 308, the server obtains a scene green plant simulation diagram according to at least one plant species and panoramic scene picture suitable for the current environment.
In step 309, the server generates plant species recommendation information according to the scene green plant simulation diagram.
In step 310, the server transmits the plant species recommendation information to the terminal.
In step 311, the terminal obtains a first operation instruction input by the user, and displays the plant species recommendation information in response to the first operation instruction.
The embodiment of the disclosure provides a plant type recommending method, which can recommend a proper plant type to a user when the user needs to improve the living environment, so that the user can select the plant type matched with the decoration style of the current living environment when purchasing green plants, the user is prevented from frequently purchasing plants for beautifying the living environment, and the economic cost of purchasing the plants by the user is reduced.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 4a is a schematic diagram illustrating a structure of a plant species recommending apparatus 40 according to an exemplary embodiment, where the apparatus 40 can be implemented as part of or all of an electronic device through software, hardware or a combination of both. As shown in fig. 4a, the plant species recommending apparatus 40 includes a first obtaining module 401, a recognition module 402, a confirmation module 403 and a second obtaining module 404.
The first obtaining module 401 is configured to obtain a scene picture, where the scene picture includes images of multiple objects of a current environment.
An identifying module 402, configured to identify a plurality of objects appearing in the current environment according to images of the plurality of objects included in the scene picture.
A confirming module 403, configured to confirm the decoration style of the current environment according to matching degrees of the multiple objects and different preset data sets in a preset database; the preset database comprises a plurality of preset data groups, and different preset data groups comprise a plurality of elements with different decoration styles.
A second obtaining module 404, configured to obtain, according to the decoration style, plant type recommendation information of the current environment, where the plant type recommendation information includes at least one plant type applicable to the decoration style of the current environment.
In one embodiment, as shown in fig. 4b, the second obtaining module 404 includes a first obtaining sub-module 4041, a second obtaining sub-module 4042 and a generating sub-module 4043.
The first obtaining sub-module 4041 is configured to obtain at least one plant type suitable for the current environment according to a correspondence between a decoration style and the plant type.
A second obtaining sub-module 4042, configured to obtain a scene green plant simulation diagram according to the at least one plant type applicable to the current environment and the scene picture.
The generating sub-module 4043 is configured to generate the plant species recommendation information according to the scene green plant simulation diagram.
In one embodiment, as shown in fig. 4c, the identification module 402 comprises an identification sub-module 4021; the validation module 403 includes a matching sub-module 4031 and a validation sub-module 4032.
The identification sub-module 4021 is configured to identify each object appearing in the current environment and a type of each object according to texture features, color features and/or shape features of a plurality of object images included in the scene picture, where the type includes furniture, decorative patterns or ornaments.
A matching submodule 4031, configured to match, according to a type of each object appearing in the current environment, each type of object with a corresponding type element included in a first preset data group in the preset database, respectively; the first preset data set comprises a plurality of elements of a first decoration style, and the plurality of elements are divided into three types, namely household elements, decoration elements and ornament elements.
The determining submodule 4032 is configured to determine that the decoration style of the current environment is the first decoration style when the matching degrees of the plurality of objects and the plurality of elements included in the first preset data group are greater than or equal to a preset threshold value.
The above embodiments are equally applicable to the plant recommendation device 40 shown in fig. 4 b.
In one embodiment, as shown in fig. 4d, the scene picture is a panoramic scene picture. The first obtaining module 401 includes a third obtaining submodule 4011 and a synthesizing submodule 4012.
The third obtaining sub-module 4011 is configured to obtain multiple pictures of the current environment by adjusting a shooting angle and a shooting focal length.
And a synthesis sub-module 4012, configured to synthesize the multiple pictures into the panoramic scene picture.
The above embodiments are equally applicable to the plant recommendation device 40 shown in fig. 4b and 4 c.
In one embodiment, as shown in fig. 4e, the apparatus 40 further comprises a sending module 405.
The sending module 405 is configured to send the plant type recommendation information to a terminal, so that the terminal displays the plant type recommendation information according to an operation instruction.
The above embodiments are equally applicable to the plant recommendation device 40 shown in fig. 4b and 4 c.
The embodiment of the disclosure provides a plant type recommending device, which can recommend a proper plant type to a user when the user needs to improve a living environment, so that the user can select the plant type matched with the decoration style of the current living environment when purchasing green plants, the user is prevented from frequently purchasing plants for beautifying the living environment, and the economic cost of purchasing the plants by the user is reduced.
The disclosed embodiment provides a plant species recommendation device, which includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a scene picture, wherein the scene picture comprises images of a plurality of objects of a current environment;
identifying a plurality of objects appearing in the current environment according to images of the plurality of objects included in the scene picture;
confirming the decoration style of the current environment according to the matching degree of the objects and different preset data groups in a preset database; the preset database comprises a plurality of preset data groups, and different preset data groups comprise a plurality of elements with different decoration styles;
and acquiring the plant type recommendation information of the current environment according to the decoration style, wherein the plant type recommendation information comprises at least one plant type suitable for the decoration style of the current environment.
In one embodiment, the processor may be further configured to: acquiring at least one plant species suitable for the current environment according to the corresponding relation between the decoration style and the plant species; acquiring a scene green plant simulation diagram according to the at least one plant species suitable for the current environment and the scene picture; and generating the plant species recommendation information according to the scene green plant simulation diagram.
In one embodiment, the processor may be further configured to: identifying each object appearing in the current environment and the type of each object according to texture features, color features and/or shape features of a plurality of object images included in the scene picture, wherein the types comprise furniture, decorative patterns or ornaments; according to the type of each object appearing in the current environment, matching each type of object with the corresponding type of element included in the first preset data group in the preset database; the first preset data set comprises a plurality of elements of a first decoration style, and the elements are divided into a home element, a decoration element and a decoration element; and if the matching degrees of the plurality of objects and the plurality of elements included in the first preset data group are larger than or equal to a preset threshold value, determining that the decoration style of the current environment is the first decoration style.
In one embodiment, the scene picture is a panoramic scene picture. The processor may be further configured to: acquiring a plurality of pictures of the current environment by adjusting the shooting angle and the shooting focal length; and synthesizing the plurality of pictures into the panoramic scene picture.
In one embodiment, the processor may be further configured to: and sending the plant type recommendation information to a terminal so that the terminal can display the plant type recommendation information according to an operation instruction.
The embodiment of the disclosure provides a plant type recommending device, which can recommend a proper plant type to a user when the user needs to improve a living environment, so that the user can select the plant type matched with the decoration style of the current living environment when purchasing green plants, the user is prevented from frequently purchasing plants for beautifying the living environment, and the economic cost of purchasing the plants by the user is reduced.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating a configuration of a plant species recommending apparatus 50 according to an exemplary embodiment, which is suitable for a terminal device. For example, the apparatus 50 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
The apparatus 50 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 50, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 50. Examples of such data include instructions for any application or method operating on the device 50, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 50. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 50.
The multimedia component 508 includes a screen that provides an output interface between the device 50 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 50 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 50 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 50. For example, the sensor assembly 514 may detect an open/closed state of the device 50, the relative positioning of the components, such as a display and keypad of the device 50, the sensor assembly 514 may also detect a change in the position of the device 50 or a component of the device 50, the presence or absence of user contact with the device 50, the orientation or acceleration/deceleration of the device 50, and a change in the temperature of the device 50. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 50 and other devices in a wired or wireless manner. The device 50 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 50 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 50 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 6 is a block diagram illustrating a plant species recommendation device 60 according to an exemplary embodiment. For example, the apparatus 60 may be provided as a server. The apparatus 60 comprises a processing component 602 further comprising one or more processors, and memory resources, represented by memory 603, for storing instructions, e.g., applications, executable by the processing component 602. The application stored in memory 603 may include one or more modules that each correspond to a set of instructions. Further, the processing component 602 is configured to execute instructions to perform the above-described methods.
The device 60 may also include a power component 606 configured to perform power management of the device 60, a wired or wireless network interface 605 configured to connect the device 60 to a network, and an input/output (I/O) interface 608. The apparatus 60 may operate based on an operating system stored in the memory 603, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
The disclosed embodiments provide a non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of the apparatus 50, enable the apparatus 50 to perform the above-mentioned plant species recommendation method, the method including:
acquiring a scene picture, wherein the scene picture comprises images of a plurality of objects of a current environment;
identifying a plurality of objects appearing in the current environment according to images of the plurality of objects included in the scene picture;
confirming the decoration style of the current environment according to the matching degree of the objects and different preset data groups in a preset database; the preset database comprises a plurality of preset data groups, and different preset data groups comprise a plurality of elements with different decoration styles;
and acquiring the plant type recommendation information of the current environment according to the decoration style, wherein the plant type recommendation information comprises at least one plant type suitable for the decoration style of the current environment.
In one embodiment, the obtaining of the plant species recommendation information of the current environment according to the decoration style includes: acquiring at least one plant species suitable for the current environment according to the corresponding relation between the decoration style and the plant species; acquiring a scene green plant simulation diagram according to the at least one plant species suitable for the current environment and the scene picture; and generating the plant species recommendation information according to the scene green plant simulation diagram.
In one embodiment, the identifying, according to the images of the plurality of objects included in the scene picture, the plurality of objects appearing in the current environment includes: identifying each object appearing in the current environment and the type of each object according to texture features, color features and/or shape features of a plurality of object images included in the scene picture, wherein the types comprise furniture, decorative patterns or ornaments; the determining the decoration style of the current environment according to the matching degree of the plurality of objects and different preset data groups in a preset database comprises: according to the type of each object appearing in the current environment, matching each type of object with the corresponding type of element included in the first preset data group in the preset database; the first preset data set comprises a plurality of elements of a first decoration style, and the elements are divided into a home element, a decoration element and a decoration element; and if the matching degrees of the plurality of objects and the plurality of elements included in the first preset data group are larger than or equal to a preset threshold value, determining that the decoration style of the current environment is the first decoration style.
In one embodiment, the scene picture is a panoramic scene picture; the acquiring the scene picture comprises: acquiring a plurality of pictures of the current environment by adjusting the shooting angle and the shooting focal length; and synthesizing the plurality of pictures into the panoramic scene picture.
The disclosed embodiments provide a non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of an apparatus 60, enable the apparatus 60 to perform the above-mentioned plant species recommendation method, the method including:
acquiring a scene picture, wherein the scene picture comprises images of a plurality of objects of a current environment;
identifying a plurality of objects appearing in the current environment according to images of the plurality of objects included in the scene picture;
confirming the decoration style of the current environment according to the matching degree of the objects and different preset data groups in a preset database; the preset database comprises a plurality of preset data groups, and different preset data groups comprise a plurality of elements with different decoration styles;
and acquiring the plant type recommendation information of the current environment according to the decoration style, wherein the plant type recommendation information comprises at least one plant type suitable for the decoration style of the current environment.
In one embodiment, the obtaining of the plant species recommendation information of the current environment according to the decoration style includes: acquiring at least one plant species suitable for the current environment according to the corresponding relation between the decoration style and the plant species; acquiring a scene green plant simulation diagram according to the at least one plant species suitable for the current environment and the scene picture; and generating the plant species recommendation information according to the scene green plant simulation diagram.
In one embodiment, the identifying, according to the images of the plurality of objects included in the scene picture, the plurality of objects appearing in the current environment includes: identifying each object appearing in the current environment and the type of each object according to texture features, color features and/or shape features of a plurality of object images included in the scene picture, wherein the types comprise furniture, decorative patterns or ornaments; the determining the decoration style of the current environment according to the matching degree of the plurality of objects and different preset data groups in a preset database comprises: according to the type of each object appearing in the current environment, matching each type of object with the corresponding type of element included in the first preset data group in the preset database; the first preset data set comprises a plurality of elements of a first decoration style, and the elements are divided into a home element, a decoration element and a decoration element; and if the matching degrees of the plurality of objects and the plurality of elements included in the first preset data group are larger than or equal to a preset threshold value, determining that the decoration style of the current environment is the first decoration style.
In one embodiment, the method further comprises: and sending the plant type recommendation information to a terminal so that the terminal can display the plant type recommendation information according to an operation instruction.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (8)

1. A recommendation method for indoor plant species is characterized by comprising the following steps:
acquiring a scene picture, wherein the scene picture comprises images of a plurality of objects of a current environment;
identifying a plurality of objects appearing in the current environment according to images of the plurality of objects included in the scene picture;
confirming the decoration style of the current environment according to the matching degree of the objects and different preset data groups in a preset database; the preset database comprises a plurality of preset data groups, and different preset data groups comprise a plurality of elements with different decoration styles;
according to the decoration style, obtaining plant type recommendation information of the current environment, wherein the plant type recommendation information comprises at least one plant type suitable for the decoration style of the current environment;
the identifying, according to the images of the plurality of objects included in the scene picture, the plurality of objects appearing in the current environment includes:
identifying each object appearing in the current environment and the type of each object according to texture features, color features and/or shape features of a plurality of object images included in the scene picture, wherein the types comprise furniture, decorative patterns or ornaments;
the determining the decoration style of the current environment according to the matching degree of the plurality of objects and different preset data groups in a preset database comprises:
according to the type of each object appearing in the current environment, matching each type of object with the corresponding type of element included in the first preset data group in the preset database; the first preset data set comprises a plurality of elements of a first decoration style, and the elements are divided into a home element, a decoration element and a decoration element;
if the matching degrees of the plurality of objects and a plurality of elements included in a first preset data group are larger than or equal to a preset threshold value, determining that the decoration style of the current environment is the first decoration style;
the step of obtaining the plant type recommendation information of the current environment according to the decoration style comprises the following steps:
acquiring at least one plant species suitable for the current environment according to the corresponding relation between the decoration style and the plant species;
acquiring a scene green plant simulation diagram according to the at least one plant species suitable for the current environment and the scene picture;
and generating the plant species recommendation information according to the scene green plant simulation diagram.
2. The method of claim 1, wherein the scene picture is a panoramic scene picture;
the acquiring the scene picture comprises:
acquiring a plurality of pictures of the current environment by adjusting the shooting angle and the shooting focal length;
and synthesizing the plurality of pictures into the panoramic scene picture.
3. The method of claim 1, further comprising:
and sending the plant type recommendation information to a terminal so that the terminal can display the plant type recommendation information according to an operation instruction.
4. A plant species recommendation device, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a scene picture which comprises images of a plurality of objects of a current environment;
the identification module is used for identifying a plurality of objects appearing in the current environment according to images of the plurality of objects included in the scene picture;
the confirmation module is used for confirming the decoration style of the current environment according to the matching degree of the objects and different preset data groups in a preset database; the preset database comprises a plurality of preset data groups, and different preset data groups comprise a plurality of elements with different decoration styles;
the second obtaining module is used for obtaining the plant type recommendation information of the current environment according to the decoration style, wherein the plant type recommendation information comprises at least one plant type suitable for the decoration style of the current environment;
the identification module comprises:
the identification submodule is used for identifying each object appearing in the current environment and the type of each object according to texture features, color features and/or shape features of a plurality of object images included in the scene picture, wherein the types include furniture, decorative patterns or ornaments;
the confirmation module comprises:
the matching submodule is used for matching each type of object with elements of corresponding types included in a first preset data group in the preset database according to the type of each object appearing in the current environment; the first preset data set comprises a plurality of elements of a first decoration style, and the elements are divided into a home element, a decoration element and a decoration element;
the confirming submodule is used for confirming that the decoration style of the current environment is the first decoration style when the matching degree of the objects and the elements included in the first preset data group is larger than or equal to a preset threshold value;
the second acquisition module includes:
the first obtaining submodule is used for obtaining at least one plant type suitable for the current environment according to the corresponding relation between the decoration style and the plant type;
the second obtaining submodule is used for obtaining a scene green plant simulation diagram according to the at least one plant type suitable for the current environment and the scene picture;
and the generation submodule is used for generating the plant species recommendation information according to the scene green plant simulation diagram.
5. The apparatus of claim 4, wherein the scene picture is a panoramic scene picture;
the first obtaining module comprises:
the third obtaining submodule is used for obtaining a plurality of pictures of the current environment by adjusting the shooting angle and the shooting focal length;
and the synthesis submodule is used for synthesizing the plurality of pictures into the panoramic scene picture.
6. The apparatus of claim 4, further comprising:
and the sending module is used for sending the plant type recommendation information to a terminal so that the terminal can display the plant type recommendation information according to an operation instruction.
7. A plant species recommendation device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a scene picture, wherein the scene picture comprises images of a plurality of objects of a current environment;
identifying a plurality of objects appearing in the current environment according to images of the plurality of objects included in the scene picture;
confirming the decoration style of the current environment according to the matching degree of the objects and different preset data groups in a preset database; the preset database comprises a plurality of preset data groups, and different preset data groups comprise a plurality of elements with different decoration styles;
according to the decoration style, obtaining plant type recommendation information of the current environment, wherein the plant type recommendation information comprises at least one plant type suitable for the decoration style of the current environment;
the identifying, according to the images of the plurality of objects included in the scene picture, the plurality of objects appearing in the current environment includes:
identifying each object appearing in the current environment and the type of each object according to texture features, color features and/or shape features of a plurality of object images included in the scene picture, wherein the types comprise furniture, decorative patterns or ornaments;
the determining the decoration style of the current environment according to the matching degree of the plurality of objects and different preset data groups in a preset database comprises:
according to the type of each object appearing in the current environment, matching each type of object with the corresponding type of element included in the first preset data group in the preset database; the first preset data set comprises a plurality of elements of a first decoration style, and the elements are divided into a home element, a decoration element and a decoration element;
if the matching degrees of the plurality of objects and a plurality of elements included in a first preset data group are larger than or equal to a preset threshold value, determining that the decoration style of the current environment is the first decoration style;
the step of obtaining the plant type recommendation information of the current environment according to the decoration style comprises the following steps:
acquiring at least one plant species suitable for the current environment according to the corresponding relation between the decoration style and the plant species;
acquiring a scene green plant simulation diagram according to the at least one plant species suitable for the current environment and the scene picture;
and generating the plant species recommendation information according to the scene green plant simulation diagram.
8. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 3.
CN201710132266.5A 2017-03-07 2017-03-07 Plant species recommendation method and device Active CN107016163B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710132266.5A CN107016163B (en) 2017-03-07 2017-03-07 Plant species recommendation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710132266.5A CN107016163B (en) 2017-03-07 2017-03-07 Plant species recommendation method and device

Publications (2)

Publication Number Publication Date
CN107016163A CN107016163A (en) 2017-08-04
CN107016163B true CN107016163B (en) 2021-04-27

Family

ID=59440775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710132266.5A Active CN107016163B (en) 2017-03-07 2017-03-07 Plant species recommendation method and device

Country Status (1)

Country Link
CN (1) CN107016163B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491555B (en) 2018-04-18 2021-08-27 京东方科技集团股份有限公司 Display device, display method thereof, and computer-readable storage medium
CN109144641B (en) * 2018-08-14 2021-11-02 四川虹美智能科技有限公司 Method and device for displaying image through refrigerator display screen
CN109189986B (en) * 2018-08-29 2020-07-28 百度在线网络技术(北京)有限公司 Information recommendation method and device, electronic equipment and readable storage medium
CN109670106B (en) * 2018-12-06 2022-03-11 百度在线网络技术(北京)有限公司 Scene-based object recommendation method and device
CN109684708A (en) * 2018-12-19 2019-04-26 杭州植物园(杭州市园林科学研究院) A kind of convenient and fast Balcony Garden designing system and method
CN110851893A (en) * 2019-11-07 2020-02-28 杭州阿塔亚家居有限公司 Home furnishing system and method based on big data
CN112328884B (en) * 2020-11-09 2024-03-29 南京林业大学 Method for recommending plant collocation planting scheme for improving indoor environment to user

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102008023269A1 (en) * 2008-05-13 2009-11-19 Rheinmetall Waffe Munition Gmbh Optical system or method for improved target recognition
US8170279B2 (en) * 2008-06-23 2012-05-01 Raytheon Company Adaptive match metric selection for automatic target recognition
CN101930627B (en) * 2010-09-10 2013-05-08 西安新视角信息科技有限公司 Three-dimensional dwelling size modeling method based on two-dimensional dwelling size diagram
CN106157068A (en) * 2015-03-24 2016-11-23 北大方正集团有限公司 Household system of selection and household select device
CN105740777B (en) * 2016-01-25 2019-06-25 联想(北京)有限公司 Information processing method and device
CN106055762A (en) * 2016-05-26 2016-10-26 河南联加网络科技有限公司 Home decoration design system and method

Also Published As

Publication number Publication date
CN107016163A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN107016163B (en) Plant species recommendation method and device
JP6916460B2 (en) Object display system, user terminal device, object display method and program
WO2022179026A1 (en) Image processing method and apparatus, electronic device, and storage medium
CN110691279A (en) Virtual live broadcast method and device, electronic equipment and storage medium
US8823484B2 (en) Systems and methods for automated adjustment of device settings
CN105787993B (en) Augmented reality method and system
US20130182012A1 (en) Method of providing augmented reality and terminal supporting the same
CN103218733B (en) Mobile terminal device, toy, extension reality sense system and method
CN112801916A (en) Image processing method and device, electronic equipment and storage medium
US20210256672A1 (en) Method, electronic device and storage medium for processing image
US11375559B2 (en) Communication connection method, terminal device and wireless communication system
US20200312022A1 (en) Method and device for processing image, and storage medium
CN109523461A (en) Method, apparatus, terminal and the storage medium of displaying target image
US11863856B2 (en) Method and terminal device for matching photographed objects and preset text information
WO2022198934A1 (en) Method and apparatus for generating video synchronized to beat of music
CN109472738B (en) Image illumination correction method and device, electronic equipment and storage medium
CN108734754A (en) Image processing method and device
CN114387445A (en) Object key point identification method and device, electronic equipment and storage medium
CN104883603B (en) Control method for playing back, system and terminal device
WO2022072197A1 (en) Object relighting using neural networks
CN110381212B (en) Terminal control method, terminal and computer readable storage medium
CN109448132B (en) Display control method and device, electronic equipment and computer readable storage medium
CN114942737A (en) Display method, display device, head-mounted device and storage medium
CN111223114B (en) Image area segmentation method and device and electronic equipment
CN114028808A (en) Virtual pet appearance editing method and device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant