Character recognition method and device

By using the YOLOV8 model and radar detection results to deduplicate the person recognition model, the problem of low recognition accuracy due to mobility in person recognition is solved and the recognition accuracy is improved.

CN118552983APending Publication Date: 2024-08-27HANGZHOU DIANZI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410770642.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In the existing technology, due to the large mobility of people during the person recognition process, the recognition accuracy is low and there is a problem of repeated recognition.

Method used

The YOLOV8 model is used to train the human recognition model, and the radar detection results and human characteristics are combined to deduplicate the recognition results, generate detection results, determine the coordinates and relative distance of the detection target, and reduce the impact of repeated recognition.

Benefits of technology

The person recognition model generated by the YOLOV8 model, combined with the deduplication process of coordinates and character features, improves the recognition accuracy and reduces the problem of repeated recognition caused by the mobility of people.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552983A
    Figure CN118552983A
Patent Text Reader

Abstract

The invention provides a character recognition method and device, and relates to the technical field of artificial intelligence, the method is used for a mobile robot, the mobile robot comprises a mobile assembly, a radar and a camera, the method comprises the steps that a character model data set is acquired, the data set comprises character models of different genders, and the character models comprise character models with glasses; inputting the preprocessed character model data set into a YOLOV8 model for model training, and generating a character recognition model; performing character recognition on the environment data by using a character recognition model, and taking a recognition result as a detection target; determining a relative distance between the detection target and the mobile robot, and determining coordinates of the detection target based on the relative distance; and based on the coordinates of the detection target identified in the set time and the character features of the detection target, performing duplicate removal on the detection target identified in the set time. Therefore, the problems of repeated recognition and influence on recognition accuracy caused by relatively high mobility of the character can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method and device for character recognition. Background Art

[0002] Object detection is an important task in the field of computer vision, which aims to identify and locate specific objects or targets in images or videos.

[0003] In recent years, deep learning technology has made great progress in the field of object detection, especially methods based on convolutional neural networks (CNN). Common deep learning object detection models include Faster R-CNN, YOLO (You Only LookOnce), SSD (Single Shot Multibox Detector), etc., which have achieved significant improvements in accuracy and speed.

[0004] However, in the case of person recognition, due to the high mobility of people, repeated recognition and low recognition accuracy are likely to occur during the person recognition process. Summary of the invention

[0005] In order to solve the technical problem of low recognition accuracy of current person recognition technology in the prior art, an embodiment of the present invention provides a person recognition method and device. The technical solution is as follows:

[0006] On the one hand, a person recognition method is provided, the method is used for a mobile robot, the mobile robot includes a mobile component, a radar, and a camera, the method includes:

[0007] Acquire a character model data set, wherein the data set includes character models of different genders, and the character models include character models wearing glasses;

[0008] Preprocessing the character model data set;

[0009] The preprocessed character model data set is input into the YOLOV8 model for model training to generate a character recognition model, wherein the recognition result of the character recognition model reflects the character characteristics, and the character characteristics include the character's gender and whether the character wears glasses;

[0010] Use the person recognition model to perform person recognition on the environmental data, and use the recognition result as the detection target;

[0011] Determine the relative distance between the detection target and the mobile robot through the detection result of the radar, and determine the coordinates of the detection target based on the relative distance;

[0012] Based on the coordinates of the detection targets identified within the set time and the character features of the detection targets, the detection targets identified within the set time are deduplicated to generate a detection result and output the detection result.

[0013] Optionally, deduplication of the detection targets identified within the set time based on the coordinates of the detection targets identified within the set time and the character features of the detection targets includes:

[0014] Determine the detection targets with the same human features as suspected identical detection targets;

[0015] Determine a first difference value according to the coordinate values ​​of the suspected identical detection targets in adjacent frames;

[0016] When the first difference is less than a first set value, the suspected identical detection targets of the adjacent frames are determined to be identical detection targets, and the detection targets acquired later in the identical detection targets are not recorded in the detection result.

[0017] Optionally, determining the relative distance between the detection target and the mobile robot through the detection result of the radar includes:

[0018] After determining that the detection target is detected, obtain the distance array obtained after the radar scan;

[0019] Arrange the distance array in ascending order;

[0020] Determine a second difference value according to the adjacent data in the distance array after being arranged in ascending order, wherein the data in the first order among the adjacent data is the minuend, and the data in the last order is the subtrahend;

[0021] When the second difference is greater than a second set value, discarding the data in the distance array that is arranged after the minuend corresponding to the second difference;

[0022] Determine the data in the distance array that precedes the minuend corresponding to the second difference and the mean of the minuend, and use the mean as the relative distance between the detection target and the mobile robot.

[0023] Optionally, determining the coordinates of the detection target based on the relative distance includes:

[0024] Obtaining coordinates of the mobile robot;

[0025] Based on the relative distance, determine the distance value in the distance array that has the smallest difference with the relative distance, and determine the scanning angle corresponding to the distance value;

[0026] According to the coordinates of the mobile robot, the scanning angle, and the relative distance, the coordinates of the detection target are determined by the following formula:

[0027] X2 = X1 + L×sinθ, Y2 = Y1 + L×cosθ, wherein X1 is the horizontal coordinate of the mobile robot, Y2 is the vertical coordinate of the mobile robot, θ is the scanning angle, and L is the relative distance.

[0028] Optionally, the detection result is stored in a HashMap in the form of Key-Value.

[0029] Optionally, the character features also include:

[0030] Whether wearing a hat, clothing style, hair length.

[0031] Optionally, the character model dataset is preprocessed, including:

[0032] Perform image processing on the character model dataset, including adjusting the image brightness, clarity, and rotation direction.

[0033] On the other hand, a person recognition device is provided, and the person recognition device is used to implement the person recognition method provided by an embodiment of the present invention, and the device includes:

[0034] An acquisition module, used for acquiring a character model data set, wherein the data set includes character models of different genders, and the character models include character models wearing glasses;

[0035] A preprocessing module, used for preprocessing the character model data set;

[0036] A model generation module is used to input the preprocessed character model data set into the YOLOV8 model for model training to generate a character recognition model, wherein the recognition result of the character recognition model reflects the character characteristics, and the character characteristics include the character's gender and whether the character wears glasses;

[0037] A detection target generation module, used to use the person recognition model to perform person recognition on the environmental data and use the recognition result as the detection target;

[0038] A coordinate determination module, used to determine the relative distance between the detection target and the mobile robot according to the detection result of the radar, and determine the coordinates of the detection target based on the relative distance;

[0039] The output module is used to deduplicate the detection targets identified within the set time based on the coordinates of the detection targets identified within the set time and the character features of the detection targets, so as to generate a detection result and output the detection result.

[0040] In another aspect, a person recognition device is provided, the person recognition device comprising:

[0041] processor;

[0042] A memory having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by the processor, implement the method provided by the embodiment of the present invention.

[0043] On the other hand, a computer-readable storage medium is provided, in which a program code is stored. The program code can be called by a processor to execute the method provided by an embodiment of the present invention.

[0044] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0045] The YOLOV8 model is used for model training to generate a person recognition model. The recognition results of the person recognition model are combined with the coordinates and person features to deduplicate the recognition results to generate detection results, thereby reducing the problem of repeated recognition caused by the large mobility of the person, which affects the recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0047] Figure 1 is a flow chart of a person recognition method provided by an embodiment of the present invention;

[0048] Figure 2 is a radar scanning schematic diagram provided by an embodiment of the present invention;

[0049] Figure 3 is a schematic diagram of a sorted distance array provided by an embodiment of the present invention;

[0050] Figure 4 is a block diagram of a person recognition device provided by an embodiment of the present invention;

[0051] Figure 5 The figure is a schematic diagram of the structure of a person recognition device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0052] The technical solution of the present invention is described below in conjunction with the accompanying drawings.

[0053] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.

[0054] In the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same.

[0055] In the embodiments of the present invention, sometimes the subscripts such as W 1 It may be mistakenly written as a non-subscript form such as W1. When the difference is not emphasized, the meanings they express are the same.

[0056] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0057] like Figure 1 As shown, an embodiment of the present invention provides a method for identifying a person, which is used for a mobile robot. The mobile robot includes a mobile component, a radar, and a camera. In some embodiments, the mobile robot may be a mobile vehicle platform. The mobile vehicle has a mobile component, a vehicle-mounted high-definition camera, a 360° radar, and a processor. The method includes:

[0058] S1. Obtain a character model dataset, where the character model dataset includes character models of different genders, and the character models include character models wearing glasses.

[0059] In some implementations, the character models are configured as 8 males and 8 females, wherein the character poses on each character model are different, and wherein the characters in half of the male and half of the female character models wear glasses, which is a small detection object.

[0060] S2. Preprocess the character model dataset.

[0061] In some implementations, the character model dataset is preprocessed, including adjusting the image brightness, clarity, and rotation direction of the character model in the character model dataset, so as to expand the data volume in the character model dataset by data enhancement.

[0062] S3. Input the preprocessed character model data set into the YOLOV8 model for model training to generate a character recognition model. The recognition result of the character recognition model reflects the character characteristics, which include the character's gender and whether the character wears glasses.

[0063] Optionally, the character features also include:

[0064] Whether wearing a hat, clothing style, hair length.

[0065] Among them, clothing style can include Chinese style, casual, formal wear, and hair length can include short hair, medium-long hair, and long hair.

[0066] S4. Use the person recognition model to perform person recognition on the environmental data, and use the recognition result as the detection target.

[0067] S5. Determine the relative distance between the detection target and the mobile robot through the detection result of the radar, and determine the coordinates of the detection target based on the relative distance.

[0068] Optionally, determining the relative distance between the detection target and the mobile robot according to the detection result of the radar includes:

[0069] After determining that the target is detected, obtain the distance array obtained after the radar scan.

[0070] Sort the distance array in ascending order.

[0071] The second difference is determined according to the adjacent data in the distance array arranged in ascending order, wherein the data arranged first among the adjacent data are the minuends, and the data arranged later are the subtrahends.

[0072] When the second difference is greater than the second set value, the data in the distance array that is arranged after the minuend corresponding to the second difference is discarded.

[0073] The data before the minuend corresponding to the second difference in the distance array and the mean of the minuend are determined, and the mean is used as the relative distance between the detection target and the mobile robot.

[0074] In some embodiments, Figure 2 As shown in the figure, the distance returned by the radar is not a distance value that can be used directly. Because the radar scans a sector area, it does not return a single distance value, but a distance array composed of distance values ​​corresponding to each angle value of the sector area. Therefore, it is necessary to filter the data returned in order to obtain the final required distance value.

[0075] like Figure 3As shown, the returned distance array is sorted in ascending order, a data subscript is set for each data in the array, and a coordinate diagram is drawn with the data subscript as the horizontal axis and the specific value as the y-axis.

[0076] from Figure 3 It can be seen intuitively that the distance array returned by the radar has an obvious numerical fault after being sorted in ascending order. The distance returned by the angle part that exceeds the size range of the mission model plate is the distance of the distant wall, and the value will be significantly larger than the distance of the detected target. In addition, there will be a large numerical mutation in the distance return value near the critical point of the angle, that is, Figure 3 Therefore, in order to filter out this part of unnecessary data, the returned distance array is first sorted in ascending order, and then the data of adjacent subscripts in the array are subtracted to obtain the second difference. Once the second difference is greater than the second set value, that is, it reaches the critical point, the critical point is the minuend of the second difference at this time, discard all the data after this critical point and perform mean processing on all the data before and including the critical point. The data obtained after this processing is recorded as L, which is regarded as the relative distance from the mobile robot to the detection target.

[0077] Optionally, determining the coordinates of the detection target based on the relative distance includes:

[0078] Get the coordinates of the mobile robot.

[0079] Based on the relative distance, a distance value in the distance array having the smallest difference with the relative distance is determined, and a scanning angle corresponding to the distance value is determined.

[0080] According to the coordinates of the mobile robot, the scanning angle, and the relative distance, the coordinates of the detection target are determined by the following formula:

[0081] X2 = X1 + L×sinθ, Y2 = Y1 + L×cosθ, where X1 is the horizontal coordinate of the mobile robot, Y2 is the vertical coordinate of the mobile robot, θ is the scanning angle, and L is the relative distance.

[0082] S6. Based on the coordinates of the detection targets identified within the set time and the character features of the detection targets, deduplication is performed on the detection targets identified within the set time to generate a detection result and output the detection result.

[0083] Optionally, based on the coordinates of the detection targets identified within the set time and the character features of the detection targets, deduplication of the detection targets identified within the set time includes:

[0084] Detection targets with the same human features are determined as suspected identical detection targets.

[0085] A first difference is determined according to coordinate values ​​of suspected identical detection targets in adjacent frames.

[0086] When the first difference is less than the first set value, the suspected identical detection targets of the adjacent frames are determined to be identical detection targets, and the detection targets acquired later in the identical detection targets are not recorded in the detection result.

[0087] Optionally, the detection results are stored in a HashMap in the form of Key-Value.

[0088] In some embodiments, the coordinates of the detected target and the human features are stored in a self-built HashMap in the form of Key-Value. Target detection uses image frames as detection units, which means that a coordinate value will be generated and calculated for each frame. Even if the same object does not move from an objective perspective, multiple coordinate values ​​will still be generated. These calculated coordinate values ​​need to be deduplicated to ensure the accuracy of human detection while real-time detection. The coordinate value calculated for the first frame in which the detected target is detected is used as the reference value and stored in the HashMap. The volume radius of the detected target is regarded as the fluctuation error radius of the coordinates, as the first set value. Each frame of the image with the detected target will calculate a new coordinate value, and these new coordinate values ​​are subtracted from the coordinate values ​​already existing in the HashMap to obtain the first difference. If the first difference is less than the first set value, it is regarded as the same detected target, and the coordinate value is filtered and processed. If the first difference exceeds the first set value, it is regarded as a new detected target, and its coordinate value is stored in the HashMap. After all images are processed in this way within the set time, the human features and coordinate values ​​of the detection results will be stored in the final HashMap. Finally, the entire HashMap is traversed, the number of model boards and their characteristics are read out in turn, the speech synthesis module is called, and speech synthesis and broadcast are performed.

[0089] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0090] The YOLOV8 model is used for model training to generate a person recognition model. The recognition results of the person recognition model are combined with the coordinates and person features to deduplicate the recognition results to generate detection results, thereby reducing the problem of repeated recognition caused by the large mobility of the person, which affects the recognition accuracy.

[0091] On the other hand, Figure 4 As shown, a person recognition device is provided, and the person recognition device is used to implement the person recognition method provided by an embodiment of the present invention, and the device includes:

[0092] The acquisition module 401 is used to acquire a character model data set, where the data set includes character models of different genders, and the character models include character models wearing glasses.

[0093] The preprocessing module 402 is used to preprocess the character model data set.

[0094] The model generation module 403 is used to input the preprocessed character model data set into the YOLOV8 model for model training to generate a character recognition model. The recognition result of the character recognition model reflects the character characteristics, including the character's gender and whether the character wears glasses.

[0095] The detection target generation module 404 is used to use the person recognition model to perform person recognition on the environmental data and use the recognition result as the detection target.

[0096] The coordinate determination module 405 is used to determine the relative distance between the detection target and the mobile robot through the detection result of the radar, and determine the coordinates of the detection target based on the relative distance.

[0097] The output module 406 is used to deduplicate the detection targets identified within the set time based on the coordinates of the detection targets identified within the set time and the character features of the detection targets, so as to generate a detection result and output the detection result.

[0098] Figure 5 is a structural diagram of a person recognition device provided by an embodiment of the present invention, such as Figure 5 As shown, the person recognition device may include the above Figure 4 Optionally, the person identification device 510 may include a first processor 2001 .

[0099] Optionally, the person recognition device 510 may further include a memory 2002 and a transceiver 2003 .

[0100] The first processor 2001, the memory 2002 and the transceiver 2003 may be connected via a communication bus.

[0101] Combine the following Figure 5 The components of the person recognition device 510 are described in detail:

[0102] The first processor 2001 is the control center of the person recognition device 510, and may be a processor or a general term for multiple processing elements. For example, the first processor 2001 is one or more central processing units (CPUs), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (field programmable gate arrays, FPGAs).

[0103] Optionally, the first processor 2001 may execute various functions of the person recognition device 510 by running or executing a software program stored in the memory 2002 and calling data stored in the memory 2002 .

[0104] In a specific implementation, as an embodiment, the first processor 2001 may include one or more CPUs, such as Figure 5 CPU0 and CPU1 are shown in FIG.

[0105] In a specific implementation, as an embodiment, the person recognition device 510 may also include multiple processors, such as Figure 5 The first processor 2001 and the second processor 2004 are shown in FIG. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0106] The memory 2002 is used to store the software program for executing the solution of the present invention, and the first processor 2001 controls the execution. The specific implementation method can refer to the above method embodiment, which will not be repeated here.

[0107] Optionally, the memory 2002 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 2002 may be integrated with the first processor 2001, or may exist independently and access the first processor 2001 through the interface circuit ( Figure 5 (not shown) is coupled to the first processor 2001, which is not specifically limited in this embodiment of the present invention.

[0108] The transceiver 2003 is used to communicate with a network device or a terminal device.

[0109] Optionally, the transceiver 2003 may include a receiver and a transmitter ( Figure 5 The receiver is used to implement a receiving function, and the transmitter is used to implement a sending function.

[0110] Optionally, the transceiver 2003 may be integrated with the first processor 2001, or may exist independently and communicate with the first processor 2001 through the interface circuit ( Figure 5 (not shown) is coupled to the first processor 2001, which is not specifically limited in this embodiment of the present invention.

[0111] It should be noted that Figure 5 The structure of the person identification device 410 shown in the figure does not constitute a limitation on the router, and the actual knowledge structure identification device may include more or fewer components than those shown in the figure, or combine certain components, or arrange the components differently.

[0112] In addition, the technical effects of the person recognition device 510 can refer to the technical effects of the person recognition method in the above method embodiment, which will not be repeated here.

[0113] It should be understood that the first processor 2001 in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0114] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0115] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When a computer instruction or computer program is loaded or executed on a computer, a process or function according to an embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0116] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.

[0117] In the present invention, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0118] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0119] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0120] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0121] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0122] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0123] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0124] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0125] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A person recognition method, characterized in that: The method is used for a mobile robot, the mobile robot includes a mobile component, a radar, and a camera, and the method includes: Acquire a character model data set, wherein the data set includes character models of different genders, and the character models include character models wearing glasses; Preprocessing the character model data set; The preprocessed character model data set is input into the YOLOV8 model for model training to generate a character recognition model, wherein the recognition result of the character recognition model reflects the character characteristics, and the character characteristics include the character's gender and whether the character wears glasses; Use the person recognition model to perform person recognition on the environmental data, and use the recognition result as the detection target; Determine the relative distance between the detection target and the mobile robot through the detection result of the radar, and determine the coordinates of the detection target based on the relative distance; Based on the coordinates of the detection targets identified within the set time and the character features of the detection targets, the detection targets identified within the set time are deduplicated to generate a detection result and output the detection result.

2. The person recognition method according to claim 1, characterized in that: The deduplication of the detection targets identified within the set time based on the coordinates of the detection targets identified within the set time and the character features of the detection targets includes: Determine the detection targets with the same human features as suspected identical detection targets; Determine a first difference value according to the coordinate values ​​of the suspected identical detection targets in adjacent frames; When the first difference is less than a first set value, the suspected identical detection targets of the adjacent frames are determined to be identical detection targets, and the detection targets acquired later in the identical detection targets are not recorded in the detection result.

3. The person recognition method according to claim 1, characterized in that: The determining the relative distance between the detection target and the mobile robot by the detection result of the radar includes: After determining that the detection target is detected, obtain the distance array obtained after the radar scan; Arrange the distance array in ascending order; Determine a second difference value according to the adjacent data in the distance array after being arranged in ascending order, wherein the data in the first order among the adjacent data is the minuend, and the data in the last order is the subtrahend; When the second difference is greater than a second set value, discarding the data in the distance array that is arranged after the minuend corresponding to the second difference; Determine the data in the distance array that precedes the minuend corresponding to the second difference and the mean of the minuend, and use the mean as the relative distance between the detection target and the mobile robot.

4. The person recognition method according to claim 3, characterized in that: The determining the coordinates of the detection target based on the relative distance includes: Obtaining coordinates of the mobile robot; Based on the relative distance, determine the distance value in the distance array that has the smallest difference with the relative distance, and determine the scanning angle corresponding to the distance value; According to the coordinates of the mobile robot, the scanning angle, and the relative distance, the coordinates of the detection target are determined by the following formula: X2 = X1 + L×sinθ, Y2 = Y1 + L×cosθ, wherein X1 is the horizontal coordinate of the mobile robot, Y2 is the vertical coordinate of the mobile robot, θ is the scanning angle, and L is the relative distance.

5. The person recognition method according to claim 1, characterized in that: The detection results are stored in the HashMap in the form of Key-Value.

6. The person recognition method according to claim 1, characterized in that: The character traits also include: Whether wearing a hat, clothing style, hair length.

7. The person recognition method according to claim 1, characterized in that: The preprocessing of the character model data set includes: The character model data set is subjected to image processing, wherein the image processing includes adjusting image brightness, clarity, and rotation direction.

8. A person recognition device, the person recognition device being used to implement the person recognition method according to any one of claims 1 to 7, characterized in that: The device comprises: An acquisition module, used to acquire a character model data set, wherein the data set includes character models of different genders, and the character models include character models wearing glasses; A preprocessing module, used for preprocessing the character model data set; A model generation module is used to input the preprocessed character model data set into the YOLOV8 model for model training to generate a character recognition model, wherein the recognition result of the character recognition model reflects the character characteristics, and the character characteristics include the character's gender and whether the character wears glasses; A detection target generation module, used to use the human recognition model to perform human recognition on environmental data and use the recognition result as a detection target; A coordinate determination module, used to determine the relative distance between the detection target and the mobile robot through the detection result of the radar, and determine the coordinates of the detection target based on the relative distance; The output module is used to deduplicate the detection targets identified within the set time based on the coordinates of the detection targets identified within the set time and the character features of the detection targets, so as to generate a detection result and output the detection result.

9. A person recognition device, characterized in that: The character recognition device comprises: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 7.