Target object identification method, device and system
By combining image recognition and radio frequency identification technology, the problem of low recognition accuracy of traditional recognition methods in scenes such as table games is solved, accurate recognition of target objects is achieved, and recognition accuracy and accuracy are improved.
Patent Information
- Application Number
- CN202080000546.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-12-23
- Filing Date
- 2020-03-20
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-03-20
AI Technical Summary
The traditional target object recognition method has low recognition accuracy in scenarios such as board games, especially in the recognition of the type and quantity of game coins.
Combining image recognition and radio frequency identification technology, the image is processed through a neural network to obtain the location and quantity information of the target object, and radio frequency identification tags are used to obtain category information, and the two are fused to improve recognition accuracy.
It achieves accurate recognition of target objects in the target area, improves recognition accuracy and precision, and is suitable for the recognition of various sheet objects.
Smart Images

Figure CN113228044B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is a national phase application of a PCT application entitled “Target Object Identification Method, Device and System” filed on March 20, 2020 and application number PCT / IB2020 / 052583, and the PCT application claims priority to a Singapore patent application with application number 10201913005Y filed on December 23, 2019, the entire text of which is incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of computer vision technology, and in particular to a method, device and system for identifying a target object. Background Art
[0004] In daily production and life, it is often necessary to identify some target objects. Take the entertainment scene of board games as an example. In some board games, it is necessary to identify the game coins on the table to obtain the position, type and number of the game coins on the table. However, the traditional recognition method has a low recognition accuracy. Summary of the invention
[0005] The present disclosure provides a method, device and system for identifying a target object.
[0006] Specifically, the present disclosure is implemented through the following technical solutions.
[0007] According to a first aspect of an embodiment of the present disclosure, a method for identifying a target object is provided, the method comprising:
[0008] Acquire an image of the target area;
[0009] Determine an image recognition result of a target object in the target area according to the image;
[0010] Acquire a radio frequency identification result of the target object in the target area;
[0011] The distribution of the target objects in the target area is determined according to the radio frequency identification result and the image recognition result.
[0012] In some embodiments, determining an image recognition result of a target object within the target area based on the image includes: processing the image using a neural network and outputting the image recognition result of the target object within the target area.
[0013] In some embodiments, obtaining a radio frequency identification result of the target object in the target area includes: obtaining a radio frequency identification result of the target object in the target area by a radio frequency detection antenna arranged in the target area.
[0014] In some embodiments, the RFID result is obtained by the RFID detection antenna reading an RFID tag disposed on each target object.
[0015] In some embodiments, the target area includes at least one sub-area; the image recognition result includes N candidate categories with the highest confidence of the target objects in each of the sub-areas and the number of target objects in each of the sub-areas;
[0016] Determining the distribution of the target object in the target area according to the radio frequency identification result and the image recognition result includes:
[0017] Matching the number of target objects in each sub-region of the image recognition result and the N candidate categories with the categories and the number of target objects in each category in the RFID result in the order of confidence from large to small in the image recognition result and the order of the number of target objects in each sub-region of the image recognition result from large to small;
[0018] Get the category and number of target objects in each sub-area.
[0019] In some embodiments, matching the number of target objects in each sub-region in the image recognition result and the N candidate categories with the categories in the RFID result and the number of target objects in each category in the order of confidence in the image recognition result from large to small and the number of target objects in each sub-region in the image recognition result from large to small includes:
[0020] Matching the kth candidate category of the target object in the mth sub-region and the number of target objects in the mth sub-region with the category in the radio frequency identification result and the number of target objects in each category; wherein the kth candidate category is one of the N candidate categories corresponding to the confidence number k, and the confidence number is obtained by arranging the N candidate categories with the largest confidence of the target object in the mth sub-region in the image recognition result in order from large to small confidence; the mth sub-region is the sub-region corresponding to the sub-region number m in the at least one sub-region, and the sub-region number is obtained by arranging the number of target objects in each sub-region in the image recognition result in order from large to small confidence;
[0021] In response to the categories in the RFID result including a k-th candidate category and the number of target objects in the k-th candidate category in the RFID result being greater than zero, determining that the k-th candidate category of the target objects in the m-th sub-region is the category of the target objects in the m-th sub-region in the image recognition result, and the number of target objects in the m-th sub-region is the number of target objects in the m-th sub-region in the image recognition result;
[0022] The number of target objects in the mth sub-region is deducted from the number of target objects in the kth candidate category of the RFID result to obtain an adjusted RFID result.
[0023] In some embodiments, the method further comprises:
[0024] In response to the kth candidate category not being included in the categories in the RFID result, or in response to the kth candidate category being included in the categories in the RFID result but the number of target objects of the kth candidate category in the RFID result is not greater than zero, determining that the match is unsuccessful;
[0025] The mth sub-region is used as the sub-region to be matched.
[0026] In some embodiments, when it is determined that there is a sub-region to be matched, the method further includes:
[0027] In response to the number of target objects in each category in the radio frequency identification result being not greater than zero, one or more candidate categories appearing in the category of the radio frequency identification result among N candidate categories with the greatest confidence in a sub-region to be matched are determined, the candidate category with the greatest confidence among the one or more candidate categories that appear is used as the category of the target object in the sub-region to be matched, and the number of target objects in the sub-region to be matched in the image recognition result is used as the number of target objects in the sub-region to be matched.
[0028] In some embodiments, when it is determined that there is a sub-region to be matched, the method further includes:
[0029] In response to the fact that the number of target objects of each category in the radio frequency identification result is not greater than zero, it is determined that N candidate categories with the greatest confidence in a sub-region to be matched have never appeared in the category of the radio frequency identification result, the candidate category with the greatest confidence is used as the category of the target object in the sub-region to be matched, and the number of target objects in the sub-region to be matched in the image recognition result is used as the number of target objects in the sub-region to be matched.
[0030] In some embodiments, when it is determined that there is at least one sub-region to be matched, the method further includes:
[0031] In response to the existence of a category in which the number of target objects is greater than zero in the radio frequency identification result, taking the category with the largest number of target objects in the radio frequency identification result as the category of target objects in the subregion to be matched with the largest number of target objects in the image recognition result, and taking the number of target objects in the subregion to be matched with the largest number of target objects in the image recognition result as the number of target objects in the subregion to be matched with the largest number of target objects in the image recognition result;
[0032] The number of target objects in the to-be-matched subregion with the largest number of target objects in the image recognition result is deducted from the number of target objects in the category with the largest number of target objects in the RFID result to obtain an adjusted RFID result.
[0033] In some embodiments, the image is a top view image or a side view image of the target object.
[0034] In some embodiments, the top view image is acquired by an image acquisition device above the target area, and the side view image is acquired by an image acquisition device at the side of the target area.
[0035] According to a second aspect of an embodiment of the present disclosure, there is provided a device for identifying a target object, the device comprising: a first acquisition module, configured to acquire an image of a target area;
[0036] A first determination module, configured to determine an image recognition result of a target object within the target area according to the image;
[0037] A second acquisition module, used to acquire a radio frequency identification result of the target object in the target area;
[0038] The second determination module is used to determine the distribution of the target object in the target area according to the radio frequency identification result and the image recognition result.
[0039] In some embodiments, the first determination module is used to: process the image using a neural network and output an image recognition result of the target object in the target area.
[0040] In some embodiments, the second acquisition module is used to: obtain a radio frequency recognition result of a target object in the target area by a radio frequency detection antenna arranged in the target area.
[0041] In some embodiments, the RFID result is obtained by the RFID detection antenna reading an RFID tag disposed on each target object.
[0042] In some embodiments, the target area includes at least one sub-area; the image recognition result includes N candidate categories with the highest confidence of the target objects in each of the sub-areas and the number of target objects in each of the sub-areas;
[0043] The second determining module is used for:
[0044] Matching the number of target objects in each sub-region of the image recognition result and the N candidate categories with the categories and the number of target objects in each category in the RFID result in the order of confidence from large to small in the image recognition result and the order of the number of target objects in each sub-region of the image recognition result from large to small;
[0045] Get the category and number of target objects in each sub-area.
[0046] In some embodiments, the second determining module includes:
[0047] a matching unit, configured to match a kth candidate category of the target object in the mth subregion and the number of the target objects in the mth subregion with the category in the radio frequency identification result and the number of the target objects in each category; wherein the kth candidate category is one of the N candidate categories corresponding to the confidence number k, and the confidence number is obtained by arranging the N candidate categories with the largest confidence of the target object in the mth subregion in the image recognition result in order from large to small in confidence; the mth subregion is the subregion corresponding to the subregion number m in the at least one subregion, and the subregion number is obtained by arranging the number of the target objects in each subregion in the image recognition result in order from large to small;
[0048] a determining unit, configured to, in response to the categories in the RFID result including a k-th candidate category and the number of target objects in the k-th candidate category in the RFID result being greater than zero, determine that the k-th candidate category of the target objects in the m-th sub-region is the category of the target objects in the m-th sub-region in the image recognition result, and the number of target objects in the m-th sub-region is the number of target objects in the m-th sub-region in the image recognition result;
[0049] The adjustment unit is used to deduct the number of target objects in the mth sub-area from the number of target objects in the kth candidate category of the radio frequency identification result to obtain an adjusted radio frequency identification result.
[0050] In some embodiments, the apparatus further comprises:
[0051] a third determination module, configured to determine that the match is unsuccessful in response to the kth candidate category not being included in the categories in the RFID result, or in response to the kth candidate category being included in the categories in the RFID result but the number of target objects of the kth candidate category in the RFID result is not greater than zero;
[0052] The fourth determining module is configured to take the mth sub-region as the sub-region to be matched.
[0053] In some embodiments, when it is determined that there is a sub-region to be matched, the apparatus further includes:
[0054] a fifth determination module, configured to, in response to the number of target objects of each category in the radio frequency identification result not being greater than zero, determine one or more candidate categories that appear in the category of the radio frequency identification result among the N candidate categories with the greatest confidence in a sub-region to be matched, use the candidate category with the greatest confidence among the one or more candidate categories as the category of the target object in the sub-region to be matched, and use the number of target objects in the sub-region to be matched in the image recognition result as the number of target objects in the sub-region to be matched.
[0055] In some embodiments, when it is determined that there is a sub-region to be matched, the apparatus further includes:
[0056] a sixth determination module, configured to, in response to the number of target objects of each category in the radio frequency identification result being not greater than zero, determine that N candidate categories with the greatest confidence in a sub-region to be matched have not appeared in the categories of the radio frequency identification result, use the candidate category with the greatest confidence as the category of the target object in the sub-region to be matched, and use the number of target objects in the sub-region to be matched in the image recognition result as the number of target objects in the sub-region to be matched.
[0057] In some embodiments, when it is determined that there is at least one sub-region to be matched, the apparatus further includes:
[0058] a seventh determination module, configured to, in response to the number of target objects of at least one category in the RFID result being greater than zero, use the category with the largest number of target objects in the RFID result as the category of target objects in the subregion with the largest number of target objects to be matched in the image recognition result, and use the number of target objects in the subregion with the largest number of target objects to be matched in the image recognition result as the number of target objects in the subregion with the largest number of target objects to be matched in the image recognition result;
[0059] The adjustment module is used to deduct the number of target objects in the to-be-matched sub-region with the largest number of target objects in the image recognition result from the number of target objects in the category with the largest number of target objects in the RFID result to obtain an adjusted RFID result.
[0060] In some embodiments, the image is a top view image or a side view image of the target object.
[0061] In some embodiments, the top view image is acquired by an image acquisition device above the target area, and the side view image is acquired by an image acquisition device at the side of the target area.
[0062] According to a third aspect of an embodiment of the present disclosure, a target object recognition system is provided, the system comprising:
[0063] An image acquisition device, used to acquire an image of a target area;
[0064] A radio frequency detection device, used to obtain a radio frequency identification result of a target object in the target area; and
[0065] A processor is used to determine an image recognition result of the target object in the target area according to the image, and to determine the distribution of the target object in the target area according to the radio frequency identification result and the image recognition result.
[0066] In some embodiments, the radio frequency detection device includes:
[0067] Radio frequency detection antennas and radio frequency identification tags;
[0068] The radio frequency identification tags are respectively arranged on each target object, and the radio frequency detection antenna is arranged in the target area.
[0069] In some embodiments, the RFID tag is built into the target object or attached to the surface of the target object.
[0070] In some embodiments, the number of the target areas is multiple;
[0071] The system further comprises:
[0072] An isolation device for isolating each target area, wherein the isolation device is used to prevent a radio frequency detection device in one target area from acquiring radio frequency signals of target objects in other target areas.
[0073] In some embodiments, the isolation device is made of metal.
[0074] In some embodiments, the image acquisition device includes a first image acquisition device placed above the target area and / or a second image acquisition device placed at a side of the target area.
[0075] In some embodiments, the processor determines the image recognition result of the target object in the target area according to the image, including:
[0076] The image is processed using a neural network to output an image recognition result of the target object in the target area.
[0077] In some embodiments, the target area includes at least one sub-area; the image recognition result includes N candidate categories with the highest confidence of the target objects in each of the sub-areas and the number of target objects in each of the sub-areas;
[0078] The processor determines the distribution of each target object in the target area according to the radio frequency identification result and the image recognition result, including:
[0079] Matching the number of target objects in each sub-region of the image recognition result and the N candidate categories with the categories and the number of target objects in each category in the RFID result in the order of confidence from large to small in the image recognition result and the order of the number of target objects in each sub-region of the image recognition result from large to small;
[0080] Get the category and number of target objects in each sub-area.
[0081] In some embodiments, the processor matches the number of target objects in each sub-region of the image recognition result and the N candidate categories with the categories in the RFID result and the number of target objects in each category in the order of confidence in the image recognition result from large to small and the number of target objects in each sub-region of the image recognition result from large to small, including:
[0082] Matching the kth candidate category of the target object in the mth sub-region and the number of target objects in the mth sub-region with the category in the radio frequency identification result and the number of target objects in each category; wherein the kth candidate category is one of the N candidate categories corresponding to the confidence number k, and the confidence number is obtained by arranging the N candidate categories with the largest confidence of the target object in the mth sub-region in the image recognition result in order from large to small confidence; the mth sub-region is the sub-region corresponding to the sub-region number m in the at least one sub-region, and the sub-region number is obtained by arranging the number of target objects in each sub-region in the image recognition result in order from large to small confidence;
[0083] In response to the categories in the RFID result including a k-th candidate category and the number of target objects in the k-th candidate category in the RFID result being greater than zero, determining that the k-th candidate category of the target objects in the m-th sub-region is the category of the target objects in the m-th sub-region in the image recognition result, and the number of target objects in the m-th sub-region is the number of target objects in the m-th sub-region in the image recognition result;
[0084] The number of target objects in the mth sub-region is deducted from the number of target objects in the kth candidate category of the RFID result to obtain an adjusted RFID result.
[0085] In some embodiments, the processor is further configured to:
[0086] In response to the kth candidate category not being included in the categories in the RFID result, or in response to the kth candidate category being included in the categories in the RFID result but the number of target objects of the kth candidate category in the RFID result is not greater than zero, determining that the match is unsuccessful;
[0087] The mth sub-region is used as the sub-region to be matched.
[0088] In some embodiments, when it is determined that there is a sub-region to be matched, the processor is further configured to:
[0089] In response to the number of target objects in each category in the radio frequency identification result being not greater than zero, one or more candidate categories appearing in the category of the radio frequency identification result among N candidate categories with the greatest confidence in a sub-region to be matched are determined, the candidate category with the greatest confidence among the one or more candidate categories that appear is used as the category of the target object in the sub-region to be matched, and the number of target objects in the sub-region to be matched in the image recognition result is used as the number of target objects in the sub-region to be matched.
[0090] In some embodiments, when it is determined that there is a sub-region to be matched, the processor is further configured to:
[0091] In response to the fact that the number of target objects of each category in the radio frequency identification result is not greater than zero, it is determined that N candidate categories with the greatest confidence in a sub-region to be matched have never appeared in the category of the radio frequency identification result, the candidate category with the greatest confidence is used as the category of the target object in the sub-region to be matched, and the number of target objects in the sub-region to be matched in the image recognition result is used as the number of target objects in the sub-region to be matched.
[0092] In some embodiments, when it is determined that there is at least one sub-region to be matched, the processor is further configured to:
[0093] In response to the number of target objects in at least one category in the RFID result being greater than zero, taking the category with the largest number of target objects in the RFID result as the category of target objects in the subregion with the largest number of target objects to be matched in the image recognition result, and taking the number of target objects in the subregion with the largest number of target objects to be matched in the image recognition result as the number of target objects in the subregion with the largest number of target objects to be matched in the image recognition result;
[0094] The number of target objects in the to-be-matched subregion with the largest number of target objects in the image recognition result is deducted from the number of target objects in the category with the largest number of target objects in the RFID result to obtain an adjusted RFID result.
[0095] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in any embodiment is implemented.
[0096] According to a fifth aspect of an embodiment of the present disclosure, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in any embodiment when executing the computer program.
[0097] The disclosed embodiment obtains image recognition results and radio frequency recognition results of target objects in the target area, and then determines the distribution of the target objects in the target area according to the radio frequency recognition results and the image recognition results. The radio frequency recognition results and the image recognition results are integrated to accurately identify the target objects in the target area, thereby improving the recognition accuracy.
[0098] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0099] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.
[0100] Figure 1 It is a flow chart of a method for identifying a target object according to an embodiment of the present disclosure.
[0101] Figure 2 is a schematic diagram of a target area of an embodiment of the present disclosure.
[0102] Figure 3 It is a schematic diagram of target objects in each sub-area of an embodiment of the present disclosure.
[0103] Figure 4 4 is a block diagram of a target object recognition device according to an embodiment of the present disclosure.
[0104] Figure 5 Schematic diagram of a target object recognition system according to an embodiment of the present disclosure.
[0105] Figure 6 It is a structural diagram of a computer device for implementing the method of the present disclosure in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0106] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0107] The terms used in this application are only for the purpose of describing specific embodiments, and are not intended to limit the application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a variety of.
[0108] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0109] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present disclosure and to make the above-mentioned purposes, features and advantages of the embodiments of the present disclosure more obvious and understandable, the technical solutions in the embodiments of the present disclosure are further described in detail below in conjunction with the accompanying drawings.
[0110] like Figure 1 FIG. 1 is a flow chart of a target object identification method according to an embodiment of the present disclosure. The method comprises:
[0111] Step S101: Acquire an image of a target area;
[0112] Step S102: determining an image recognition result of a target object in the target area according to the image;
[0113] Step S103: Acquire the radio frequency identification result of the target object in the target area;
[0114] Step S104: determining the distribution of the target objects in the target area according to the radio frequency identification result and the image recognition result.
[0115] For step S101, the target area is an area where the target object is placed, for example, the target area may be a plane (e.g., a desktop), a container (e.g., a box), etc. The target object may be one or more objects, and in some common cases, the target object is a sheet object of various shapes, for example, a game coin. Figure 2 A partial schematic diagram of a desktop in a tabletop game scenario is shown, wherein the desktop includes multiple target areas, wherein each closed area represents a target area. The target object in this scenario is a game coin on the desktop.
[0116] Each target object can be stacked in the target area, and the stacking method may include a first stacking method in which the target objects are stacked in the vertical direction and a second stacking method in which the target objects are stacked in the horizontal direction. In certain embodiments, the shape of each target object is cylindrical, and each target object includes two mutually parallel, equal-sized bottom surfaces and a curved surface connecting the two bottom surfaces. In the first stacking method, the bottom surface of the lowest target object contacts the target area and the line connecting the center of the bottom surface of each target object is perpendicular to the target area, such as a desktop. In the second stacking method, the curved surface of each target object contacts the target area and the line connecting the center of the bottom surface of each target object is parallel to the target area, such as a desktop.
[0117] An image of the target area including the target object may be captured by an image acquisition device (e.g., a camera or a video camera) near the target area. In order to clearly present the target objects stacked in the first stacking manner and the second stacking manner in the image, a first image including the target objects stacked in the first stacking manner may be captured by an image acquisition device disposed on the side of the target area, and a second image including the target objects stacked in the second stacking manner may be captured by an image acquisition device disposed above the target area. Furthermore, at least one image acquisition device may be disposed on each side of the target area so as to completely acquire the image of the entire target area. Figure 2For the multiple target areas shown, an image acquisition device can be set on each of the left and right sides of the entire desktop. The left image acquisition device can capture the target area on the left half of the desktop (for example, the left side of the dotted line B), and the right image acquisition device can capture the target area on the right half of the desktop (for example, the right side of the dotted line A).
[0118] For step S102, the target area to which each target object belongs can be determined based on the pixel coordinate range of each target area and the pixel coordinate range of the target object. If the pixel coordinate range of the target object falls within the pixel coordinate range of a certain target area, it is determined that the target object belongs to the target area. After determining the target area to which each target object belongs, the image recognition result of the target object in the target area is obtained. The image recognition result includes the number, position and category of the target objects in the target area.
[0119] In some embodiments, the image can be processed using a neural network to output an image recognition result of the target object in the target area. The neural network can predict the position, category and number of the target object in the target area. In some embodiments, the target area includes multiple sub-areas, the position information of the target object output by the neural network is the sub-area where each target object is located, the category information output by the neural network is the category of the target object in each sub-area, and the quantity information output by the neural network is the number of target objects in each sub-area.
[0120] For example, the game coins on the table can be divided into a plurality of sub-areas by white partition boards (i.e., partition boards), such as Figure 3 As shown in FIG. 1 , it is a schematic diagram of dividing a target object in a target area into multiple sub-areas. Each gray square is a target object, and target objects in different black boxes belong to different sub-areas. The neural network can obtain the bounding box of each sub-area, i.e. Figure 3 The black box shown in the figure then outputs the category prediction results of the target objects in each sub-region and the number prediction results of the target objects in each sub-region.
[0121] Among them, the category prediction result includes the confidence of the category to which the target object in the sub-region belongs, and generally the category prediction results with the top three confidences can be output. For example, the confidence that the target object belongs to category 1 is 0.5, the confidence that it belongs to category 2 is 0.3, the confidence that it belongs to category 3 is 0.1, ..., then the neural network can output the following category prediction results: {category 1: 0.5; category 2: 0.3; category 3: 0.1}. The quantity prediction result can be represented by the length of the sub-region. Assuming that the pixel height occupied by each target object is N pixel values, and the pixel height of the sub-region is M pixel values, the number of target objects in the sub-region is M / N.
[0122] With respect to step S103 , the target object in the target area may be identified by a radio frequency detection antenna disposed in the target area to obtain a radio frequency identification result of the target object in the target area.
[0123] The installation position of the RF detection antenna in the target area can be any position that can identify the target object in the target area, and the present disclosure does not limit this. In the table game application scenario, the RF detection antenna can be arranged under the tablecloth of the target area, or at the bottom of a container for game coins.
[0124] If there are multiple target areas, a radio frequency detection antenna can be set in each target area, and the radio frequency detection antenna in a target area only identifies the target object in the target area. In order to avoid mutual interference between different target areas, an isolation device can be set between each target area, so that the radio frequency detection antenna in a target area can only detect the target object in this area. The isolation device can be an object made of metal, such as a metal sheet. The isolation device can be arranged around each target area. For the radio frequency detection antenna arranged under the container, a circle of isolation devices can be arranged around the container.
[0125] A radio frequency identification tag used in conjunction with the radio frequency detection antenna may be pre-set on each target object, and the radio frequency identification tag may be built into the target object or attached to the surface of the target object. Tag information of the radio frequency identification tag read by the radio frequency detection antenna may be obtained, and radio frequency identification results of the target objects in the target area may be obtained based on the tag information. The radio frequency identification results may include the category and number of target objects in each target area.
[0126] Image-based target object recognition can more accurately identify the location and quantity of target objects, but due to factors such as scene light, there will be certain false positives in the category detection of target objects. RF-based target object recognition can more accurately identify the category of target objects, but due to factors such as electromagnetic interference and device damage, there will be certain false positives in the number detection of target objects, and the RF recognition results cannot determine the location of the target object in the target area.
[0127] Therefore, for step S104, the location and number of the target objects can be identified by the image recognition result, and the category obtained by the image recognition result can be verified by the radio frequency recognition result to obtain accurate category information. The category of the target object in the sub-area can be determined by the radio frequency recognition result, and the number of the target objects in the sub-area can be determined by the image recognition result.
[0128] In some embodiments, the target area includes at least one sub-area, and the image recognition result includes N candidate categories with the largest confidence of the target object in each sub-area and the number of target objects in each sub-area; determining the distribution of the target object in the target area according to the radio frequency recognition result and the image recognition result includes: matching the number of target objects in each sub-area in the image recognition result and the N candidate categories with the categories in the radio frequency recognition result and the number of target objects in each category in accordance with the order of confidence from large to small in the image recognition result and the order of the number of target objects in each sub-area in the image recognition result from large to small; and obtaining the category and number of target objects in each sub-area. N is an integer greater than or equal to 1.
[0129] Among them, the candidate categories can generally adopt the three categories with the largest confidence. Assume that the image recognition result is: the target area includes 3 sub-areas, where sub-area i includes Ki target objects (i = 1, 2 or 3, K1>K2>K3 and Ki is an integer greater than or equal to 1), each sub-area corresponds to 3 candidate categories, the candidate category with the largest confidence is called the top1 candidate category, the candidate category with the second largest confidence is called the top2 candidate category, and the candidate category with the third largest confidence is called the top3 candidate category. Then, the top 1 candidate categories of the target objects in sub-area 1, sub-area 2 and sub-area 3 may be matched with the categories in the radio frequency identification results and the number of target objects in each category in turn, and then the top 2 candidate categories of the target objects in sub-area 1, sub-area 2 and sub-area 3 may be matched with the categories in the radio frequency identification results and the number of target objects in each category in turn, and finally the top 3 candidate categories of the target objects in sub-area 1, sub-area 2 and sub-area 3 may be matched with the categories in the radio frequency identification results and the number of target objects in each category in turn, and the categories and numbers of the target objects in sub-area 1, sub-area 2 and sub-area 3 may be obtained according to the above matching results.
[0130] Specifically, the kth candidate category of the target object in the mth sub-region and the number of target objects in the mth sub-region can be matched with the category in the radio frequency identification result and the number of target objects in each category; when the category in the radio frequency identification result includes the kth candidate category of the target object in the mth sub-region, and the number of target objects in the kth candidate category in the radio frequency identification result is greater than zero, the kth candidate category of the target object in the mth sub-region is determined to be the category of the target object in the mth sub-region in the image recognition result, and the number of target objects in the mth sub-region is the number of target objects in the mth sub-region in the image recognition result; the number of target objects in the mth sub-region is deducted from the number of target objects in the kth candidate category of the radio frequency identification result to obtain an adjusted radio frequency identification result.
[0131] Among them, the kth candidate category is one of the N candidate categories corresponding to the confidence number k, and the confidence number is obtained by arranging the N candidate categories with the largest confidence of the target object in the mth sub-region in the image recognition result in order from large to small confidence; the mth sub-region is the sub-region corresponding to the sub-region number m in the at least one sub-region, and the sub-region number is obtained by arranging the number of target objects in each sub-region in the image recognition result in order from large to small.
[0132] Continuing with the above example. Assume that the RFID result is: the target area includes J1 target objects belonging to category C1, J2 target objects belonging to category C2, and J3 target objects belonging to category C3. J1, J2 and J3 are integers greater than or equal to 1. When matching the number of target objects in each sub-area in the image recognition result and the candidate categories of different confidences with the categories and the number of target objects in each category in the RFID result, in the first round of matching, the first candidate category of the target object in the first sub-area (referred to as C11) and the number of target objects in the first sub-area (referred to as K1) are matched with the categories and the number of target objects in each category in the RFID result. If there is a category identical to C11 in C1, C2 and C3 (assuming that C1 is the same as C11), and the number of target objects of the same category as C11 in the RFID result is greater than zero, then the category of the target object in the first sub-area is determined to be C11, and the number of target objects in the first sub-area is determined to be K1. Then, the number of K1 target objects is deducted from the number J1 corresponding to category C1 in the RFID result, and the RFID result after the first adjustment is: J1-K1 target objects belonging to category C1, J2 target objects belonging to category C2, and J3 target objects belonging to category C3.
[0133] In the second round of matching, the first candidate category of the target object in the second sub-area (referred to as C21) and the number of target objects in the second sub-area (referred to as K2) are matched with the categories and the number of target objects in each category in the RFID result. If there is a category identical to C21 in C1, C2, and C3 (assuming that C2 is identical to C21), and the number of target objects of the same category as C21 in the RFID result is greater than zero, the category of the target object in the second sub-area is determined to be C21, and the number of target objects in the second sub-area is determined to be K2. Then, the number of K2 target objects is deducted from the number J2 corresponding to category C2 in the RFID result after the first adjustment, and the RFID result after the second adjustment is obtained as follows: J1-K1 target objects belonging to category C1, J2-K2 target objects belonging to category C2, and J3 target objects belonging to category C3.
[0134] Finally, in the third round of matching, the first candidate category of the target object in the third sub-region (recorded as C31) and the number of target objects in the third sub-region (recorded as K3) are matched with the categories and the number of target objects in each category in the RFID result. If there is a category identical to C31 in C1, C2 and C3 (assuming that C3 is identical to C31), and the number of target objects of the same category as C31 in the RFID result is greater than zero, the category of the target object in the third sub-region is determined to be C31, and the number of target objects in the third sub-region is determined to be K3. Then, the number of K3 target objects is deducted from the number J3 corresponding to category C3 in the RFID result after the second adjustment, and the RFID result after the third adjustment is obtained as follows: J1-K1 target objects belonging to category C1, J2-K2 target objects belonging to category C2, and J3-K3 target objects belonging to category C3.
[0135] In an ideal matching situation, each category in the image recognition result can be successfully matched to the corresponding category in the RFID result (regardless of whether the number of target objects of each category in the RFID result is zero, as long as the category and number of target objects in each sub-area in the image recognition result are determined, it can be considered that the match is successful). However, since the image recognition result may include misidentified categories, a candidate category in the image recognition result may not exist in the RFID result.
[0136] In some embodiments, when the categories in the RFID result do not include the kth candidate category of the target object in the mth sub-region, or when the categories in the RFID result include the kth candidate category of the target object in the mth sub-region but the number of target objects of the same category as the kth candidate category of the target object in the mth sub-region in the RFID result is not greater than zero, it is determined that the match is unsuccessful; and the mth sub-region is used as the sub-region to be matched.
[0137] For example, in the above embodiment, when matching the candidate categories and the number of target objects in the third sub-region with the categories and the number of target objects in each category in the RFID result, if the categories C1, C2, and C3 in the RFID result do not include C31 in the image recognition result, or if the RFID result includes the same category as C31, but the number corresponding to the same category as C31 in the RFID result is not greater than zero (for example, the candidate category C31 of the third sub-region in the image recognition result is the same as the category C1 in the RFID result, and after a matching of the first sub-region, the number of target objects belonging to the C1 category in the first adjusted RFID result is adjusted to zero), then the matching of the third sub-region is unsuccessful this time, and the third sub-region can be used as a sub-region to be matched.
[0138] In actual application, the candidate categories of the target object in each sub-region may have the same unsuccessful matching situation as the above category C31. When the candidate categories of the target object in other sub-regions have unsuccessful matching situations, the sub-region is also used as the sub-region to be matched, and for the sake of brevity, it will not be repeated here.
[0139] In some embodiments, when it is determined that there is a sub-region to be matched, the method further includes: when it is determined that the number of target objects of each category in the radio frequency identification result is not greater than zero and one or more candidate categories appear in the category of the radio frequency identification result among the N candidate categories with the highest confidence in a sub-region to be matched, the candidate category with the highest confidence among the one or more candidate categories that appear is used as the category of the target object in the sub-region to be matched, and the number of target objects in the sub-region to be matched in the image recognition result is used as the number of target objects in the sub-region to be matched.
[0140] If there is a sub-region to be matched after at least one round of matching (still assumed to be sub-region 3), the numbers of target objects corresponding to categories C1, C2 and C3 in the RFID results are not greater than zero, and the top2 candidate category C32 and the top3 candidate category C33 of the target object in sub-region 3 have both appeared in the category of the RFID result (for example, C2 is the same as C32, and C3 is the same as C33), then the top2 candidate category of the target object in sub-region 3 is used as the category of the target object in sub-region 3, and K3 is used as the number of target objects in sub-region 3.
[0141] In some embodiments, when it is determined that there is a sub-region to be matched, the method further includes: after determining that the number of target objects of each category in the radio frequency identification result is not greater than zero and determining that N candidate categories with the highest confidence in a sub-region to be matched have never appeared in the category of the radio frequency identification result, taking the candidate category with the highest confidence as the category of the target object in the sub-region to be matched, and taking the number of target objects in the sub-region to be matched in the image recognition result as the number of target objects in the sub-region to be matched.
[0142] If there is a sub-area to be matched after at least one round of matching (still assumed to be sub-area 3), the numbers of target objects corresponding to categories C1, C2 and C3 in the RFID results are not greater than zero, and the top1 candidate category C31, top2 candidate category C32 and top3 candidate category C33 of the target object in sub-area 3 have never appeared in the category of the RFID result, then the top1 candidate category of the target object in sub-area 3 is used as the category of the target object in sub-area 3, and K3 is used as the number of target objects in sub-area 3.
[0143] In some embodiments, when it is determined that there is at least one sub-region to be matched, the method further includes: when it is determined that there is a category in which the number of target objects is greater than zero in the RFID result, taking the category with the largest number of target objects in the RFID result as the category of target objects in the sub-region with the largest number of target objects in the image recognition result, and taking the number of target objects in the sub-region with the largest number of target objects in the image recognition result as the number of target objects in the sub-region with the largest number of target objects in the image recognition result; deducting the number of target objects in the sub-region with the largest number of target objects in the image recognition result from the number of target objects in the category with the largest number of target objects in the RFID result to obtain an adjusted RFID result.
[0144] If there are sub-regions to be matched after at least one round of matching (assuming they are sub-regions 2 and 3), there are categories with a number of target objects greater than zero in the RFID result (assuming they are C2 and C3), and the number of target objects J2 in C2 is greater than the number of target objects J3 in C3, since the number of target objects K2 in sub-region 2 is greater than the number of target objects K3 in sub-region 3, C2 is taken as the category of the target objects in sub-region 2, and K2 is taken as the number of target objects in sub-region 2. Then, K2 is deducted from the number J2 of target objects of category C2 in the RFID result, and the adjusted RFID result is obtained: the number of target objects of category C2 is J2-K2, and the number of target objects of category C3 is J3.
[0145] As can be seen from the above, the identification process of the embodiment of the present disclosure may include the following situations:
[0146] Step 1: In the descending order of the number of target objects in each sub-region in the image recognition result, first traverse the top 1 candidate category of each sub-region, then traverse the top 2 candidate categories of each sub-region, and finally traverse the top 3 candidate categories of each sub-region. If the number of remaining target objects in the RFID result of the candidate category corresponding to the sub-region currently being classified is greater than 0, the category corresponding to the sub-region is considered to be the candidate category, and the sub-region is removed from the queue to be classified (the judgment of other candidate categories of the sub-region is directly skipped), and the number of target objects in the sub-region is subtracted from the number of remaining target objects of the same category as the candidate category in the RFID result.
[0147] After step 1, there will be four situations:
[0148] A) The number of remaining target objects in each category in the RFID result is 0, and each sub-area in the target area has a classification result, that is, the category and number of target objects in each sub-area have been determined. In this case, the identification process ends.
[0149] B) The number of remaining target objects in each category in the RFID result is 0, and there are sub-regions to be matched that have not obtained classification results. For each sub-region to be matched, if the category in the RFID result includes one or more candidate categories from top1 to top N candidate categories, the candidate category with the highest confidence among the one or more candidate categories is taken as the category of the target object in the sub-region to be matched; if the RFID result does not include any candidate category among the N candidate categories, the top1 candidate category is taken as the category of the target object in the sub-region to be matched, and the number of target objects in the sub-region to be matched in the image recognition result is taken as the number of target objects in the sub-region to be matched. After determining the category and number of target objects in each sub-region to be matched, the recognition process ends.
[0150] C) The number of remaining target objects of one or more categories in the RFID result is not 0, but each sub-area has a classification result. In this case, the identification process ends.
[0151] D) The number of remaining target objects in one or more categories in the RFID result is not 0, and there is at least one sub-region to be matched that has not obtained a classification result. According to step 1, the one or more categories in the RFID result are different from the N candidate categories of the sub-region to be matched. Take the category with the largest number of remaining target objects in the one or more categories in the RFID result as the category of target objects in the sub-region to be matched with the largest number of target objects; the sub-region to be matched with the largest number of target objects is removed from the queue to be classified; subtract the number of target objects in the sub-region to be matched with the largest number of target objects from the number of remaining target objects in the category with the largest number of remaining target objects in the RFID result to obtain the adjusted RFID result. Execute the above steps in sequence, and enter the above three states A, B, and C according to the situation after execution, and then make a judgment.
[0152] The technical solution of the present disclosure is described below through an embodiment.
[0153] Assume that the target area includes sub-area 1, sub-area 2 and sub-area 3, where the image recognition result is:
[0154] (1) Sub-region 1: There are 13 target objects in total. The three candidate categories with the highest confidence are category 5, category 10, and category 20, from highest to lowest.
[0155] (2) Sub-region 2: There are 11 target objects in total. The three candidate categories with the highest confidence are category 5, category 10, and category 20, from highest to lowest.
[0156] (3) Sub-region 3: There are 4 target objects in total. The three candidate categories with the highest confidence are category 20, category 5, and category 10, from largest to smallest.
[0157] The RFID results are:
[0158] (1) Category 5: The number of target objects is 13; (2) Category 10: The number of target objects is 10; (3) Category 50: The number of target objects is 4.
[0159] A statistical table can be created based on the RFID results. The statistical table records the number of target objects in each category and its corresponding category in the RFID results. After sorting the number of target objects in each sub-region in the image recognition result, the top1 candidate category of sub-region 1 is matched first. For sub-region 1, the top1 candidate category is category 5. Category 5 exists in the statistical table, so the category of the target object in sub-region 1 is marked as category 5. According to the image recognition results, the number of target objects in sub-region 1 is 13. The number of target objects of category 5 in the statistical table is subtracted by 13, which becomes 0. Next, when matching the top1 candidate category of sub-region 2 (i.e., category 5), the number of target objects of category 5 in the statistical table is 0, and the match fails. Next, when matching the top1 candidate category of sub-region 3 (i.e., category 20), category 20 does not exist in the statistical table, and the match fails.
[0160] Then the top2 candidate categories of sub-region 2 are matched. For sub-region 2, the top2 candidate category is category 10. Category 10 exists in the statistical table, so the category of the target object in sub-region 2 is marked as category 10. According to the image recognition result, the number of target objects in sub-region 2 is 11. The number of target objects of category 10 in the statistical table is subtracted from 11, and the result is -1, but it is set to 0. Next, when matching the top2 candidate category of sub-region 3 (i.e. category 5), the number of target objects of category 5 in the statistical table is 0, and the match fails.
[0161] Finally, the top 3 candidate categories of sub-region 3 are matched. The top 3 candidate categories of sub-region 3 (i.e., category 10) are not in the statistical table. At this time, the number of target objects of category 50 in the statistical table is 4, which is greater than 0. The category of sub-region 3 is marked as category 50. According to the image recognition result, the number of target objects in sub-region 3 is 4. Subtract 4 from the number of target objects of category 50 in the statistical table to get 0.
[0162] The final output results include the categories and quantities of target objects in each sub-area of the target area, which are used for scene restoration. If there are multiple target areas, each target area will identify the target objects in its area according to the above method.
[0163] The embodiments of the present disclosure have the following advantages:
[0164] (1) The disclosed embodiments combine the high accuracy of image recognition in identifying object location information and quantity information, and the high accuracy of radio frequency identification in identifying object categories, and fuse the two recognition results. Compared with a single sensor solution, more information can be obtained, the results are more accurate, and the distribution of target objects in the target area can be truly restored;
[0165] (2) The processing logic is simple, the stability is high, and it is suitable for real-time processing systems;
[0166] (3) The embodiments of the present disclosure are applicable to various sheet-like object recognition schemes and have wide applicability.
[0167] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0168] like Figure 4 As shown, the present disclosure also provides a target object recognition device, the device comprising:
[0169] A first acquisition module 501 is used to acquire an image of a target area;
[0170] A first determination module 502, configured to determine an image recognition result of a target object in the target area according to the image;
[0171] A second acquisition module 503 is used to acquire a radio frequency identification result of the target object in the target area;
[0172] The second determination module 504 is configured to determine the distribution of the target object in the target area according to the radio frequency identification result and the image recognition result.
[0173] In some embodiments, the first determination module is used to: process the image using a neural network and output an image recognition result of the target object in the target area.
[0174] In some embodiments, the second acquisition module is used to: obtain a radio frequency recognition result of a target object in the target area by a radio frequency detection antenna arranged in the target area.
[0175] In some embodiments, the RFID result is obtained by the RFID detection antenna reading an RFID tag disposed on each target object.
[0176] In some embodiments, the target area includes at least one sub-area; the image recognition result includes N candidate categories with the highest confidence of the target objects in each of the sub-areas and the number of target objects in each of the sub-areas;
[0177] The second determining module is used for:
[0178] Matching the number of target objects in each sub-region of the image recognition result and the N candidate categories with the categories and the number of target objects in each category in the RFID result in the order of confidence from large to small in the image recognition result and the order of the number of target objects in each sub-region of the image recognition result from large to small;
[0179] Get the category and number of target objects in each sub-area.
[0180] In some embodiments, the second determining module includes:
[0181] a matching unit, configured to match a kth candidate category of the target object in the mth subregion and the number of the target objects in the mth subregion with the category in the radio frequency identification result and the number of the target objects in each category; wherein the kth candidate category is one of the N candidate categories corresponding to the confidence number k, and the confidence number is obtained by arranging the N candidate categories with the largest confidence of the target object in the mth subregion in the image recognition result in order from large to small in confidence; the mth subregion is the subregion corresponding to the subregion number m in the at least one subregion, and the subregion number is obtained by arranging the number of the target objects in each subregion in the image recognition result in order from large to small;
[0182] a determining unit, configured to, in response to the categories in the RFID result including a k-th candidate category and the number of target objects in the k-th candidate category in the RFID result being greater than zero, determine that the k-th candidate category of the target objects in the m-th sub-region is the category of the target objects in the m-th sub-region in the image recognition result, and the number of target objects in the m-th sub-region is the number of target objects in the m-th sub-region in the image recognition result;
[0183] The adjustment unit is used to deduct the number of target objects in the mth sub-region from the number of target objects in the kth candidate category of the radio frequency identification result to obtain an adjusted radio frequency identification result.
[0184] In some embodiments, the apparatus further comprises:
[0185] a third determination module, configured to determine that the match is unsuccessful in response to the kth candidate category not being included in the categories in the RFID result, or in response to the kth candidate category being included in the categories in the RFID result but the number of target objects of the kth candidate category in the RFID result is not greater than zero;
[0186] The fourth determining module is configured to take the mth sub-region as the sub-region to be matched.
[0187] In some embodiments, when it is determined that there is a sub-region to be matched, the apparatus further includes:
[0188] a fifth determination module, configured to, in response to the number of target objects of each category in the radio frequency identification result not being greater than zero, determine one or more candidate categories that appear in the category of the radio frequency identification result among the N candidate categories with the greatest confidence in a sub-region to be matched, use the candidate category with the greatest confidence among the one or more candidate categories as the category of the target object in the sub-region to be matched, and use the number of target objects in the sub-region to be matched in the image recognition result as the number of target objects in the sub-region to be matched.
[0189] In some embodiments, when it is determined that there is a sub-region to be matched, the apparatus further includes:
[0190] a sixth determination module, configured to, in response to the number of target objects of each category in the radio frequency identification result being not greater than zero, determine that N candidate categories with the greatest confidence in a sub-region to be matched have not appeared in the categories of the radio frequency identification result, use the candidate category with the greatest confidence as the category of the target object in the sub-region to be matched, and use the number of target objects in the sub-region to be matched in the image recognition result as the number of target objects in the sub-region to be matched.
[0191] In some embodiments, when it is determined that there is at least one sub-region to be matched, the apparatus further includes:
[0192] a seventh determination module, configured to, in response to the number of target objects of at least one category in the RFID result being greater than zero, use the category with the largest number of target objects in the RFID result as the category of target objects in the subregion with the largest number of target objects to be matched in the image recognition result, and use the number of target objects in the subregion with the largest number of target objects to be matched in the image recognition result as the number of target objects in the subregion with the largest number of target objects to be matched in the image recognition result;
[0193] The adjustment module is used to deduct the number of target objects in the to-be-matched sub-region with the largest number of target objects in the image recognition result from the number of target objects in the category with the largest number of target objects in the RFID result to obtain an adjusted RFID result.
[0194] In some embodiments, the image is a top view image or a side view image of the target object.
[0195] In some embodiments, the top view image is acquired by an image acquisition device above the target area, and the side view image is acquired by an image acquisition device at the side of the target area.
[0196] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0197] The device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. Those of ordinary skill in the art may understand and implement it without creative work.
[0198] like Figure 5 As shown, the embodiment of the present disclosure also provides a target object recognition system, the system comprising:
[0199] An image acquisition device 601 is used to acquire an image of a target area;
[0200] A radio frequency detection device 602 is used to obtain radio frequency identification results of target objects in the target area; and
[0201] The processor 603 is configured to determine an image recognition result of the target object in the target area according to the image, and determine a distribution of the target object in the target area according to the RFID result and the image recognition result.
[0202] In some embodiments, the radio frequency detection device includes:
[0203] Radio frequency detection antennas and radio frequency identification tags;
[0204] The radio frequency identification tags are respectively arranged on each target object, and the radio frequency detection antenna is arranged in the target area.
[0205] In some embodiments, the RFID tag is built into the target object or attached to the surface of the target object.
[0206] In some embodiments, the number of the target areas is multiple;
[0207] The system further comprises:
[0208] An isolation device for isolating each target area, wherein the isolation device is used to prevent a radio frequency detection device in one target area from acquiring radio frequency signals of target objects in other target areas.
[0209] In some embodiments, the isolation device is made of metal.
[0210] In some embodiments, the image acquisition device includes a first image acquisition device placed above the target area and / or a second image acquisition device placed at a side of the target area.
[0211] In some embodiments, the processor determines the image recognition result of the target object in the target area according to the image, including:
[0212] The image is processed using a neural network to output an image recognition result of the target object in the target area.
[0213] In some embodiments, the target area includes at least one sub-area; the image recognition result includes N candidate categories with the highest confidence of the target objects in each of the sub-areas and the number of target objects in each of the sub-areas;
[0214] The processor determines the distribution of each target object in the target area according to the radio frequency identification result and the image recognition result, including:
[0215] Matching the number of target objects in each sub-region of the image recognition result and the N candidate categories with the categories and the number of target objects in each category in the RFID result in the order of confidence from large to small in the image recognition result and the order of the number of target objects in each sub-region of the image recognition result from large to small;
[0216] Get the category and number of target objects in each sub-area.
[0217] In some embodiments, the processor matches the number of target objects in each sub-region of the image recognition result and the N candidate categories with the categories in the RFID result and the number of target objects in each category in the order of confidence in the image recognition result from large to small and the number of target objects in each sub-region of the image recognition result from large to small, including:
[0218] Matching the kth candidate category of the target object in the mth sub-region and the number of target objects in the mth sub-region with the category in the radio frequency identification result and the number of target objects in each category; wherein the kth candidate category is one of the N candidate categories corresponding to the confidence number k, and the confidence number is obtained by arranging the N candidate categories with the largest confidence of the target object in the mth sub-region in the image recognition result in order from large to small confidence; the mth sub-region is the sub-region corresponding to the sub-region number m in the at least one sub-region, and the sub-region number is obtained by arranging the number of target objects in each sub-region in the image recognition result in order from large to small confidence;
[0219] In response to the categories in the RFID result including a k-th candidate category and the number of target objects in the k-th candidate category in the RFID result being greater than zero, determining that the k-th candidate category of the target objects in the m-th sub-region is the category of the target objects in the m-th sub-region in the image recognition result, and the number of target objects in the m-th sub-region is the number of target objects in the m-th sub-region in the image recognition result;
[0220] The number of target objects in the mth sub-region is deducted from the number of target objects in the kth candidate category of the RFID result to obtain an adjusted RFID result.
[0221] In some embodiments, the processor is further configured to:
[0222] In response to the kth candidate category not being included in the categories in the RFID result, or in response to the kth candidate category being included in the categories in the RFID result but the number of target objects of the kth candidate category in the RFID result is not greater than zero, determining that the match is unsuccessful;
[0223] The mth sub-region is used as the sub-region to be matched.
[0224] In some embodiments, when it is determined that there is a sub-region to be matched, the processor is further configured to:
[0225] In response to the number of target objects in each category in the radio frequency identification result being not greater than zero, one or more candidate categories appearing in the category of the radio frequency identification result among N candidate categories with the greatest confidence in a sub-region to be matched are determined, the candidate category with the greatest confidence among the one or more candidate categories that appear is used as the category of the target object in the sub-region to be matched, and the number of target objects in the sub-region to be matched in the image recognition result is used as the number of target objects in the sub-region to be matched.
[0226] In some embodiments, when it is determined that there is a sub-region to be matched, the processor is further configured to:
[0227] In response to the fact that the number of target objects of each category in the radio frequency identification result is not greater than zero, it is determined that N candidate categories with the greatest confidence in a sub-region to be matched have never appeared in the category of the radio frequency identification result, the candidate category with the greatest confidence is used as the category of the target object in the sub-region to be matched, and the number of target objects in the sub-region to be matched in the image recognition result is used as the number of target objects in the sub-region to be matched.
[0228] In some embodiments, when it is determined that there is at least one sub-region to be matched, the processor is further configured to:
[0229] In response to the number of target objects in at least one category in the RFID result being greater than zero, taking the category with the largest number of target objects in the RFID result as the category of target objects in the subregion with the largest number of target objects to be matched in the image recognition result, and taking the number of target objects in the subregion with the largest number of target objects to be matched in the image recognition result as the number of target objects in the subregion with the largest number of target objects to be matched in the image recognition result;
[0230] The number of target objects in the to-be-matched subregion with the largest number of target objects in the image recognition result is deducted from the number of target objects in the category with the largest number of target objects in the RFID result to obtain an adjusted RFID result.
[0231] The embodiments of other methods executed by the above-mentioned processor are the same as the method embodiments in the present disclosure and will not be repeated here.
[0232] The embodiments of the apparatus disclosed herein can be applied to computer devices, such as servers or terminal devices. The apparatus embodiments can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a logically sensed apparatus, a processor reads the corresponding computer program instructions in a non-volatile memory into a memory and executes them. From a hardware perspective, if Figure 6 The figure is a hardware structure diagram of the computer device where the device of this manual is located, except Figure 6 In addition to the processor 701, memory 702, network interface 703, and non-volatile memory 704 shown, the server or electronic device where the device is located in the embodiment may also include other hardware according to the actual function of the computer device, which will not be described in detail for the sake of brevity.
[0233] Accordingly, an embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described in any embodiment is implemented.
[0234] Correspondingly, an embodiment of the present disclosure further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in any embodiment when executing the computer program.
[0235] The present disclosure may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-usable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable commands, data structures, modules of programs, or other data. Examples of computer storage media include but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0236] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the specification disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0237] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
[0238] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the scope of protection of the present disclosure.
[0239] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
Claims
1. A method for identifying a target object, characterized in that: The method comprises: Acquire an image of the target area; Determine an image recognition result of a target object in the target area according to the image; Acquire a radio frequency identification result of the target object in the target area; Determine the distribution of the target object in the target area according to the radio frequency identification result and the image recognition result; The target area includes at least one sub-area; the image recognition result includes N candidate categories with the highest confidence of the target objects in each of the sub-areas and the number of target objects in each of the sub-areas; Determining the distribution of the target object in the target area according to the radio frequency identification result and the image recognition result includes: Matching the number of target objects in each of the sub-regions in the image recognition result and the N candidate categories with the categories and the number of target objects in each category in the RFID result in the order of confidence from large to small in the image recognition result and the order of the number of target objects in each of the sub-regions in the image recognition result from large to small; The categories and quantities of the target objects in each of the sub-areas are obtained.
2. The method according to claim 1, characterized in that Determining an image recognition result of the target object in the target area according to the image includes: The image is processed using a neural network to output an image recognition result of the target object in the target area.
3. The method according to claim 1, characterized in that: Obtaining a radio frequency identification result of the target object in the target area includes: A radio frequency recognition result of a target object in the target area by a radio frequency detection antenna arranged in the target area is obtained.
4. The method according to claim 3, characterized in that The radio frequency identification result is obtained by reading the radio frequency identification tag set on each of the target objects through the radio frequency detection antenna.
5. The method according to claim 1, characterized in that According to the order of confidence in the image recognition result from large to small and the order of the number of target objects in each sub-region in the image recognition result from large to small, the number of target objects in each sub-region in the image recognition result and the N candidate categories are matched with the categories in the radio frequency identification result and the number of target objects in each category, including: Matching the kth candidate category of the target object in the mth sub-region and the number of target objects in the mth sub-region with the category in the radio frequency identification result and the number of target objects in each category; wherein the kth candidate category is one of the N candidate categories corresponding to the confidence number k, and the confidence number is obtained by arranging the N candidate categories with the largest confidence of the target object in the mth sub-region in the image recognition result in order from large to small confidence; the mth sub-region is the sub-region corresponding to the sub-region number m in the at least one sub-region, and the sub-region number is obtained by arranging the number of target objects in each of the sub-regions in the image recognition result in order from large to small confidence; In response to the categories in the RFID result including a k-th candidate category and the number of target objects in the k-th candidate category in the RFID result being greater than zero, determining that the k-th candidate category of the target objects in the m-th sub-region is the category of the target objects in the m-th sub-region in the image recognition result, and the number of target objects in the m-th sub-region is the number of target objects in the m-th sub-region in the image recognition result; The number of target objects in the mth sub-region is deducted from the number of target objects in the kth candidate category of the RFID result to obtain an adjusted RFID result.
6. The method according to claim 5, characterized in that The method further comprises: In response to the kth candidate category not being included in the categories in the RFID result, or in response to the kth candidate category being included in the categories in the RFID result but the number of target objects of the kth candidate category in the RFID result is not greater than zero, determining that the match is unsuccessful; The mth sub-region is used as the sub-region to be matched.
7. The method according to claim 6, characterized in that When it is determined that there is a sub-region to be matched, the method further includes: In response to the number of target objects of each category in the radio frequency identification result not being greater than zero, determining one or more candidate categories that appear in the category of the radio frequency identification result among the N candidate categories with the greatest confidence in a sub-region to be matched, The candidate category with the largest confidence among the one or more candidate categories is used as the category of the target object in the sub-region to be matched, and The number of target objects in the to-be-matched sub-region in the image recognition result is used as the number of target objects in the to-be-matched sub-region.
8. The method according to claim 6, characterized in that When it is determined that there is a sub-region to be matched, the method further includes: In response to the number of target objects of each category in the RFID result being not greater than zero, determining that N candidate categories with the greatest confidence in a sub-region to be matched have not appeared in the categories of the RFID result, The candidate category with the largest confidence is taken as the category of the target object in the sub-region to be matched, and The number of target objects in the to-be-matched sub-region in the image recognition result is used as the number of target objects in the to-be-matched sub-region.
9. The method according to claim 6, characterized in that When it is determined that there is a sub-region to be matched, the method further includes: In response to the existence of a category in which the number of target objects is greater than zero in the radio frequency identification result, taking the category with the largest number of target objects in the radio frequency identification result as the category of target objects in the subregion to be matched with the largest number of target objects in the image recognition result, and taking the number of target objects in the subregion to be matched with the largest number of target objects in the image recognition result as the number of target objects in the subregion to be matched with the largest number of target objects in the image recognition result; The number of target objects in the to-be-matched subregion with the largest number of target objects in the image recognition result is deducted from the number of target objects in the category with the largest number of target objects in the RFID result to obtain an adjusted RFID result.
10. The method according to claim 1, characterized in that The image is a top view image or a side view image of the target object.
11. The method according to claim 10, characterized in that The top view image is acquired by an image acquisition device above the target area, and the side view image is acquired by an image acquisition device at the side of the target area.
12. A target object recognition device, characterized in that: The device comprises: A first acquisition module is used to acquire an image of a target area; A first determination module, configured to determine an image recognition result of a target object within the target area according to the image; A second acquisition module, used to acquire a radio frequency identification result of the target object in the target area; A second determination module, configured to determine the distribution of the target object in the target area according to the radio frequency identification result and the image recognition result; The target area includes at least one sub-area; the image recognition result includes N candidate categories with the highest confidence of the target objects in each of the sub-areas and the number of target objects in each of the sub-areas; The second determining module is used for: Matching the number of target objects in each of the sub-regions in the image recognition result and the N candidate categories with the categories and the number of target objects in each category in the RFID result in the order of confidence from large to small in the image recognition result and the order of the number of target objects in each of the sub-regions in the image recognition result from large to small; The categories and quantities of the target objects in each of the sub-areas are obtained.
13. The device according to claim 12, characterized in that The first determining module is used for: The image is processed using a neural network to output an image recognition result of the target object in the target area.
14. The device according to claim 12, characterized in that The second acquisition module is used for: A radio frequency recognition result of the target object in the target area by a radio frequency detection antenna arranged in the target area is obtained.
15. The device according to claim 14, characterized in that The radio frequency identification result is obtained by reading the radio frequency identification tag set on each of the target objects through the radio frequency detection antenna.
16. The device according to claim 12, characterized in that The second determining module comprises: a matching unit, configured to match a kth candidate category of a target object in an mth subregion and the number of target objects in the mth subregion with the category in the radio frequency identification result and the number of target objects in each category; wherein the kth candidate category is one of the N candidate categories corresponding to the confidence number k, and the confidence number is obtained by arranging the N candidate categories with the largest confidences of the target object in the mth subregion in the image recognition result in order from large to small confidences; the mth subregion is the subregion corresponding to the subregion number m in the at least one subregion, and the subregion number is obtained by arranging the number of target objects in each of the subregions in the image recognition result in order from large to small confidences; a determining unit, configured to, in response to the categories in the RFID result including a k-th candidate category and the number of target objects of the k-th candidate category in the RFID result being greater than zero, determine that the k-th candidate category of the target objects in the m-th subregion is the category of the target objects in the m-th subregion in the image recognition result, and the number of target objects in the m-th subregion is the number of target objects in the m-th subregion in the image recognition result; The adjustment unit is used to deduct the number of target objects in the mth sub-area from the number of target objects in the kth candidate category of the radio frequency identification result to obtain an adjusted radio frequency identification result.
17. The device according to claim 16, characterized in that The device also includes: a third determination module, configured to determine that the match is unsuccessful in response to the kth candidate category not being included in the categories in the RFID result, or in response to the kth candidate category being included in the categories in the RFID result but the number of target objects of the kth candidate category in the RFID result is not greater than zero; The fourth determining module is configured to take the mth sub-region as the sub-region to be matched.
18. The device according to claim 17, characterized in that When it is determined that there is a sub-region to be matched, the device further includes: a fifth determination module, configured to, in response to the number of target objects of each category in the radio frequency identification result not being greater than zero, determine one or more candidate categories that appear in the category of the radio frequency identification result among the N candidate categories with the greatest confidence in a sub-region to be matched, use the candidate category with the greatest confidence among the one or more candidate categories as the category of the target object in the sub-region to be matched, and use the number of target objects in the sub-region to be matched in the image recognition result as the number of target objects in the sub-region to be matched.
19. The device according to claim 17, characterized in that When it is determined that there is a sub-region to be matched, the device further includes: a sixth determination module, configured to, in response to the number of target objects of each category in the radio frequency identification result being not greater than zero, determine that N candidate categories with the greatest confidence in a sub-region to be matched have not appeared in the categories of the radio frequency identification result, use the candidate category with the greatest confidence as the category of the target object in the sub-region to be matched, and use the number of target objects in the sub-region to be matched in the image recognition result as the number of target objects in the sub-region to be matched.
20. The device according to claim 17, characterized in that When it is determined that there is a sub-region to be matched, the device further includes: a seventh determination module, configured to, in response to the number of target objects of at least one category in the RFID result being greater than zero, use the category with the largest number of target objects in the RFID result as the category of target objects in the subregion with the largest number of target objects to be matched in the image recognition result, and use the number of target objects in the subregion with the largest number of target objects to be matched in the image recognition result as the number of target objects in the subregion with the largest number of target objects to be matched in the image recognition result; The adjustment module is used to deduct the number of target objects in the to-be-matched sub-region with the largest number of target objects in the image recognition result from the number of target objects in the category with the largest number of target objects in the RFID result to obtain an adjusted RFID result.
21. The device according to claim 12, characterized in that The image is a top view image or a side view image of the target object.
22. The device according to claim 21, characterized in that The top view image is acquired by an image acquisition device above the target area, and the side view image is acquired by an image acquisition device at the side of the target area.
23. A target object recognition system, characterized in that: The system comprises: An image acquisition device, used to acquire an image of a target area; A radio frequency detection device, used to obtain a radio frequency identification result of a target object in the target area; and a processor, configured to determine an image recognition result of the target object in the target area according to the image, and determine a distribution of the target object in the target area according to the RFID result and the image recognition result; The target area includes at least one sub-area; the image recognition result includes N candidate categories with the highest confidence of the target objects in each of the sub-areas and the number of target objects in each of the sub-areas; The processor determines the distribution of the target object in the target area according to the radio frequency identification result and the image recognition result, including: Matching the number of target objects in each of the sub-regions in the image recognition result and the N candidate categories with the categories and the number of target objects in each category in the RFID result in the order of confidence from large to small in the image recognition result and the order of the number of target objects in each of the sub-regions in the image recognition result from large to small; The categories and quantities of the target objects in each of the sub-areas are obtained.
24. The system according to claim 23, characterized in that The radio frequency detection device comprises: Radio frequency detection antennas and radio frequency identification tags; The radio frequency identification tags are respectively arranged on each target object, and the radio frequency detection antenna is arranged in the target area.
25. The system according to claim 24, characterized in that The RFID tag is built into the target object or attached to the surface of the target object.
26. The system according to claim 23, characterized in that The number of the target areas is multiple; The system further comprises: An isolation device for isolating each target area, wherein the isolation device is used to prevent a radio frequency detection device in one target area from acquiring radio frequency signals of target objects in other target areas.
27. The system according to claim 26, characterized in that The isolating device is made of metal.
28. The system according to claim 27, characterized in that The image acquisition device includes a first image acquisition device placed above the target area and / or a second image acquisition device placed at the side of the target area.
29. The system according to claim 23, characterized in that The processor determines, according to the image, an image recognition result of the target object in the target area, including: The image is processed using a neural network to output an image recognition result of the target object in the target area.
30. The system of claim 23, wherein: The processor matches the number of target objects in each sub-region in the image recognition result and the N candidate categories with the categories in the radio frequency identification result and the number of target objects in each category in the order of confidence from large to small in the image recognition result and the order of the number of target objects in each sub-region in the image recognition result from large to small, including: Matching the kth candidate category of the target object in the mth sub-region and the number of target objects in the mth sub-region with the category in the radio frequency identification result and the number of target objects in each category; wherein the kth candidate category is one of the N candidate categories corresponding to the confidence number k, and the confidence number is obtained by arranging the N candidate categories with the largest confidence of the target object in the mth sub-region in the image recognition result in order from large to small confidence; the mth sub-region is the sub-region corresponding to the sub-region number m in the at least one sub-region, and the sub-region number is obtained by arranging the number of target objects in each of the sub-regions in the image recognition result in order from large to small confidence; In response to the categories in the RFID result including a k-th candidate category and the number of target objects in the k-th candidate category in the RFID result being greater than zero, determining that the k-th candidate category of the target objects in the m-th sub-region is the category of the target objects in the m-th sub-region in the image recognition result, and the number of target objects in the m-th sub-region is the number of target objects in the m-th sub-region in the image recognition result; The number of target objects in the mth sub-region is deducted from the number of target objects in the kth candidate category of the RFID result to obtain an adjusted RFID result.
31. The system according to claim 30, characterized in that The processor is further configured to: In response to the kth candidate category not being included in the categories in the RFID result, or in response to the kth candidate category being included in the categories in the RFID result but the number of target objects of the kth candidate category in the RFID result is not greater than zero, determining that the match is unsuccessful; The mth sub-region is used as the sub-region to be matched.
32. The system according to claim 31, characterized in that When it is determined that there is a sub-region to be matched, the processor is further configured to: In response to the number of target objects in each category in the radio frequency identification result being not greater than zero, one or more candidate categories appearing in the category of the radio frequency identification result among N candidate categories with the greatest confidence in a sub-region to be matched are determined, the candidate category with the greatest confidence among the one or more candidate categories that appear is used as the category of the target object in the sub-region to be matched, and the number of target objects in the sub-region to be matched in the image recognition result is used as the number of target objects in the sub-region to be matched.
33. The system according to claim 31, characterized in that When it is determined that there is a sub-region to be matched, the processor is further configured to: In response to the number of target objects of each category in the RFID result being not greater than zero, determining that N candidate categories with the greatest confidence in a sub-region to be matched have not appeared in the categories of the RFID result, The candidate category with the largest confidence is taken as the category of the target object in the sub-region to be matched, and The number of target objects in the to-be-matched sub-region in the image recognition result is used as the number of target objects in the to-be-matched sub-region.
34. The system according to claim 31, characterized in that When it is determined that there is a sub-region to be matched, the processor is further configured to: In response to the number of target objects in at least one category in the RFID result being greater than zero, taking the category with the largest number of target objects in the RFID result as the category of target objects in the subregion with the largest number of target objects to be matched in the image recognition result, and taking the number of target objects in the subregion with the largest number of target objects to be matched in the image recognition result as the number of target objects in the subregion with the largest number of target objects to be matched in the image recognition result; The number of target objects in the to-be-matched subregion with the largest number of target objects in the image recognition result is deducted from the number of target objects in the category with the largest number of target objects in the RFID result to obtain an adjusted RFID result.
35. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.
36. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 11 is implemented.
