Method, device, computer equipment and storage medium for detecting an object
By receiving detection requests in the self-detection stage of smart home design, determining environmental status and functions, generating analog signals and matching output data, the problem of low detection efficiency in the smart home design stage is solved, and the effect of automated detection and efficient positioning of abnormal components is achieved.
Patent Information
- Application Number
- CN202010683198.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-15
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2040-07-15
AI Technical Summary
In the prior art, the operating state detection efficiency of smart homes in the design stage is low, and it is difficult to quickly and accurately locate abnormal parts based on manual experience.
By receiving the detection request, the environment status and function of the object to be detected are determined, the analog signal of the object to be detected is generated with preset rules to control the object to run, and the operation output data is matched to locate the abnormal components.
It realizes automated detection of smart homes in the design self-detection stage, improves detection efficiency, and reduces the need for manual operations and error risks.
Smart Images

Figure CN114021299B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, computer equipment and storage medium for detecting an object. Background Art
[0002] With the continuous development of science and technology, the design and development of smart products has become increasingly fierce. On the basis of meeting the personalized needs of users, how to quickly and efficiently realize the research and development of smart products has become an urgent problem to be solved.
[0003] However, the current R&D process involves inputting estimated simulation data based on prior experience, then feeding that data into the smart product. The output data is then manually recorded, and the system uses this experience to determine whether each component in the smart product is operating properly. This approach, because the input simulation data is manually determined based on a single empirical value, leaves a large margin for error in the simulation data, making subsequent testing more difficult and extending adjustment time. Furthermore, the manual process of locating abnormal components based on experience places high demands on operators and can lead to recording errors, resulting in lower detection efficiency. Summary of the Invention
[0004] Embodiments of the present invention provide a method, apparatus, computer device, and storage medium for detecting an object, which are used to solve the technical problem of low efficiency in detecting the operating status of a smart home during the design phase in the prior art.
[0005] In a first aspect, a method for detecting an object is provided, which is applied to the design and self-detection stage of a smart home. The method comprises:
[0006] Receiving a detection request for an object to be detected;
[0007] In response to the detection request, determining state information corresponding to the environment in which the object to be detected is currently located, and determining a function to be detected corresponding to the object to be detected according to the corresponding state information;
[0008] Determining an analog signal corresponding to the function to be detected, and controlling the operation of the object to be detected according to the analog signal to obtain operation output data, wherein the analog signal is generated according to a preset rule;
[0009] The operation output data is matched with data in a preset data set. If the match fails, the abnormal component of the object to be detected is located according to the operation output data.
[0010] In a possible implementation, determining the analog signal corresponding to the function to be detected includes:
[0011] Acquire a preset data set of the object to be detected, wherein the preset data set includes at least one set of simulation operation data of each of a plurality of functions to be detected corresponding to the object to be detected;
[0012] The function to be detected is matched with the preset data set to determine corresponding simulation operation data, and a simulation signal is generated according to the corresponding simulation operation data and the preset rules.
[0013] In a possible implementation, obtaining a preset data set of the object to be detected includes:
[0014] Acquiring historical verification data of the object to be detected, wherein the historical verification data is used to represent at least one set of data for manually controlling the operation of the object to be detected;
[0015] The simulated operation data of the object to be detected is determined based on the historical verification data and the first data, and a preset data set of the object to be detected is determined based on the simulated operation data, wherein the first data is used to represent data corresponding to multiple functions to be detected.
[0016] In a possible implementation, determining the simulated operation data of the object to be detected based on the historical verification data and the first input data includes:
[0017] Inputting multiple input data in the historical verification data into a preset simulation operation model to obtain multiple operation results;
[0018] Determining differences between the plurality of operating results and a plurality of operating results in the historical verification data, and comparing the differences with the preset threshold;
[0019] The simulation operation model is adjusted according to the comparison result. If the comparison result is within a preset range, a trained simulation operation model is obtained, and the first data is input into the trained simulation operation model to determine the simulation operation data of the object to be detected.
[0020] In one possible implementation, the method further includes:
[0021] Performing preset adjustments on the abnormal component of the object to be detected, wherein the preset adjustments include correcting parameters of the abnormal component.
[0022] In a second aspect, a device for detecting an object is provided, which is applied to the design and self-detection stage of a smart home, and the device includes:
[0023] A receiving module, configured to receive a detection request for an object to be detected;
[0024] a first determining module, configured to respond to the detection request, determine state information corresponding to the environment in which the object to be detected is currently located, and determine a function to be detected corresponding to the object to be detected according to the corresponding state information;
[0025] A second determination module is configured to determine an analog signal corresponding to the function to be detected, and control the operation of the object to be detected according to the analog signal to obtain operation output data, wherein the analog signal is generated according to a preset rule;
[0026] The processing module is used to match the operation output data with data in a preset data set, and if the match fails, locate the abnormal component of the object to be detected according to the operation output data.
[0027] In a possible implementation manner, the second determining module is configured to:
[0028] Acquire a preset data set of the object to be detected, wherein the preset data set includes at least one set of simulation operation data of each of a plurality of functions to be detected corresponding to the object to be detected;
[0029] The function to be detected is matched with the preset data set to determine corresponding simulation operation data, and a simulation signal is generated according to the corresponding simulation operation data and the preset rules.
[0030] In a possible implementation manner, the second determining module is configured to:
[0031] Acquiring historical verification data of the object to be detected, wherein the historical verification data is used to represent at least one set of data for manually controlling the operation of the object to be detected;
[0032] The simulated operation data of the object to be detected is determined based on the historical verification data and the first data, and a preset data set of the object to be detected is determined based on the simulated operation data, wherein the first data is used to represent data corresponding to multiple functions to be detected.
[0033] In a possible implementation manner, the second determining module is configured to:
[0034] Inputting multiple input data in the historical verification data into a preset simulation operation model to obtain multiple operation results;
[0035] Determining differences between the multiple operating results and multiple operating results in the historical verification data, and comparing the differences with the preset threshold to obtain a comparison result;
[0036] The simulation operation model is adjusted according to the comparison result. If the comparison result is within a preset range, a trained simulation operation model is obtained, and the first data is input into the trained simulation operation model to determine the simulation operation data of the object to be detected.
[0037] In a possible implementation, the device further includes an adjustment module, configured to:
[0038] Performing preset adjustments on the abnormal component of the object to be detected, wherein the preset adjustments include correcting parameters of the abnormal component.
[0039] According to a third aspect, a computer device is provided, comprising:
[0040] a memory for storing program instructions;
[0041] The processor is configured to call the program instructions stored in the memory and execute the steps included in any one of the methods in the first aspect according to the obtained program instructions.
[0042] In a fourth aspect, a storage medium is provided, wherein the storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer device to execute the steps included in any one of the methods in the first aspect.
[0043] According to a fifth aspect, a computer program product is provided. When the computer program product is run on a computer device, the computer device is enabled to execute the steps included in any one of the methods in the first aspect.
[0044] The technical solutions provided by the embodiments of the present invention bring at least the following beneficial effects:
[0045] In an embodiment of the present invention, a detection request for an object to be detected can be received, and then the detection request can be responded to. State information corresponding to the environment in which the object to be detected is currently located can be determined, and the function to be detected corresponding to the object to be detected can be determined based on the corresponding state information. Then, an analog signal corresponding to the function to be detected can be determined, and the operation of the object to be detected can be controlled based on the analog signal to obtain operation output data.
[0046] Furthermore, the output data can be matched against data in a pre-set dataset. If the match fails, the abnormal component of the object to be inspected can be located based on the output data. In other words, in this embodiment of the present invention, the corresponding analog signal can be directly acquired to control the operation of the object to be inspected and automatically locate the abnormal component, without requiring the user to perform a series of manual operations, greatly improving detection efficiency.
[0047] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description or understood through implementation. The purpose and other advantages of the present invention can be realized and obtained through the structures particularly pointed out in the written description, claims, and drawings.
[0048] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention.
[0050] Figure 1 Schematic diagram of an application scenario in an embodiment of the present invention;
[0051] Figure 2 is a flow chart of a method for detecting an object in an embodiment of the present invention;
[0052] Figure 3 This is a flowchart of obtaining a preset data set of an object to be detected in an embodiment of the present invention;
[0053] Figure 4 is a structural block diagram of an apparatus for detecting an object in an embodiment of the present invention;
[0054] Figure 5 4 is a structural block diagram of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. In the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other arbitrarily. In addition, although the logical order is shown in the flowchart, in some cases, the steps shown or described can be performed in an order different from that here.
[0056] The terms "first" and "second" in the specification and claims of the present invention and the accompanying drawings are used to distinguish between different objects, not to describe a specific order. Furthermore, the terms "comprising" and "including" and any variations thereof are intended to cover non-exclusive protection. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements, but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.
[0057] As mentioned above, in the existing technology, when developing and designing smart products, multiple manual experiments are generally performed to determine whether each component is functioning properly. This approach not only requires high operator requirements, i.e., a certain level of testing experience, but also has cumbersome steps and long testing times, resulting in low overall testing efficiency.
[0058] In view of this, an embodiment of the present invention provides a method for detecting an object, which is applied to the self-detection stage of smart home design. Through this method, automatic detection of the smart home can be achieved in the self-detection stage of design, thereby improving detection efficiency.
[0059] See Figure 1 , Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present invention. Figure 1 The interaction between a smart home and a computer device is shown in the figure. It should be noted that, in the specific implementation process, multiple smart homes and computer devices may interact. For example, a computer device may detect the designed smart home such as a smart air conditioner and a smart refrigerator. Of course, multiple smart homes and multiple computer devices may also interact, which is not limited in the embodiments of the present invention. In order to better understand the technical solutions provided in the embodiments of the present invention, the interaction between a smart home (such as a smart air conditioner) and a computer device will be described in detail below.
[0060] In an embodiment of the present invention, when a user triggers the air conditioner or the user directly operates the computer device, a detection request can be sent. The computer device then responds to the detection request and determines an analog signal for controlling the operation of the air conditioner. The operation of the air conditioner is then controlled to determine whether abnormal components appear in the air conditioner, thereby achieving rapid self-detection of the air conditioner.
[0061] To further illustrate the technical solution provided by the embodiment of the present invention, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present invention provides the method operation steps as shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiment of the present invention. When the method is executed in the actual processing process or by the device, it can be executed in sequence or in parallel according to the method shown in the embodiment or drawings (for example, in the application environment of a parallel processor or multi-threaded processing).
[0062] After introducing the application scenarios provided in the embodiments of the present invention, the technical solutions provided in the embodiments of the present invention are described below in conjunction with the accompanying drawings.
[0063] See Figure 2 , the embodiment of the present invention provides a method for detecting an object, which is applied to the design self-detection stage of a smart home. Figure 1 In the specific implementation process, the computer device can be a server, such as a personal computer, a large or medium-sized computer, a computer cluster, etc. The specific process of the method is described as follows.
[0064] Step 201: Receive a detection request for an object to be detected.
[0065] In an embodiment of the present invention, a computer device may receive a detection request for an object to be detected. Specifically, the detection request may be sent by a smart home to the computer device, or may be received by the computer device through a user performing a predetermined operation on the computer device, without limitation in the embodiment of the present invention.
[0066] In the specific implementation process, when the user determines that a smart home design needs to be tested, a predetermined connection can be established between the smart home and a computer device, and a test request can be triggered to the computer device by operating the smart home, so that the computer device can receive the test request.
[0067] Step 202: responding to the detection request, determining the state information corresponding to the environment in which the object to be detected is currently located, and determining the function to be detected corresponding to the object to be detected according to the corresponding state information.
[0068] In an embodiment of the present invention, a computer can respond to a received detection request and determine state information corresponding to the environment in which the object to be detected is currently located. This can include state information corresponding to the current environment of the smart home. This state information can include temperature information, humidity information, light intensity information, and other information related to the scene in which the smart home is currently located. Furthermore, after determining the state information corresponding to the current environment in which the smart home is currently located, the function to be detected corresponding to the object to be detected can be determined based on the corresponding state information. Specifically, the function to be detected can be a function type corresponding to any function that the object to be detected can implement, such as the heating function of a smart air conditioner.
[0069] In an embodiment of the present invention, the state information corresponding to the current environment of the smart home and the type information of the smart home can be combined to determine the function to be detected corresponding to the object to be detected. Specifically, if a certain sub-information in the corresponding state information has a greater impact on the overall operation of the smart home to be detected, the function to be detected corresponding to the object to be detected can be determined based on the sub-parameter information. In the specific implementation process, the corresponding state information and the corresponding relationship between the function to be detected can be pre-stored in a storage area, and then the function to be detected corresponding to the object to be detected can be directly determined based on the corresponding relationship. For example, if the smart home is an air conditioner, and the current ambient temperature of the air conditioner is 32 degrees Celsius, the function to be detected to be detected can be determined to be a cooling function based on the pre-stored corresponding relationship. In other words, the function to be detected that is suitable for operation can be determined in combination with the current corresponding state information, thereby correspondingly determining the function to be detected.
[0070] Specifically, in the embodiment of the present invention, the corresponding function to be detected can be determined in combination with the state information corresponding to the actual environment. In this way, since the type to be detected is determined in combination with the actual implementation condition information, the determination result is more accurate.
[0071] Step 203: Determine the analog signal corresponding to the function to be detected, and control the operation of the object to be detected according to the analog signal to obtain operation output data, wherein the analog signal is generated according to a preset rule.
[0072] In an embodiment of the present invention, after the function to be detected is determined, the analog signal corresponding to the function to be detected can be determined, wherein the analog signal corresponding to the function to be detected is determined by intelligent learning.
[0073] In an embodiment of the present invention, a preset data set of the object to be detected can be first obtained, wherein the preset data set includes at least one set of simulated operation data for each of the multiple functions to be detected corresponding to the object to be detected. Specifically, the preset data set can be first collected and then stored in a corresponding storage area, so that the computer device can obtain the preset data set of the object to be detected from the corresponding storage area. In other words, the preset data set in the embodiment of the present invention is pre-processed, and when used later, the preset data set can be directly obtained from the corresponding storage area, that is, at least one set of simulated operation data for each function to be detected can be obtained more simply and quickly, providing a good implementation basis for the subsequent generation of simulation signals.
[0074] In the embodiments of the present invention, see Figure 3 , Figure 3 This is a flowchart of an embodiment of the present invention for obtaining a preset data set of an object to be detected.
[0075] Step 301: Acquire historical verification data of the object to be detected, where the historical verification data is used to represent at least one set of data for manually controlling the operation of the object to be detected;
[0076] Step 302: Determine simulation operation data of the object to be detected based on the historical verification data and the first data, and determine a preset data set of the object to be detected based on the simulation operation data, wherein the first data is used to represent data corresponding to multiple functions to be detected.
[0077] In an embodiment of the present invention, historical verification data of the object to be detected can be collected first, wherein the historical verification data is used to characterize at least one set of data for manually controlling the operation of the object to be detected. Specifically, a set of data corresponding to the response state of the smart home itself can be collected under different environmental conditions of the device to be detected, and the set of data at least includes the input voltage AC, input current AI, input voltage DC, input current DI, output voltage AC, output current I, output small signal voltage DC and output small signal current DI of the smart home. Furthermore, each set of collected data can be stored in different sub-storage areas respectively so that they can be accurately obtained. That is to say, in an embodiment of the present invention, a set of actual operation data can be determined for each function to be detected, i.e., the aforementioned historical verification data.
[0078] Furthermore, simulation operation data of the object to be detected can be determined based on the historical verification data and the first data, and a preset data set of the object to be detected can be determined based on the simulation operation data, wherein the first data is used to represent data corresponding to multiple functions to be detected.
[0079] In an embodiment of the present invention, multiple input data from the historical verification data can be input into a preset simulation operation model to obtain multiple operation results. The difference between the multiple operation results and the multiple operation results in the historical verification data can then be determined and compared with a preset threshold. Furthermore, the simulation operation model can be adjusted based on the comparison result. If the comparison result is within a preset range, a trained simulation operation model is obtained. The first data can then be input into the trained simulation operation model, thereby determining the simulation operation data of the object to be detected. Specifically, the aforementioned preset threshold and preset range can be determined in conjunction with actual scenarios.
[0080] In an embodiment of the present invention, the simulation operation model can be trained using historical verification data to obtain a trained simulation operation model. Then, the first data is input into the trained simulation operation model to obtain simulation operation data. In other words, the technical solution provided by the embodiment of the present invention is to obtain simulation operation data based on the trained simulation operation model without the need for manual experiments to obtain the corresponding data. In this way, not only can a large amount of operation data be quickly obtained, but also the obtained operation data is more accurate because no manual experiments and records are required. In addition, it also reduces the loss to the smart home, shortens the detection time for the overall detection in the later stage, and improves the overall detection efficiency.
[0081] In an embodiment of the present invention, after obtaining a preset data set of the object to be detected, the function to be detected corresponding to the aforementioned object to be detected can be matched with the preset data set, and then the corresponding simulation operation data can be determined based on the matching result, and then a simulation signal can be generated based on the corresponding simulation operation data and preset rules. Among them, the preset rule is to encode the simulation operation data corresponding to the matching result, obtain the encoded data, and generate a simulation signal based on the encoded data and the data corresponding to the trigger instruction. That is, in an embodiment of the present invention, the simulation operation data can be encoded, and then an analog signal that can be directly recognized by the computer device can be obtained, and the computer device can trigger the operation of controlling the object to be detected to run with the simulation operation data corresponding to the analog signal based on the analog signal, that is, there is no need for the user to manually input the experimental data and perform corresponding processing, thereby improving the detection efficiency.
[0082] In embodiments of the present invention, the operation of the object to be inspected can be controlled based on the analog signal. Specifically, the object to be inspected can be controlled to operate according to the simulated operating data corresponding to the analog signal, and then operational output data of the object to be inspected can be obtained. In other words, in embodiments of the present invention, no manual input of the corresponding operational data is required; the computer device can directly control the operation of the object to be inspected based on the analog signal. This approach allows for more accurate and rapid inspections.
[0083] Step 204: Match the operation output data with the data in the preset data set. If the match fails, locate the abnormal component of the object to be detected based on the operation output data.
[0084] In an embodiment of the present invention, after obtaining operational output data of an object to be inspected, the operational output data can be matched with data in a preset data set. If the match fails, the abnormal component of the object to be inspected can be located based on the operational output data. Furthermore, preset adjustments can be made to the abnormal component of the object to be inspected, that is, the parameters of the abnormal component can be corrected.
[0085] In the embodiment of the present invention, through the aforementioned method, the smart home can be quickly detected during the smart home design process, thereby locating abnormal components of the smart home, thereby improving the overall design efficiency of the smart home.
[0086] Based on the same inventive concept, an embodiment of the present invention provides a device for detecting an object, which can implement the functions corresponding to the aforementioned method for detecting an object. The device for detecting an object can be a hardware structure, a software module, or a hardware structure and a software module. The device for detecting an object can be implemented by a chip system, which can be composed of a chip or include a chip and other discrete devices. See Figure 4 As shown, the device for detecting an object includes a receiving module 401, a first determining module 402, a second determining module 403 and a processing module 404.
[0087] Receiving module 401, used to receive a detection request for an object to be detected;
[0088] A first determining module 402 is configured to respond to the detection request, determine state information corresponding to the environment in which the object to be detected is currently located, and determine a function to be detected corresponding to the object to be detected based on the corresponding state information;
[0089] A second determining module 403 is configured to determine an analog signal corresponding to the function to be detected, and control the operation of the object to be detected according to the analog signal to obtain operation output data, wherein the analog signal is generated according to a preset rule;
[0090] The processing module 404 is configured to match the operation output data with data in a preset data set, and if the match fails, locate the abnormal component of the object to be detected based on the operation output data.
[0091] In a possible implementation, the second determining module 403 is configured to:
[0092] Acquire a preset data set of the object to be detected, wherein the preset data set includes at least one set of simulation operation data of each of a plurality of functions to be detected corresponding to the object to be detected;
[0093] The function to be detected is matched with the preset data set to determine corresponding simulation operation data, and a simulation signal is generated according to the corresponding simulation operation data and the preset rules.
[0094] In a possible implementation, the second determining module 403 is configured to:
[0095] Acquiring historical verification data of the object to be detected, wherein the historical verification data is used to represent at least one set of data for manually controlling the operation of the object to be detected;
[0096] The simulated operation data of the object to be detected is determined based on the historical verification data and the first data, and a preset data set of the object to be detected is determined based on the simulated operation data, wherein the first data is used to represent data corresponding to multiple functions to be detected.
[0097] In a possible implementation, the second determining module 403 is configured to:
[0098] Inputting multiple input data in the historical verification data into a preset simulation operation model to obtain multiple operation results;
[0099] Determining differences between the multiple operating results and multiple operating results in the historical verification data, and comparing the differences with the preset threshold to obtain a comparison result;
[0100] The simulation operation model is adjusted according to the comparison result. If the comparison result is within a preset range, a trained simulation operation model is obtained, and the first data is input into the trained simulation operation model to determine the simulation operation data of the object to be detected.
[0101] In a possible implementation, the device further includes an adjustment module, configured to:
[0102] Performing preset adjustments on the abnormal component of the object to be detected, wherein the preset adjustments include correcting parameters of the abnormal component.
[0103] All relevant contents of each step involved in the embodiment of the aforementioned method for detecting an object can be referred to the functional description of the functional modules corresponding to the device for detecting an object in the embodiment of the present invention, and will not be repeated here.
[0104] The module division in the embodiments of the present invention is illustrative and represents only a logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional modules in various embodiments of the present invention may be integrated into a single controller, exist physically as separate modules, or two or more modules may be integrated into a single module. The integrated modules may be implemented in either hardware or software functional modules.
[0105] Based on the same inventive concept, an embodiment of the present invention provides a computer device, see Figure 5 As shown, the computer device includes at least one processor 501 and a memory 502 connected to the at least one processor. The embodiment of the present invention does not limit the specific connection medium between the processor 501 and the memory 502. Figure 5 In the example, the processor 501 and the memory 502 are connected via a bus 500. Figure 5 The bus 500 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0106] In the embodiment of the present invention, the memory 502 stores instructions that can be executed by at least one processor 501. The at least one processor 501 can execute the steps included in the aforementioned method for detecting an object by executing the instructions stored in the memory 502.
[0107] Among them, the processor 501 is the control center of the computer device, which can use various interfaces and lines to connect various parts of the entire computer device, and monitor the computer device as a whole by running or executing instructions stored in the memory 502 and calling data stored in the memory 502, various functions of the computer device and processing data.
[0108] Optionally, the processor 501 may include one or more processing units. The processor 501 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interface, and application programs, and the modem processor primarily processes wireless communications. It is understood that the modem processor may not be integrated into the processor 501. In some embodiments, the processor 501 and the memory 502 may be implemented on the same chip. In some embodiments, they may also be implemented on separate chips.
[0109] The processor 501 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present invention can be directly implemented as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.
[0110] The memory 502 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 502 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (RAM), a static random access memory (SRAM), a programmable read-only memory (PROM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 502 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 502 in the embodiment of the present invention can also be a circuit or any other device that can implement a storage function, for storing program instructions and / or data.
[0111] By designing and programming the processor 501, the code corresponding to the method for detecting the object introduced in the aforementioned embodiment can be solidified into the chip, so that the chip can execute the steps of the aforementioned method for detecting the object during operation. How to design and program the processor 501 is a technology well known to those skilled in the art and will not be repeated here.
[0112] Based on the same inventive concept, an embodiment of the present invention further provides a storage medium storing computer instructions. When the computer instructions are executed on a computer, the computer executes the steps of the aforementioned method for detecting an object.
[0113] In some possible embodiments, various aspects of the method for detecting an object provided by the present invention can also be implemented in the form of a program product, which includes program code. When the program product is run on a control computer device, the program code is used to enable the control computer device to execute the steps of the method for detecting an object according to various exemplary embodiments of the present invention described above in this specification.
[0114] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage and optical storage, etc.) containing computer-usable program code.
[0115] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0116] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0117] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0118] Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if such changes and modifications fall within the scope of the claims and their equivalents, the present invention is intended to include such changes and modifications.
Claims
1. A method for detecting an object, characterized in that: Applied to the design self-detection stage of smart home, the method includes: Receiving a detection request for an object to be detected; In response to the detection request, determine the state information corresponding to the environment in which the object to be detected is currently located, and determine the function to be detected corresponding to the object to be detected according to the corresponding state information; Acquiring historical verification data of the object to be detected, wherein the historical verification data is used to represent at least one set of data for manually controlling the operation of the object to be detected; Determine the simulated operation data of the object to be detected according to the historical verification data and the first data, and determine the preset data set of the object to be detected according to the simulated operation data, wherein the first data is used to represent data corresponding to multiple functions to be detected; Matching the multiple functions to be detected with the preset data sets respectively, determining corresponding simulation operation data, and encoding the corresponding simulation operation data to generate simulation signals; Controlling the operation of the object to be detected according to the simulation signal to obtain operation output data; The operation output data is matched with data in a preset data set. If the match fails, the abnormal component of the object to be detected is located according to the operation output data.
2. The method according to claim 1, characterized in that The step of determining the simulated operation data of the object to be detected according to the historical verification data and the first data includes: Inputting a plurality of input data in the historical verification data into a preset simulation operation model to obtain a plurality of operation results; Determine the difference between the multiple operation results and the multiple operation results in the historical verification data, and compare the difference with the preset threshold; The simulation operation model is adjusted according to the comparison result. If the comparison result is within a preset range, a trained simulation operation model is obtained, and the first data is input into the trained simulation operation model to determine the simulation operation data of the object to be detected.
3. The method according to claim 1, characterized in that The method further comprises: A preset adjustment is performed on the abnormal component of the object to be detected, wherein the preset adjustment includes correcting the parameters of the abnormal component.
4. A device for detecting an object, characterized in that: Applied to the design self-detection stage of smart home, the device includes: A receiving module, used for receiving a detection request for an object to be detected; A first determination module, configured to respond to the detection request, determine state information corresponding to the environment in which the object to be detected is currently located, and determine a function to be detected corresponding to the object to be detected according to the corresponding state information; A second determination module is used to obtain historical verification data of the object to be detected, wherein the historical verification data is used to represent at least one set of data for manually controlling the operation of the object to be detected; determine the simulation operation data of the object to be detected according to the historical verification data and the first data, and determine the preset data set of the object to be detected according to the simulation operation data, wherein the first data is used to represent data corresponding to multiple functions to be detected; respectively match the multiple functions to be detected with the preset data set to determine the corresponding simulation operation data, and encode the corresponding simulation operation data to generate a simulation signal; control the operation of the object to be detected according to the simulation signal to obtain operation output data; The processing module is used to match the operation output data with data in a preset data set, and if the match fails, locate the abnormal component of the object to be detected according to the operation output data.
5. A computer device, characterized in that: The computer device comprises: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the steps included in any one of the methods described in claims 1-3 according to the obtained program instructions.
6. A storage medium, characterized in that: The storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the steps included in any one of the methods described in claims 1-3.
Citation Information
Patent Citations
Power-off method, apparatus and system of smart home, and computer readable storage medium
CN108107780A
Equipment operation state evaluation method based on clustering, terminal equipment and storage medium
CN110502395A