Control method and device of pet feeder, electronic equipment and medium
By detecting the number of leftover food pellets in the pet feeder and processing them in batches, the problems of measurement deviation and inaccurate feeding in traditional pet feeders have been solved. This has enabled precise feeding and dynamic control, reduced food waste, prevented pets from not eating enough, and improved the user experience.
Patent Information
- Application Number
- CN202610263316.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-03-05
- Publication Date
- 2026-05-26
AI Technical Summary
Existing pet feeders suffer from large measurement deviations and inaccurate feeding, failing to dynamically adjust feeding strategies based on the pet's actual eating needs, resulting in food waste and insufficient food intake for the pet.
By detecting the number of remaining food pellets in the feeding area of the pet feeder, and responding to the received pet feeding command, the system processes the feeding in batches, pausing or stopping the feeding process to ensure that the number of remaining food pellets is within the threshold range. Combined with pet behavior detection and food shortage detection, precise feeding is achieved.
It enables precise feeding based on the number of pellets, reducing food waste, preventing pets from not eating enough, and improving the user experience.
Smart Images

Figure CN122074407A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of video detection technology, specifically to a control method, device, electronic device, and storage medium for a pet feeder. Background Technology
[0002] To meet the feeding needs and convenience of pet owners, pet feeders have emerged as an innovative device. Pet feeders aim to provide pet owners with an automated feeding solution, helping to reduce the burden of daily feeding, and are especially suitable for feeding granular pet food such as cat food and dog food.
[0003] However, traditional pet feeders typically have several drawbacks. They mechanically dispense pet food at set times and in measured quantities, and their measurement methods, primarily based on weight and volume, are susceptible to variations in kibble size, density, and fluffiness, resulting in significant discrepancies in the actual number of kibble dispensed and hindering precise feeding. Furthermore, these feeders do not consider the pet's actual eating needs, dispensing only based on preset portions. This can lead to an accumulation of excessive pet food in the dish, increasing the risk of spoilage and waste, which is detrimental to the pet's health. Conversely, if the actual number of kibble dispensed is far less than expected, the pet may not eat enough.
[0004] Furthermore, while some existing pet feeders attempt to monitor remaining food using technologies such as video detection, they still focus on portion control and cannot accurately identify the number of food grains in the feeding area, making it difficult to dynamically adjust the feeding strategy based on the actual number of grains eaten by the pet. Therefore, there is an urgent need for a pet feeder control method based on precise grain counting to achieve refined and accurate feeding while improving the user experience. Summary of the Invention
[0005] This application provides a control method, electronic device, apparatus, and storage medium for a pet feeder, to solve the problems of large measurement deviation and inaccurate feeding in existing pet feeders, and to achieve precise feeding and dynamic control based on the number of pellets.
[0006] In a first aspect, embodiments of this application provide a control method for a pet feeder, applied to a pet feeder, comprising: In response to a received pet feeding instruction, the number of remaining food pellets in the feeding area of the pet feeder is detected to obtain the current number of remaining food pellets in the feeding area; the pet feeding instruction includes specifying the number of pellets to feed. If the current number of remaining grains is less than the preset threshold for the number of remaining grains, then feed the grains in batches based on the specified number of grains to be fed. In response to the detection that the number of remaining grains during the batch feeding process is greater than the threshold number of remaining grains, the batch feeding process is paused or stopped. In response to the detection that the number of remaining grains during the batch feeding process is less than or equal to the threshold number of remaining grains, the batch feeding process continues until the total number of grains fed in the batch feeding process reaches the specified number of grains fed.
[0007] Optionally, in some embodiments of this application, before responding to a received pet feeding instruction, the method further includes: In response to the detection of a target pet in the target area, the number of remaining food pellets in the feeding area is detected to obtain the initial number of remaining food pellets; The target pet is subjected to behavior detection processing to obtain the pet behavior of the target pet; In response to a received pet feeding command, the remaining food pellets in the feeding area of the pet feeder are detected to obtain the current remaining food pellet count in the feeding area, including: In response to receiving the pet feeding instruction and the pet's behavior including eating, the number of remaining food grains in the feeding area is detected to obtain the current number of remaining food grains.
[0008] Optionally, in some embodiments of this application, after performing behavior detection processing on the target pet to obtain the pet behavior of the target pet, the method further includes: In response to receiving the pet feeding instruction and the target pet not eating, it is determined whether the initial number of remaining food pellets is greater than the remaining food pellets threshold. If the initial number of remaining grains is greater than the threshold number of remaining grains, then the detection of the number of remaining grains and the batch feeding process shall be paused or stopped.
[0009] Optionally, in some embodiments of this application, the method further includes: Load the pet detection model and perform pet detection processing on the target area based on the pet detection model; In response to the detection of a target pet in the target area, the pet detection model is switched to the remaining food pellet detection model, and the remaining food pellets in the feeding area are detected based on the remaining food pellet detection model to obtain the initial remaining food pellet count. The remaining food count detection model is switched to a behavior detection model, and the target pet's behavior is processed based on the behavior detection model to obtain the target pet's pet behavior.
[0010] Optionally, in some embodiments of this application, before the batch feeding process based on the specified number of feeding pellets, the method further includes: The food storage area of the pet feeder is tested for food shortage, and the food shortage test result is obtained. The food shortage test result indicates whether the number of food grains that can be output from the food storage area meets the needs of batch feeding. The batch feeding process based on the specified number of feeding pellets includes: In response to the food shortage detection result indicating that the pet feeder is not short of food, feeding is performed based on the current batch feeding number.
[0011] Optionally, in some embodiments of this application, after the feeding process based on the current batch feeding number, the method further includes: Pet detection processing is performed on the target area corresponding to the pet feeder; If the target pet is not found in the target area, the batch feeding process is paused or stopped. And / or, perform behavior detection processing on the target pet; If the target pet does not exhibit any feeding behavior, the batch feeding process is paused or stopped.
[0012] Optionally, in some embodiments of this application, the step of feeding in batches based on the specified number of feeding pellets includes: For each batch of feeding treatment, food calorie detection was performed to obtain the food calorie detection results; If the food clogging detection result indicates that the pet feeder does not have a food clogging problem and no food grain output is detected, then a food shortage information is generated and reported.
[0013] Optionally, in some embodiments of this application, after performing food stagnation detection on each batch of feeding treatment and obtaining the food stagnation detection result, the method further includes: If the food clogging detection result indicates that there is a food clogging problem in the pet feeder, then food clogging information is generated and reported. Perform pet detection processing on the target area corresponding to the pet feeder, and / or perform behavior detection processing on the target pet in the target area; If the target pet is not present in the target area and / or the target pet is not feeding, the batch feeding process is stopped.
[0014] Secondly, embodiments of this application provide a control device for a pet feeder, applied to a pet feeder, comprising: The detection module is used to detect the number of remaining food pellets in the feeding area of the pet feeder in response to a received pet feeding instruction, and to obtain the current number of remaining food pellets in the feeding area; the pet feeding instruction includes a specified number of pellets to feed; The first processing module is used to perform batch feeding processing based on the specified number of grains to be fed if the current number of remaining grains is less than a preset threshold number of remaining grains. The pause module is used to pause or stop the batch feeding process in response to detecting that the number of remaining grains in the batch feeding process is greater than the threshold number of remaining grains. The second processing module is used to respond to the detection that the number of remaining grains in the batch feeding process is less than or equal to the threshold number of remaining grains, and then continue to perform batch feeding until the total number of grains fed in the batch feeding process reaches the specified number of grains fed.
[0015] Accordingly, this application also provides an electronic device, including a memory, a processor, and a processor program stored in the memory and executable on the processor, wherein the processor executes the program as described in any of the methods above.
[0016] This application also provides a storage medium storing a processor program that, when executed by a processor, implements any of the methods described above.
[0017] This application provides a control method, device, electronic device, and storage medium for a pet feeder. Applied to a pet feeder, in response to a received pet feeding instruction, the method detects the number of remaining food pellets in the feeding area of the pet feeder to obtain the current number of remaining food pellets in the feeding area. The pet feeding instruction includes a specified number of pellets to be fed. If the current number of remaining food pellets is less than a preset threshold, then batch feeding is performed based on the specified number of pellets. In response to detecting that the number of remaining food pellets during the batch feeding process exceeds the threshold, the batch feeding process is paused or stopped. In response to detecting… If the number of remaining food pellets during the batch feeding process is less than or equal to the threshold number of remaining food pellets, the batch feeding process continues until the total number of pellets fed in the batch feeding process reaches the specified number of pellets. In the control scheme of the pet feeder provided in this application, the deviation problem of traditional feeder portion measurement can be avoided, and precise feeding with the number of pellets as the core can be achieved. At the same time, it avoids the problem that the pet feeder only dispenses food according to the feeding command and ignores the actual eating scenario of the pet, reduces the possibility of food waste, and can also prevent the pet from not eating enough, thus improving the user experience of pet owners when using the pet feeder. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application, 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 this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a flowchart illustrating the control method for a pet feeder provided in an embodiment of this application; Figure 2 This is a schematic diagram of the control device for the pet feeder provided in the embodiments of this application; Figure 3 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0020] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0021] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, components, features, and elements with the same names in different embodiments of this application may have the same meaning or different meanings, the specific meaning of which must be determined by its interpretation in that specific embodiment or further in conjunction with the context of that specific embodiment.
[0022] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0023] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.
[0024] The following describes in detail the embodiments involved in this application. It should be noted that the order of description of the embodiments in this application is not intended to limit the priority of the embodiments.
[0025] This application provides a control method, apparatus, storage medium, and smart terminal for a pet feeder. Specifically, the control method for the pet feeder in this application can be executed by a smart terminal or a server, wherein the smart terminal can be a terminal. The terminal can be a smartphone, tablet computer, laptop computer, touch screen, game console, personal computer (PC), personal digital assistant (PDA), or other smart terminal. The terminal may also include a client, which can be a media playback client or a control client for the instant pet feeder, etc.
[0026] This application provides a method for controlling a pet feeder, which can be executed by an electronic device or a server. This application example illustrates the method using an electronic device. The electronic device includes a touchscreen display and a processor. The touchscreen display presents a graphical user interface (GUI) and receives user commands applied to the GUI. When the user operates the GUI via the touchscreen, the GUI can control local content on the electronic device or control content on the server side in response to the received commands.
[0027] The control scheme for the pet feeder provided in this application can avoid the deviation problem of traditional feeders in measuring the amount of food, and achieve precise feeding based on the number of pellets. At the same time, it avoids the problem that pet feeders only dispense food according to the feeding instructions and ignore the actual eating scenario of the pet, reducing the possibility of food waste and preventing the pet from not eating enough, thus improving the user experience of pet owners when using the pet feeder.
[0028] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the priority of the embodiments.
[0029] A method for controlling a pet feeder includes: responding to a received pet feeding instruction, detecting the number of remaining food pellets in the feeding area of the pet feeder to obtain the current number of remaining food pellets in the feeding area; the pet feeding instruction includes a specified number of pellets to be fed; if the current number of remaining food pellets is less than a preset threshold number of remaining food pellets, then performing batch feeding based on the specified number of pellets to be fed; responding to detecting that the number of remaining food pellets during the batch feeding process is greater than the threshold number of remaining food pellets, then pausing or stopping the batch feeding process; responding to detecting that the number of remaining food pellets during the batch feeding process is less than or equal to the threshold number of remaining food pellets, then continuing the batch feeding process until the total number of pellets fed in the batch feeding process reaches the specified number of pellets to be fed.
[0030] Please see Figure 1 , Figure 1 This application provides a flowchart illustrating the control method for a pet feeder. The specific flow of this pet feeder control method is as follows: 101. In response to a received pet feeding instruction, the remaining food pellets in the feeding area of the pet feeder are detected to obtain the current remaining food pellets in the feeding area; the pet feeding instruction includes a specified number of pellets to be fed.
[0031] A pet feeding command is a command used to control a pet feeder to dispense pet food. It should be noted that the pet feeding command received by the pet feeder in this application can be automatically generated internally by the pet feeder (e.g., periodically generated by setting timed feeding tasks or plans using timers or other technologies), or generated by the pet feeder based on certain detected trigger conditions (e.g., the pet feeder detects that a target pet is currently eating), or it can be sent by an external device with a communication connection to the pet feeder (e.g., a pet owner can send a pet feeding command to the pet feeder via a device terminal such as a mobile phone, personal computer, or smartwatch). No limitation is made here.
[0032] It should be noted that pet feeding instructions should include a specified number of pellets to be fed. This specified number of pellets is preset by the pet owner based on the pet's eating needs. The specified number of pellets for different pet feeding instructions can be the same or different, and there is no limitation here. Compared with traditional portion measurement, specifying the number of pellets can avoid measurement deviations caused by factors such as the size and density of the food pellets, and achieve precise control of the feeding amount.
[0033] Specifically, in the specific application scenario of the pet feeder of this application, if a pet feeding command is received, the remaining food pellets in the feeding area of the pet feeder are detected. The feeding area refers to the area set up in conjunction with the pet feeder to hold the pet food dispensed by the feeder, such as common feeding dishes or bowls. The pet feeder dispenses pet food into the feeding area, where the pet can eat; details will not be elaborated further here. It should be noted that the pet feeder of this application is limited to scenarios involving feeding pelleted dry food, such as cat food and dog food. For example, the remaining food count detection in the feeding area can be performed by acquiring an image of the feeding area and identifying and counting the pet food particles in the image based on a preset particle count detection algorithm, thereby obtaining an accurate remaining food count. The field of view of the image acquired by the pet feeder may be larger than the feeding area, that is, the pet feeder may be acquiring images based on a target area, which may include the feeding area. Therefore, after the pet feeder acquires the image of the target area, it can also determine the feeding area from the target area based on a preset image module and then perform particle count detection. This is not limited here.
[0034] Understandably, pets don't usually finish all the kibble in the feeding area every time they're fed. Using a kibble count device can accurately track the amount of food left in the feeding area, which is more intuitive and accurate than measuring the amount of food. This allows pets to use the number of kibble remaining to determine their subsequent feeding plans.
[0035] 102. If the current number of remaining grains is less than the preset threshold for the number of remaining grains, then feed the grains in batches based on the specified number of grains to be fed.
[0036] If the current number of remaining food pellets is less than a preset threshold, it indicates that there are insufficient food pellets in the current feeding area, requiring additional feeding. The pet feeder then outputs the specified number of pet food pellets to the feeding area based on the pet feeding command, so that the pet can eat. This application may use one or more thresholds for the number of remaining food pellets, and this application is not limited to any one. For example, if there are multiple pets in the actual application scenario of the pet feeder, and all pets rely on the same pet feeder for feeding, a corresponding threshold for the number of remaining food pellets can be set for each pet. When a pet feeding command specifies feeding a target pet, the threshold for the number of remaining food pellets corresponding to that target pet can be used for judgment; or, upon receiving a pet feeding command, the pet feeder performs pet detection in the target area, and based on the detected target pet, the threshold for the number of remaining food pellets corresponding to that target pet is used for judgment. If multiple pets are detected simultaneously in the target area, behavior detection can be performed on each pet in the target area, and then the pet exhibiting eating behavior in the target area is identified as the target pet, and the threshold for the number of remaining food pellets corresponding to that target pet is used for judgment. The target pet refers to the pet that the pet feeder needs to detect or the pet that the pet feeder needs to feed. For example, if the pet feeder is set to feed only cats, then if the pet feeder detects other animals such as dogs or mice in the target area, it will not select those other animals as the target pet. Furthermore, the detection of the target pet can also be limited to the pet's attribute information, such as setting a large cat or a small cat as the target pet, or a white cat or a black cat as the target pet, etc., which will not be elaborated here.
[0037] The target area needs to be set based on the specific pet feeder. In common applications, since the image acquisition element of the pet feeder captures images from the front of the feeder body, the target area can be the area in front of the feeder. For example, the image acquisition element of the pet feeder can be, but is not limited to, a fisheye lens, a wide-angle lens, or a zoom lens, to clearly capture images of food particles in the feeding area for accurate counting. Furthermore, since the feeding area is usually located in front of the pet feeder, the target area may or may not include the feeding area; this is not limited here.
[0038] It should be noted that the pet feeder of this application feeds in batches based on a specified number of pellets. Batch feeding means dividing the specified number of pellets into multiple equal or unequal portions for each current batch, with each batch feeding (outputting) one portion of that current batch's number of pellets. Only after the pet feeder has finished feeding the current batch's number of pellets can the next batch be fed, until all batches in the current feeding process have been fed. In other words, the sum of the current batch's number of pellets in the current feeding process equals the specified number of pellets for the current feeding process. The pet feeder typically has a food storage area (such as a food storage bin) for storing pet food. The pet feeder uses a motor rotation in conjunction with a metering dispensing structure to achieve precise output of single or multiple pellets, completing the pellet-based feeding function.
[0039] For example, the currently received pet feeding instruction corresponds to a specified number of 20 cat food pellets, meaning that a total of 20 cat food pellets should be output during the feeding process based on this pet feeding instruction. Based on the batch feeding method of this application, the 20 cat food pellets can be equally divided into 10 batches for the current batch, equivalent to the pet feeder outputting 2 cat food pellets per batch; or the cat food can be unevenly divided into 5 batches (e.g., 5 pellets in the first batch, 3 pellets in the second batch, ..., etc., which will not be elaborated here). Of course, other batch numbers can also be used, and this application does not limit this.
[0040] 103. In response to detecting that the number of remaining grains during the batch feeding process is greater than the remaining grains threshold, the batch feeding process is paused or stopped.
[0041] During the batch feeding process described above, it is also necessary to continuously monitor the number of remaining grains in the feeding area. If the number of remaining grains detected during the batch feeding process exceeds the threshold, the current batch feeding process should be paused or stopped.
[0042] It should be noted that, on the one hand, considering the pet's actual eating habits, they may stop eating after consuming a portion of the food in the feeding area. If traditional pet feeder control methods were used, dispensing food in fixed portions could easily lead to excessive food accumulation. The pet feeder in this application, however, dispenses pet food in batches according to the number of kibble pieces and accurately detects the remaining kibble count. This ensures that if the pet stops eating midway and the remaining kibble count exceeds a threshold, the dispensing of food will be paused immediately. Subsequent batch feeding can then be paused or stopped depending on the specific situation. On the other hand, it is also possible that the pet does not eat during the current batch feeding process, thus the dispensing of food will also be paused promptly when the remaining kibble count exceeds the threshold. On the other hand, it is understandable that if pets eat too quickly, it can lead to indigestion and other problems. The batch feeding method of this application can also cultivate the habit of slow eating in pets and prevent the problem of pet food overflowing from the feeding area caused by feeding directly based on a specified amount in the traditional method.
[0043] 104. In response to detecting that the number of remaining grains during the batch feeding process is less than or equal to the threshold number of remaining grains, the batch feeding process continues until the total number of grains fed in the batch feeding process reaches the specified number of grains fed.
[0044] In an ideal pet feeding scenario, the pet should be able to consume the currently dispensed food pellets from the feeder as quickly as possible. Therefore, during batch feeding, if the feeder detects that the remaining food pellets are less than or equal to a threshold, it indicates that the pet still has a need to eat. Thus, following the batch feeding plan described above, batch feeding continues until the total number of pellets dispensed in the current batch reaches the specified number, and / or the pet stops eating. The current total number of pellets dispensed in the batch refers to the sum of the number of food pellets dispensed in each batch, determined based on the currently received pet feeding instructions.
[0045] For example, if the total number of pellets fed in the current batch feeding process reaches the specified number, it indicates that the feeding task of the pet feeding instruction is completed. If it is detected that the pet currently eating has finished eating, the current batch feeding process can be paused or stopped (ended). Specifically, a waiting time threshold can be set to determine whether to end the current batch feeding.
[0046] For example, in one implementation, when the target pet stops eating or is not detected in the target area, the current batch feeding process is paused, and a waiting time is recorded. If the target pet and / or other pets still do not eat after the waiting time exceeds a waiting time threshold, the current batch feeding process ends directly; conversely, if the target pet and / or other pets are detected eating after the waiting time is less than or equal to the waiting time threshold, the remaining batch feeding processes can continue. In another implementation, the current batch feeding process ends directly if the target pet stops eating or leaves the target area.
[0047] As can be seen, the pet feeder of this application, in response to a received pet feeding instruction, detects the number of remaining food pellets in the feeding area of the pet feeder to obtain the current number of remaining food pellets in the feeding area; the pet feeding instruction includes specifying the number of pellets to feed; if the current number of remaining food pellets is less than a preset threshold, it indicates that feeding is required, therefore the pet feeder performs batch feeding based on the specified number of pellets to feed; during the batch feeding process, the remaining food pellet count also needs to be detected; in response to detecting that the number of remaining food pellets during the batch feeding process is greater than the threshold, the batch feeding process is paused or stopped. The system responds to the detection that the number of remaining food pellets during the batch feeding process is less than or equal to a threshold, and then continues to feed in batches until the total number of pellets fed in each batch reaches the specified number. This avoids the measurement deviation problem of traditional feeders, achieving precise feeding. It also avoids the situation where pet feeders only dispense food according to the pet's feeding instructions, ignoring the fact that pets do not usually eat at fixed times and in fixed quantities in actual feeding scenarios. This reduces the possibility of food waste, prevents pets from not eating enough, and improves the user experience for pet owners when using pet feeders.
[0048] Based on the above embodiments, this application embodiment describes the steps prior to responding to a received pet feeding command and the steps of detecting the number of remaining food pellets in the feeding area of the pet feeder in response to the received pet feeding command, and obtaining the current number of remaining food pellets in the feeding area. Specifically, the method of this embodiment includes the following steps: In response to the detection of a target pet in the target area, the number of remaining food grains in the feeding area is detected to obtain the initial number of remaining food grains; the target pet's behavior is detected and processed to obtain the target pet's pet behavior; in response to receiving a pet feeding instruction and the pet's behavior including eating behavior, the number of remaining food grains in the feeding area is detected to obtain the current number of remaining food grains.
[0049] Referring to the foregoing embodiments, before responding to a received pet feeding instruction, the method of this application may further include: the pet feeder detecting a pet in the target area; in response to detecting the presence of a target pet in the target area, detecting the number of remaining food pellets in the feeding area to obtain an initial number of remaining food pellets; and performing behavior detection processing on the target pet to obtain the pet's behavior. If a pet feeding instruction is received and the target pet's behavior includes eating behavior, then the number of remaining food pellets in the feeding area is detected again to obtain the current number of remaining food pellets.
[0050] It's important to note that when no pet feeding command is received (e.g., before receiving a pet feeding command, or after completing the corresponding feeding task), the pet feeder can detect pets in the target area to determine if any pet might need to eat. Therefore, it simultaneously checks the remaining food pellets in the feeding area to obtain the initial number of pellets remaining. If the target pet is detected eating, the initial number of pellets remaining will continuously decrease. Therefore, when a pet feeding command is received and the target pet is eating, the remaining food pellets in the feeding area need to be checked again to obtain the current number of pellets remaining. Under normal circumstances, if the target pet is eating, the initial number of pellets remaining will be different from the current number; if the target pet is not eating, the initial number of pellets remaining will be the same as the current number. That is, another possible implementation includes: the pet feeder detects pets in the target area; in response to detecting the presence of a target pet in the target area, it detects the number of remaining food pellets in the feeding area to obtain an initial number of remaining food pellets; in response to receiving a pet feeding instruction and the pet's behavior does not include eating behavior, the initial number of remaining food pellets is used as the current number of remaining food pellets, without having to detect the number of remaining food pellets again, so as to reduce the detection load of the device.
[0051] Based on the above embodiments, this application embodiment describes the steps after performing behavior detection processing on the target pet to obtain the pet's behavior. Specifically, the method of this embodiment includes the following steps: In response to receiving a pet feeding instruction and the target pet not eating, it determines whether the initial number of remaining food pellets is greater than the remaining food pellet threshold; if the initial number of remaining food pellets is greater than the remaining food pellet threshold, it pauses or stops the remaining food pellet detection and batch feeding process.
[0052] Referring to the foregoing embodiments, if a pet feeding command is received and the pet's behavior in the target area is determined not to include eating behavior during pre-receiving pet feeding activity, then the initial remaining food pellets are equal to the current remaining food pellets. Therefore, it is only necessary to determine whether feeding based on the currently received pet feeding command is required by judging whether the initial remaining food pellets are greater than the remaining food pellets threshold.
[0053] For example, the process of determining whether the initial remaining food pellets are greater than the remaining food pellets threshold can be performed either when the initial remaining food pellets are obtained or when a pet feeding command is received; this is not limited to either method. When the pet feeder receives a pet feeding command, if the pet detection process prior to receiving the command detected that the target pet's behavior did not include eating, and the initial remaining food pellets are determined to be greater than the remaining food pellets threshold, it indicates that there are many food pellets remaining in the current feeding area. Therefore, even if a pet feeding command is received, there is no need to detect the remaining food pellets or perform batch feeding. Conversely, if the initial remaining food pellets are determined to be less than or equal to the remaining food pellets threshold, it indicates that there are few food pellets remaining in the current feeding area. Therefore, batch feeding can be performed after receiving a pet feeding command.
[0054] Based on the above embodiments, this application embodiment describes the steps prior to responding to a received pet feeding instruction. Specifically, the method of this embodiment includes the following steps: Load a pet detection model and perform pet detection processing on the target area based on the pet detection model; in response to the detection of a target pet in the target area, switch the pet detection model to a remaining food pellet detection model, and perform remaining food pellet detection on the feeding area based on the remaining food pellet detection model to obtain an initial remaining food pellet count; switch the remaining food pellet detection model to a behavior detection model, and perform behavior detection processing on the target pet based on the behavior detection model to obtain the pet behavior of the target pet.
[0055] Based on the foregoing embodiments, this embodiment provides a specific implementation method prior to responding to a received pet feeding command. When no pet feeding command is received, the pet feeder of this application can use a pet detection model to perform pet detection processing on the target area. If a target pet is detected in the target area, a remaining food pellet detection model is used to detect the remaining food pellets in the feeding area to obtain the initial remaining food pellet count; in addition, a behavior detection model can also be used to perform behavior detection processing on the target pet to obtain the target pet's pet behavior.
[0056] It should be noted that the method in this application may include pet detection and pet behavior detection. Pet detection mainly involves detecting pet attribute information, such as pet name (pet identifier), pet category, etc., to determine whether the target pet exists in the target area. Especially in multi-pet scenarios, different pets correspond to different pet attribute information (pet attribute features). Through pet detection, the pet feeder of this application can provide different feeding plans (specifying the number of feeding pellets) for different detected pets and record the corresponding number of feeding pellets, eating habits, etc. for different pets, improving the versatility of the pet feeder. Pet behavior detection mainly involves detecting pet behavior information, such as eating behavior, approaching behavior, leaving behavior, and other behaviors, which will not be elaborated here.
[0057] It should also be noted that a pet detection algorithm model is needed during pet detection, a remaining food pellet detection algorithm model is needed during remaining food pellet count detection, and a behavior detection algorithm model is needed during behavior detection. The pet detection algorithm model is a category model, the remaining food pellet count algorithm model is a pellet recognition and counting model, and the behavior detection algorithm model is a behavior model. Therefore, in implementing the specific methods of the above embodiments, a single model cannot be used to detect all aspects; instead, each model needs to be loaded individually. However, for small devices like pet feeders, their low specifications (e.g., small RAM) result in weak computing power. Therefore, in this application, the operation of the pet feeder can be optimized by loading the algorithm models one by one to reduce its workload. By detecting pet activity and feeder operation, and scheduling corresponding video detection algorithms, effective monitoring of pet feeding and feeder operation can be achieved, while also reducing the memory space required for algorithm model loading, thereby saving costs.
[0058] For example, since a pet needs to move to the pet feeder before eating, the pet feeder loads a pet detection model in memory and performs pet detection processing on the target area based on this model when it does not receive a feeding command (e.g., the pet feeder starts loading the pet detection model in memory for pet detection after powering on). When a target pet is detected in the target area, the pet information can be reported. Then, the pet feeder switches the pet detection model running in memory to a remaining food pellet detection model to detect the number of remaining food pellets and obtain the initial number of remaining food pellets. Afterward, it can choose to switch back to the pet detection model in memory to continue pet detection. If the distance between the target pet and the pet feeder is less than a preset distance threshold (e.g., detected by infrared detection, radar detection, or visual detection where the percentage of pixels occupied by the target pet in the captured image is greater than a preset percentage threshold), or if the target pet's head is detected approaching the feeding area, it indicates that the target pet is about to eat. At this point, the algorithm model running in memory is switched again, from the pet detection model to the behavior detection algorithm model, and continuous detection continues. When a pet eating behavior is detected, eating information can be generated and reported to the client (such as a mobile app). Once the pet's eating behavior has ended, the system switches back to the pet detection model.
[0059] It should be further explained that, to maximize the versatility of the pet feeder, it can be configured to run only one algorithm model in the pet feeder's memory at a time, and then schedule the corresponding algorithm model in the pet feeder's memory based on the detection results of different algorithm models. Alternatively, two, three, or more algorithm models can be loaded and run simultaneously in the pet feeder's memory. The specific settings can be determined based on the actual memory available in the pet feeder. For pet feeders with ample memory, all algorithm models can be run simultaneously for detection.
[0060] For example, the memory load required for each algorithm model to run can be preset, and then the actual load of the pet feeder during operation can be used to select whether to load the algorithm models one by one or load multiple algorithm models in parallel. Alternatively, the selection can be made by comparing the actual load of the pet feeder during operation with a preset load threshold, which will not be elaborated here.
[0061] Based on the above embodiments, this application embodiment describes the steps before batch feeding based on a specified number of feeding pellets and the steps of batch feeding based on the specified number of feeding pellets. Specifically, the method of this embodiment includes the following steps: The food storage area of the pet feeder is tested for food shortage, and a food shortage detection result is obtained. The food shortage detection result indicates whether the number of food grains that can be output from the food storage area meets the needs of batch feeding. In response to the food shortage detection result indicating that the pet feeder is not short of food, feeding is performed based on the number of food grains to be fed in the current batch.
[0062] Referring to the foregoing embodiments, during the batch feeding process of this application's method, it is also necessary to perform a food shortage detection on the food storage area of the pet feeder. This food shortage detection is to determine whether the number of food grains in the storage area is sufficient to meet the required number of grains for this feeding, thereby avoiding the problem of insufficient food grains preventing accurate feeding when feeding is needed. If the food shortage detection result indicates that the pet feeder is not short of food, meaning the number of food grains that can be output from the storage area is greater than or equal to the required number of grains, then the normal feeding process described in the foregoing embodiments can be followed, based on the current batch feeding number. If the food shortage detection result indicates that the pet feeder is short of food, meaning the number of food grains that can be output from the storage area is less than the required number of grains, then food shortage information needs to be generated and reported, and the current batch feeding process needs to be paused or stopped.
[0063] For example, methods for detecting food shortages may include, but are not limited to, counting grains by combining sensors installed in the food storage area with visual detection. For instance, an infrared sensor could be installed in the storage area to work with visual recognition to estimate the number of grains. Alternatively, a gravity sensor could be installed in the storage area to calculate the total number of grains by combining the weight of individual grains with the total weight. Furthermore, detecting the number of grains output from the pet feeder's dispensing nozzle can also help determine if food is low; this is not a limitation.
[0064] Based on the above embodiments, this application embodiment describes the steps following the feeding process based on the current batch feeding number. Specifically, the method of this embodiment includes the following steps: The system performs pet detection processing on the target area corresponding to the pet feeder; if no target pet is found in the target area, the batch feeding process is paused or stopped; and / or, the system performs behavior detection processing on the target pet; if the target pet does not exhibit eating behavior, the batch feeding process is paused or stopped.
[0065] In conjunction with the foregoing embodiments, after each batch of feeding is performed, the pet feeder can also perform pet detection processing in the target area and / or behavior detection processing on the target pet in the target area to determine whether the target pet has a need to eat, and then decide whether to continue feeding the number of pellets in subsequent batches.
[0066] If the target pet is not present in the target area, the batch feeding process is paused or stopped; and / or if the target pet is not eating, the batch feeding process is paused or stopped to avoid meaningless feeding that leads to food accumulation.
[0067] Based on the above embodiments, this application embodiment describes the steps of batch feeding based on a specified number of feeding pellets. Specifically, the method of this embodiment includes the following steps: For each batch of feeding, a food jam detection is performed to obtain the food jam detection result; if the food jam detection result indicates that the pet feeder does not have a food jam problem and no food grain output is detected, then a food shortage information is generated and the information is reported.
[0068] Referring to the foregoing embodiments, in the batch feeding process of this application, food jam detection can be performed for each batch of feeding, or once every two batches of feeding, or once every multiple batches of feeding; the method is not limited here. Food jam detection is to detect whether the pet feeder will fail to output the preset number of food pellets for the current batch due to food jamming, thus causing inaccurate feeding failure.
[0069] It's important to note that the food jam detection primarily determines whether the pet feeder can properly dispense the required number of food grains from the storage area. Food jams can occur if the feeder's dispensing motor malfunctions or if the food delivery channel is blocked. Specifically, during the feeding process, the feeder's dispensing motor starts rotating in conjunction with the metering dispensing mechanism to dispense a preset number of food grains from the storage area to the feeding area. If there are no food jams after the dispensing motor starts rotating, and the corresponding number of food grains are detected being dispensed from the dispensing port, then the pet feeder is not short of food. Conversely, if there are no food jams after the dispensing motor starts rotating, but no food grains are detected being dispensed from the dispensing port, then the pet feeder is short of food, and a food shortage message is generated and reported.
[0070] Based on the above embodiments, this application embodiment describes the steps after performing feed craving detection on each batch of feeding treatment and obtaining the feed craving detection results. Specifically, the method of this embodiment includes the following steps: If the food clogging detection result indicates that the pet feeder has a food clogging problem, then food clogging information is generated and reported; pet detection processing is performed on the target area corresponding to the pet feeder, and / or behavior detection processing is performed on the target pet in the target area; in response to the absence of the target pet in the target area, and / or the target pet not exhibiting eating behavior, then the batch feeding process is stopped.
[0071] Referring to the foregoing embodiments, if the food jam detection result indicates that the pet feeder has a food jamming problem, it means that the pet feeder is temporarily unable to output the preset number of food pellets. Therefore, in actual feeding, the pet may give up eating because the pet feeder is not outputting the required number of food pellets. Therefore, in the method of this application, if the pet feeder has a food jamming problem, pet detection processing is performed on the target area, and / or behavior detection processing is performed on the target pet. If the target pet is not present in the target area, and / or the target pet does not exhibit eating behavior, it indicates that the target pet has stopped eating, and therefore the pet feeder can also stop batch feeding.
[0072] Based on the above embodiments, in order to save on the hardware cost of the pet feeder and ensure its operational capabilities, this application provides an exemplary description of the algorithm model scheduling process for each execution step in the above embodiments. It should be noted that this embodiment primarily uses a method where the pet feeder loads each algorithm model into memory one by one and runs them individually. In actual use cases, more algorithm models can be loaded and run simultaneously depending on the hardware specifications and workload of the pet feeder; this will not be elaborated upon here.
[0073] For example, after the pet feeder is powered on, it can load a pet detection algorithm model into memory and start detecting pets. The pet feeder of this application can be equipped with a fisheye lens to obtain a larger field of view, and is also equipped with a high-definition imaging module to clearly capture images of food particles in the feeding area, achieving accurate particle count identification. Since pets need to move to the pet feeder before eating, the pet feeder first loads the pet detection algorithm model to start detecting pets. When a target pet is detected in the target area, the pet feeder can report the detected pet information and switch the pet detection algorithm model running in memory to a remaining food particle count detection algorithm model to detect the remaining food particles. After obtaining the remaining food detection result (e.g., the initial remaining food particle count), the remaining food particle count detection algorithm model running in memory can be switched back to the pet detection algorithm model to detect pets. The pet feeder can continuously detect pets based on a pet detection algorithm model until a target pet is detected approaching the feeding area. At this point, the pet detection algorithm model running in memory can be switched to a behavior detection model (more specifically, a feeding behavior detection model) to detect the target pet eating. When feeding behavior is detected, feeding information is generated and reported. Once the feeding behavior has ended, the algorithm model running in memory can be switched back to the pet detection model to perform the regular pet detection process described in the previous example.
[0074] It's important to note that, normally, if the initial remaining food grains are greater than the threshold, no food grain count will be output when a pet feeding command is received. However, if the pet eats after the initial remaining food grain count has been checked, the current remaining food grain count may be less than the threshold, thus requiring food grain count output. For example, when the pet is eating, if a pet feeding command is received (e.g., triggered by a pre-set pet feeding schedule), the remaining food grain count will be checked again to determine whether to feed the pet. Since pets typically don't leave while eating, the pet detection model running in memory can be switched to the remaining food grain count detection model to obtain the current remaining food grain count. The comparison between the current remaining food grain count and the remaining food grain count threshold determines whether to output the pet food grain count based on the pet feeding command. After completing this remaining food grain count detection, the remaining food grain count detection model running in memory can be immediately switched back to the pet behavior detection model.
[0075] If, before receiving a pet feeding command, no target pet is detected in the target area, or the detected target pet is not eating, only the pet detection model can be running in memory. After receiving the pet feeding command, the model can switch from the pet detection model to the remaining food count detection model. After the remaining food count is detected, if the remaining food count reaches the threshold, no food is dispensed, and the model switches back to the pet detection model. If the remaining food count does not reach the threshold, food is prepared to be dispensed, and before each batch of food dispensing begins, the model switches to the food shortage detection model. If the food shortage detection model detects no food shortage, meaning the food count in the storage area meets the feeding requirements, the model switches back to the pet detection model. After the current food dispensing operation is completed, if no target pet is detected in the target area, or no target pet is detected eating, the dispensing of subsequent batches is paused or stopped. If a target pet is detected in the target area, or a target pet is detected eating, food can continue to be dispensed by the number of pieces. Before dispensing the next batch of food, the system switches to the food shortage detection model, ensuring that only one algorithm model runs in the pet feeder's memory. If the pet detection model detects a target pet in the target area (e.g., when the target pet is near the feeding bowl), the system can switch to the behavior detection model, similar to the previous embodiment.
[0076] Furthermore, in the pet feeder feeding process of this application, the number of pellets specified in the pet feeding command is divided into multiple batches and fed sequentially, achieving the effect of feeding in batches by number. Therefore, when the feeding motor starts rotating during each batch feeding process, the pet behavior detection model running in memory can be switched to the food shortage detection model. If there is no food jamming after the feeding motor rotates, and the corresponding number of pellets are detected output from the feeding port, it indicates that the pet feeder is not short of food. Then, the system switches back from the food shortage detection model to the behavior detection model, and the number of pellets for that batch continues to be output until the feeding of that batch ends. Then, the next batch of pellets is output, and similarly, the system switches from feeding behavior detection to food shortage detection. If there is no food shortage, it switches back to feeding behavior detection until the number of pellets specified in the current pet feeding command has been output. After that, the algorithm model is no longer switched, and the feeding behavior detection model is maintained. After the target pet finishes eating, you can then choose whether to switch to another algorithm model.
[0077] It should be noted that if the pet feeder is found to be low on food, meaning it cannot dispense the preset number of food grains, the pet may immediately leave and stop eating. Therefore, when a low-food-feeding pet feeder is detected, the system switches to a behavior detection model. If the target pet is not detected as eating, the system switches back to a regular pet detection model for routine pet detection. For example, if the target pet is detected as not eating, a feeding termination message can be generated and reported.
[0078] Additionally, each batch of food dispensing requires a short dispensing time (e.g., 3 seconds per batch). Therefore, when dispensing begins, the system switches to a food shortage detection model. If a food jam occurs, it immediately switches to a behavior detection model. If no food jam occurs, and the food shortage detection fails to detect the corresponding number of food grains after the dispensing action for that batch of feeding is completed, a food shortage message is generated and reported, and then the system switches back to the behavior detection model. Furthermore, it should be noted that the batch feeding process in this application allows the user to pre-set batch parameters to specify the number of batches for a given number of food grains and / or the number of grains output per batch. For example, multiple batches, such as 20 batches, can be pre-set in the batch parameters. If all 20 batches are dispensed consecutively, the food may overflow the feeding bowl. Therefore, a batch threshold can also be preset in the batch parameters. For example, if 10 batches are dispensed, reaching the batch threshold, dispensing is paused until the pet has consumed the food, at which point the remaining 10 batches are dispensed, and so on, until all the planned number of food grains are dispensed. Alternatively, the pet feeder can use a preset algorithm model to learn and record the target pet's eating habits over a preset time period. This allows it to determine the number of pellets consumed during each feeding, and thus how to divide the specified feeding number into batches and / or the number of pellets per batch, as well as the batch threshold during the batch feeding process. For example, if the specified feeding number is 20 pellets, and the preset time period determines that the average number of pellets consumed per feeding is 10 (or the mode, median, etc.), then the pet feeder can pause feeding subsequent batches after outputting 10 pellets. If the target pet continues to eat, it can then output the remaining number of pellets in batches.
[0079] During the continuous batch feeding process after the feeding plan begins, the feeding detection model and the food shortage detection model switch between each other, with only one algorithm model running in memory at any given time. When the remaining food quantity threshold is reached, feeding can be paused or stopped, and the system switches back to the remaining food quantity detection model. If the threshold is not reached, it indicates the pet is continuously eating. A 5-second switching time can be preset between the remaining food quantity detection model and the behavior detection model, with only one algorithm model loaded and running in memory during this period. When the remaining food quantity detection model detects a low quantity, it continues to feed the next batch of food from the current feeding plan. When each batch of food is started, the system switches back to the food shortage detection model, and switches back to the behavior detection model to detect feeding behavior when food is not scarce. This process continues with each subsequent batch of food, switching back to the food shortage detection model until all the food in the current batch is consumed, at which point the system switches back to the feeding detection model.
[0080] If the behavior detection model detects that the target pet has stopped eating, it reports the end of feeding. Even if the current feeding plan corresponding to the pet feeding command has not ended, the subsequent food dispensing process can be stopped directly. If the target pet leaves the target area, the model for detecting the number of remaining food grains can be switched to first, and the number of remaining food grains can be reported. Then, the pet detection model can be switched back to running. At this time, only the pet detection model can be kept running until the pet detection model detects that the target pet is in the target area. Then, the method described in the previous embodiment can be repeated. This application provides a control method for a pet feeder. In response to a received pet feeding command, the method detects the number of remaining food pellets in the feeding area of the pet feeder to obtain the current number of remaining food pellets in the feeding area. The pet feeding command includes a specified number of pellets to be fed. If the current number of remaining food pellets is less than a preset threshold, then batch feeding is performed based on the specified number of pellets. In response to detecting that the number of remaining food pellets during the batch feeding process exceeds the threshold, the batch feeding process is paused or stopped. If the number of remaining food pellets during the feeding process is less than or equal to the threshold number of remaining food pellets, then the batch feeding process continues until the total number of pellets fed in the batch feeding process reaches the specified number of feeding pellets. In the control scheme of the pet feeder provided in this application, the deviation problem of traditional feeder portion measurement can be avoided, and the precise feeding with the number of pellets as the core can be achieved. At the same time, it avoids the problem that the pet feeder only dispenses food according to the feeding command and ignores the actual eating scenario of the pet, reduces the possibility of food waste, and can also prevent the pet from not eating enough, thus improving the user experience of pet owners when using the pet feeder.
[0081] To facilitate better implementation of the pet feeder control method of the present application embodiments, the present application embodiments also provide a pet feeder control device, wherein the meanings of the terms are the same as those in the pet feeder control system described above, and specific implementation details can be found in the description of the system embodiments.
[0082] Please see Figure 2 , Figure 2 This is a schematic diagram of the control device for a pet feeder provided in an embodiment of this application. Specifically, the control device may include a detection module 201, a first processing module 202, a pause module 203, and a second processing module 204, as follows: The detection module 201 is used to detect the number of remaining food pellets in the feeding area of the pet feeder in response to a received pet feeding instruction, and to obtain the current number of remaining food pellets in the feeding area; the pet feeding instruction includes a specified number of pellets to feed; The first processing module 202 is used to perform batch feeding processing based on the specified number of grains to be fed if the current number of remaining grains is less than a preset threshold number of remaining grains. The pause module 203 is used to pause or stop the batch feeding process in response to detecting that the number of remaining grains in the batch feeding process is greater than the threshold number of remaining grains. The second processing module 204 is used to respond to the detection that the number of remaining grains in the batch feeding process is less than or equal to the threshold number of remaining grains, and then continue to perform batch feeding until the total number of grains fed in the batch feeding process reaches the specified number of grains fed.
[0083] This application provides a control device for a pet feeder. The device is applied to a pet feeder. A detection module 201, in response to a received pet feeding command, detects the number of remaining food pellets in the feeding area of the pet feeder to obtain the current number of remaining food pellets in the feeding area. The pet feeding command includes a specified number of pellets to be fed. A first processing module 202, if the current number of remaining food pellets is less than a preset threshold, performs batch feeding based on the specified number of pellets. A pause module 203, in response to detecting that the number of remaining food pellets during the batch feeding process exceeds the threshold, pauses or stops the batch feeding process. A second... When the processing module 204 detects that the number of remaining food pellets during the batch feeding process is less than or equal to the threshold number of remaining food pellets, it continues to perform batch feeding until the total number of pellets fed in the batch feeding process reaches the specified number of pellets. In the control scheme of the pet feeder provided in this application, the deviation problem of traditional feeder portion measurement can be avoided, and accurate feeding with the number of pellets as the core can be achieved. At the same time, it avoids the problem that the pet feeder only dispenses food according to the feeding command and ignores the actual eating scenario of the pet, reduces the possibility of food waste, and can also prevent the pet from not eating enough, thus improving the user experience of pet owners when using the pet feeder.
[0084] Furthermore, embodiments of this application also provide an electronic device, such as... Figure 3 As shown, it illustrates a structural schematic diagram of the electronic device involved in the embodiments of this application, specifically: The electronic device may include components such as a processor 301 with one or more processing cores, a memory 302 with one or more processor-readable storage media, a power supply 303, and an input unit 304. Those skilled in the art will understand that... Figure 3 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: Processor 301 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in memory 302, and by calling data stored in memory 302, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. Optionally, processor 301 may include one or more processing cores; preferably, processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles the control of the wireless pet feeder. It is understood that the modem processor may not be integrated into processor 301.
[0085] The memory 302 can be used to store software programs and modules. The processor 301 executes various functional applications and control methods for the pet feeder by running the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.
[0086] The electronic device also includes a power supply 303 that supplies power to various components. Preferably, the power supply 303 can be logically connected to the processor 301 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 303 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0087] The electronic device may also include an input unit 304, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0088] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in the embodiments of this application, the processing 301 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 302 according to the following instructions, and the processing 301 runs the applications stored in the memory 302 to realize various functions, as follows: In response to a received pet feeding instruction, the remaining food pellets in the feeding area of the pet feeder are detected to obtain the current remaining food pellet count in the feeding area; the pet feeding instruction includes a specified number of pellets to be fed; if the current remaining food pellet count is less than a preset remaining food pellet count threshold, then batch feeding is performed based on the specified feeding pellet count; in response to detecting that the remaining food pellet count during the batch feeding process is greater than the remaining food pellet count threshold, the batch feeding process is paused or stopped; in response to detecting that the remaining food pellet count during the batch feeding process is less than or equal to the remaining food pellet count threshold, the batch feeding process continues until the total number of pellets fed in the batch feeding process reaches the specified feeding pellet count.
[0089] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0090] The embodiments of this application can avoid the deviation problem of traditional feeders in measuring the amount of food, and achieve precise feeding based on the number of pellets. At the same time, it avoids the problem that pet feeders only dispense food according to the feeding instructions and ignore the actual eating scenario of the pet, reducing the possibility of food waste and preventing the pet from not eating enough, thus improving the user experience of pet owners when using pet feeders.
[0091] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a processor-readable storage medium and loaded and executed by a processor.
[0092] Therefore, embodiments of this application provide a storage medium storing a plurality of instructions that can be loaded by a processor to execute steps in any of the pet feeder control methods provided in embodiments of this application. For example, the instructions can execute the following steps: In response to a received pet feeding instruction, the remaining food pellets in the feeding area of the pet feeder are detected to obtain the current remaining food pellet count in the feeding area; the pet feeding instruction includes a specified number of pellets to be fed; if the current remaining food pellet count is less than a preset remaining food pellet count threshold, then batch feeding is performed based on the specified feeding pellet count; in response to detecting that the remaining food pellet count during the batch feeding process is greater than the remaining food pellet count threshold, the batch feeding process is paused or stopped; in response to detecting that the remaining food pellet count during the batch feeding process is less than or equal to the remaining food pellet count threshold, the batch feeding process continues until the total number of pellets fed in the batch feeding process reaches the specified feeding pellet count.
[0093] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0094] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0095] Since the instructions stored in the storage medium can execute the steps in any of the pet feeder control methods provided in the embodiments of this application, the beneficial effects that the pet feeder control methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.
[0096] The control method, device, electronic device, and storage medium for a pet feeder provided in the embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A control method of a pet feeder, characterized by, The application is applied to a pet feeder, comprising: In response to the received pet feeding instruction, the remaining food grain number of the feeding area of the pet feeder is detected to obtain the current remaining food grain number of the feeding area; the pet feeding instruction includes a specified feeding number; If the current remaining food grain number is less than a preset remaining food grain number threshold, the batch feeding process is performed based on the specified feeding number; In response to detecting that the remaining food grain number in the process of the batch feeding process is greater than the remaining food grain number threshold, the batch feeding process is paused or stopped; In response to detecting that the remaining food grain number in the process of the batch feeding process is less than or equal to the remaining food grain number threshold, the batch feeding process is continuously performed until the total feeding number of the batch feeding process reaches the specified feeding number.
2. The method of claim 1, wherein, Before the response to the received pet feeding instruction, the method further comprises: In response to detecting that the target area has a target pet, the remaining food grain number of the feeding area is detected to obtain an initial remaining food grain number; The behavior detection process of the target pet is performed to obtain the pet behavior of the target pet; The response to the received pet feeding instruction, the remaining food grain number of the feeding area of the pet feeder is detected to obtain the current remaining food grain number of the feeding area, comprising: In response to receiving the pet feeding instruction and the pet behavior including eating behavior, the remaining food grain number of the feeding area is detected to obtain the current remaining food grain number.
3. The method of claim 2, wherein, After the behavior detection process of the target pet is performed to obtain the pet behavior of the target pet, the method further comprises: In response to receiving the pet feeding instruction and the target pet not having eating behavior, it is judged whether the initial remaining food grain number is greater than the remaining food grain number threshold; If the initial remaining food grain number is greater than the remaining food grain number threshold, the remaining food grain number detection and the batch feeding process are paused or stopped.
4. The method of claim 2, wherein, The method further comprises: loading a pet detection model and performing pet detection processing on a target area based on the pet detection model; In response to detecting that the target area has a target pet, the pet detection model is switched to a remaining food grain number detection model, and the remaining food grain number of the feeding area is detected based on the remaining food grain number detection model to obtain an initial remaining food grain number; The remaining food grain number detection model is switched to a behavior detection model, and the behavior detection process of the target pet is performed based on the behavior detection model to obtain the pet behavior of the target pet.
5. The method of claim 1, wherein, Before the batch feeding process based on the specified feeding number, the method further comprises: The lack of food in the storage area of the pet feeder is detected to obtain a lack of food detection result, which represents whether the outputable food grain number of the storage area meets the batch feeding demand; The batch feeding process based on the specified feeding number comprises: In response to the lack of food detection result representing that the pet feeder is not lacking of food, the feeding process is performed based on the current batch feeding number.
6. The method of claim 5, wherein, After the feeding process based on the current batch feeding number, the method further comprises: perform pet detection processing on a target area corresponding to the pet feeder; in response to the target pet not being present in the target area, the batch feeding processing is paused or stopped; and / or, performing behavior detection processing on the target pet; in response to the target pet not having a feeding behavior, the batch feeding processing is paused or stopped.
7. The method of claim 1, wherein, The batch feeding processing based on the specified feeding quantity includes: performing food card detection on each batch feeding processing to obtain a food card detection result; if the food card detection result indicates that the pet feeder does not have a food card problem and no food quantity is detected to be output, a food shortage information is generated and information reporting processing is performed.
8. The method of claim 7, wherein, After the food card detection on each batch feeding processing to obtain a food card detection result, the method further includes: if the food card detection result indicates that the pet feeder has a food card problem, a food card information is generated and information reporting processing is performed; performing pet detection processing on a target area corresponding to the pet feeder, and / or performing behavior detection processing on a target pet in the target area; in response to the target pet not being present in the target area, and / or the target pet not having a feeding behavior, the batch feeding processing is stopped.
9. A control device for a pet feeder, characterized by comprising: Applied to a pet feeder, comprising: a detection module, configured to, in response to a received pet feeding instruction, perform remaining food quantity detection on a feeding area of the pet feeder to obtain a current remaining food quantity of the feeding area; the pet feeding instruction includes a specified feeding quantity; a first processing module, configured to, if the current remaining food quantity is less than a preset remaining food quantity threshold, perform batch feeding processing based on the specified feeding quantity; a pause module, configured to, in response to detecting that the remaining food quantity in the process of the batch feeding processing is greater than the remaining food quantity threshold, pause or stop the batch feeding processing; a second processing module, configured to, in response to detecting that the remaining food quantity in the process of the batch feeding processing is less than or equal to the remaining food quantity threshold, continuously perform batch feeding processing until a total feeding quantity of the batch feeding processing reaches the specified feeding quantity.
10. An electronic device, comprising: Comprising: a memory, a processor, and a processing program stored on the memory and executable on the processor, wherein the processor executes the program to perform the steps of the control method of the pet feeder as claimed in any one of claims 1 to 8.
11. A storage medium, characterized by A computer processing program is stored, which can be loaded and executed by the processor to perform the control method of the pet feeder as claimed in any one of claims 1 to 8.
