Object recognition method and system, and electronic device
By combining image capture and gravity sensor technology in smart containers, and integrating visual and gravity detection results, the problem of low object recognition accuracy in smart containers is solved, achieving accurate and efficient identification of stacked objects, and improving space utilization. .
Patent Information
- Application Number
- CN201910600924.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-04
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2039-07-04
AI Technical Summary
In smart containers, existing technology is difficult to accurately identify stacked objects, and the recognition accuracy is low, resulting in high cargo damage rates and low space utilization.
Obtain the object image through the image capture module, combine the detection results and pixel movement information of single-frame and multi-frame images, use the gravity sensor to obtain the gravity information, and fuse the visual detection results with the gravity detection results to determine the recognition result of the object.
Even when objects are blocked, the type and quantity of objects can be accurately identified, which improves the recognition accuracy, solves the problem of objects not being stacked and having low recognition accuracy, and improves space utilization.
Smart Images

Figure CN112184751B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to an object recognition method and system, and electronic equipment. Background Art
[0002] In the related technologies, smart containers are an important direction for the development of the new retail industry. When identifying objects, there are currently two main solutions, one is the traditional RFID (Radio Frequency Identification) technology solution, and the other is static identification based on visual recognition. For the first solution based on RFID electronic tags, different RFID electronic tags need to be attached to objects of different categories, and the data in the electronic tags are identified through radio signals to achieve the purpose of object identification and statistics. However, the cost of RFID electronic tags is high, and the labor cost of attaching labels to thousands of objects is also high; in addition, since the radio frequency characteristics are easily interfered by electronic products, metals, liquids, etc., and the labels are easily damaged by humans, the recognition accuracy of objects is insufficient and the cargo damage rate is high. For the second static identification solution based on visual recognition, it is necessary to install a camera on the top of each layer of the container, take an image before and after the door is opened, and then automatically identify the type and quantity of objects through visual recognition technology, and obtain the object identification and statistical results by comparing the images taken before and after. However, because the camera must be at a certain height from the lower partition, the space utilization rate of this solution is low, and objects cannot be stacked, otherwise the recognition accuracy will be affected by object occlusion.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide an object recognition method and system, and an electronic device, so as to at least solve the technical problem in the related art that when recognizing objects, objects cannot be stacked and placed and the recognition accuracy is low.
[0005] According to one aspect of an embodiment of the present invention, there is provided an object recognition method, comprising: acquiring an image of an object through an image capture module; acquiring detection results of the object at multiple moments based on a single-frame image of the object, wherein the detection results include position detection information and category detection information; acquiring movement information of pixels in the image based on the multiple-frame images of the object; acquiring visual detection results of the object based on the detection results of the object at the multiple moments and the movement information of the pixels; acquiring gravity information of a preselected area using a gravity sensor, and acquiring gravity detection results of the object based on the gravity information; and fusing the visual detection results with the gravity detection results to determine a recognition result of the object.
[0006] Furthermore, obtaining detection results of an object at multiple moments based on a single-frame image of the object includes: performing image preprocessing on the single-frame image of the object frame by frame; obtaining the object detection frame and the category detection information in the single-frame image after the image preprocessing; and obtaining the position detection information of the object based on the object detection frame.
[0007] Furthermore, the object recognition method also includes: performing non-maximum suppression on the object detection frame.
[0008] Furthermore, acquiring the movement information of pixels in an image based on multiple frames of images of an object includes: performing background modeling and extracting a foreground area based on the multiple frames of images of the object; and performing interval sampling on the foreground area to acquire the movement information of pixels.
[0009] Furthermore, the foreground area is an area containing a moving object.
[0010] Furthermore, a semi-dense optical flow method is used to perform interval sampling on the foreground area to obtain movement information of the pixel points.
[0011] Furthermore, based on the detection results of the object at the multiple moments and the movement information of the pixel points, obtaining the visual detection result of the object includes: generating a motion trajectory of the object based on the detection results of the object at the multiple moments and the movement information of the pixel points; classifying the motion trajectory of the object to obtain the trajectory state of the object; and obtaining the visual detection result of the object based on the category detection information of the object and the trajectory state of the object.
[0012] Furthermore, generating the motion trajectory of the object based on the detection results of the objects at the multiple moments and the movement information of the pixel points includes: obtaining the position prediction information of the object at moment (t+1) based on the position detection information in the detection result of the object at moment t and the movement information of the pixel points; judging whether the detection result of the object at moment (t+1) and the detection result of the object at moment t belong to the same trajectory as the detection result of the object at moment t based on the detection result of the object at moment t, the detection result of the object at moment (t+1) and the position prediction information of the object at moment (t+1), and obtaining a judgment result; and generating the motion trajectory of the object based on the judgment result.
[0013] Furthermore, the method of obtaining the predicted position information of the object at time (t+1) based on the position detection information in the detection result of the object at time t and the movement information of the pixel point includes: obtaining the predicted position of the object at time (t+1) based on the position detection information in the detection result of the object at time t and the speed of the pixel point at time t; obtaining the speed of the pixel point at time (t+1) based on the predicted position of the object at time (t+1); performing weighted averaging of the speed of the pixel point at time t and the speed of the pixel point at time (t+1) to obtain an average speed; and obtaining the predicted position information of the object at time (t+1) based on the position detection information in the detection result of the object at time t and the average speed.
[0014] Furthermore, classifying the motion trajectory of the object and obtaining the trajectory state of the object includes: extracting trajectory information from the motion trajectory of the object, wherein the trajectory information includes at least one of the following: the starting position of the motion trajectory, the ending position of the motion trajectory, the maximum position of the motion trajectory, and the maximum displacement between adjacent nodes of the motion trajectory; and classifying the motion trajectory of the object through a decision tree algorithm according to the trajectory information to obtain the trajectory state of the object.
[0015] Furthermore, using a gravity sensor to obtain gravity information of a preselected area, and obtaining a gravity detection result of the object based on the gravity information includes: using a gravity sensor to obtain gravity information of the preselected area at different times; and based on the difference in gravity information at different times, enumerating all possible gravity detection results of the object.
[0016] Furthermore, the visual detection result is matched with the gravity detection result, different weights are assigned to the gravity detection results according to the degree of matching between the two, and the gravity detection result with the highest weight is selected as the final gravity detection result, so as to determine the recognition result of the object.
[0017] Further, according to the detection result of the object at time t, the detection result of the object at time (t+1) and the position prediction information of the object at time (t+1), it is judged whether the detection result of the object at time (t+1) and the detection result of the object at time t belong to the same trajectory, and obtaining the judgment result includes: judging whether the category of the object at time t is the same as the category of the object at time (t+1) according to the category detection information in the detection result of the object at time t and the category detection information in the detection result of the object at time (t+1); judging whether the category of the object at time t is the same as the category of the object at time (t+1) according to the position detection information in the detection result of the object at time (t+1); The position prediction information of the object at time (t+1) and the position detection information of the object at time (t+1) are used to determine whether the distance between the position prediction information of the object at time (t+1) and the position detection information of the object at time (t+1) is less than a predetermined threshold; when the category of the object at time t is the same as the category of the object at time (t+1), and the distance between the position prediction information of the object at time (t+1) and the position detection information of the object at time (t+1) is less than a predetermined threshold, the judgment result indicates that the detection result of the object at time (t+1) and the detection result of the object at time t belong to the same trajectory.
[0018] Furthermore, the trajectory state of the object includes at least one of the following: false detection, actual placement, actual removal, suspected removal, and suspected placement.
[0019] According to another aspect of an embodiment of the present invention, there is also provided an object recognition system, including: an image capture module, used to acquire an image of an object; an object detection module, used to acquire detection results of the object at multiple moments based on a single-frame image of the object, wherein the detection results include position detection information and category detection information; a pixel detection module, used to acquire movement information of pixel points in the image based on multiple-frame images of the object; a visual result acquisition module, used to acquire a visual detection result of the object based on the detection results of the object at the multiple moments and the movement information of the pixel points; a gravity result acquisition module, used to acquire gravity information of a preselected area, and acquire a gravity detection result of the object based on the gravity information; and a fusion module, used to fuse the visual detection result with the gravity detection result to determine a recognition result of the object.
[0020] Furthermore, the object detection module includes: an image preprocessing module, used to perform image preprocessing on the single-frame image of the object frame by frame; a first information acquisition module, used to obtain the object detection frame and category detection information in the single-frame image after the image preprocessing; and a second information acquisition module, used to obtain the position detection information of the object based on the object detection frame.
[0021] Furthermore, the pixel detection module comprises: a foreground extraction module, which performs background modeling and extracts a foreground area based on multiple frames of images of the object; and a sampling module, which performs interval sampling on the foreground area to obtain movement information of pixel points.
[0022] Furthermore, the visual result acquisition module includes: a trajectory generation module, which is used to generate a motion trajectory of the object based on the detection results of the object at the multiple moments and the movement information of the pixel points; a trajectory classification module, which is used to classify the motion trajectory of the object and obtain the trajectory state of the object; and a visual analysis module; which is used to obtain the visual detection result of the object based on the category detection information of the object and the trajectory state of the object.
[0023] Furthermore, the gravity result acquisition module includes: a gravity sensor for acquiring gravity information at different times; and a gravity analysis module for enumerating all possible gravity detection results of the object according to the difference of the gravity information at different times.
[0024] Furthermore, the fusion of the visual detection result and the gravity detection result to determine the recognition result of the object includes: matching the visual detection result and the gravity detection result, assigning different weights to the gravity detection results according to the degree of matching between the two, and selecting the gravity detection result with the highest weight as the final gravity detection result, so as to determine the recognition result of the object.
[0025] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned object recognition methods by executing the executable instructions.
[0026] According to another aspect of an embodiment of the present invention, a storage medium is further provided, wherein the storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute any one of the object recognition methods described above.
[0027] In an embodiment of the present invention, an image of an object is acquired through an image capture module; detection results of the object at multiple moments are acquired based on a single-frame image of the object, wherein the detection results include position detection information and category detection information; movement information of pixels in the image is acquired based on multiple-frame images of the object; visual detection results of the object are acquired based on the detection results of the object at multiple moments and the movement information of the pixels; gravity information of a preselected area is acquired using a gravity sensor, and gravity detection results of the object are acquired based on the gravity information; the visual detection results are fused with the gravity detection results to determine the recognition results of the object. In this embodiment, even when the object is blocked, the visual detection results acquired based on the image can still be corrected based on the gravity detection results acquired based on the gravity information, thereby solving the problem of poor accuracy caused by simply using visual detection results to identify objects, and being able to accurately identify the type and quantity of objects, thereby solving the technical problem in the related art that objects cannot be stacked and placed and the recognition accuracy is low when identifying objects, thereby improving the space utilization of the object storage device. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0029] Figure 1 A flowchart of an optional object recognition method according to an embodiment of the present invention;
[0030] Figure 2 is a flow chart of an optional method for obtaining visual detection results of an object according to an embodiment of the present invention;
[0031] Figure 3 is a block diagram of an object recognition system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0034] The present invention is described below by means of detailed examples.
[0035] The embodiments of the present invention can be applied to new retail and other fields. The specific scope of use can be in smart containers, smart cabinets, shopping malls, supermarkets and other areas. The present invention is schematically described below using a smart container, but is not limited thereto.
[0036] Figure 1 is a flow chart of an optional object recognition method according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:
[0037] Step S102, acquiring an image of the object through an image capture module;
[0038] Step S104, acquiring detection results of the object at multiple moments based on a single frame image of the object, wherein the detection results include position detection information and category detection information;
[0039] Step S106, acquiring movement information of pixels in the image based on multiple frames of images of the object;
[0040] Step S108, obtaining visual detection results of the object according to the detection results of the object at multiple moments and the movement information of the pixel points;
[0041] Step S110, using a gravity sensor to obtain gravity information of a preselected area, and obtaining a gravity detection result of the object according to the gravity information;
[0042] Step S112: Fusion the visual detection result and the gravity detection result to determine the recognition result of the object.
[0043] According to the above steps, on the one hand, by combining the detection results of objects at multiple moments obtained based on a single-frame image with the movement information of pixel points obtained based on multiple-frame images, the obtained visual detection results include the motion state of the object to reduce the misrecognition rate of the object; on the other hand, the gravity detection results obtained based on gravity information can correct the visual detection results obtained based on the image, thereby solving the problem of poor accuracy caused by simply using visual detection results to identify objects, and being able to accurately identify the type and quantity of objects, thereby solving the technical problem in the related technology that objects cannot be stacked and the recognition accuracy is low when identifying objects.
[0044] The above steps are described in detail below.
[0045] Step S102: acquiring an image of the object through an image capture module.
[0046] In the present application, optionally, in the embodiment of the present invention, the image capture module can be an ordinary camera or a camera, for example, an RGB camera, an infrared camera, a Mono camera, etc. Of course, those skilled in the art can adjust the type and number of image capture modules according to actual needs without being limited to the examples given here. The image capture module can be installed in areas such as containers or shopping malls. The number of image capture modules is at least one. When the number of image capture modules is more than 2, the same type of image capture modules can be used or a combination of different types of image capture modules can be used; each image capture module can capture at least two images. During recognition, the image capture time points between the image capture modules can be unified, that is, multiple images at the same time point are analyzed separately to recognize objects from multiple angles.
[0047] Optionally, the number of the object is at least one, and the object can be placed in an object storage device, for example, the object is stored in a smart container. The object storage device includes but is not limited to: a smart container.
[0048] In an optional embodiment, obtaining the image of the object through the image capture module includes: opening the image capture module to obtain a video of the object; and capturing the image of the object from the video. That is, after the object storage device is opened, the video in the object storage device can be obtained in real time through the image capture module, and after the object storage device is closed or the user's picking action is detected to stop, the image of the object can be captured from the video.
[0049] Step S104, acquiring detection results of the object at multiple moments based on a single frame image of the object, wherein the detection results include position detection information and category detection information.
[0050] Optionally, step S104 may include: performing image preprocessing on the single-frame image of the object frame by frame. The image preprocessing includes at least one of the following: image enhancement, image scaling, and image mean subtraction; obtaining an object detection frame and category detection information in the single-frame image after image preprocessing, wherein the object detection frame includes at least one object; and obtaining the position detection information of the object according to the object detection frame.
[0051] Optionally, before obtaining the object detection frame and category detection information in the single frame image after image preprocessing, multiple object candidate frames (prior boxes) can be extracted first, and then deep learning and analysis can be performed on the object candidate frames to obtain the object detection frame and the category detection information of the object.
[0052] Optionally, the above step S104 may also include: performing non-maximum suppression (NMS) on the object detection frame to prevent false detection and improve the recognition accuracy of the object. That is, when identifying an object in an image, the image may be preprocessed first, including image enhancement, scaling, and mean reduction operations, followed by extracting the object detection frame, and performing non-maximum suppression on the extracted object detection frame to prevent false detection and improve the recognition accuracy of the object.
[0053] Of course, those skilled in the art will appreciate that, in another optional embodiment, in order to reduce the amount of calculation and improve the efficiency of object recognition, the single-frame image of the object may be processed by frame skipping, that is, the single-frame image of the object may be processed at certain intervals to obtain detection results of the object at multiple moments.
[0054] Step S106, acquiring movement information of pixels in the image based on the multiple frames of images of the object.
[0055] Optionally, step S106 includes: performing background modeling based on the multiple frames of images of the object and extracting a foreground area, wherein the foreground area is an area containing a moving object; performing interval sampling on the foreground area to obtain movement information of pixel points, wherein the movement information may include but is not limited to displacement, speed, etc. By extracting the foreground area, the area of the sampled region can be reduced, thereby reducing the amount of calculation, thereby improving the recognition efficiency of the object.
[0056] In an optional embodiment, background modeling and extraction of foreground areas based on multiple frames of images of the object include: saving a predetermined number of pixel values for each coordinate in each frame of the image; comparing the pixel values saved for each coordinate in the current frame with the pixel values saved for the corresponding coordinates in the historical frame, and if the number of pixel values of a certain coordinate in the current frame that is the same as the corresponding coordinate in the historical frame is greater than a first threshold, then the coordinate is determined to be the background; and fitting the background area based on the information of the coordinate determined to be the background to achieve background modeling and extract the foreground area. Optionally, the background modeling and extraction of the foreground area can also be achieved in combination with the background difference method. Usually, the first frame is the background by default.
[0057] In an optional embodiment, a semi-dense optical flow method can be used to perform interval sampling on the foreground area to obtain the movement information of the pixels. The semi-dense optical flow method is a pixel-level image registration method that performs point-by-point matching on images. Unlike the sparse optical flow method that only targets a number of feature points on the image, and unlike the dense optical flow method that targets all points on the image, the semi-dense optical flow method only performs interval sampling on the foreground area, and then obtains the movement information of the pixels by calculating the optical flow field of the semi-dense pixels. The semi-dense optical flow method combines the fast calculation speed of the sparse optical flow method and the strong adaptability of the dense optical flow method. It can overcome the problem that the sparse optical flow method cannot extract effective pixels under low light conditions, and can also overcome the problem that the dense optical flow method has a slow calculation speed.
[0058] Step S108, obtaining visual detection results of the object according to the detection results of the object at multiple moments and the movement information of the pixel points.
[0059] Optionally, step S108 includes: combining the detection result of the object with the movement information of the pixel points to obtain a complete motion trajectory; classifying the motion trajectory to obtain the trajectory state of the object; combining the object category detection information and the object trajectory state to obtain a more accurate visual detection result. By obtaining a complete motion trajectory, errors in the position detection information obtained based on the image can be overcome and corrected to a certain extent.
[0060] Step S110: using a gravity sensor to obtain gravity information of a preselected area, and obtaining a gravity detection result of the object according to the gravity information.
[0061] Optionally, step S110 includes: using a gravity sensor to obtain gravity information of a preselected area at different times; based on the difference in gravity information at different times, such as the difference between the initial gravity stability value when the object storage device is turned on and the final gravity stability value when the object storage device is turned off, exhaustively enumerate all possible gravity detection results of the object. The above gravity detection results may include a judgment on whether to take or put in a commodity, as well as the category and quantity of the commodity. The exhaustive method may be to traverse all possible results in a permutation and combination manner based on the difference in gravity information at different times. For example, if the difference between the final gravity stability value and the initial gravity stability value is -500 grams, then the possibilities exhaustively enumerated based on all the object information in the object storage device include: (1) taking a 500ml bottle of Coca-Cola; (2) taking a 500g bag of Eugene crispy biscuits; (3) taking a 200g can of Amul yogurt and a 300g bag of Shuanghui sausages. Correspondingly, if the difference between the final gravity stability value and the initial gravity stability value is +500 grams, the possibilities enumerated based on all the object information in the object storage device include: (1) putting in a 500ml bottle of Coca-Cola; (2) putting in a 500g bag of Eucommia crispy biscuits; (3) putting in a 200g can of Amul yogurt and a 300g bag of Shuanghui sausages.
[0062] Optionally, after the object storage device is turned on, the gravity information of the preselected area can be obtained in real time or at predetermined intervals through the gravity sensor, and the gravity information of the object can be stopped after the object storage device is turned off or after it is detected that the user's picking action has stopped.
[0063] Optionally, the gravity sensor may be disposed in the object storage device. For example, when the object storage device is a smart container, the gravity sensor may be disposed on each shelf of the smart container. In this case, each shelf is a preselected area.
[0064] Of course, those skilled in the art can adjust the type and number of gravity sensors according to actual needs without being limited to the examples given here, and when the number of gravity sensors is more than 2, they can all use the same type or a combination of different types of gravity sensors.
[0065] Step S112: Fusion the visual detection result and the gravity detection result to determine the recognition result of the object.
[0066] Optionally, step S112 includes: matching the visual detection results and the gravity detection results, assigning different weights to the gravity detection results according to the degree of matching between the two, usually, assigning a higher weight to the gravity detection results that have a higher degree of matching with the visual detection results, and assigning a lower weight to the gravity detection results that have a higher degree of matching with the visual detection results, and then selecting the gravity detection result with the highest weight as the final gravity detection result to determine the recognition result of the object. The recognition result of the object may include whether to take or put in the object, the object category, the number of objects in each object category and the specific name, etc. Optionally, the object categories in the embodiment of the present invention include but are not limited to: vegetables, fruits, snacks, fresh meat, seafood, etc.
[0067] Since objects may be obscured, it is impossible to accurately analyze the obscured objects simply through visual detection results. Therefore, by fusing the gravity detection results of the object with the visual detection results, the misrecognition rate can be further reduced, and the probability of missed recognition can be reduced to obtain accurate object recognition results.
[0068] Through the above steps, even when the object is obscured, the visual detection results based on the image acquisition can still be corrected based on the gravity detection results obtained based on the gravity information, thereby solving the problem of poor accuracy caused by simply using visual detection results to identify objects, and being able to accurately identify the type and quantity of objects, thereby solving the technical problem in the related technology that objects cannot be stacked and the recognition accuracy is low when identifying objects, thereby improving the space utilization of the object storage device.
[0069] Figure 2 is a flow chart of an optional method for obtaining visual detection results of an object according to an embodiment of the present invention, such as Figure 2 As shown, the method comprises the following steps:
[0070] Step S202, generating a motion trajectory of the object based on the detection results of the object at multiple moments and the movement information of the pixel points;
[0071] Step S204, classifying the motion trajectory of the object to obtain the trajectory state of the object;
[0072] Step S206, obtaining a visual detection result of the object according to the category detection information of the object and the trajectory state of the object.
[0073] The above steps firstly combine the detection results of the object with the movement information of the pixel points to obtain a complete motion trajectory, and then classify the motion trajectory to obtain the trajectory state of the object. To a certain extent, it can overcome and correct the errors in the position detection information obtained based on the image, and then combine the category detection information of the object to obtain a more accurate visual detection result.
[0074] The above steps are described in detail below.
[0075] Step S202: Generate a motion trajectory of the object based on the detection results of the object at multiple moments and the movement information of the pixel points.
[0076] In an optional embodiment, step S202 includes: obtaining the position prediction information of the object at time (t+1) based on the position detection information in the detection result of the object at time t and the movement information of the pixel points; judging whether the detection result of the object at time (t+1) and the detection result of the object at time t belong to the same track based on the detection result of the object at time t, the detection result of the object at time (t+1) and the position prediction information of the object at time (t+1), and obtaining the judgment result; generating the motion track of the object based on the judgment result. If the judgment result indicates that they belong to the same track, the position of the object at time (t+1) and the position of the object at time t are connected to generate a motion track of the object; if the judgment result indicates that they do not belong to the same track, a new motion track is created based on the position of the object at time (t+1).
[0077] Specifically, based on the detection result of the object at time t, the detection result of the object at time (t+1) and the position prediction information of the object at time (t+1), it is judged whether the detection result of the object at time (t+1) and the detection result of the object at time t belong to the same trajectory, and obtaining the judgment result includes: judging whether the categories of the objects are the same based on the category detection information in the detection result of the object at time t and the category detection information in the detection result of the object at time (t+1); judging whether the distance between the position prediction information of the object at time (t+1) and the position detection information of the object at time (t+1) is less than a predetermined threshold value based on the position detection information in the detection result of the object at time (t+1) and the position prediction information of the object at time (t+1); when the category of the object at time t is the same as the category of the object at time (t+1), and the distance between the position prediction information of the object at time (t+1) and the position detection information of the object at time (t+1) is less than the predetermined threshold value, the judgment result indicates that the detection result of the object at time (t+1) and the detection result of the object at time t belong to the same trajectory; otherwise, it indicates that they do not belong to the same trajectory.
[0078] In another optional embodiment, in order to obtain more accurate position prediction information of the object at time (t+1), according to the position detection information in the detection result of the object at time t, and the movement information of the pixel point, obtaining the position prediction information of the object at time (t+1) includes: obtaining the predicted position of the object at time (t+1) according to the position detection information in the detection result of the object at time t and the speed of the pixel point at time t; obtaining the speed of the pixel point at time (t+1) according to the position prediction information of the object at time (t+1); taking a weighted average of the speed of the pixel point at time t and the speed of the pixel point at time (t+1) to obtain the average speed; obtaining the position prediction information of the object at time (t+1) according to the position detection information in the detection result of the object at time t and the average speed.
[0079] Step S204, classifying the motion trajectory of the object to obtain the trajectory state of the object.
[0080] Optionally, step S204 includes: extracting trajectory information from the object's motion trajectory, wherein the trajectory information includes at least one of the following: the starting position of the motion trajectory, the ending position of the motion trajectory, the maximum position of the motion trajectory, and the maximum displacement between adjacent nodes of the motion trajectory; and classifying the object's motion trajectory through a decision tree algorithm based on the above information to obtain the object's trajectory state. The object's trajectory state may include false detection, actual placement, actual removal, suspected removal, suspected placement, etc.
[0081] Step S206, obtaining a visual detection result of the object according to the category detection information of the object and the trajectory state of the object.
[0082] Optionally, the visual inspection results of objects can be divided into two categories: (1) confirmed inspection results; (2) possible supplementary inspection results. Confirmed inspection results include: certain objects are indeed put in, certain objects are indeed taken out, etc.; possible supplementary inspection results include: certain objects are suspected to be taken out, certain objects are suspected to be put in, etc.
[0083] From this, we can see that by combining the trajectory state of the object, the errors in the position detection information obtained based on the image can be overcome and corrected to a certain extent, and then combined with the category detection information of the object, more accurate visual detection results can be obtained.
[0084] According to another aspect of an embodiment of the present invention, an object recognition system is provided. Figure 3 is a block diagram of an optional object recognition system according to an embodiment of the present invention.
[0085] like Figure 3 As shown, the system may include: an image capturing module 30 , an object detecting module 31 , a pixel detecting module 32 , a visual result acquiring module 33 , a gravity result acquiring module 34 and a fusion module 35 .
[0086] The image capture module 30 is used to obtain an image of an object. Optionally, the image capture module 30 can be an ordinary camera or a camera, for example, an RGB camera, an infrared camera, a Mono camera, etc. Of course, those skilled in the art can adjust the type and number of the image capture module 30 according to actual needs without being limited to the examples given here. The image capture module 30 can be installed in areas such as containers or shopping malls. The number of image capture modules 30 is at least one. When the number of image capture modules 30 is more than 2, the same type of image capture modules 30 can be used or a combination of different types of image capture modules 30 can be used; each image capture module 30 can capture at least two images. During recognition, the image capture time points between the image capture modules 30 can be unified, that is, multiple images at the same time point are analyzed separately to identify objects from multiple angles.
[0087] Optionally, the number of the object is at least one, and the object can be placed in an object storage device, for example, the object is stored in a smart container. The object storage device includes but is not limited to: a smart container.
[0088] In an optional embodiment, obtaining the image of the object through the image capture module 30 includes: opening the image capture module 30 to obtain a video of the object; and capturing the image of the object from the video. That is, after the object storage device is opened, the video in the object storage device can be captured in real time through the image capture module 30, and after the object storage device is closed or the user's picking action is detected to stop, the image of the object can be captured from the video.
[0089] The object detection module 31 is used to obtain the detection results of the object at multiple moments based on the single frame image of the object, wherein the detection results include position detection information and category detection information. The object detection module 31 can communicate with the object detection module 31 in a wired or wireless manner to obtain the object image captured by the image capture module 30.
[0090] In an optional embodiment, the object detection module 31 may include an image preprocessing module 310, a first information acquisition module 312, and a second information acquisition module 314. The image preprocessing module 310 is used to perform image preprocessing on a single frame image of the object frame by frame. The image preprocessing includes at least one of the following: image enhancement, image scaling, and image mean subtraction. The first information acquisition module 312 is used to obtain an object detection frame and category detection information in a single frame image after image preprocessing, wherein at least one object is included in the object detection frame. The second information acquisition module 314 is used to obtain the position detection information of the object according to the object detection frame.
[0091] Optionally, the first information acquisition module 312 may further include a candidate box extraction module 3120 and a detection box analysis module 3122. The selection box extraction module 3120 is used to extract multiple object candidate boxes (prior boxes) from a single frame image after image preprocessing. The detection box analysis module 3122 is used to perform deep learning and analysis on the object candidate boxes to obtain object detection boxes and object category detection information.
[0092] Optionally, the object detection module 31 may further include a detection frame processing module 313 for performing non-maximum suppression (NMS) on the object detection frame acquired by the first information acquisition module 312 to prevent misdetection and improve object recognition accuracy.
[0093] Of course, those skilled in the art will appreciate that, in another optional embodiment, in order to reduce the amount of computation and improve the efficiency of object recognition, the image preprocessing module 310 may process a single-frame image of the object by frame skipping, that is, processing a single-frame image of the object at certain intervals to obtain detection results of the object at multiple moments.
[0094] The pixel detection module 32 is used to obtain the movement information of the pixels in the image based on the multiple frames of images of the object.
[0095] In an optional embodiment, the pixel detection module 32 includes a foreground extraction module 320 and a sampling module 322. The foreground extraction module 320 performs background modeling based on the multi-frame images of the object and extracts the foreground area, wherein the foreground area is an area containing a moving object. The sampling module 322 is used to perform interval sampling on the foreground area to obtain the movement information of the pixel points, wherein the movement information may include but is not limited to displacement, speed, etc. By extracting the foreground area, the area of the sampled area can be reduced, thereby reducing the amount of calculation, thereby improving the recognition efficiency of the object.
[0096] In an optional embodiment, background modeling and extraction of foreground areas based on multiple frames of images of the object include: saving a predetermined number of pixel values for each coordinate in each frame of the image; comparing the pixel values saved for each coordinate in the current frame with the pixel values saved for the corresponding coordinates in the historical frame, and if the number of pixel values of a certain coordinate in the current frame that is the same as the corresponding coordinate in the historical frame is greater than a first threshold, then the coordinate is determined to be the background; and fitting the background area based on the information of the coordinate determined to be the background to achieve background modeling and extract the foreground area. Optionally, the background modeling and extraction of the foreground area can also be achieved in combination with the background difference method. Usually, the first frame is the background by default.
[0097] In an optional embodiment, the sampling module 322 may use a semi-dense optical flow method to perform interval sampling on the foreground area to obtain the movement information of the pixel points. The semi-dense optical flow method is a pixel-level image registration method that performs point-by-point matching on images. Unlike the sparse optical flow method that only targets a number of feature points on the image, and unlike the dense optical flow method that targets all points on the image, the semi-dense optical flow method only performs interval sampling on the foreground area, and then obtains the movement information of the pixel points by calculating the optical flow field of the semi-dense pixels. The semi-dense optical flow method combines the characteristics of the fast calculation speed of the sparse optical flow method and the strong adaptability of the dense optical flow method. It can overcome the problem that the sparse optical flow method cannot extract effective pixels under low light conditions, and can also overcome the problem of the slow calculation speed of the dense optical flow method.
[0098] The visual result acquisition module 33 is used to acquire the visual detection result of the object according to the detection results of the object at multiple moments and the movement information of the pixel points.
[0099] In an optional embodiment, the visual result acquisition module 33 includes a trajectory generation module 330, a trajectory classification module 332 and a visual analysis module 334. The trajectory generation module 330 is used to generate the motion trajectory of the object according to the detection results of the object at multiple moments and the movement information of the pixel points. The trajectory classification module 332 is used to classify the motion trajectory of the object and obtain the trajectory state of the object. The visual analysis module 334 is used to obtain the visual detection result of the object according to the category detection information of the object and the trajectory state of the object.
[0100] In an optional embodiment, the method for generating a motion trajectory of an object based on detection results of an object at multiple time moments and movement information of pixel points includes: obtaining position prediction information of the object at time (t+1) based on position detection information in the detection result of the object at time t and movement information of pixel points; judging whether the detection result of the object at time (t+1) and the detection result of the object at time t belong to the same trajectory based on the detection result of the object at time t, the detection result of the object at time (t+1) and the position prediction information of the object at time (t+1), and obtaining a judgment result; generating the motion trajectory of the object based on the judgment result, for example, if the judgment result indicates that they belong to the same trajectory, connecting the position of the object at time (t+1) and the position of the object at time t to generate a motion trajectory of the object; if the judgment result indicates that they do not belong to the same trajectory, creating a new motion trajectory based on the position of the object at time (t+1).
[0101] Specifically, based on the detection result of the object at time t, the detection result of the object at time (t+1) and the position prediction information of the object at time (t+1), it is judged whether the detection result of the object at time (t+1) and the detection result of the object at time t belong to the same trajectory, and obtaining the judgment result includes: judging whether the categories of the objects are the same based on the category detection information in the detection result of the object at time t and the category detection information in the detection result of the object at time (t+1); secondly, judging whether the distance between the position prediction information of the object at time (t+1) and the position detection information of the object at time (t+1) is less than a predetermined threshold value based on the position detection information in the detection result of the object at time (t+1) and the position prediction information of the object at time (t+1); when the category of the object at time t is the same as the category of the object at time (t+1), and the distance between the position prediction information of the object at time (t+1) and the position detection information of the object at time (t+1) is less than the predetermined threshold value, the judgment result indicates that the detection result of the object at time (t+1) and the detection result of the object at time t belong to the same trajectory; otherwise, it indicates that they do not belong to the same trajectory.
[0102] In another optional embodiment, in order to obtain more accurate position prediction information of the object at time (t+1), according to the position detection information in the detection result of the object at time t, and the movement information of the pixel point, obtaining the position prediction information of the object at time (t+1) includes: obtaining the predicted position of the object at time (t+1) according to the position detection information in the detection result of the object at time t and the speed of the pixel point at time t; obtaining the speed of the pixel point at time (t+1) according to the position prediction information of the object at time (t+1); taking a weighted average of the speed of the pixel point at time t and the speed of the pixel point at time (t+1) to obtain the average speed; obtaining the position prediction information of the object at time (t+1) according to the position detection information in the detection result of the object at time t and the average speed.
[0103] In an optional embodiment, classifying the motion trajectory of the object and obtaining the trajectory state of the object includes: extracting the trajectory information in the motion trajectory of the object, wherein the trajectory information includes at least one of the following: the starting position of the motion trajectory, the ending position of the motion trajectory, the maximum position of the motion trajectory, and the maximum displacement between adjacent nodes of the motion trajectory; and classifying the motion trajectory of the object through a decision tree algorithm based on the above information to obtain the trajectory state of the object. The trajectory state of the object may include false detection, actual placement, actual removal, suspected removal, suspected placement, etc.
[0104] Optionally, the visual inspection results of objects can be divided into two categories: (1) confirmed inspection results; (2) possible supplementary inspection results. Confirmed inspection results include: certain objects are indeed put in, certain objects are indeed taken out, etc.; possible supplementary inspection results include: certain objects are suspected to be taken out, certain objects are suspected to be put in, etc.
[0105] The gravity result acquisition module 34 is used to acquire gravity information and acquire the gravity detection result of the object according to the gravity information.
[0106] In an optional embodiment, the gravity result acquisition module 34 includes a gravity sensor 340 and a gravity analysis module 342. The gravity sensor 340 is used to obtain gravity information at different times. The gravity analysis module 342 exhaustively enumerates all possible gravity detection results of the object based on the difference in gravity information at different times, such as the difference between the initial gravity stability value when the object storage device is turned on and the final gravity stability value when the object storage device is turned off. The above gravity detection result may include a judgment on whether to take or put in a commodity, as well as the category and quantity of the commodity. The exhaustive method may be to traverse all possible results in a permutation and combination manner based on the difference in gravity information at different times. For example, if the difference between the final gravity stability value and the initial gravity stability value is -500 grams, then the possibilities exhaustively enumerated based on all the object information in the object storage device include: (1) taking a 500ml bottle of Coca-Cola; (2) taking a 500g bag of Eugene crispy biscuits; (3) taking a 200g can of Anmuxi yogurt and a 300g bag of Shuanghui sausage. Correspondingly, if the difference between the final gravity stability value and the initial gravity stability value is +500 grams, the possibilities enumerated based on all the object information in the object storage device include: (1) putting in a 500ml bottle of Coca-Cola; (2) putting in a 500g bag of Eucommia crispy biscuits; (3) putting in a 200g can of Amul yogurt and a 300g bag of Shuanghui sausages.
[0107] Optionally, after the object storage device is turned on, the gravity information of the preselected area can be obtained in real time or at predetermined intervals through the gravity sensor 340. After the object storage device is closed or after detecting that the user's picking action has stopped, the gravity sensor 340 stops obtaining the gravity information of the object.
[0108] Optionally, the gravity sensor may be disposed in the object storage device. For example, when the object storage device is a smart container, the gravity sensor may be disposed on each shelf of the smart container. In this case, each shelf is a preselected area.
[0109] Of course, those skilled in the art can adjust the type and number of the gravity sensor 340 according to actual needs without being limited to the examples given here, and when the number of gravity sensors 340 is more than 2, all gravity sensors 340 of the same type or a combination of gravity sensors 340 of different types can be used. The gravity sensor 340 can be set in the object storage device.
[0110] The fusion module 35 is used to fuse the visual detection result with the gravity detection result to determine the recognition result of the object.
[0111] Optionally, the fusion module 35 matches the visual detection result and the gravity detection result, and assigns different weights to the gravity detection result according to the degree of matching between the two. Generally, a higher weight is assigned to the gravity detection result that matches the visual detection result more closely, and a lower weight is assigned to the gravity detection result that matches the visual detection result more closely, and then the gravity detection result with the highest weight is selected as the final gravity detection result. The object recognition result may include whether to take or put in the object, the object category, the number of objects in each object category, and the specific name. Optionally, the object categories in the embodiment of the present invention include, but are not limited to: vegetables, fruits, snacks, fresh meat, seafood, etc.
[0112] Since objects may be obscured, it is impossible to accurately analyze the obscured objects simply through visual detection results. Therefore, by fusing the gravity detection results of the object with the visual detection results, the misrecognition rate can be further reduced, and the probability of missed recognition can be reduced to obtain accurate object recognition results.
[0113] Through the above steps, even when the object is obscured, the visual detection results based on the image acquisition can still be corrected based on the gravity detection results obtained based on the gravity information, thereby solving the problem of poor accuracy caused by simply using visual detection results to identify objects, and being able to accurately identify the type and quantity of objects, thereby solving the technical problem in the related technology that objects cannot be stacked and the recognition accuracy is low when identifying objects, thereby improving the space utilization of the object storage device.
[0114] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned object recognition methods by executing the executable instructions.
[0115] According to another aspect of an embodiment of the present invention, a storage medium is further provided, the storage medium including a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute any one of the above-mentioned object recognition methods.
[0116] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0117] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0118] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0119] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0120] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0121] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0122] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. An object recognition method, characterized in that: include: Acquire an image of the object through an image capture module; Acquire detection results of the object at multiple moments based on a single-frame image of the object, wherein the detection results include position detection information and category detection information; Acquiring movement information of pixels in an image based on multiple frames of images of the object, wherein the movement information includes displacement and speed; Generate a motion trajectory of the object according to the detection results of the object at the multiple moments and the movement information of the pixel points; classify the motion trajectory of the object to obtain the trajectory state of the object; obtain a visual detection result of the object according to the category detection information of the object and the trajectory state of the object; Using a gravity sensor to obtain gravity information of a preselected area, and obtaining a gravity detection result of the object according to the gravity information; fusing the visual detection result with the gravity detection result to determine a recognition result of the object; Wherein, acquiring the movement information of the pixels in the image based on the multi-frame image of the object comprises: Based on the multi-frame images of the object, background modeling is performed and a foreground area is extracted; and the foreground area is sampled at intervals using a semi-dense optical flow method to obtain movement information of pixel points; The background modeling and foreground area extraction based on the multi-frame images of the object include: saving a predetermined number of pixel values for each coordinate in each frame of the image; comparing the pixel values saved in each coordinate in the current frame with the pixel values saved in the corresponding coordinates in the historical frame, and if the number of pixel values of a certain coordinate in the current frame that is the same as the corresponding coordinate in the historical frame is greater than a first threshold, then the coordinate is determined to be the background; according to the information of the coordinate determined to be the background, the background area is fitted to achieve background modeling and extract the foreground area; The step of using a gravity sensor to obtain gravity information of a preselected area and obtaining a gravity detection result of the object according to the gravity information includes: Use gravity sensors to obtain gravity information of the pre-selected area at different times; According to the difference of the gravity information at different times, all possible gravity detection results of the object are exhaustively listed; The fusing the visual detection result and the gravity detection result to determine the recognition result of the object includes: The visual detection result and the gravity detection result are matched, different weights are assigned to the gravity detection results according to the matching degree between the two, and the gravity detection result with the highest weight is selected as the final gravity detection result, so as to determine the recognition result of the object.
2. The method according to claim 1, characterized in that The method of acquiring detection results of objects at multiple moments based on a single frame image of the object includes: Performing image preprocessing on the single-frame images of the object frame by frame; Obtaining the object detection frame and the category detection information in the single frame image after the image preprocessing; The position detection information of the object is obtained according to the object detection frame.
3. The method according to claim 2, characterized in that The method also includes: performing non-maximum suppression on the object detection frame.
4. The method according to claim 1, characterized in that: The foreground area is an area containing a moving object.
5. The method according to claim 1, characterized in that Generating the motion trajectory of the object according to the detection results of the object at the multiple moments and the movement information of the pixel points comprises: According to the position detection information in the detection result of the object at time t and the movement information of the pixel point, obtaining the position prediction information of the object at time (t+1); According to the detection result of the object at time t, the detection result of the object at time (t+1), and the position prediction information of the object at time (t+1), determine whether the detection result of the object at time (t+1) and the detection result of the object at time t belong to the same trajectory, and obtain a determination result; The motion trajectory of the object is generated according to the judgment result.
6. The method according to claim 5, characterized in that The method of obtaining the predicted position information of the object at time (t+1) based on the position detection information in the detection result of the object at time t and the movement information of the pixel point includes: obtaining the predicted position of the object at time (t+1) based on the position detection information in the detection result of the object at time t and the speed of the pixel point at time t; obtaining the speed of the pixel point at time (t+1) based on the predicted position of the object at time (t+1); performing weighted averaging on the speed of the pixel point at time t and the speed of the pixel point at time (t+1) to obtain an average speed; and obtaining the predicted position information of the object at time (t+1) based on the position detection information in the detection result of the object at time t and the average speed.
7. The method according to claim 1, characterized in that The step of classifying the motion trajectory of the object to obtain the trajectory state of the object comprises: Extracting trajectory information from the motion trajectory of the object, wherein the trajectory information includes at least one of the following: a starting position of the motion trajectory, an ending position of the motion trajectory, a maximum position of the motion trajectory, and a maximum displacement between adjacent nodes of the motion trajectory; According to the trajectory information, the motion trajectory of the object is classified by a decision tree algorithm to obtain the trajectory state of the object.
8. The method according to claim 5, characterized in that The step of determining whether the detection result of the object at time (t+1) and the detection result of the object at time t belong to the same trajectory based on the detection result of the object at time t, the detection result of the object at time (t+1), and the position prediction information of the object at time (t+1), and obtaining the determination result includes: Determine whether the category of the object at time t is the same as the category of the object at time (t+1) based on the category detection information in the detection result of the object at time t and the category detection information in the detection result of the object at time (t+1); According to the position detection information in the detection result of the object at time (t+1) and the position prediction information of the object at time (t+1), determining whether the distance between the position prediction information of the object at time (t+1) and the position detection information of the object at time (t+1) is less than a predetermined threshold; When the category of the object at time t is the same as the category of the object at time (t+1), and the distance between the position prediction information of the object at time (t+1) and the position detection information of the object at time (t+1) is less than a predetermined threshold, the judgment result indicates that the detection result of the object at time (t+1) and the detection result of the object at time t belong to the same trajectory.
9. The method according to claim 1, characterized in that: The trajectory state of the object includes at least one of the following: false detection, actual placement, actual removal, suspected removal, and suspected placement.
10. An object recognition system, characterized in that: include: An image capture module, used for acquiring an image of an object; An object detection module, used to obtain detection results of the object at multiple moments based on a single frame image of the object, wherein the detection results include position detection information and category detection information; A pixel detection module, used to obtain movement information of pixels in an image based on multiple frames of images of an object, wherein the movement information includes displacement and speed; A trajectory generation module, used to generate a motion trajectory of the object according to the detection results of the object at the multiple moments and the movement information of the pixel points; A trajectory classification module, used to classify the motion trajectory of the object and obtain the trajectory state of the object; A visual analysis module; used to obtain a visual detection result of the object according to the category detection information of the object and the trajectory state of the object; A gravity result acquisition module, used to acquire gravity information of a preselected area, and acquire a gravity detection result of the object according to the gravity information; A fusion module, used to fuse the visual detection result with the gravity detection result to determine the recognition result of the object; The pixel detection module is used to obtain the movement information of the pixels in the image based on the multi-frame images of the object, and includes: Based on the multi-frame images of the object, background modeling is performed and a foreground area is extracted; and the foreground area is sampled at intervals using a semi-dense optical flow method to obtain movement information of pixel points; The background modeling and foreground area extraction based on the multi-frame images of the object include: saving a predetermined number of pixel values for each coordinate in each frame of the image; comparing the pixel values saved in each coordinate in the current frame with the pixel values saved in the corresponding coordinates in the historical frame, and if the number of pixel values of a certain coordinate in the current frame that is the same as the corresponding coordinate in the historical frame is greater than a first threshold, then the coordinate is determined to be the background; according to the information of the coordinate determined to be the background, the background area is fitted to achieve background modeling and extract the foreground area; The gravity result acquisition module includes: Gravity sensor, used to obtain gravity information at different times; A gravity analysis module, used to exhaustively enumerate all possible gravity detection results of the object according to the difference of the gravity information at different times; The fusing the visual detection result and the gravity detection result to determine the recognition result of the object includes: The visual detection result and the gravity detection result are matched, different weights are assigned to the gravity detection results according to the matching degree between the two, and the gravity detection result with the highest weight is selected as the final gravity detection result, so as to determine the recognition result of the object.
11. The system according to claim 10, characterized in that The object detection module comprises: An image preprocessing module, used for performing image preprocessing on the single-frame images of the object frame by frame; A first information acquisition module, used to acquire object detection frames and category detection information in a single frame image after the image preprocessing; The second information acquisition module is used to acquire the position detection information of the object according to the object detection frame.
12. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the object recognition method according to any one of claims 1 to 9 by executing the executable instructions.
13. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the object recognition method according to any one of claims 1 to 9.
