A resource allocation method and device for pets

By recognizing pets' nose prints and physical condition, the server allocates appropriate staff to pet parks or zoos, solving the problems of rescue and order maintenance when pets gather, and improving resource utilization efficiency.

CN115186972BActive Publication Date: 2026-03-20NEW RUIPENG PET HEALTHCARE GRP CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-27
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

In pet parks or zoos, when pets gather, staff cannot promptly understand the situation, resulting in an inability to provide quick assistance and maintain order, inaccurate resource allocation, and waste.

Method used

By acquiring images of the target scene, identifying the pets' nose prints and physical condition, and determining data such as the number, size, breed, and temperament of the pets, the server can allocate an appropriate number of personnel to provide rescue and maintain order.

Benefits of technology

This enabled timely and accurate allocation of resources for pets, reduced resource waste, and improved rescue efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115186972B_ABST
    Figure CN115186972B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a resource allocation method and device for pets, wherein the method comprises the following steps: obtaining a target image in a target scene, wherein the target image comprises a plurality of pets; determining nose print information of the plurality of pets and body states of the plurality of pets according to the target image; determining data information of the plurality of pets according to the nose print information of the plurality of pets, wherein the data information of the plurality of pets comprises a quantity of the plurality of pets and characteristic information of the plurality of pets, and the characteristic information comprises one or more of body type information, breed information and temperament information; and allocating a corresponding maintenance order and / or a number of service personnel for rescuing the target scene according to the data information of the plurality of pets and the body states of the plurality of pets. The embodiment of the application can timely and accurately allocate service personnel for the plurality of pets, and the number of allocated resources is more accurate, thereby effectively reducing the waste of resources.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the communication technology field, and applies to the Internet, big data, pets and the like, and particularly relates to a resource allocation method and device for pets. BACKGROUND

[0002] In a pet playground or zoo, when there are many pets, the pets may gather together. If a pet is injured in this scene and the staff cannot immediately know the on-site situation, the staff cannot reach the scene in time to maintain order, nor can the staff notify medical personnel to provide emergency assistance to multiple pets in time. SUMMARY

[0003] The embodiments of the present application provide a resource allocation method and device for pets, which can timely and specifically allocate service personnel to multiple pets and the number of allocated personnel is more accurate, thereby effectively reducing the waste of resources.

[0004] In a first aspect, the embodiments of the present application provide a resource allocation method for pets, comprising:

[0005] obtaining a target image in a target scene, wherein the target image includes multiple pets;

[0006] determining noseprint information of the multiple pets and body states of the multiple pets according to the target image;

[0007] determining data information of the multiple pets according to the noseprint information of the multiple pets, wherein the data information of the multiple pets includes a number of the multiple pets and feature information of the multiple pets, and the feature information includes one or more of body type information, breed information and temperament information;

[0008] allocating a number of service personnel for maintaining order and / or providing assistance to the target scene according to the data information of the multiple pets and the body states of the multiple pets.

[0009] In the above method, at present, when multiple pets gather, if the responsible staff cannot immediately know the on-site situation, the multiple pets cannot be provided with timely rescue, and the application can first acquire a target image of a target scene, identify noseprint information of the multiple pets in the target scene according to the on-site image, and determine body states of the multiple pets, then determine data information (including the number, body shape, breed and temperament of the multiple pets) of the multiple pets according to the noseprint information of the multiple pets, and finally comprehensively allocate corresponding order-maintaining staff and / or professional medical staff for medical rescue to the target scene according to the data information and the body states of the multiple pets. The application can more accurately and effectively reduce the waste of resources by comprehensively allocating the number of corresponding order-maintaining staff and / or rescue staff to the multiple pets in the target scene according to the data information and the body states of the multiple pets.

[0010] In a possible implementation, in the case that the body states and the characteristic information are the same, the number of the staff is positively correlated with the number of the pets.

[0011] Different characteristic information has different influence on the number of the staff.

[0012] In the above method, in the case that the body states and the characteristic information of the multiple pets are the same, the number of the staff allocated by the server to the multiple pets increases with the increase of the number of the multiple pets (for example, in the case that the body states of the multiple pets are all serious and the characteristic information represents that the temperaments of the multiple pets are all ferocious, if the number of the pets in the target scene is large, the number of the staff allocated by the server to the target scene also needs to be increased accordingly), if the characteristic information of the multiple pets is different, the influence on the number of the staff may be different, but may also be the same, and different characteristic information also has an influence on the number of the staff.

[0013] In another possible implementation, the characteristic information includes temperament information, and the allocating, according to the data information of the multiple pets and the body states of the multiple pets, of the number of the staff for maintaining order and / or for rescue to the target scene includes:

[0014] If the number of the multiple pets is less than or equal to a first preset threshold, the body states of the multiple pets are less than or equal to a preset first injury level, and the characteristic information represents that the ferocity of the temperaments is lower than a preset first ferocity, the number of the staff for maintaining order and / or for rescue allocated to the target scene is less than a first preset number.

[0015] In the above method, for the temperament information in the feature information, if the number of the plurality of pets is less than or equal to a first preset threshold (for example, there are 4 male lions in the target scene, and the first preset threshold is 6 male lions), and the body state of the plurality of pets is less than or equal to a preset first injury level (for example, 1 of the 4 male lions is severely injured, and 3 of the 4 male lions are slightly injured, and the preset first injury level can be that 2 male lions are severely injured), and the ferocity degree of the temperament represented by the feature information is lower than a preset first ferocity degree (for example, 1 of the 4 male lions has a violent temperament, and the other 3 male lions have a relatively mild temperament, and the preset first ferocity degree is that at most 2 male lions have a violent temperament), the target scene is assigned a number of service personnel (such as 2 workers for maintaining order in the target scene and 3 medical personnel for rescuing the 4 male lions) less than a first preset number of service personnel for maintaining order and / or for rescue, the number of service personnel for maintaining order and / or for rescue in the target scene is determined according to the number of the plurality of pets, the different injury levels of the plurality of pets, and the different temperament degrees in the feature information of the plurality of pets, and the waste of resource allocation can be avoided.

[0016] In another possible implementation, the feature information includes temperament information, and the assigning of the number of service personnel for maintaining order and / or for rescue in the target scene according to the data information of the plurality of pets and the body state of the plurality of pets includes:

[0017] If the number of the plurality of pets is greater than a second preset threshold, the body state of the plurality of pets is greater than a preset second injury level, and the ferocity degree of the temperament represented by the feature information is higher than a preset second ferocity degree, the target scene is assigned a number of service personnel for maintaining order and / or for rescue greater than a second preset number of service personnel for maintaining order and / or for rescue.

[0018] In the above method, for the temperament information in the feature information, if the number of the plurality of pets is greater than the second preset threshold (for example, there are 10 lions in the target scene, and the first preset threshold is 8 lions), and the body state of the plurality of pets is greater than the preset second injury level (for example, 6 of the 10 lions are severely injured, and 4 of the 10 lions are slightly injured, and the preset second injury level can be that 5 of the 10 lions are severely injured and 5 of the 10 lions are slightly injured), and the ferocity degree of the feature information is higher than the preset second ferocity degree (for example, 7 of the 10 lions have violent temperaments, and the remaining 3 of the 10 lions have relatively mild temperaments, and the preset second ferocity degree is that at most 5 of the 10 lions have violent temperaments), the target scene is assigned a number of maintenance order and / or a number of service personnel for rescue greater than the second preset number (for example, the server determines to assign 6 workers to maintain the order of the target scene and 8 medical personnel to rescue the 10 lions in the target scene after comprehensively considering the above conditions), and the number of service personnel for rescue is greater than the second preset number. The above scheme mainly determines whether the number of the plurality of pets is greater than the preset threshold, the different injury levels of the plurality of pets, and the different temperament degrees in the feature information of the plurality of pets to assign an adaptive number of service personnel to the target scene, which can avoid waste of resources.

[0019] In another possible implementation, the method further includes:

[0020] training data information of a plurality of pets in a plurality of historical scenes, body states of the plurality of pets, and a number of service personnel for maintaining order and / or rescue corresponding to the historical scenes to obtain a distribution model, wherein the data information of the plurality of pets and the body states of the pluralityity of pets are feature information, and the number of service personnel for maintaining order and / or rescue corresponding to the historical scenes is label information;

[0021] distributing, according to the data information of the plurality of pets and the body states of the plurality of pets, a number of service personnel for maintaining order and / or rescue corresponding to the target scene, includes:

[0022] inputting the data information of the plurality of pets and the body states of the plurality of pets in the target scene into the distribution model to obtain the number of service personnel for maintaining order and / or rescue corresponding to the target scene.

[0023] In the method, the allocation model is obtained by training through obtaining data information of a plurality of pets in a plurality of historical scenes, body states of the plurality of pets, and assigning a corresponding maintenance order and / or a number of service personnel for rescue to the historical scenes. If a target scene occurs, only the data information of the plurality of pets in the target scene and the body states of the plurality of pets need to be obtained, and then the data information of the plurality of pets and the body states of the plurality of pets are respectively analyzed to obtain a first feature vector and a second feature vector. The first feature vector and the second feature vector are input into the allocation model, and the server can obtain a corresponding maintenance order and / or a number of service personnel for rescue to the target scene, and then perform subsequent operations on pet rescue based on the number of service personnel. The scheme improves the efficiency of assigning a corresponding maintenance order and / or a number of service personnel for rescue to the target scene by using the trained model.

[0024] In another possible implementation, the method further includes:

[0025] Determining a management personnel associated with the plurality of pets according to the nose print information of the plurality of pets;

[0026] Sending a notification message to a terminal bound to the management personnel, the notification message being used to notify the management personnel of the plurality of pets to manage the gathering behavior of the plurality of pets.

[0027] In the method, after the server assigns a corresponding maintenance order and / or a number of service personnel for rescue to the target scene, the gathering behavior of the plurality of pets can be managed. Specifically, a management personnel associated with the plurality of pets can be determined according to the nose print information of the plurality of pets, and the operation of managing the gathering behavior of the plurality of pets can be implemented by sending a notification message to a terminal bound to the management personnel associated with the plurality of pets. The scheme can notify the management personnel associated with the plurality of pets by the server after the gathering behavior occurs, and the plurality of pets can be managed in time, so that the probability of subsequent gathering behavior can be reduced.

[0028] In a second aspect, an embodiment of the present application provides a resource allocation device for pets, the resource allocation device comprising an obtaining unit, a determining unit, and an allocating unit, and the resource allocation device is configured to implement the method described in the first aspect or any possible implementation of the first aspect.

[0029] It should be noted that the processor included in the resource allocation apparatus described in the second aspect can be a processor specially used for executing the methods (referred to as a special-purpose processor for convenience), or can be a processor that executes the methods by calling a computer program, such as a general-purpose processor. Optionally, the at least one processor can include both a special-purpose processor and a general-purpose processor.

[0030] Optionally, the computer program can exist in the memory. For example, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated on the same device as the processor, or can be separately arranged on different devices. The embodiments of the present application do not limit the type of the memory and the arrangement of the memory and the processor.

[0031] In a possible implementation, the at least one memory is located outside the resource allocation apparatus.

[0032] In another possible implementation, the at least one memory is located inside the resource allocation apparatus.

[0033] In another possible implementation, part of the at least one memory is located inside the resource allocation apparatus, and the other part of the at least one memory is located outside the resource allocation apparatus.

[0034] In the present application, the processor and the memory can also be integrated into one device, that is, the processor and the memory can also be integrated together.

[0035] In a third aspect, the embodiments of the present application provide a resource allocation device for pets, which includes a processor and a memory; the memory stores a computer program; and the processor executes the computer program, so that the computing device executes the method described in the first aspect or any one of the first aspect.

[0036] In a fourth aspect, the embodiments of the present application provide a computer readable storage medium, which stores instructions, and when the instructions are executed on at least one processor, the method described in any one of the first to fourth aspects is implemented.

[0037] In a fifth aspect, the present application provides a computer program product, which includes computer instructions, and when the instructions are executed on at least one processor, the method described in any one of the first to fourth aspects is implemented. The computer program product can be a software installation package, and when the method described above is needed, the computer program product can be downloaded and executed on the computing device.

[0038] The beneficial effects of the technical methods provided in the second to fifth aspects of this application can be referred to the beneficial effects of the technical solution in the first aspect, and will not be repeated here. Attached Figure Description

[0039] The accompanying drawings used in the description of the embodiments will be briefly introduced below.

[0040] Figure 1 This is a schematic diagram of the architecture of a resource allocation system for pets provided in an embodiment of this application;

[0041] Figure 2 This is a flowchart illustrating a resource allocation method for pets provided in an embodiment of this application;

[0042] Figure 3 This is a schematic diagram illustrating how a server identifies the nose print information of multiple pets and determines the physical condition of multiple pets based on a target image, according to an embodiment of this application.

[0043] Figure 4 This illustration shows a server determining the data information of multiple pets based on their nose print information.

[0044] Figure 5 This is a schematic diagram illustrating resource allocation for pets according to an embodiment of this application;

[0045] Figure 6 This is a schematic diagram of the structure of a resource allocation device 60 for pets provided in an embodiment of this application;

[0046] Figure 7 This is a schematic diagram of the structure of a resource allocation device 70 for pets provided in an embodiment of this application. Detailed Implementation

[0047] The embodiments of this application are described below with reference to the accompanying drawings.

[0048] Please see Figure 1 , Figure 1 This is a schematic diagram of the architecture of a resource allocation system for pets provided in an embodiment of this application. The system includes a server 101 and a user device 102.

[0049] Server 101 can be a single server or a server cluster consisting of multiple servers, specifically a computer or host computer. Server 101 includes a resource allocation platform 103 for pets, which is used to notify the business personnel bound to user device 102 to provide services such as maintaining order and / or rescuing pets.

[0050] The user equipment 102 is a device with processing capability and data transceiving capability. The user equipment 102 can be a computer, a notebook computer, a tablet computer, a palm computer, a desktop computer, a diagnostic instrument, a mobile phone, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. In the embodiment of the present application, the user equipment 102 is an application program (APP) 104.

[0051] The user group corresponding to the service personnel bound to the user equipment 102 can be an order maintenance staff, a medical aid providing medical staff, or a management personnel responsible for pets. The service personnel can receive the notification message sent by the server 101 on the resource allocation platform 103. The specific content of the notification message sent by the server 101 can be to notify the order maintenance staff to go to the gathering site of the plurality of pets to maintain order, or to notify the medical staff to go to the gathering site of the plurality of pets to provide medical aid service, or to notify the management personnel of the plurality of pets to manage the gathering behavior of the plurality of pets. The service personnel logs in through the user equipment 102 and receives the notification message of providing service for the plurality of pets in the target scene fed back by the resource allocation platform 103 through the user equipment 102.

[0052] The main function of the resource allocation platform 103 is to first acquire the target image in the target scene, then analyze the noseprint information of the plurality of pets and the body state of the plurality of pets according to the target image, then determine the data information of the plurality of pets according to the noseprint information of the plurality of pets, and finally allocate the number of service personnel corresponding to maintaining order and / or providing aid for the target scene according to the data information of the plurality of pets and the body state of the plurality of pets, and send the notification message about providing service for the gathering scene of the plurality of pets to the service personnel bound to the user equipment 102.

[0053] The method of the embodiment of the present application will be described in detail below.

[0054] Please refer to Figure 2 , Figure 2 is a flowchart of a resource allocation method for pets provided by the embodiment of the present application. Optionally, the method can be applied to Figure 1 the system.

[0055] As Figure 2 described, the resource allocation method for pets at least includes steps S201 to S204.

[0056] Step S201: The server acquires a target image in a target scene.

[0057] The target scene can be a zoo or a large pet store, and the target image in the target scene includes a plurality of pets. For example, when the target scene is a zoo, if 10 male lions gather in a certain time period (for example, small-scale or large-scale friction occurs between the 10 male lions), the server needs to obtain the target image and decode and extract the data information of the 10 male lions in the target image for subsequent operations.

[0058] Step S202: The server determines the noseprint information of the plurality of pets and the body state of the plurality of pets according to the target image.

[0059] Specifically, as shown in FIG. 2, the server determines the noseprint information of the plurality of pets and the body state of the plurality of pets according to the target image. Figure 3 As shown in FIG. 2, the server determines the noseprint information of the plurality of pets and the body state of the plurality of pets according to the target image. Figure 3 In the embodiment, after the server obtains the target image in the target scene, the server identifies the noseprint information of the plurality of pets and the body state of the plurality of pets by analyzing the target image (for example, the server obtains a target image in which a plurality of animals gather in a zoo, and then identifies the noseprint information of 10 male lions in the target image, which indicates that there are 10 male lions in the target scene, and further obtains the body state of the 10 male lions, such as whether the 10 male lions have obvious wounds on their bodies, to preliminarily determine the number of service personnel to be allocated later).

[0060] Step S203: The server determines the data information of the plurality of pets according to the noseprint information of the plurality of pets.

[0061] The data information of the plurality of pets includes the number of the plurality of pets and the characteristic information of the plurality of pets, and the characteristic information includes one or more of the body type information, the breed information, and the temperament information. Figure 4 As shown in FIG. 3, the server determines the data information of the plurality of pets according to the noseprint information of the plurality of pets. Figure 4In the specific implementation, the server can determine the number of pets in the target scene and the body shape, breed or temperament information of the pets by recognizing the noseprint information of the plurality of pets. For example, when the target scene is a zoo, and the noseprint information of 10 male lions is obtained, the number of the pets (e.g., there are 10 male lions in the target image) and the feature information of the 10 male lions (e.g., the body shape information of the pets can be that 7 of the 10 male lions are relatively large in body shape compared with the standard body shape of a male lion, with a light and agile body frame, long and strong limbs, while the other 3 male lions have a standard body shape; the breed information of the pets can be that the 10 male lions all belong to the Kalahari lion, with black spherical tufts of hair at the tail end, well-developed canine and incisor teeth, and retractable sharp claws; the temperament information of the pets can be that 6 of the 10 male lions are fierce and ferocious, while the other 4 male lions are relatively mild) can be determined by the noseprint information of the 10 male lions. After the server determines the data information of the plurality of pets according to the noseprint information of the plurality of pets, the server can subsequently allocate a corresponding maintenance order and / or the number of service personnel for rescuing the plurality of pets in the target scene according to the data information of the plurality of pets and the body state of the plurality of pets, thereby effectively reducing the waste of resources.

[0062] It should be noted that, in the case of ensuring that the body state and the feature information of the plurality of pets are the same, the number of service personnel is positively correlated with the number of the plurality of pets, that is, the number of service personnel allocated by the server for the plurality of pets increases with the increase of the number of the plurality of pets (for example, in the case that the body state of the plurality of pets is all serious and the feature information of the plurality of pets is all ferocious, if the number of the plurality of pets in the target scene is large, the number of service personnel allocated by the server for the target scene also needs to be increased accordingly), and if the feature information of the plurality of pets is different, the influence on the number of service personnel can be different, but can also be the same, and different feature information also has an influence on the number of service personnel.

[0063] Step S204: The server allocates a corresponding maintenance order and / or the number of service personnel for rescuing the target scene according to the data information of the plurality of pets and the body state of the plurality of pets.

[0064] Specifically, the server can allocate a corresponding maintenance order and / or the number of service personnel for rescuing the target scene according to the number of the plurality of pets, the feature information of the plurality of pets and the body state of the plurality of pets. It should be noted that the feature information in the embodiments of the present application can be any one of the body shape information, the breed information or the temperament information, or a permutation and combination of the three, which will be illustrated below.

[0065] For example, if the number of pets is less than or equal to the first preset threshold (e.g., there are 4 lions in the target scene, and the first preset threshold is 6 lions), the body state of the plurality of pets is less than or equal to the preset first injury level (e.g., 1 of the 4 lions is severely injured, and 3 of the 4 lions are slightly injured, and the preset first injury level can be that 2 of the 4 lions are severely injured), and the ferocity degree represented by the characteristic information is lower than the preset first ferocity degree (e.g., 1 of the 4 lions is ferocious, and the other 3 lions are relatively mild, and the preset first ferocity degree is that at most 2 of the 4 lions are ferocious), the target scene is assigned a number of service personnel (e.g., 2 personnel to maintain order in the target scene and 3 medical personnel to rescue the 4 lions) less than the first preset number.

[0066] In addition, if the number of pets is greater than the second preset threshold, the body state of the plurality of pets is greater than the preset second injury level, and the ferocity degree represented by the characteristic information is higher than the preset second ferocity degree, the target scene is assigned a number of service personnel (e.g., 6 personnel to maintain order in the target scene and 8 medical personnel to rescue the 10 lions) greater than the second preset number. For example, if the number of pets is greater than the second preset threshold (e.g., there are 10 lions in the target scene, and the first preset threshold is 8 lions), the body state of the plurality of pets is greater than the preset second injury level (e.g., 6 of the 10 lions are severely injured, and 4 of the 10 lions are slightly injured, and the preset second injury level can be that 5 of the 10 lions are severely injured and 5 of the 10 lions are slightly injured), and the ferocity degree represented by the characteristic information is higher than the preset second ferocity degree (e.g., 7 of the 10 lions are ferocious, and the other 3 lions are relatively mild, and the preset second ferocity degree is that at most 5 of the 10 lions are ferocious), the target scene is assigned a number of service personnel (e.g., 6 personnel to maintain order in the target scene and 8 medical personnel to rescue the 10 lions) greater than the second preset number. In summary, the present scheme can assign an appropriate number of service personnel to the target scene according to the number of pets, the different injury levels of the plurality of pets, and the different ferocity degrees represented by the characteristic information of the plurality of pets, thereby avoiding waste of resources.

[0067] In the second case, the feature information includes body size information and breed information. If the number of the plurality of pets is less than or equal to a first preset threshold, the body state of the plurality of pets is less than or equal to a preset first injury level, the body size of the plurality of pets represented by the feature information is less than a preset standard body size, and the breed of the plurality of pets in the target scene is gentle, the target scene is assigned a number of maintenance order and / or service personnel for rescue that is less than a first preset number. For example, if the number of the plurality of pets is less than or equal to a first preset threshold (e.g., there are 4 koalas in the target scene, and the first preset threshold is 6 koalas), the body state of the plurality of pets is less than or equal to a preset first injury level (e.g., the 4 koalas are only slightly injured, and the preset first injury level can be that 2 koalas are severely injured), the body size of the plurality of pets represented by the feature information is less than a preset standard body size (e.g., the body size of the plurality of koalas in the target scene is smaller than that of a teddy bear), and the breed of the plurality of pets in the target scene is gentle (e.g., the 4 koalas all belong to a gentle breed, and the preset first ferocity level is that at most 2 koalas belong to a gentle breed), the target scene is assigned a number of maintenance order and / or service personnel for rescue that is less than a first preset number (e.g., the server determines that the target scene is assigned 2 workers to maintain the order of the target scene and 2 medical personnel to rescue the 4 koalas after comprehensively considering the above conditions).

[0068] In addition, if the number of the plurality of pets is greater than a second preset threshold, the body state of the plurality of pets is greater than a preset second injury level, the body size of the plurality of pets represented by the feature information is greater than a preset standard body size, and the breed of the plurality of pets in the target scene is ferocious, the target scene is assigned a number of maintenance order and / or service personnel for rescue that is greater than a second preset number. For example, if the number of the plurality of pets is greater than a second preset threshold (e.g., there are 10 Mongolian wolves in the target scene, and the second preset threshold is 7 Mongolian wolves), the body state of the plurality of pets is greater than a preset second injury level (e.g., there are 10 Mongolian wolves in the target scene, 6 of which are severely injured and 4 of which are slightly injured, and the preset second injury level can be that 5 Mongolian wolves are severely injured and 5 Mongolian wolves are slightly injured), the body size of the plurality of pets represented by the feature information is greater than a preset standard body size (e.g., the body size of the plurality of koalas in the target scene is greater than that of an ordinary wolf), and the breed of the plurality of pets in the target scene is ferocious (e.g., 7 koalas all belong to a ferocious breed, and the preset first ferocity level is that at most 5 Mongolian wolves belong to a ferocious breed), the target scene is assigned a number of maintenance order and / or service personnel for rescue that is greater than a first preset number (e.g., the server determines that the target scene is assigned 5 workers to maintain the order of the target scene and 8 medical personnel to rescue the 10 Mongolian wolves after comprehensively considering the above conditions).

[0069] Correspondingly, after the server obtains the corresponding maintenance order and / or the number of service personnel for rescuing the target scene, the server can send the notification information of the assigned service personnel to the user equipment, and the user equipment correspondingly receives the notification message sent by the server, such as Figure 5 The application illustrates a schematic diagram of resource allocation for pets, as shown in Figure 5 In the application, after the service personnel log in through the user equipment, they can receive the notification message about the service for the multiple pets in the target scene by clicking the application, such as the service personnel receiving the notification message of "an emergency of animal gathering in the zoo" based on the legend shown in Figure 5 After receiving the notification message, the service personnel go to the target scene to handle the gathering of the animals. Based on the multi-target learning algorithm, the server analyzes the data information of the multiple pets and the body state of the multiple pets, and can timely and accurately allocate the service personnel for the multiple pets and the number of the service personnel, thereby effectively reducing the waste of resources. The application continuously develops related application product series and provides intelligent solutions for the upstream and downstream of the industrial chain.

[0070] In the application, the specific implementation of the corresponding maintenance order and / or the number of service personnel for rescuing the target scene based on the data information of the multiple pets and the body state of the multiple pets can be as follows: training the data information of the multiple pets, the body state of the multiple pets, and the corresponding maintenance order and / or the number of service personnel for rescuing the historical scene to obtain a distribution model, wherein the data information of the multiple pets and the body state of the multiple pets are feature information, and the corresponding maintenance order and / or the number of service personnel for rescuing the historical scene are label information; inputting the data information of the multiple pets and the body state of the multiple pets in the target scene into the distribution model to obtain the corresponding maintenance order and / or the number of service personnel for rescuing the target scene.

[0071] Specifically, an allocation model can be trained by acquiring data on multiple pets from multiple historical scenarios, their physical states, and the corresponding number of personnel assigned to maintain order and / or provide rescue for each historical scenario. This training model provides an accurate mapping from input to desired output. If a target scenario occurs, only data on multiple pets and their physical states in the current target scenario needs to be acquired. Then, feature analysis is performed on these data and physical states to obtain a first feature vector and a second feature vector. These two feature vectors are then input into the allocation model, allowing the server to determine the corresponding number of personnel to assign to the target scenario for maintenance and / or rescue. Based on this number of personnel, subsequent pet rescue operations are then performed. This solution improves the efficiency of assigning the corresponding number of personnel to maintain order and / or provide rescue for a target scenario by utilizing a trained model. Optionally, after the server assigns the corresponding number of personnel to the target scenario, it can also manage the aggregation behavior of multiple pets. Specifically, the system can identify the administrators associated with multiple pets based on their nose print information. By sending notification messages to the terminals bound to these administrators, the system can manage the aggregation behavior of multiple pets. This solution allows the server to notify the administrators associated with multiple pets after aggregation occurs, enabling timely management of the pets and reducing the probability of subsequent aggregation.

[0072] In this embodiment, currently, when multiple pets gather, if the responsible staff cannot immediately ascertain the situation, they cannot provide timely assistance to the pets. This application, however, can first acquire a target image of the target scene, identify the nose print information of multiple pets in the scene based on the image, determine the physical condition of the pets, and then determine the pets' data information (including the number, size, breed, and temperament) based on the nose print information. Finally, by comprehensively considering the data and physical condition of the pets, the application can specifically allocate corresponding staff to maintain order and / or medical personnel to provide medical assistance to the target scene. By integrating the data and physical condition of multiple pets, this application can allocate a corresponding number of personnel to maintain order and / or provide assistance to multiple pets in a target scene, enabling more targeted and timely allocation of personnel with more accurate numbers, effectively reducing resource waste.

[0073] The methods of the embodiments of this application have been described in detail above. The apparatus of the embodiments of this application is provided below.

[0074] It can be understood that the plurality of apparatuses provided by the embodiments of the present application, for example, the resource allocation apparatus, in order to realize the functions in the foregoing method embodiments, comprise the corresponding hardware structure, software module, or combination of hardware structure and software module, etc. for executing various functions.

[0075] Those skilled in the art should easily understand that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized in the form of hardware or a combination of hardware and computer software. Whether a certain function is realized in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. The skilled person can use different device implementation manners to realize the foregoing method embodiments in different use scenarios, and different implementation manners of the device should not be considered as beyond the scope of the embodiments of the present application.

[0076] The embodiments of the present application can divide the device into functional modules. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one functional module. The integrated module can be realized in the form of hardware or in the form of a software functional module. It should be noted that the division of the modules in the embodiments of the present application is illustrative, and is only a logical functional division. Actual implementation can have another division manner.

[0077] For example, in the case of dividing each functional module of the device in an integrated manner, the embodiments of the present application exemplify several possible processing devices.

[0078] Please refer to Figure 6 , Figure 6 is a structural schematic diagram of a resource allocation apparatus 60 for pets provided by the embodiments of the present application. The resource allocation apparatus 60 can be a server or a device in the server, for example, a chip, a software module, an integrated circuit, etc. The resource allocation apparatus 60 is used to realize the foregoing resource allocation method for pets, for example Figure 2 the resource allocation method for pets.

[0079] In a possible implementation manner, the resource allocation apparatus 60 can include an acquisition unit 601, a determination unit 602, and an allocation unit 603.

[0080] The acquisition unit 601 is configured to acquire a target image in a target scene, wherein the target image includes a plurality of pets.

[0081] The determination unit 602 is configured to determine noseprint information of the plurality of pets and body states of the plurality of pets according to the target image.

[0082] The determining unit 602 is further configured to determine data information of the plurality of pets according to the plurality of pet noseprint information, wherein the data information of the plurality of pets includes a quantity of the plurality of pets and characteristic information of the plurality of pets, and the characteristic information includes one or more of body size information, breed information, and temperament information.

[0083] The assigning unit 603 is configured to assign a corresponding maintenance order and / or a number of service personnel for the target scene according to the data information of the plurality of pets and the body state of the plurality of pets.

[0084] In the embodiments of the present application, when a plurality of pets gather, if the responsible staff cannot immediately know the on-site situation, the plurality of pets cannot be provided with timely assistance. However, the present application can first acquire a target image of a target scene, recognize the plurality of pet noseprint information in the target scene according to the on-site image and determine the body state of the plurality of pets, then determine the data information of the plurality of pets (including the quantity, body size, breed, and temperament of the plurality of pets) according to the plurality of pet noseprint information, and finally assign a corresponding maintenance order staff and / or professional medical personnel for medical assistance to the target scene according to the data information and the body state of the plurality of pets. The present application can more accurately and effectively reduce the waste of resources by assigning a corresponding maintenance order and / or a number of service personnel for the plurality of pets in the target scene according to the data information and the body state of the plurality of pets, and timely assigning service personnel to the plurality of pets.

[0085] In another possible implementation, when the body state and the characteristic information are the same, the number of service personnel is positively correlated with the quantity of the plurality of pets.

[0086] Different characteristic information has different influence on the number of service personnel.

[0087] In the embodiments of the present application, when the body state and the characteristic information of the plurality of pets are the same, the number of service personnel assigned by the server to the plurality of pets increases with the increase of the quantity of the plurality of pets (for example, when the body state of the plurality of pets is serious injury and the characteristic information represents the same degree of ferocity, if the quantity of the plurality of pets in the target scene is large, the number of service personnel assigned by the server to the target scene also needs to be increased accordingly). If the characteristic information of the plurality of pets is different, the influence on the number of service personnel may be different, but may also be the same, and different characteristic information also has an influence on the number of service personnel.

[0088] In another possible implementation, the method further includes:

[0089] In a possible implementation, the allocation unit 603 is further configured to allocate a number of maintenance order and / or service personnel for performing rescue, which is less than a first preset number, to the target scene, if the number of the plurality of pets is less than or equal to a first preset threshold, the body state of the plurality of pets is less than or equal to a preset first injury level, and the ferocity degree represented by the characteristic information is lower than a preset first ferocity degree.

[0090] In the embodiments of the present application, the number of the plurality of pets is less than or equal to the first preset threshold (for example, there are 4 male lions in the target scene, and the first preset threshold is 6 male lions), the body state of the plurality of pets is less than or equal to the preset first injury level (for example, 1 of the 4 male lions is severely injured, and 3 of the 4 male lions are slightly injured, and the preset first injury level can be that 2 male lions are severely injured), and the ferocity degree represented by the characteristic information is lower than the preset first ferocity degree (for example, 1 of the 4 male lions is ferocious, and the other 3 male lions are relatively mild, and the preset first ferocity degree is that at most 2 male lions are ferocious) in the embodiments of the present application, the number of the maintenance order and / or the service personnel for performing rescue allocated to the target scene is less than the first preset number (for example, the server determines to allocate 2 workers for maintaining the order of the target scene and 3 medical personnel for rescuing the 4 male lions in the target scene after comprehensively considering the above conditions), and the present solution mainly determines the number of the service personnel for the target scene according to whether the number of the plurality of pets is less than or equal to the preset threshold, the different injury levels of the plurality of pets, and the different ferocity degrees in the characteristic information of the plurality of pets, so as to avoid waste of resources.

[0091] In another possible implementation, the method further includes:

[0092] In a possible implementation, the allocation unit 603 is further configured to allocate a number of maintenance order and / or service personnel for performing rescue, which is greater than a second preset number, to the target scene, if the number of the plurality of pets is greater than a second preset threshold, the body state of the plurality of pets is greater than a preset second injury level, and the ferocity degree represented by the characteristic information is higher than a preset second ferocity degree.

[0093] In the embodiments of the present application, for the temperament information in the feature information, if the number of the plurality of pets is greater than the second preset threshold (for example, there are 10 lions in the target scene, and the first preset threshold is 8 lions), and the body state of the plurality of pets is greater than the preset second injury level (for example, 6 of the 10 lions are severely injured, and 4 of the 10 lions are slightly injured, and the preset second injury level can be that 5 of the 10 lions are severely injured and 5 of the 10 lions are slightly injured), and the ferocity degree of the feature information is higher than the preset second ferocity degree (for example, 7 of the 10 lions are ferocious, and the remaining 3 of the 10 lions are relatively mild, and the preset second ferocity degree is that at most 5 of the 10 lions are ferocious), the target scene is assigned a number of maintenance order and / or a number of service personnel for rescue greater than the second preset number (for example, the server determines to assign 6 workers to maintain the order of the target scene and 8 medical personnel to rescue the 10 lions in the target scene after comprehensively considering the above conditions), and the scheme mainly assigns an adaptive number of service personnel to the target scene by judging whether the number of the plurality of pets is greater than the preset threshold, the different injury levels of the plurality of pets, and the different temperament degrees in the feature information of the plurality of pets, which can avoid waste of resource allocation.

[0094] In another possible implementation, the method further includes:

[0095] The distribution unit 603 is further configured to train the data information of the plurality of pets, the body state of the plurality of pets, and the number of service personnel for maintaining order and / or for rescue corresponding to the historical scene assigned to the historical scene to obtain a distribution model, wherein the data information of the plurality of pets and the body state of the plurality of pets are feature information, and the number of service personnel for maintaining order and / or for rescue corresponding to the historical scene assigned to the historical scene is label information.

[0096] The input unit is configured to input the data information of the plurality of pets and the body state of the plurality of pets in the target scene into the distribution model to obtain the number of service personnel for maintaining order and / or for rescue corresponding to the target scene assigned to the target scene.

[0097] In the embodiment of the present application, the distribution model is obtained by training the data information of the plurality of pets, the body states of the plurality of pets, the maintenance order corresponding to the historical scenes and / or the number of service personnel for rescue in the historical scenes, and the obtained distribution model provides accurate mapping from input to required output. If the target scene occurs at present, only the data information of the plurality of pets in the target scene and the body states of the plurality of pets are needed to be obtained, and then the data information of the plurality of pets and the body states of the plurality of pets are respectively analyzed to obtain the first feature vector and the second feature vector, the first feature vector and the second feature vector are input into the distribution model, and the server can obtain the maintenance order corresponding to the target scene and / or the number of service personnel for rescue, and then perform subsequent operations on pet rescue based on the number of service personnel. The present scheme improves the efficiency of the maintenance order corresponding to the target scene and / or the number of service personnel for rescue by using the training model.

[0098] In another possible implementation, the method further includes:

[0099] The determining unit 602 is further configured to determine the management personnel associated with the plurality of pets according to the nose print information of the plurality of pets.

[0100] The sending unit is configured to send a notification message to a terminal bound to the management personnel, and the notification message is used to notify the management personnel of the plurality of pets to manage the gathering behavior of the plurality of pets.

[0101] In the embodiment of the present application, after the server allocates the maintenance order corresponding to the target scene and / or the number of service personnel for rescue, the gathering behavior of the plurality of pets can be managed. Specifically, the management personnel associated with the plurality of pets can be determined according to the nose print information of the plurality of pets, and the operation of managing the gathering behavior of the plurality of pets can be realized by sending a notification message to the terminal bound to the management personnel associated with the plurality of pets. The present scheme can notify the management personnel associated with the plurality of pets by the server after the gathering behavior occurs, and the plurality of pets can be managed in time, so as to reduce the probability of subsequent gathering behavior.

[0102] Please refer to Figure 7 , Figure 7 ​Fig. 7 is a structural schematic diagram of a resource allocation device 70 for pets provided by an embodiment of the present application. The resource allocation device 70 can be a server or a device in the server, such as a chip, a software module, an integrated circuit, etc. The resource allocation device 70 can include at least one processor 701. Optionally, it can also include at least one memory 703. Further optionally, the resource allocation device 70 can also include a communication interface 702. Still further optionally, it can also include a bus 704, wherein the processor 701, the communication interface 702 and the memory 703 are connected through the bus 704.

[0103] The processor 701 is a module for arithmetic operation and / or logical operation, and can be one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor unit (MPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a complex programmable logic device (CPLD), a co-processor (assisting the central processing unit to complete corresponding processing and application), a microcontroller unit (MCU), etc.

[0104] The communication interface 702 can be used to provide information input or output for the at least one processor. And / or, the communication interface 702 can be used to receive externally transmitted data and / or transmit data to the outside, which can be a wired link interface including an Ethernet cable, etc., or a wireless link (Wi-Fi, Bluetooth, universal wireless transmission, vehicle-mounted short-range communication technology and other short-range wireless communication technologies, etc.) interface. Optionally, the communication interface 702 can also include a transmitter (such as a radio frequency transmitter, an antenna, etc.) or a receiver coupled with the interface, etc.

[0105] The memory 703 is configured to provide a storage space in which data such as an operating system and a computer program can be stored. The memory 703 can be one or a combination of a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a compact disc read-only memory (CD-ROM), etc.

[0106] The at least one processor 701 in the resource allocation device 70 is configured to execute the foregoing method, for example Figure 2 The method described in the embodiments.

[0107] Optionally, the processor 701 can be a processor specially configured to execute the method (referred to as a special-purpose processor for convenience), or can be a processor that executes the method by invoking a computer program, for example, a general-purpose processor. Optionally, the at least one processor can include both a special-purpose processor and a general-purpose processor. Optionally, in the case where the computing device includes the at least one processor 701, the foregoing computer program can exist in the memory 703.

[0108] Optionally, the at least one processor 701 in the resource allocation device 70 is configured to execute computer instructions to perform the following operations:

[0109] Obtain a target image in a target scene, wherein the target image includes a plurality of pets;

[0110] Determine noseprint information of the plurality of pets and body states of the plurality of pets according to the target image;

[0111] Determine data information of the plurality of pets according to the noseprint information of the plurality of pets, wherein the data information of the plurality of pets includes a quantity of the plurality of pets and characteristic information of the plurality of pets, and the characteristic information includes one or more of body type information, breed information, and temperament information;

[0112] According to the data information of the plurality of pets and the body states of the plurality of pets, assign a corresponding maintenance order to the target scene and / or a quantity of service personnel for rescue.

[0113] In the embodiment of the present application, when multiple pets gather, if the responsible staff cannot immediately know the on-site situation, the multiple pets cannot be provided with timely assistance, and the present application can first acquire a target image of a target scene, identify the noseprint information of the multiple pets in the target scene according to the on-site image, and determine the body states of the multiple pets, then determine the data information of the multiple pets (including the number, size, breed and temperament of the multiple pets) according to the noseprint information of the multiple pets, and finally comprehensively allocate corresponding order-maintaining staff and / or professional medical staff for medical assistance to the target scene according to the data information and the body states of the multiple pets. The present application can more accurately and timely allocate the number of order-maintaining staff and / or assistance staff to the multiple pets in the target scene by comprehensively allocating the number of order-maintaining staff and / or assistance staff to the multiple pets according to the data information and the body states of the multiple pets, thereby effectively reducing the waste of resources.

[0114] Optionally, in the case that the body states and the characteristic information are the same, the number of the staff is positively correlated with the number of the multiple pets.

[0115] The different characteristic information has different influence degrees on the number of the staff.

[0116] In the embodiment of the present application, in the case that the body states and the characteristic information of the multiple pets are the same, the number of the staff allocated by the server to the multiple pets increases with the increase of the number of the multiple pets (for example, in the case that the body states of the multiple pets are all serious and the characteristic information represents that the temperaments of the multiple pets are all ferocious, if the number of the pets in the target scene is large, the number of the staff allocated by the server to the target scene also needs to be increased accordingly), and if the characteristic information of the multiple pets is different, the influence degrees on the number of the staff can be different, but can also be the same, and different characteristic information also has an influence on the number of the staff.

[0117] Optionally, the characteristic information includes temperament information, and the processor 701 is further configured to:

[0118] If the number of the multiple pets is less than or equal to a first preset threshold, the body states of the multiple pets are less than or equal to a preset first injury level, and the characteristic information represents that the ferocity of the temperaments is lower than a preset first ferocity, the target scene is allocated with a number of order-maintaining staff and / or assistance staff less than a first preset number.

[0119] In the embodiments of the present application, taking the temperament information in the feature information as an example, if the number of the plurality of pets is less than or equal to a first preset threshold (for example, there are 4 male lions in the target scene, and the first preset threshold is 6 male lions), and the body state of the plurality of pets is less than or equal to a preset first injury level (for example, 1 of the 4 male lions is severely injured, and 3 of the 4 male lions are slightly injured, and the preset first injury level can be that at most 2 male lions are severely injured), and the ferocity degree represented by the feature information is lower than a preset first ferocity degree (for example, 1 of the 4 male lions has a violent temperament, and the other 3 male lions have a relatively mild temperament, and the preset first ferocity degree is that at most 2 male lions have a violent temperament) under the condition, a number of service personnel (such as 2 workers for maintaining the order of the target scene and 3 medical personnel for rescuing the 4 male lions) less than a first preset number of service personnel for maintaining the order and / or for rescue is allocated to the target scene. The present scheme mainly determines whether the number of the plurality of pets is less than or equal to the preset threshold, the different injury levels of the plurality of pets, and the different temperament degrees in the feature information of the plurality of pets, and then allocates an adaptive number of service personnel to the target scene, so as to avoid waste of resource allocation.

[0120] Optionally, the feature information includes temperament information; and the processor 701 is further configured to:

[0121] If the number of the plurality of pets is greater than a second preset threshold, the body state of the plurality of pets is greater than a preset second injury level, and the ferocity degree represented by the feature information is higher than a preset second ferocity degree, a number of service personnel (such as 4 workers for maintaining the order of the target scene and 6 medical personnel for rescuing the plurality of pets) greater than a second preset number of service personnel for maintaining the order and / or for rescue is allocated to the target scene.

[0122] In the embodiments of the present application, for the temperament information in the feature information, if the number of the plurality of pets is greater than the second preset threshold (for example, there are 10 lions in the target scene, and the first preset threshold is 8 lions), the body state of the plurality of pets is greater than the preset second injury level (for example, 6 of the 10 lions are severely injured, and 4 of the 10 lions are slightly injured, and the preset second injury level can be that 5 of the 10 lions are severely injured and 5 of the 10 lions are slightly injured), and the ferocity of the feature information is higher than the preset second ferocity (for example, 7 of the 10 lions are ferocious, and the remaining 3 of the 10 lions are relatively mild, and the preset second ferocity is that at most 5 of the 10 lions are ferocious), the target scene is assigned a number of maintenance order and / or a number of service personnel for rescue greater than the second preset number (for example, the server determines to assign 6 workers to maintain the order of the target scene and 8 medical personnel to rescue the 10 lions in the target scene after comprehensively considering the above conditions), and the scheme mainly assigns the target scene with an adaptive number of service personnel by judging whether the number of the plurality of pets is greater than the preset threshold, the different injury levels of the plurality of pets, and the different temperament degrees in the feature information of the plurality of pets, which can avoid waste of resource allocation.

[0123] Optionally, the processor 701 is further configured to:

[0124] training data information of a plurality of pets in a plurality of historical scenes, body states of the plurality of pets, and a number of service personnel for maintaining order and / or performing rescue corresponding to the historical scenes to obtain a distribution model, wherein the data information of the plurality of pets and the body states of the plurality of pets are feature information, and the number of service personnel for maintaining order and / or performing rescue corresponding to the historical scenes is label information;

[0125] inputting the data information of the plurality of pets and the body states of the plurality of pets in the target scene into the distribution model to obtain a number of service personnel for maintaining order and / or performing rescue corresponding to the target scene.

[0126] In the embodiment of the present application, the distribution model is obtained by training through obtaining data information of a plurality of pets in a plurality of historical scenes, body states of the plurality of pets, and assigning a corresponding maintenance order and / or a number of service personnel for rescue to the historical scenes. The obtained distribution model provides accurate mapping from input to required output. If a target scene occurs at present, only the data information of a plurality of pets in the target scene and the body states of the plurality of pets need to be obtained, and then the data information of the plurality of pets and the body states of the plurality of pets are respectively analyzed to obtain a first feature vector and a second feature vector. The first feature vector and the second feature vector are input into the distribution model, and the server can obtain a corresponding maintenance order and / or a number of service personnel for rescue assigned to the target scene, and then perform subsequent operations related to pet rescue based on the number of service personnel. The present scheme improves the efficiency of assigning a corresponding maintenance order and / or a number of service personnel for rescue to the target scene by using the trained model.

[0127] Optionally, the processor 701 is further configured to:

[0128] determine a management personnel associated with the plurality of pets according to the nose print information of the plurality of pets;

[0129] send a notification message to a terminal bound to the management personnel, the notification message being used to notify the management personnel of the plurality of pets to manage the gathering behavior of the plurality of pets.

[0130] In the embodiment of the present application, after the server assigns a corresponding maintenance order and / or a number of service personnel for rescue to the target scene, the gathering behavior of the plurality of pets can also be managed. Specifically, a management personnel associated with the plurality of pets can be determined according to the nose print information of the plurality of pets, and the operation of managing the gathering behavior of the plurality of pets can be realized by sending a notification message to a terminal bound to the management personnel associated with the plurality of pets. The present scheme can notify the management personnel associated with the plurality of pets by the server after the gathering behavior occurs, and the plurality of pets can be managed in time, so as to reduce the probability of subsequent gathering behavior.

[0131] The present application also provides a computer readable storage medium, the computer readable storage medium stores instructions, when the instructions run on at least one processor, implement the foregoing resource allocation method for pets, for example Figure 2 the method.

[0132] The present application also provides a computer program product, the computer program product includes computer instructions, when the computer instructions are executed by a computing device, implement the foregoing resource allocation method for pets, for example Figure 2 the method.

[0133] In the embodiments of the present application, the words "for example", "for instance", "such as", or "like" are used to indicate one example out of many, and should not be used to limit or narrow the scope of the embodiments of the present application. Any embodiment or design scheme described herein as "for example" or "such as" should not be construed as being more preferred or advantageous than other embodiments or design schemes. Rather, the use of "for example" or "such as" is merely intended to present a specific example or description of related concepts.

[0134] In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. "At least one of the following (one)", or the like, means any combination of the items, including any combination of single item (one) or multiple items. For example, at least one of a, b, or c can mean a, b, c, (a and b), (a and c), (b and c), or (a and b and c), where a, b, and c can be single or multiple. "And / or" describes the relationship between the associated objects, which means that there can be three relationships, for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects.

[0135] In addition, unless otherwise stated, the ordinal numbers "first", "second", etc. used in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, time sequence, priority or importance of the multiple objects. For example, the first device and the second device are only for ease of description, and do not mean that the structures, importance, etc. of the first device and the second device are different. In some embodiments, the first device and the second device can also be the same device.

[0136] In the above embodiments, according to the context, the term "when" can be interpreted as meaning "if", "after", "in response to determining", or "in response to detecting". The above is only an optional embodiment of the present application, and does not limit the present application. Any modification, equivalent replacement, improvement, etc. made within the concept and principles of the present application should be included in the protection scope of the present application.

[0137] A person of ordinary skill in the art can understand that all or part of the steps of the above-mentioned embodiments can be completed by hardware, or by a program instructing relevant hardware, and the program can be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk or an optical disk.

[0138] The above merely provides the specific implementation of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed by the present application, and these modifications or replacements should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A resource allocation method for pets, characterized in that, The method includes: Acquire a target image in a target scene, wherein the target image includes multiple pets; The nose print information and physical condition of the multiple pets are determined based on the target image; The data information of the multiple pets is determined based on the nose print information of the multiple pets, wherein the data information of the multiple pets includes the number of the multiple pets and the characteristic information of the multiple pets, and the characteristic information includes one or more of body size information, breed information and temperament information; Based on the data and physical condition of the multiple pets, allocate a corresponding number of personnel to maintain order and / or provide rescue for the target scenario; If the characteristic information includes temperament information, the step of allocating a corresponding number of personnel for maintaining order and / or providing rescue to the target scene based on the data information and physical condition of the multiple pets includes: If the number of the multiple pets is less than or equal to a first preset threshold, the physical condition of the multiple pets is less than or equal to a preset first injury level, and the ferocity level represented by the characteristic information is lower than a preset first ferocity level, then a number of personnel for maintaining order and / or providing rescue shall be allocated to the target scene less than a first preset number.

2. The method according to claim 1, characterized in that: When the physical condition and the characteristic information are the same, the number of business personnel is positively correlated with the number of pets among the multiple pets; Different types of characteristic information have varying degrees of impact on the number of business personnel.

3. The method according to claim 1 or 2, characterized in that, The characteristic information includes temperament information; the process of allocating a corresponding number of personnel for maintaining order and / or providing rescue to the target scene based on the data information and physical condition of the multiple pets includes: If the number of the multiple pets is greater than the second preset threshold, the physical condition of the multiple pets is greater than the preset second injury level, and the ferocity level represented by the characteristic information is higher than the preset second ferocity level, then a number of personnel for maintaining order and / or providing rescue shall be allocated to the target scene that is greater than the second preset number.

4. The method according to claim 1 or 2, characterized in that, Also includes: An allocation model is obtained by training on the data information of multiple pets in multiple historical scenarios, the physical status of the multiple pets, and the number of business personnel assigned to the corresponding historical scenarios for maintaining order and / or providing rescue. The data information of the multiple pets and the physical status of the multiple pets are feature information, and the number of business personnel assigned to the corresponding historical scenarios for maintaining order and / or providing rescue is label information. Based on the data and physical condition of the multiple pets, allocate a corresponding number of personnel for maintaining order and / or providing rescue services to the target scenario, including: The data information and physical status of the multiple pets in the target scenario are input into the allocation model to obtain the number of personnel assigned to maintain order and / or provide rescue for the target scenario.

5. The method according to claim 1 or 2, characterized in that, Also includes: The manager associated with the multiple pets was identified based on the nose print information of the multiple pets; A notification message is sent to the terminal bound to the administrator, the notification message being used to notify the administrators of the multiple pets to manage the gathering behavior of the multiple pets.

6. A resource allocation device for pets, characterized in that, It includes an acquisition unit, a determination unit, and an allocation unit, wherein: The acquisition unit is used to acquire a target image in the target scene, wherein the target image includes multiple pets; The determining unit is used to determine the nose print information and the body state of the multiple pets based on the target image; The determining unit is further configured to determine the data information of the multiple pets based on the nose print information of the multiple pets, wherein the data information of the multiple pets includes the number of the multiple pets and the characteristic information of the multiple pets, and the characteristic information includes one or more of body size information, breed information and temperament information; The allocation unit is used to allocate a corresponding number of personnel for maintaining order and / or rescuing animals to the target scene based on the data information and physical condition of the multiple pets. If the number of the multiple pets is less than or equal to a first preset threshold, the physical condition of the multiple pets is less than or equal to a preset first injury level, and the ferocity level represented by the characteristic information is lower than a preset first ferocity level, then the allocation unit is further used to allocate a number of personnel for maintaining order and / or providing rescue to the target scene that is less than a first preset number.

7. The apparatus according to claim 6, characterized in that: When the physical condition and the characteristic information are the same, the number of business personnel is positively correlated with the number of pets among the multiple pets; Different types of characteristic information have varying degrees of impact on the number of business personnel.

8. A resource allocation device for pets, characterized in that, The device includes a processor and a memory, the memory being used to store computer instructions, and the processor being used to invoke the computer instructions to implement the method of any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on at least one processor, implement the method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Medical resource allocating method and system

    CN108206049A

  • Pet identity recognition method and device and nonvolatile storage medium

    CN112784741A

  • Auxiliary shooting method and device for pet

    CN113132632A