Game construction method and device based on indoor map
By generating game scenes based on indoor maps and home appliances, the problem of the lack of intelligent game scenes in existing technologies is solved, thereby improving the fun of the game and the familiarity of the environment.
Patent Information
- Application Number
- CN202110612431.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-02
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2041-06-02
AI Technical Summary
Existing technologies fail to effectively utilize home interior maps to build intelligent game scenes, lacking user familiarity and fun, and failing to improve users' familiarity with the indoor environment.
By determining the map information and home appliances of the target indoor area, a corresponding game scene is generated, including the game map and game objects of home appliances. The location of the devices is identified by using wireless clutter information, and intelligent game tasks are generated by combining energy consumption information and area type.
It enables the intelligent display of indoor home information through games, enhancing user engagement and game fun, while also increasing users' familiarity with the indoor environment.
Smart Images

Figure CN115430133B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method and apparatus for building games based on indoor maps. Background Technology
[0002] With the development of smart home devices, more and more of them possess intelligent communication capabilities, enabling them to collect and display digital data. This makes the devices and objects in the home's indoor map more comprehensive and intelligent, allowing for more real-time connections with reality. However, current technology has not considered this feature of the home's indoor map, which can be used to create more intelligent game scenes. Therefore, current technology has certain shortcomings that urgently need to be addressed. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a game construction method and device based on indoor maps, so as to realize the intelligent display of indoor home information to users through games, making users feel familiar with the game, improving the fun of the game, and at the same time, it can also improve users' familiarity with the indoor environment while playing.
[0004] To address the aforementioned technical problems, the first aspect of this invention discloses a game construction method based on indoor maps, the method comprising:
[0005] Determine the indoor map information of the target indoor area;
[0006] Identify the home furnishings in the target indoor area;
[0007] Based on the indoor map information and the home appliances, a corresponding indoor game scene is generated; the indoor game scene includes a game map corresponding to the indoor map information and game objects corresponding to the home appliances.
[0008] As an optional implementation, in the first aspect of the present invention, determining the indoor map information of the target indoor area includes:
[0009] The environmental parameter information of the target indoor area is obtained, and the target indoor area is modeled based on the environmental parameter information to obtain the indoor three-dimensional model of the target indoor area;
[0010] Based on the indoor 3D model of the target indoor area, determine the indoor map information of the target indoor area; the indoor map information includes a 2D indoor map and / or a 3D indoor map.
[0011] As an optional implementation, in a first aspect of the present invention, determining the home appliances in the indoor map information includes:
[0012] Acquire wireless clutter information of the target indoor area collected by the indoor patrol device;
[0013] According to the preset device signal identification rules, wireless signals from one or more home devices are identified from the wireless clutter information. Based on the wireless signals and the corresponding acquisition locations, one or more home devices in the target indoor area and their corresponding device location information are determined.
[0014] And / or,
[0015] Based on a preset home equipment model template, one or more 3D models of home equipment are matched from the 3D model of the target indoor area.
[0016] Based on the three-dimensional model of the one or more home appliances, determine the location information of one or more home appliances in the target indoor area and their corresponding locations.
[0017] As an optional implementation, in the first aspect of the present invention, generating a corresponding indoor game scene based on the indoor map information and the home appliances includes:
[0018] Determine the indoor area type corresponding to the indoor map information, and determine the game map corresponding to the indoor map information based on the indoor area type and the preset type-game correspondence.
[0019] Obtain the energy consumption information of the home appliances, and determine the game object corresponding to the home appliances based on the energy consumption information of the home appliances;
[0020] The game object is displayed on the game map with the corresponding device location information of the home appliance to generate a corresponding indoor game scene; the game object has a part for displaying the energy consumption information to the user.
[0021] As an optional implementation, in the first aspect of the present invention, the method further includes:
[0022] Based on the energy consumption information of the same type of multiple home appliances located in the same indoor area, determine the same type of energy consumption path among the multiple home appliances and the same type of energy consumption of each home appliance;
[0023] Based on the energy consumption path of the same type, a visible energy consumption path is generated between the game objects corresponding to the multiple home devices.
[0024] Based on the energy consumption of the same type, adjust some or all of the visual attribute values of the corresponding game object of the home device to the values corresponding to the energy consumption of the same type.
[0025] As an optional implementation, in the first aspect of the present invention, the method further includes:
[0026] Based on the energy consumption information of all the home appliances in the target indoor area, calculate the total energy consumption information corresponding to the target area;
[0027] Based on the total energy consumption information corresponding to the target area and the preset energy consumption judgment rules, determine whether the target area is consuming excessive energy;
[0028] When it is determined that the target area is consuming too much energy, a corresponding energy consumption prompt game task is generated for the target area. The energy consumption prompt game task is used to show the user a prompt to reduce energy consumption, and when the user performs the corresponding energy consumption reduction operation, new total energy consumption information is displayed.
[0029] As an optional implementation, in the first aspect of the present invention, the method further includes:
[0030] Based on the device information of the home appliances, a game task corresponding to the game object is generated; the game task is used to instruct the target user on the target operation of the home appliances.
[0031] When the target user's target action is detected by the home device, a game reward is generated for the target user.
[0032] As an optional implementation, in the first aspect of the present invention, generating the game task corresponding to the game object based on the device information of the home appliance includes:
[0033] Based on the location information of the home appliances and the current location of the target user, a user search path corresponding to the home appliances is generated;
[0034] Based on the user's search path, a treasure hunt game task corresponding to the game object is generated; the treasure hunt game task is used to instruct the target user to find the home appliance and perform target operations on the home appliance without displaying the user's search path.
[0035] A second aspect of the present invention discloses a game construction device based on an indoor map, the device comprising:
[0036] The map determination module is used to determine the indoor map information of the target indoor area;
[0037] Device determination module, used to determine the home appliances in the target indoor area;
[0038] The scene generation module is used to generate a corresponding indoor game scene based on the indoor map information and the home appliances; the indoor game scene includes a game map corresponding to the indoor map information and game objects corresponding to the home appliances.
[0039] As an optional implementation, in a second aspect of the present invention, the specific method by which the map determining module determines the indoor map information of the target indoor area includes:
[0040] The environmental parameter information of the target indoor area is obtained, and the target indoor area is modeled based on the environmental parameter information to obtain the indoor three-dimensional model of the target indoor area;
[0041] Based on the indoor 3D model of the target indoor area, determine the indoor map information of the target indoor area; the indoor map information includes a 2D indoor map and / or a 3D indoor map.
[0042] As an optional implementation, in a second aspect of the invention, the device determining module determines the specific method of home appliances in the indoor map information by:
[0043] Acquire wireless clutter information of the target indoor area collected by the indoor patrol device;
[0044] According to the preset device signal identification rules, wireless signals from one or more home devices are identified from the wireless clutter information. Based on the wireless signals and the corresponding acquisition locations, one or more home devices in the target indoor area and their corresponding device location information are determined.
[0045] And / or,
[0046] Based on a preset home equipment model template, one or more 3D models of home equipment are matched from the 3D model of the target indoor area.
[0047] Based on the three-dimensional model of the one or more home appliances, determine the location information of one or more home appliances in the target indoor area and their corresponding locations.
[0048] As an optional implementation, in a second aspect of the present invention, the specific method by which the scene generation module generates a corresponding indoor game scene based on the indoor map information and the home appliances includes:
[0049] Determine the indoor area type corresponding to the indoor map information, and determine the game map corresponding to the indoor map information based on the indoor area type and the preset type-game correspondence.
[0050] Obtain the energy consumption information of the home appliances, and determine the game object corresponding to the home appliances based on the energy consumption information of the home appliances;
[0051] The game object is displayed on the game map with the corresponding device location information of the home appliance to generate a corresponding indoor game scene; the game object has a part for displaying the energy consumption information to the user.
[0052] As an optional implementation, in a second aspect of the invention, the device further includes an energy consumption display module, used for:
[0053] Based on the energy consumption information of the same type of multiple home appliances located in the same indoor area, determine the same type of energy consumption path among the multiple home appliances and the same type of energy consumption of each home appliance;
[0054] Based on the energy consumption path of the same type, a visible energy consumption path is generated between the game objects corresponding to the multiple home devices.
[0055] Based on the energy consumption of the same type, adjust some or all of the visual attribute values of the corresponding game object of the home device to the values corresponding to the energy consumption of the same type.
[0056] As an optional implementation, in a second aspect of the invention, the energy consumption display module is further configured to:
[0057] Based on the energy consumption information of all the home appliances in the target indoor area, calculate the total energy consumption information corresponding to the target area;
[0058] Based on the total energy consumption information corresponding to the target area and the preset energy consumption judgment rules, determine whether the target area is consuming excessive energy;
[0059] When it is determined that the target area is consuming too much energy, a corresponding energy consumption prompt game task is generated for the target area. The energy consumption prompt game task is used to show the user a prompt to reduce energy consumption, and when the user performs the corresponding energy consumption reduction operation, new total energy consumption information is displayed.
[0060] As an optional implementation, in a second aspect of the invention, the apparatus further includes a task generation module, configured to:
[0061] Based on the device information of the home appliances, a game task corresponding to the game object is generated; the game task is used to instruct the target user on the target operation of the home appliances.
[0062] When the target user's target action is detected by the home device, a game reward is generated for the target user.
[0063] As an optional implementation, in a second aspect of the present invention, the specific method by which the task generation module generates the game task corresponding to the game object based on the device information of the home appliance includes:
[0064] Based on the location information of the home appliances and the current location of the target user, a user search path corresponding to the home appliances is generated;
[0065] Based on the user's search path, a treasure hunt game task corresponding to the game object is generated; the treasure hunt game task is used to instruct the target user to find the home appliance and perform target operations on the home appliance without displaying the user's search path.
[0066] A third aspect of the present invention discloses another game building apparatus based on an indoor map, the apparatus comprising:
[0067] Memory containing executable program code;
[0068] A processor coupled to the memory;
[0069] The processor calls the executable program code stored in the memory to execute some or all of the steps in the game construction method based on indoor maps disclosed in the first aspect of the present invention.
[0070] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0071] In this embodiment of the invention, indoor map information of the target indoor area is determined;
[0072] Identify the home furnishings in the target indoor area;
[0073] Based on the indoor map information and the home appliances, a corresponding indoor game scene is generated; the indoor game scene includes a game map corresponding to the indoor map information and game objects corresponding to the home appliances.
[0074] As can be seen, the present invention can generate corresponding game scenes based on the map information and home appliances of the target indoor area, thereby realizing the intelligent display of indoor home information to users through games, making users feel familiar with the game, increasing the fun of the game, and at the same time, it can also increase users' familiarity with the indoor environment while playing. Attached Figure Description
[0075] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0076] Figure 1 This is a flowchart illustrating a game construction method based on an indoor map disclosed in an embodiment of the present invention;
[0077] Figure 2 This is a flowchart illustrating another game construction method based on indoor maps disclosed in an embodiment of the present invention;
[0078] Figure 3 This is a schematic diagram of the structure of a game building device based on an indoor map disclosed in an embodiment of the present invention;
[0079] Figure 4 This is a schematic diagram of another indoor map-based game building device disclosed in an embodiment of the present invention;
[0080] Figure 5 This is a schematic diagram of another game building device based on an indoor map disclosed in an embodiment of the present invention. Detailed Implementation
[0081] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0082] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.
[0083] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0084] This invention discloses a game construction method and apparatus based on indoor maps. It can generate corresponding game scenes based on map information and home furnishings of a target indoor area, thereby intelligently presenting indoor home information to users through the game. This makes the game more engaging and enhances the user's familiarity with the indoor environment. Detailed descriptions follow.
[0085] Example 1
[0086] Please see Figure 1 , Figure 1 This is a flowchart illustrating a game construction method based on an indoor map, as disclosed in an embodiment of the present invention. Figure 1 The described method can be applied to corresponding build terminals, build devices, or build servers, and the server can be a local server or a cloud server; this embodiment of the invention does not limit the application. Figure 1 As shown, this indoor map-based game building method can include the following operations:
[0087] 101. Determine the indoor map information of the target indoor area.
[0088] In this embodiment of the invention, the target indoor area can be the indoor area of a commercial entertainment venue, the indoor area of a residential building, or the indoor area of a military facility. It can be the internal area of any enclosed or semi-enclosed place, and the invention does not limit it.
[0089] In this embodiment of the invention, the indoor map information may include one or both of an indoor planar map and an indoor three-dimensional map. Specifically, the indoor planar map may be a two-dimensional map of any two dimensions of the indoor area, and this invention does not impose any limitation.
[0090] 102. Determine the furniture and appliances in the target indoor area.
[0091] In this embodiment of the invention, the number of home appliances can be one or more, and the invention does not limit the number.
[0092] 103. Generate corresponding indoor game scenes based on indoor map information and home appliances.
[0093] In this embodiment of the invention, the indoor game scene includes a game map corresponding to indoor map information and game objects corresponding to home appliances.
[0094] As can be seen, the method described in the embodiments of the present invention can generate corresponding game scenes based on the map information and home appliances of the target indoor area, thereby realizing the intelligent display of indoor home information to users through games, making users feel familiar with the game, improving the fun of the game, and also allowing users to increase their familiarity with the indoor environment while playing.
[0095] In an optional implementation, the indoor map information for determining the target indoor area in step 101 above includes:
[0096] Obtain environmental parameter information of the target indoor area, and model the target indoor area based on the environmental parameter information to obtain the indoor 3D model of the target indoor area;
[0097] Based on the indoor 3D model of the target indoor area, determine the indoor map information of the target indoor area.
[0098] In this embodiment of the invention, the environmental parameter information may include one or more of electromagnetic wave reflection data, image data, and video data. Optionally, the environmental parameter information may be visually acquired data, such as image data of a target indoor area acquired by an image acquisition device, which can then be reconstructed into an indoor 3D model using 3D reconstruction algorithms and contour recognition algorithms.
[0099] Optionally, environmental parameter information can also be electromagnetic wave data, such as light reflection data or infrared reflection data. This type of electromagnetic wave data can be collected using a dedicated sensor module, and positioning or ranging algorithms can be used to calculate the indoor 3D model of the target indoor area. For example, a light sensor can emit light waves into the surrounding area, and the indoor 3D model of the target indoor area can be reconstructed based on the depth information fed back by the returned light. Similarly, an infrared sensor can emit infrared light into the surrounding area, and the indoor 3D model of the target indoor area can be reconstructed based on the depth information fed back by the infrared reflection data.
[0100] Optionally, the indoor 3D map of the target indoor area can be directly determined based on the indoor 3D model, or the indoor 2D map of the target indoor area can be determined by the cross section of the indoor 3D scene model in any two dimensions. This invention does not limit the scope of the invention.
[0101] As can be seen, implementing this optional implementation method can model the target indoor area based on environmental parameter information to obtain an indoor 3D model of the target indoor area, and then determine the indoor map information of the target indoor area, thereby more accurately determining the indoor map information of the target indoor area, which is beneficial to improving the accuracy of the subsequently generated game scene.
[0102] In an optional implementation, step 102, determining the home appliances in the indoor map information, includes:
[0103] Acquire wireless clutter information of the target indoor area collected by indoor patrol equipment;
[0104] According to the preset device signal identification rules, wireless signals from one or more home devices are identified from wireless clutter information. Based on the wireless signals and the corresponding acquisition locations, one or more home devices in the target indoor area and their corresponding device location information are determined.
[0105] In this embodiment of the invention, the preset device information identification rule can be used to indicate the signal identifier or signal parameters of the preset home device, so that different signals in the wireless clutter signal can be judged according to the device information identification rule to determine whether they match the signal identifier or signal parameters of a certain home device, thereby identifying the wireless signal of one or more home devices.
[0106] In this embodiment of the invention, the indoor patrol device can record the collection location when collecting wireless signals. Specifically, based on the wireless signal and the corresponding collection location, it determines one or more home appliances in the target indoor area and their corresponding device location information, including:
[0107] Based on the home devices corresponding to all wireless signals, identify one or more home devices in the target indoor area;
[0108] For any home appliance among all home appliances in the target indoor area, determine multiple wireless signals of that home appliance and the corresponding collection location of each wireless signal;
[0109] Based on the multiple wireless signals of the home appliance and their corresponding collection locations, the device location information of the home appliance is determined.
[0110] Optionally, the wireless signal can be collected by the data acquisition device on the indoor patrol device, and the location information can be obtained by the positioning device built into the indoor patrol device. By utilizing the data acquisition device and positioning device simultaneously installed on the indoor patrol device, wireless signals and location information can be directly acquired for subsequent data processing.
[0111] In this embodiment of the invention, the indoor patrol device can be an indoor patrol cleaning device, such as a sweeping device, mopping device, or disinfection device, or an indoor patrol monitoring device, such as a portable monitoring camera; this invention does not limit the scope of the device. Optionally, the collected location information can include one or both of two-dimensional and three-dimensional location coordinates. Optionally, obviously, the home appliances referred to in this invention are home appliances with wireless communication or wireless signal transmission functions, such as microwave ovens or table lamps that can be connected via Bluetooth; this invention does not limit the scope of the device.
[0112] Optionally, the wireless signal may include Bluetooth signal data, GPS signal data, WIFI signal data, Zigbee signal data, or other wireless signals of any frequency band or type, which are not limited herein. Specifically, the wireless signal emitted from a home appliance may carry a signal identifier for verifying the home appliance, so that the device that collects the wireless signal can identify the device source of the wireless signal, i.e., the home appliance.
[0113] Optionally, based on multiple wireless signals of the home appliance and their corresponding collection locations, the device location information of the home appliance can be determined, including:
[0114] Select at least two sets of wireless signals from multiple wireless signals.
[0115] Calculate the set of virtual perpendicular bisectors corresponding to each set of wireless signals.
[0116] The device location information of the home appliance is determined based on the intersection of all virtual perpendicular bisectors included in the set of all virtual perpendicular bisectors.
[0117] In this embodiment of the invention, each wireless signal set may include at least two wireless signals, and all wireless signals in each wireless signal set satisfy the condition of similar signal strength.
[0118] Optionally, the signal strength similarity condition described in this invention can be used to refer to the difference between the signal strengths of multiple wireless signals being compared being less than a preset strength difference threshold. Optionally, the strength difference threshold can be formulated by technicians based on technical experience or experimental data, and this invention does not limit it.
[0119] In an ideal embodiment, the similar signal strength condition can be used to refer to multiple wireless signals being compared having the same signal strength. By defining the similar signal strength condition, multiple sets of wireless signals with similar signal strengths from the various wireless signals of the home appliance can be filtered out. This setting is based on the assumption that, under ideal conditions without obstructions, the wireless signal propagation of the home appliance forms a concentric ring shape, and that multiple points equidistant from the center (i.e., the location of the home appliance) within this concentric ring shape also have the same signal strength. This assumption is consistent with the general free-space propagation model and should therefore be considered credible. Therefore, in the multiple sets of wireless signals filtered out above, the sampling point corresponding to the wireless signal in each set should be considered to be located on the same ring of the concentric ring shape of the signal propagation, while the sampling points corresponding to the wireless signals in different sets are located on different concentric rings.
[0120] Since this invention does not exclude the case of three-dimensional position coordinates, the wireless signal propagation law of the home device described in this invention can also be regarded as satisfying a multi-layered nested concentric sphere shape. The sampling point corresponding to the wireless signal in each wireless signal set should be considered to be on the same sphere on the concentric sphere shape of the signal propagation, while the sampling points corresponding to the wireless signals in different wireless signal sets are on different concentric spheres. This is the law of deriving from two-dimensional space to three-dimensional space, which will not be elaborated further here.
[0121] In this embodiment of the invention, the virtual perpendicular bisector set includes a virtual perpendicular bisector connecting the acquisition location information of any two wireless signals in the wireless signal set. Optionally, the virtual perpendicular bisector should have the potential to extend infinitely to satisfy the subsequent intersection calculation. In some cases, if there are only two wireless signals in the wireless signal set, the virtual perpendicular bisector set includes only one virtual perpendicular bisector connecting the acquisition location information of the two wireless signals. In other cases, if there are more than two wireless signals in the wireless signal set, the virtual perpendicular bisector set includes multiple virtual perpendicular bisectors connecting the acquisition location information of multiple wireless signals in pairs.
[0122] In this embodiment of the invention, based on the above-described assumptions regarding the positioning principle, it is known that the sampling point corresponding to the wireless signal in each wireless signal set is on the same ring of the concentric ring shape of the signal propagation, or on the same sphere of the concentric nested sphere shape. Therefore, the virtual perpendicular bisector calculated based on the virtual connection between the sampling points, according to geometric principles, must pass through the center of the corresponding ring or the center of the corresponding sphere, which is the location of the home appliance. Thus, the location of the center or the center of the sphere, i.e., the location of the home appliance, can be determined by the intersection of at least two virtual perpendicular bisectors corresponding to at least two wireless signal sets. Accordingly, the virtual perpendicular bisector or virtual connection can be a two-dimensional or three-dimensional spatial line, and is not limited here.
[0123] Optionally, the device location information of the home appliance is determined based on the intersection of all virtual perpendicular bisectors included in the set of all virtual perpendicular bisectors, including:
[0124] Calculate the intersection of all virtual perpendicular lines included in the set of all virtual perpendicular lines. When there is only one intersection, determine the location information of the intersection as the device location information of the home appliance.
[0125] Optionally, the device location information of the home appliance is determined based on the intersection of all virtual perpendicular bisectors included in the set of all virtual perpendicular bisectors, including:
[0126] Calculate the intersection of all virtual perpendicular bisectors included in the set of all virtual perpendicular bisectors;
[0127] When there are multiple intersection points, calculate the geometric center location information of all intersection points;
[0128] The geometric center location information is determined as the device location information of the home appliance.
[0129] Optionally, at least two sets of wireless signals can be selected from multiple wireless signals, including:
[0130] Multiple wireless signals are sorted from highest to lowest signal strength to obtain a wireless signal sequence;
[0131] The first preset number of wireless signals in the wireless signal sequence are determined as the candidate wireless signal set;
[0132] Select at least two sets of wireless signals from the candidate sets of wireless signals.
[0133] As can be seen, implementing this optional implementation method can identify wireless signals from home devices from wireless clutter information and determine the home devices and their corresponding location information in the target indoor area. This allows for a more accurate determination of the devices and their locations within the area, providing a data foundation for subsequent game scene generation and making the generated game scene closer to real data.
[0134] In an optional implementation, determining the home appliances in the indoor map information in step 102 may include:
[0135] Based on the preset home equipment model template, match one or more 3D models of home equipment from the 3D model of the target indoor area;
[0136] Based on the 3D model of one or more home appliances, determine the location information of one or more home appliances in the target indoor area.
[0137] Optionally, the home appliance model template is used to indicate the appearance and shape characteristics of the corresponding home appliance's 3D model. For example, a cuboid home appliance with a single-sided left-right opening door will be identified as a microwave oven if its volume is less than a preset threshold, and a cuboid home appliance with a single-sided up-down opening door will be identified as an oven if its volume is less than a preset threshold. Thus, based on the home appliance model template corresponding to different home appliances, one or more 3D models of home appliances can be matched from the indoor 3D model of the target indoor area.
[0138] Optionally, after matching one or more 3D models of home appliances, the location information of the home appliances can be determined based on their positions in the indoor 3D model. For example, if the microwave oven model is located at a specific position in the indoor 3D model, the relative position between that specific position and the indoor 3D model can be solved and mapped to the real scene to obtain the location information of the microwave oven.
[0139] As can be seen, implementing this optional implementation method can match the 3D model of home appliances from the 3D model of the target indoor area, thereby determining the home appliances and their corresponding location information in the target indoor area. This allows for a more accurate determination of the appliances and their location information within the area, providing a data foundation for the subsequent generation of game scenes, and making the subsequently generated game scenes closer to real data.
[0140] In an optional implementation, step 103, generating a corresponding indoor game scene based on indoor map information and home appliances, includes:
[0141] Determine the indoor area type corresponding to the indoor map information, and determine the game map corresponding to the indoor map information based on the indoor area type and the preset type-game correspondence.
[0142] Obtain energy consumption information of home appliances, and determine the corresponding game objects based on the energy consumption information of the home appliances;
[0143] The game objects are displayed on the game map with the device location information of the corresponding home appliances to generate the corresponding indoor game scene; the game objects have a part for displaying energy consumption information to the user.
[0144] In this embodiment of the invention, the indoor area type can be one or more of the conventional home environment zoning types such as bedroom, kitchen, toilet, living room, and balcony, or it can be a custom area type. Optionally, the preset type-game correspondence is used to indicate the game map corresponding to different indoor area types. It can be a preset correspondence, or it can be calculated by comparing the map similarity between template maps corresponding to different indoor area types and different game maps, and then determining the two with the highest similarity and establishing a correspondence.
[0145] In this embodiment of the invention, the energy consumption information of home appliances can be one or more of the following: water energy consumption information, electricity energy consumption information, gas energy consumption information, and material energy consumption information such as the consumption information of laundry detergent. These can be acquired and transmitted by the sensing devices installed in the home appliances.
[0146] In this embodiment of the invention, the portion of the game object used to display energy consumption information to the user can be configured such that its attribute value is related to the magnitude of the energy consumption information. This attribute value can be a color attribute value or a size attribute value. For example, this portion of the game object can be configured to increase in size as energy consumption increases and decrease in size as energy consumption decreases, or its color can be set to darken as energy consumption increases and lighten as energy consumption decreases. Optionally, this portion can also be configured as a bubble, and the game object's attribute can be set to allow users to collect bubbles to obtain corresponding rewards or hints.
[0147] As can be seen, implementing this optional implementation method can display game objects on the game map with the device location information of the corresponding home appliances to generate corresponding indoor game scenes. This allows the generation of game scenes that accurately correspond to the indoor map. At the same time, it displays the energy consumption attributes of home appliances to the user through game objects, which can be used to remind the user of this energy consumption information and thus remind the user to avoid wasting resources.
[0148] In an optional implementation, the method further includes:
[0149] Based on the energy consumption information of multiple home appliances of the same type located in the same indoor area, determine the energy consumption path of the same type among multiple home appliances and the energy consumption of the same type of each home appliance;
[0150] Based on the same type of energy consumption path, generate a visible energy consumption path between game objects corresponding to multiple home devices;
[0151] Based on the energy consumption of the same type, adjust some or all of the visual attribute values of the corresponding game object of the corresponding home equipment to the values corresponding to the energy consumption of the same type.
[0152] As can be seen, implementing this optional implementation method can generate a visual energy consumption path between game objects corresponding to multiple home devices based on the same type of energy consumption path, and adjust the value of the visualization attribute of the game object corresponding to the home device to the value corresponding to the same type of energy consumption. In this way, the energy consumption of home devices in a certain area can be displayed to the user in the form of energy consumption path. On the one hand, it can intelligently display energy consumption information, and on the other hand, it can help users judge whether there is any unreasonable or need to be improved in the energy consumption of the area based on this information.
[0153] In an optional implementation, the method further includes:
[0154] Calculate the total energy consumption of the target area based on the energy consumption information of all home appliances in the target indoor area.
[0155] Based on the total energy consumption information corresponding to the target area and the preset energy consumption judgment rules, determine whether the target area is consuming too much energy;
[0156] When it is determined that the target area is consuming too much energy, a corresponding energy consumption prompt game task is generated for the target area.
[0157] In this embodiment of the invention, the preset energy consumption judgment rule can be to determine whether the total energy consumption information is greater than the energy consumption threshold, and if the judgment result is yes, determine that the target area is consuming too much energy.
[0158] In this embodiment of the invention, the energy consumption prompt game task is used to display a prompt to the user to reduce energy consumption, and when the user performs a corresponding energy consumption reduction operation, new total energy consumption information is displayed. Optionally, the energy consumption reduction operation can be an operation performed by the user in real life, such as turning off the air conditioner or reducing the brightness of the lights, or it can be an operation performed by the user on real-world home appliances through operations in the game. For example, if the user performs an operation to kill an air conditioner monster in the game, the corresponding terminal can convert this operation into a command to turn off the air conditioner and transmit it to the air conditioner for execution.
[0159] As can be seen, implementing this optional implementation method can generate a corresponding energy consumption prompt game task for the target area when it is determined that the target area is consuming too much energy, and display it to the user to prompt them to reduce energy consumption. This prompts the user to take corresponding actions to reduce the energy consumption of the target area, which not only improves the fun of the game, but also encourages the user to save resources.
[0160] Example 2
[0161] Please see Figure 2 , Figure 2 This is a flowchart illustrating another game construction method based on indoor maps disclosed in an embodiment of the present invention. Figure 2 The described method is applied to a corresponding build terminal, build device, or build server, and the server can be a local server or a cloud server; this embodiment of the invention does not limit the scope. Figure 2 As shown, this indoor map-based game building method can include the following operations:
[0162] 201. Determine the indoor map information of the target indoor area.
[0163] 202. Determine the furniture and appliances in the target indoor area.
[0164] 203. Generate corresponding indoor game scenes based on indoor map information and home appliances.
[0165] In this embodiment of the invention, the specific technical details and explanations of technical terms for steps 201-203 can be found in the description of steps 101-103 in Embodiment 1, and will not be repeated here.
[0166] 204. Generate game tasks corresponding to game objects based on the device information of home appliances.
[0167] In this embodiment of the invention, the game task is used to instruct the target user on a target operation of home appliances. Optionally, the device information of the home appliances includes one or more of the following: the type of home appliance, the working task of the home appliance, the status of the home appliance, and the device location information of the home appliance. Optionally, a game task corresponding to a game object can be generated based on the device information of the home appliances according to a preset device-game correspondence. Specifically, the device-game correspondence defines different task attributes in the game tasks corresponding to different device information. For example, an activated home appliance corresponds to an active monster, or a home appliance located behind a door corresponds to a monster hiding and preparing to ambush, or a home appliance used for heating corresponds to a fire-attribute monster. Further details are omitted here.
[0168] 205. When the target user's target action is detected by the home device, generate game rewards for the target user.
[0169] In this embodiment of the invention, the game can be set up so that the target user needs to go to home appliances in the real world to perform target operations in order to complete the corresponding operations in the game and obtain rewards. For example, the target user needs to use a remote control to turn off the air conditioner in the real world in order to kill the ice attribute monster corresponding to the air conditioner in the game and obtain the corresponding rewards.
[0170] As can be seen, the embodiments of the present invention can generate game tasks corresponding to game objects based on the device information of home appliances, and generate game rewards for the target user when the target user's target operation is detected by the home appliance. This allows for more accurate and intelligent generation of corresponding game tasks based on the characteristics of home appliances, thereby greatly increasing the fun of the game. At the same time, users need to complete the tasks in the game through real-world operations, thus enabling the game to guide users to perform real-world operations. This can greatly expand the possibilities and application scenarios of future games.
[0171] In an optional implementation, step 204, generating the game task corresponding to the game object based on the device information of the home appliances, includes:
[0172] Based on the location information of home appliances and the current location of the target user, generate the user search path corresponding to the home appliances;
[0173] Based on the user's search path, generate treasure hunt game tasks corresponding to the game objects.
[0174] In this invention, the treasure hunt game task is used to instruct the target user to find home appliances and perform target operations on them without displaying the user's search path.
[0175] As can be seen, by implementing this optional implementation method, a treasure hunt game task corresponding to the game object can be generated based on the location information of the home equipment and the current location of the target user. This can guide the user to become familiar with the indoor area more quickly and thoroughly while searching for the game object, and allow the user to unconsciously remember the location of the home equipment during the game. This can play an excellent role in scenarios such as environmental adaptation education for young children or life management skills training for the elderly.
[0176] Example 3
[0177] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of a game construction device based on an indoor map, as disclosed in an embodiment of the present invention. Figure 3 The described apparatus can be applied to corresponding build terminals, build devices, or build servers, and the server can be a local server or a cloud server; the embodiments of the present invention do not limit this. Figure 3 As shown, the device may include:
[0178] The map determination module 301 is used to determine the indoor map information of the target indoor area.
[0179] In this embodiment of the invention, the target indoor area can be the indoor area of a commercial entertainment venue, the indoor area of a residential building, or the indoor area of a military facility. It can be the internal area of any enclosed or semi-enclosed place, and the invention does not limit it.
[0180] In this embodiment of the invention, the indoor map information may include one or both of an indoor planar map and an indoor three-dimensional map. Specifically, the indoor planar map may be a two-dimensional map of any two dimensions of the indoor area, and this invention does not impose any limitation.
[0181] Device determination module 302 is used to determine the home appliances in the target indoor area.
[0182] In this embodiment of the invention, the number of home appliances can be one or more, and the invention does not limit the number.
[0183] The scene generation module 303 is used to generate corresponding indoor game scenes based on indoor map information and home appliances.
[0184] In this embodiment of the invention, the indoor game scene includes a game map corresponding to indoor map information and game objects corresponding to home appliances.
[0185] As can be seen, the device described in the embodiments of the present invention can generate corresponding game scenes based on the map information of the target indoor area and home appliances, thereby realizing the intelligent display of indoor home information to users through games, making users feel familiar with the game, improving the fun of the game, and also allowing users to improve their familiarity with the indoor environment while playing.
[0186] As an optional implementation, the map determination module 301 determines the specific method of the indoor map information of the target indoor area, including:
[0187] Obtain environmental parameter information of the target indoor area, and model the target indoor area based on the environmental parameter information to obtain the indoor 3D model of the target indoor area;
[0188] Based on the indoor 3D model of the target indoor area, determine the indoor map information of the target indoor area.
[0189] In this embodiment of the invention, the environmental parameter information may include one or more of electromagnetic wave reflection data, image data, and video data. Optionally, the environmental parameter information may be visually acquired data, such as image data of a target indoor area acquired by an image acquisition device, which can then be reconstructed into an indoor 3D model using 3D reconstruction algorithms and contour recognition algorithms.
[0190] Optionally, environmental parameter information can also be electromagnetic wave data, such as light reflection data or infrared reflection data. This type of electromagnetic wave data can be collected using a dedicated sensor module, and positioning or ranging algorithms can be used to calculate the indoor 3D model of the target indoor area. For example, a light sensor can emit light waves into the surrounding area, and the indoor 3D model of the target indoor area can be reconstructed based on the depth information fed back by the returned light. Similarly, an infrared sensor can emit infrared light into the surrounding area, and the indoor 3D model of the target indoor area can be reconstructed based on the depth information fed back by the infrared reflection data.
[0191] Optionally, the indoor 3D map of the target indoor area can be directly determined based on the indoor 3D model, or the indoor 2D map of the target indoor area can be determined by the cross section of the indoor 3D scene model in any two dimensions. This invention does not limit the scope of the invention.
[0192] As can be seen, implementing this optional implementation method can model the target indoor area based on environmental parameter information to obtain an indoor 3D model of the target indoor area, and then determine the indoor map information of the target indoor area, thereby more accurately determining the indoor map information of the target indoor area, which is beneficial to improving the accuracy of the subsequently generated game scene.
[0193] As an optional implementation, the device determination module 302 determines the specific method of home devices in the indoor map information, including:
[0194] Acquire wireless clutter information of the target indoor area collected by indoor patrol equipment;
[0195] According to the preset device signal identification rules, wireless signals from one or more home devices are identified from wireless clutter information. Based on the wireless signals and the corresponding acquisition locations, one or more home devices in the target indoor area and their corresponding device location information are determined.
[0196] In this embodiment of the invention, the preset device information identification rule can be used to indicate the signal identifier or signal parameters of the preset home device, so that different signals in the wireless clutter signal can be judged according to the device information identification rule to determine whether they match the signal identifier or signal parameters of a certain home device, thereby identifying the wireless signal of one or more home devices.
[0197] In this embodiment of the invention, the indoor patrol device can record the collection location when collecting wireless signals. Specifically, the device determination module 302 determines one or more home appliances in the target indoor area and their corresponding device location information based on the wireless signal and the corresponding collection location, including:
[0198] Based on the home devices corresponding to all wireless signals, identify one or more home devices in the target indoor area;
[0199] For any home appliance among all home appliances in the target indoor area, determine multiple wireless signals of that home appliance and the corresponding collection location of each wireless signal;
[0200] Based on the multiple wireless signals of the home appliance and their corresponding collection locations, the device location information of the home appliance is determined.
[0201] Optionally, the wireless signal can be collected by the data acquisition device on the indoor patrol device, and the location information can be obtained by the positioning device built into the indoor patrol device. By utilizing the data acquisition device and positioning device simultaneously installed on the indoor patrol device, wireless signals and location information can be directly acquired for subsequent data processing.
[0202] In this embodiment of the invention, the indoor patrol device can be an indoor patrol cleaning device, such as a sweeping device, mopping device, or disinfection device, or an indoor patrol monitoring device, such as a portable monitoring camera; this invention does not limit the scope of the device. Optionally, the collected location information can include one or both of two-dimensional and three-dimensional location coordinates. Optionally, obviously, the home appliances referred to in this invention are home appliances with wireless communication or wireless signal transmission functions, such as microwave ovens or table lamps that can be connected via Bluetooth; this invention does not limit the scope of the device.
[0203] Optionally, the wireless signal may include Bluetooth signal data, GPS signal data, WIFI signal data, Zigbee signal data, or other wireless signals of any frequency band or type, which are not limited herein. Specifically, the wireless signal emitted from a home appliance may carry a signal identifier for verifying the home appliance, so that the device that collects the wireless signal can identify the device source of the wireless signal, i.e., the home appliance.
[0204] Optionally, the device determination module 302 determines the device location information of the home appliance based on multiple wireless signals and their corresponding acquisition locations, including:
[0205] Select at least two sets of wireless signals from multiple wireless signals.
[0206] Calculate the set of virtual perpendicular bisectors corresponding to each set of wireless signals.
[0207] The device location information of the home appliance is determined based on the intersection of all virtual perpendicular bisectors included in the set of all virtual perpendicular bisectors.
[0208] In this embodiment of the invention, each wireless signal set may include at least two wireless signals, and all wireless signals in each wireless signal set satisfy the condition of similar signal strength.
[0209] Optionally, the signal strength similarity condition described in this invention can be used to refer to the difference between the signal strengths of multiple wireless signals being compared being less than a preset strength difference threshold. Optionally, the strength difference threshold can be formulated by technicians based on technical experience or experimental data, and this invention does not limit it.
[0210] In an ideal embodiment, the similar signal strength condition can be used to refer to multiple wireless signals being compared having the same signal strength. By defining the similar signal strength condition, multiple sets of wireless signals with similar signal strengths from the various wireless signals of the home appliance can be filtered out. This setting is based on the assumption that, under ideal conditions without obstructions, the wireless signal propagation of the home appliance forms a concentric ring shape, and that multiple points equidistant from the center (i.e., the location of the home appliance) within this concentric ring shape also have the same signal strength. This assumption is consistent with the general free-space propagation model and should therefore be considered credible. Therefore, in the multiple sets of wireless signals filtered out above, the sampling point corresponding to the wireless signal in each set should be considered to be located on the same ring of the concentric ring shape of the signal propagation, while the sampling points corresponding to the wireless signals in different sets are located on different concentric rings.
[0211] Since this invention does not exclude the case of three-dimensional position coordinates, the wireless signal propagation law of the home device described in this invention can also be regarded as satisfying a multi-layered nested concentric sphere shape. The sampling point corresponding to the wireless signal in each wireless signal set should be considered to be on the same sphere on the concentric sphere shape of the signal propagation, while the sampling points corresponding to the wireless signals in different wireless signal sets are on different concentric spheres. This is the law of deriving from two-dimensional space to three-dimensional space, which will not be elaborated further here.
[0212] In this embodiment of the invention, the virtual perpendicular bisector set includes a virtual perpendicular bisector connecting the acquisition location information of any two wireless signals in the wireless signal set. Optionally, the virtual perpendicular bisector should have the potential to extend infinitely to satisfy the subsequent intersection calculation. In some cases, if there are only two wireless signals in the wireless signal set, the virtual perpendicular bisector set includes only one virtual perpendicular bisector connecting the acquisition location information of the two wireless signals. In other cases, if there are more than two wireless signals in the wireless signal set, the virtual perpendicular bisector set includes multiple virtual perpendicular bisectors connecting the acquisition location information of multiple wireless signals in pairs.
[0213] In this embodiment of the invention, based on the above-described assumptions regarding the positioning principle, it is known that the sampling point corresponding to the wireless signal in each wireless signal set is on the same ring of the concentric ring shape of the signal propagation, or on the same sphere of the concentric nested sphere shape. Therefore, the virtual perpendicular bisector calculated based on the virtual connection between the sampling points, according to geometric principles, must pass through the center of the corresponding ring or the center of the corresponding sphere, which is the location of the home appliance. Thus, the location of the center or the center of the sphere, i.e., the location of the home appliance, can be determined by the intersection of at least two virtual perpendicular bisectors corresponding to at least two wireless signal sets. Accordingly, the virtual perpendicular bisector or virtual connection can be a two-dimensional or three-dimensional spatial line, and is not limited here.
[0214] Optionally, the device determination module 302 determines the device location information of the home appliance based on the intersection of all virtual perpendicular bisectors included in the set of all virtual perpendicular bisectors, including:
[0215] Calculate the intersection of all virtual perpendicular lines included in the set of all virtual perpendicular lines. When there is only one intersection, determine the location information of the intersection as the device location information of the home appliance.
[0216] Optionally, the device determination module 302 determines the device location information of the home appliance based on the intersection of all virtual perpendicular bisectors included in the set of all virtual perpendicular bisectors, including:
[0217] Calculate the intersection of all virtual perpendicular bisectors included in the set of all virtual perpendicular bisectors;
[0218] When there are multiple intersection points, calculate the geometric center location information of all intersection points;
[0219] The geometric center location information is determined as the device location information of the home appliance.
[0220] Optionally, the device determination module 302 filters out at least two sets of wireless signals from a plurality of wireless signals, including:
[0221] Multiple wireless signals are sorted from highest to lowest signal strength to obtain a wireless signal sequence;
[0222] The first preset number of wireless signals in the wireless signal sequence are determined as the candidate wireless signal set;
[0223] Select at least two sets of wireless signals from the candidate sets of wireless signals.
[0224] As can be seen, implementing this optional implementation method can identify wireless signals from home devices from wireless clutter information and determine the home devices and their corresponding location information in the target indoor area. This allows for a more accurate determination of the devices and their locations within the area, providing a data foundation for subsequent game scene generation and making the generated game scene closer to real data.
[0225] As an optional implementation, the device determination module 302 determines the specific method of home devices in the indoor map information, including:
[0226] Based on the preset home equipment model template, match one or more 3D models of home equipment from the 3D model of the target indoor area;
[0227] Based on the 3D model of one or more home appliances, determine the location information of one or more home appliances in the target indoor area.
[0228] Optionally, the home appliance model template is used to indicate the appearance and shape characteristics of the corresponding home appliance's 3D model. For example, a cuboid home appliance with a single-sided left-right opening door will be identified as a microwave oven if its volume is less than a preset threshold, and a cuboid home appliance with a single-sided up-down opening door will be identified as an oven if its volume is less than a preset threshold. Thus, based on the home appliance model template corresponding to different home appliances, one or more 3D models of home appliances can be matched from the indoor 3D model of the target indoor area.
[0229] Optionally, after matching one or more 3D models of home appliances, the location information of the home appliances can be determined based on their positions in the indoor 3D model. For example, if the microwave oven model is located at a specific position in the indoor 3D model, the relative position between that specific position and the indoor 3D model can be solved and mapped to the real scene to obtain the location information of the microwave oven.
[0230] As can be seen, implementing this optional implementation method can match the 3D model of home appliances from the 3D model of the target indoor area, thereby determining the home appliances and their corresponding location information in the target indoor area. This allows for a more accurate determination of the appliances and their location information within the area, providing a data foundation for the subsequent generation of game scenes, and making the subsequently generated game scenes closer to real data.
[0231] As an optional implementation, the scene generation module 303 generates the corresponding indoor game scene based on indoor map information and home appliances in the following ways:
[0232] Determine the indoor area type corresponding to the indoor map information, and determine the game map corresponding to the indoor map information based on the indoor area type and the preset type-game correspondence.
[0233] Obtain energy consumption information of home appliances, and determine the corresponding game objects based on the energy consumption information of the home appliances;
[0234] The game objects are displayed on the game map with the device location information of the corresponding home appliances to generate the corresponding indoor game scene; the game objects have a part for displaying energy consumption information to the user.
[0235] In this embodiment of the invention, the indoor area type can be one or more of the conventional home environment zoning types such as bedroom, kitchen, toilet, living room, and balcony, or it can be a custom area type. Optionally, the preset type-game correspondence is used to indicate the game map corresponding to different indoor area types. It can be a preset correspondence, or it can be calculated by comparing the map similarity between template maps corresponding to different indoor area types and different game maps, and then determining the two with the highest similarity and establishing a correspondence.
[0236] In this embodiment of the invention, the energy consumption information of home appliances can be one or more of the following: water energy consumption information, electricity energy consumption information, gas energy consumption information, and material energy consumption information such as the consumption information of laundry detergent. These can be acquired and transmitted by the sensing devices installed in the home appliances.
[0237] In this embodiment of the invention, the portion of the game object used to display energy consumption information to the user can be configured such that its attribute value is related to the magnitude of the energy consumption information. This attribute value can be a color attribute value or a size attribute value. For example, this portion of the game object can be configured to increase in size as energy consumption increases and decrease in size as energy consumption decreases, or its color can be set to darken as energy consumption increases and lighten as energy consumption decreases. Optionally, this portion can also be configured as a bubble, and the game object's attribute can be set to allow users to collect bubbles to obtain corresponding rewards or hints.
[0238] As can be seen, implementing this optional implementation method can display game objects on the game map with the device location information of the corresponding home appliances to generate corresponding indoor game scenes. This allows the generation of game scenes that accurately correspond to the indoor map. At the same time, it displays the energy consumption attributes of home appliances to the user through game objects, which can be used to remind the user of this energy consumption information and thus remind the user to avoid wasting resources.
[0239] As an optional implementation method, such as Figure 4 As shown, the device also includes an energy consumption display module 304, used for:
[0240] Based on the energy consumption information of multiple home appliances of the same type located in the same indoor area, determine the energy consumption path of the same type among multiple home appliances and the energy consumption of the same type of each home appliance;
[0241] Based on the same type of energy consumption path, generate a visible energy consumption path between game objects corresponding to multiple home devices;
[0242] Based on the energy consumption of the same type, adjust some or all of the visual attribute values of the corresponding game object of the corresponding home equipment to the values corresponding to the energy consumption of the same type.
[0243] As can be seen, implementing this optional implementation method can generate a visual energy consumption path between game objects corresponding to multiple home devices based on the same type of energy consumption path, and adjust the value of the visualization attribute of the game object corresponding to the home device to the value corresponding to the same type of energy consumption. In this way, the energy consumption of home devices in a certain area can be displayed to the user in the form of energy consumption path. On the one hand, it can intelligently display energy consumption information, and on the other hand, it can help users judge whether there is any unreasonable or need to be improved in the energy consumption of the area based on this information.
[0244] As an optional implementation, the energy consumption display module 304 is also used for:
[0245] Calculate the total energy consumption of the target area based on the energy consumption information of all home appliances in the target indoor area.
[0246] Based on the total energy consumption information corresponding to the target area and the preset energy consumption judgment rules, determine whether the target area is consuming too much energy;
[0247] When it is determined that the target area is consuming too much energy, a corresponding energy consumption prompt game task is generated for the target area.
[0248] In this embodiment of the invention, the preset energy consumption judgment rule can be to determine whether the total energy consumption information is greater than the energy consumption threshold, and if the judgment result is yes, determine that the target area is consuming too much energy.
[0249] In this embodiment of the invention, the energy consumption prompt game task is used to display a prompt to the user to reduce energy consumption, and when the user performs a corresponding energy consumption reduction operation, new total energy consumption information is displayed. Optionally, the energy consumption reduction operation can be an operation performed by the user in real life, such as turning off the air conditioner or reducing the brightness of the lights, or it can be an operation performed by the user on real-world home appliances through operations in the game. For example, if the user performs an operation to kill an air conditioner monster in the game, the corresponding terminal can convert this operation into a command to turn off the air conditioner and transmit it to the air conditioner for execution.
[0250] As can be seen, implementing this optional implementation method can generate a corresponding energy consumption prompt game task for the target area when it is determined that the target area is consuming too much energy, and display it to the user to prompt them to reduce energy consumption. This prompts the user to take corresponding actions to reduce the energy consumption of the target area, which not only improves the fun of the game, but also encourages the user to save resources.
[0251] As an optional implementation method, such as Figure 4 As shown, the device also includes a task generation module 305, used for:
[0252] Generate game tasks corresponding to game objects based on the device information of home appliances;
[0253] When the target user's target action is detected by the home device, a game reward is generated for the target user.
[0254] In this embodiment of the invention, the game task is used to instruct the target user on a target operation of home appliances. Optionally, the device information of the home appliances includes one or more of the following: the type of home appliance, the working task of the home appliance, the status of the home appliance, and the device location information of the home appliance. Optionally, a game task corresponding to a game object can be generated based on the device information of the home appliances according to a preset device-game correspondence. Specifically, the device-game correspondence defines different task attributes in the game tasks corresponding to different device information. For example, an activated home appliance corresponds to an active monster, or a home appliance located behind a door corresponds to a monster hiding and preparing to ambush, or a home appliance used for heating corresponds to a fire-attribute monster. Further details are omitted here.
[0255] In this embodiment of the invention, the game can be set up so that the target user needs to go to home appliances in the real world to perform target operations in order to complete the corresponding operations in the game and obtain rewards. For example, the target user needs to use a remote control to turn off the air conditioner in the real world in order to kill the ice attribute monster corresponding to the air conditioner in the game and obtain the corresponding rewards.
[0256] As can be seen, the embodiments of the present invention can generate game tasks corresponding to game objects based on the device information of home appliances, and generate game rewards for the target user when the target user's target operation is detected by the home appliance. This allows for more accurate and intelligent generation of corresponding game tasks based on the characteristics of home appliances, thereby greatly increasing the fun of the game. At the same time, users need to complete the tasks in the game through real-world operations, thus enabling the game to guide users to perform real-world operations. This can greatly expand the possibilities and application scenarios of future games.
[0257] As an optional implementation, the task generation module 305 generates the specific method for generating the game task corresponding to the game object based on the device information of the home appliances, including:
[0258] Based on the location information of home appliances and the current location of the target user, generate the user search path corresponding to the home appliances;
[0259] Based on the user's search path, generate treasure hunt game tasks corresponding to the game objects.
[0260] In this invention, the treasure hunt game task is used to instruct the target user to find home appliances and perform target operations on them without displaying the user's search path.
[0261] As can be seen, by implementing this optional implementation method, a treasure hunt game task corresponding to the game object can be generated based on the location information of the home equipment and the current location of the target user. This can guide the user to become familiar with the indoor area more quickly and thoroughly while searching for the game object, and allow the user to unconsciously remember the location of the home equipment during the game. This can play an excellent role in scenarios such as environmental adaptation education for young children or life management skills training for the elderly.
[0262] Example 4
[0263] Please see Figure 5 , Figure 5 This is a schematic diagram of another game building device based on an indoor map disclosed in an embodiment of the present invention. For example... Figure 5 As shown, the device may include:
[0264] Memory 401 storing executable program code;
[0265] Processor 402 coupled to memory 401;
[0266] The processor 402 calls the executable program code stored in the memory 401 to execute some or all of the steps in the indoor map-based game construction method disclosed in Embodiment 1 or Embodiment 2 of the present invention.
[0267] Example 5
[0268] This invention discloses a computer storage medium storing computer instructions. When these computer instructions are invoked, they are used to execute some or all of the steps in the indoor map-based game construction method disclosed in Embodiment 1 or Embodiment 2 of this invention.
[0269] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0270] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0271] Finally, it should be noted that the game construction method and apparatus based on indoor maps disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A game construction method based on indoor maps, characterized in that, The method includes: Determine the indoor map information of the target indoor area; Identify the home furnishings in the target indoor area; Based on the indoor map information and the home appliances, a corresponding indoor game scene is generated; the indoor game scene includes a game map corresponding to the indoor map information and game objects corresponding to the home appliances. The step of generating a corresponding indoor game scene based on the indoor map information and the home appliances includes: Determine the indoor area type corresponding to the indoor map information, and determine the game map corresponding to the indoor map information based on the indoor area type and the preset type-game correspondence. The type-game correspondence includes the preset correspondence, or the correspondence between the template maps corresponding to different indoor area types and the two with the highest map similarity among different game maps. Obtain the energy consumption information of the home appliances, and determine the game object corresponding to the home appliances based on the energy consumption information of the home appliances; The game object is displayed on the game map with the corresponding device location information of the home appliance to generate a corresponding indoor game scene; the game object has a part for displaying the energy consumption information to the user.
2. The game construction method based on indoor maps according to claim 1, characterized in that, The indoor map information for determining the target indoor area includes: The environmental parameter information of the target indoor area is obtained, and the target indoor area is modeled based on the environmental parameter information to obtain the indoor three-dimensional model of the target indoor area; Based on the indoor 3D model of the target indoor area, determine the indoor map information of the target indoor area; the indoor map information includes a 2D indoor map and / or a 3D indoor map.
3. The game construction method based on indoor maps according to claim 2, characterized in that, The process of determining the home appliances in the indoor map information includes: Acquire wireless clutter information of the target indoor area collected by the indoor patrol device; According to the preset device signal identification rules, wireless signals from one or more home devices are identified from the wireless clutter information. Based on the wireless signals and the corresponding acquisition locations, one or more home devices in the target indoor area and their corresponding device location information are determined. And / or, Based on a preset home equipment model template, one or more 3D models of home equipment are matched from the 3D model of the target indoor area. Based on the three-dimensional model of the one or more home appliances, determine the location information of one or more home appliances in the target indoor area and their corresponding locations.
4. The game construction method based on indoor maps according to any one of claims 1-3, characterized in that, The method further includes: Based on the energy consumption information of the same type of multiple home appliances located in the same indoor area, determine the same type of energy consumption path among the multiple home appliances and the same type of energy consumption of each home appliance; Based on the energy consumption path of the same type, a visible energy consumption path is generated between the game objects corresponding to the multiple home devices. Based on the energy consumption of the same type, adjust some or all of the visual attribute values of the corresponding game object of the home device to the values corresponding to the energy consumption of the same type.
5. The game construction method based on indoor maps according to claim 1, characterized in that, The method further includes: Based on the energy consumption information of all the home appliances in the target indoor area, calculate the total energy consumption information corresponding to the target area; Based on the total energy consumption information corresponding to the target area and the preset energy consumption judgment rules, determine whether the target area is consuming excessive energy; When it is determined that the target area is consuming too much energy, a corresponding energy consumption prompt game task is generated for the target area. The energy consumption prompt game task is used to show the user a prompt to reduce energy consumption, and when the user performs the corresponding energy consumption reduction operation, new total energy consumption information is displayed.
6. The game construction method based on indoor maps according to claim 1, characterized in that, The method further includes: Based on the device information of the home appliances, a game task corresponding to the game object is generated; the game task is used to instruct the target user on the target operation of the home appliances. When the target user's target action is detected by the home device, a game reward is generated for the target user.
7. The game construction method based on indoor maps according to claim 6, characterized in that, The step of generating a game task corresponding to the game object based on the device information of the home appliances includes: Based on the location information of the home appliances and the current location of the target user, a user search path corresponding to the home appliances is generated; Based on the user's search path, a treasure hunt game task corresponding to the game object is generated; the treasure hunt game task is used to instruct the target user to find the home appliance and perform target operations on the home appliance without displaying the user's search path.
8. A game building device based on an indoor map, characterized in that, The apparatus is used to perform the game construction method based on an indoor map as described in any one of claims 1-7, the apparatus comprising: The map determination module is used to determine the indoor map information of the target indoor area; Device determination module, used to determine the home appliances in the target indoor area; The scene generation module is used to generate a corresponding indoor game scene based on the indoor map information and the home appliances; the indoor game scene includes a game map corresponding to the indoor map information and game objects corresponding to the home appliances.
9. A game building device based on an indoor map, characterized in that, The device includes: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the game construction method based on indoor maps as described in any one of claims 1-7.
Citation Information
Patent Citations
Virtual reality method for intelligent home management
CN106713082A
Game image processing system and program
CN108601976A