Information generation method and device

By obtaining the time information, position information and image feature vectors in the target video frame, calculating the spatiotemporal distance, and generating probability information that represents the same target, it solves the problem of low accuracy and efficiency of pedestrian recognition in the existing technology, and realizes cross-camera recognition. Target recognition improves the accuracy and efficiency of the recognition system.

CN110378172BActive Publication Date: 2024-10-18BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201810332976.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-04-13
Publication Date
2024-10-18
Estimated Expiration
2038-04-13

AI Technical Summary

Technical Problem

Existing target recognition technology mainly relies on image features, making it difficult to accurately identify and re-identify pedestrians when their posture changes or is blocked, and lacks the use of spatiotemporal information, resulting in low recognition accuracy and efficiency.

Method used

By obtaining the time information, position information and image feature vectors in the target video frame, the spatio-temporal distance is calculated, and probability information that represents the same target is generated. The spatio-temporal information is used to improve the recognition accuracy, including a cross-camera target recognition mechanism.

Benefits of technology

It improves the accuracy and efficiency of target recognition, can accurately identify and re-identify pedestrians when their posture changes or is blocked, reduces the amount of data processing, and enhances the robustness of the recognition system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110378172B_ABST
    Figure CN110378172B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose an information generation method and device. A specific implementation of the method includes: obtaining the first time information, first position information and first image feature vector of the first target included in the current frame of the first target video and the second time information, second position information and second image feature vector of the second target included in the historical frame; determining the first distance between the first image feature vector and the second image feature vector; calculating the first time difference between the first time information and the second time information; determining the second distance between the first target and the second target based on the first position information and the second position information; generating information for characterizing the probability that the first target and the second target are the same based on the first distance, the first time difference and the second distance. This implementation provides an information generation mechanism based on spatiotemporal information, which improves the accuracy of the generated information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to information generation methods and devices. Background Art

[0002] With the rapid development of computer technology, computer vision technology has developed more and more rapidly and has penetrated into all aspects of life. As one of the important research topics in the field of computer vision, target detection and target recognition are widely used in various fields such as national defense, military, public transportation, social security and commercial applications. The so-called target detection is to obtain the category and location information of the target by analyzing the characteristics of the target in the image or video, which can provide assistance for further analysis and understanding of the target. The so-called target recognition is to identify a specific target in the image, for example, how to accurately identify pedestrians in the video captured by the camera, and any re-identification of the pedestrian when the pedestrian changes his posture or is blocked. Existing target recognition is mainly based on the image features of the target. Summary of the invention

[0003] The embodiments of the present application provide a method and device for generating information.

[0004] In a first aspect, an embodiment of the present application provides an information generation method, the method comprising: obtaining first time information, first position information, and a first image feature vector of a first target included in a current frame in a first target video, and second time information, second position information, and a second image feature vector of a second target included in a historical frame; determining a first distance between the first image feature vector and the second image feature vector; calculating a first time difference between the first time information and the second time information; determining a second distance between the first target and the second target based on the first position information and the second position information; and generating information for characterizing the probability that the first target is the same as the second target based on the first distance, the first time difference, and the second distance.

[0005] In some embodiments, information for characterizing the probability that the first target is the same as the second target is generated based on the first distance, the first time difference and the second distance, including: mapping the first time difference and the second distance to a preset interval; calculating the product of the mapped first time difference, the mapped second distance and the first distance; and generating information for characterizing the probability that the first target is the same as the second target based on the product.

[0006] In some embodiments, the second target is associated with multiple sets of second time information, second position information and second image feature vectors; and after generating information for characterizing the probability that the first target is the same as the second target based on the first distance, the first time difference and the second distance, the method also includes: in response to determining that the first target is the same as the second target based on the generated information, storing the first time information, the first position information and the first image feature vector as a set of second time information, second position information and second image feature vector associated with the second target.

[0007] In some embodiments, after generating information for characterizing the probability that the first target is the same as the second target based on the product, the method also includes: in response to determining that the historical frame does not include a target that is the same as the first target based on the generated information, obtaining third time information and a third image feature vector of a third target included in a video frame in a second target video, the second target video being shot by a camera different from the camera that shot the first target video; determining a third distance between the first image feature vector and the third image feature vector; calculating a second time difference between the first time information and the third time information; and generating information for characterizing the probability that the first target is the same as the third target based on the third distance and the second time difference.

[0008] In some embodiments, the historical frame also includes at least one fourth target, and the method also includes: for a fourth target among at least one fourth target, obtaining fourth time information, third position information and fourth image feature vector of the fourth target; determining a fourth distance between the first image feature vector and the fourth image feature vector of the fourth target; calculating the third time difference between the first time information and the fourth time information; determining a fifth distance between the first target and the fourth target based on the first position information and the third position information of the fourth target; generating information for characterizing the probability that the first target is the same as the fourth target based on the determined fourth distance, the calculated third time difference and the determined fifth distance; and determining the target that is the same as the first target among the targets included in the historical frame based on the generated information.

[0009] In a second aspect, an embodiment of the present application provides an information generating device, which includes: a first acquisition unit, configured to acquire first time information, first position information, and a first image feature vector of a first target included in a current frame in a first target video, and second time information, second position information, and a second image feature vector of a second target included in a historical frame; a first determination unit, configured to determine a first distance between the first image feature vector and the second image feature vector; a first calculation unit, configured to calculate a first time difference between the first time information and the second time information; a second determination unit, configured to determine a second distance between the first target and the second target based on the first position information and the second position information; and a first generation unit, configured to generate information for characterizing the probability that the first target is the same as the second target based on the first distance, the first time difference, and the second distance.

[0010] In some embodiments, the first generation unit includes: a mapping subunit, configured to map the first time difference and the second distance to a preset interval; a calculation subunit, configured to calculate the product of the mapped first time difference, the mapped second distance and the first distance; and a generation subunit, configured to generate information for characterizing the probability that the first target is the same as the second target based on the product.

[0011] In some embodiments, the second target is associated with multiple groups of second time information, second position information and second image feature vectors; and the device also includes: a storage unit, configured to store the first time information, the first position information and the first image feature vector as a group of second time information, second position information and second image feature vector associated with the second target in response to determining that the first target is the same as the second target based on the generated information.

[0012] In some embodiments, the device also includes: a second acquisition unit, configured to obtain third time information and a third image feature vector of a third target included in a video frame in a second target video in response to determining that the historical frame does not include a target identical to the first target based on the generated information, wherein the second target video is shot by a camera different from the camera that shot the first target video; a third determination unit, configured to determine a third distance between the first image feature vector and the third image feature vector; a second calculation unit, configured to calculate a second time difference between the first time information and the third time information; and a second generation unit, configured to generate information for characterizing the probability that the first target is the same as the third target based on the third distance and the second time difference.

[0013] In some embodiments, the historical frame also includes at least one fourth target; and the device also includes: a third generating unit, configured to obtain, for a fourth target among the at least one fourth target, fourth time information, third position information and fourth image feature vector of the fourth target; determine a fourth distance between the first image feature vector and the fourth image feature vector of the fourth target; calculate a third time difference between the first time information and the fourth time information; determine a fifth distance between the first target and the fourth target based on the first position information and the third position information of the fourth target; generate information for characterizing the probability that the first target is the same as the fourth target based on the determined fourth distance, the calculated third time difference and the determined fifth distance; a fourth determining unit, configured to determine, based on the generated information, targets included in the historical frame that are the same as the first target.

[0014] In a third aspect, an embodiment of the present application provides a device, comprising: one or more processors; a storage device, on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described above in the first aspect.

[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method described above in the first aspect.

[0016] The information generation method and device provided by the embodiments of the present application obtain the first time information, first position information and first image feature vector of the first target included in the current frame of the first target video and the second time information, second position information and second image feature vector of the second target included in the historical frame; determine the first distance between the first image feature vector and the second image feature vector; calculate the first time difference between the first time information and the second time information; determine the second distance between the first target and the second target based on the first position information and the second position information; generate information for characterizing the probability that the first target is the same as the second target based on the first distance, the first time difference and the second distance, thereby providing an information generation mechanism based on spatiotemporal information and improving the accuracy of the generated information. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0018] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0019] Figure 2is a flow chart of an embodiment of the information generation method according to the present application;

[0020] Figure 3 is a schematic diagram of an application scenario of the information generation method according to the present application;

[0021] Figure 4 is a flow chart of another embodiment of the information generation method according to the present application;

[0022] Figure 5 is a schematic structural diagram of an embodiment of an information generating device according to the present application;

[0023] Figure 6 It is a structural diagram of a computer system of a server or terminal suitable for implementing an embodiment of the present application. DETAILED DESCRIPTION

[0024] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0025] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0026] Figure 1 An exemplary system architecture 100 to which embodiments of the information generating method or information generating apparatus of the present application can be applied is shown.

[0027] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0028] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as image acquisition applications, image processing applications, liveness detection applications, search applications, etc.

[0029] The terminal devices 101, 102, 103 can be hardware or software. When the terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. When the terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, to provide image acquisition services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0030] Server 105 may be a server that provides various services, such as a background server that provides support for applications installed on terminal devices 101, 102, and 103. Server 105 may obtain first time information, first position information, and a first image feature vector of a first target included in a current frame in a first target video recorded by terminal devices 101, 102, and 103, and second time information, second position information, and a second image feature vector of a second target included in a historical frame; determine a first distance between the first image feature vector and the second image feature vector; calculate a first time difference between the first time information and the second time information; determine a second distance between the first target and the second target based on the first position information and the second position information; and generate information for characterizing the probability that the first target is the same as the second target based on the first distance, the first time difference, and the second distance.

[0031] It should be noted that the information generation method provided in the embodiment of the present application can be executed by the server 105 or by the terminal devices 101, 102, 103. Accordingly, the information generation device can be set in the server 105 or in the terminal devices 101, 102, 103.

[0032] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0033] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0034] Continue to refer Figure 2 , shows a process 200 of an embodiment of an information generation method according to the present application. The information generation method comprises the following steps:

[0035] Step 201, obtaining first time information, first position information and first image feature vector of a first target included in a current frame in a first target video and second time information, second position information and second image feature vector of a second target included in a historical frame.

[0036] In this embodiment, the information generation method execution subject (eg Figure 1 The server shown in the figure can first obtain the first time information, the first position information and the first image feature vector of the first target included in the current frame of the first target video and the second time information, the second position information and the second image feature vector of the second target included in the historical frame. The first target video can be any video to be analyzed, for example, it can be obtained by shooting with a camera in the monitoring area. The current frame can be a video frame in the first target video to identify the target included in it, and the above-mentioned execution subject can extract a frame as the current frame every predetermined number of frames (for example, 5 frames) in the first target video. The historical frame can be a video frame in the first target video whose timestamp is earlier than the current frame and in which the target has been detected.

[0037] Here, the target may be a person, an animal, or a body part of a person or an animal, such as a human face, an animal head, etc. As an example, the target may also be other objects, such as a vehicle or a robot. The first target may be obtained by performing target detection on the current frame. The above-mentioned execution subject may also obtain the first position information of the first target included in the current frame through the target detection algorithm after acquiring the current frame. The first position information may be any information that can distinguish the area where the first target is displayed from other areas in the current frame, and may be the coordinates of the area where the first target is displayed in the current frame, etc. For example, when the area is a rectangle, the first position information may include the horizontal coordinate of the upper right corner vertex of the area, the vertical coordinate of the upper right corner vertex, the horizontal coordinate of the lower left corner vertex, and the vertical coordinate of the lower left corner vertex; or the horizontal coordinate of the center of the area, the vertical coordinate of the center, the length of the area, and the width of the area. The target detection algorithm may be implemented based on methods such as deep learning. The target detection algorithm is a technology well known to those skilled in the art, and this embodiment does not limit how to perform target detection.

[0038] The first time information of the first target can be obtained through the timestamp of the current frame. For example, the timestamp of the current frame is 2018-4-3, 17:46:17, and the first time information is used to characterize this time. The first image feature vector of the first target can be obtained by extracting image features of the area displaying the first target in the current frame. As an example, a convolutional neural network can be used to extract image features. Image feature extraction is a technology well known to those skilled in the art. This embodiment does not limit how to extract image features. The second time information, second position information and second image feature vector of the second target included in the historical frame can be cached in a pre-set storage location. The second time information, second position information and second image feature vector can be obtained by referring to the first time information, first position information and first image feature vector.

[0039] Step 202: Determine a first distance between a first image feature vector and a second image feature vector.

[0040] In this embodiment, the execution subject may determine the first distance between the first image feature vector and the second image feature vector obtained in step 201. Here, the distance between two vectors includes but is not limited to Euclidean distance, Manhattan distance, Chebyshev distance, Minkowski distance, standardized Euclidean distance, Mahalanobis distance, angle cosine, Hamming distance, Jaccard distance, correlation distance and information entropy, as well as other distances between vectors currently known or to be developed in the future.

[0041] Step 203: Calculate a first time difference between the first time information and the second time information.

[0042] In this embodiment, the execution entity may calculate the first time difference between the first time information and the second time information obtained in step 201. For example, the time indicated by the first time information is 2018-4-3, 17:46:17, and the time indicated by the second time information is 2018-4-3, 17:46:37, then the first time difference is 20 seconds.

[0043] Step 204: Determine a second distance between the first target and the second target based on the first position information and the second position information.

[0044] In this embodiment, the execution subject may determine the second distance between the first target and the second target based on the first position information and the second position information obtained in step 201. The second distance between the first target and the second target may be the second distance between the center of the area displaying the first target in the current frame and the center of the area displaying the second target in the historical frame after aligning the current frame with the historical frame, or the second distance between the first target and the second target may be determined by the intersection over union (IOU) of the area displaying the first target in the current frame and the area displaying the second target in the historical frame. The larger the IOU, the closer the distance.

[0045] Step 205: Generate information for characterizing the probability that the first target and the second target are the same according to the first distance, the first time difference, and the second distance.

[0046] In this embodiment, the execution subject may generate information for characterizing the probability that the first target and the second target are the same according to the first distance determined in step 202, the first time difference calculated in step 203, and the second distance determined in step 204. The information for characterizing the probability that the first target and the second target are the same may be the similarity between the first target and the second target, or other information that may indicate whether the first target and the second target are the same, and the information may also include the confidence of the conclusion of whether they are the same.

[0047] Since the posture of the first target is not constant, the error is large when determining whether the first target is the same as the second target based only on the first distance obtained by the image features. On this basis, considering that the smaller the first time difference and the second distance are, the greater the probability that the first target is the same as the second target, the electronic device can adjust the first distance by the first time difference and the second distance to generate information for characterizing the probability that the first target is the same as the second target. As an example, the execution subject can reduce the first distance when the first time difference and / or the second distance are within a pre-set smaller range, and generate information for characterizing the probability that the first target is the same as the second target based on the reduced first distance.

[0048] In some optional implementations of the present embodiment, information for characterizing the probability that the first target is identical to the second target is generated based on the first distance, the first time difference, and the second distance, including: mapping the first time difference and the second distance to a preset interval; calculating the product of the mapped first time difference, the mapped second distance, and the first distance; and generating information for characterizing the probability that the first target is identical to the second target based on the product.

[0049] In this embodiment, the first time difference and the second distance can be mapped to between 0 and 1 using a Sigmoid function. The Sigmoid function is an S-shaped function commonly seen in biology, also known as an S-shaped growth curve. In addition, functions such as Softmax can also be used for mapping.

[0050] In some optional implementations of this embodiment, the second target is associated with multiple sets of second time information, second position information and second image feature vectors; and after generating information for characterizing the probability that the first target is the same as the second target based on the first distance, the first time difference and the second distance, the method also includes: in response to determining that the first target is the same as the second target based on the generated information, storing the first time information, the first position information and the first image feature vector as a set of second time information, second position information and second image feature vector associated with the second target.

[0051] In the present embodiment, the second target is associated with multiple sets of second time information, second position information and second image feature vectors, thereby improving the success rate of matching the first target with the second target. After determining that the first target and the second target are the same based on the generated information, the information of the first target and the information of the second target can be merged to facilitate subsequent target identification. In addition, after the first time information, the first position information and the first image feature vector are stored as a set of second time information, second position information and second image feature vector associated with the second target, a set of second time information, second position information and second image feature vector associated with the second target that is earlier can also be deleted to save storage space.

[0052] In some optional implementations of the present embodiment, the historical frame also includes at least one fourth target, and the method also includes: for a fourth target among the at least one fourth target, obtaining fourth time information, third position information and fourth image feature vector of the fourth target; determining a fourth distance between the first image feature vector and the fourth image feature vector of the fourth target; calculating the third time difference between the first time information and the fourth time information; determining a fifth distance between the first target and the fourth target based on the first position information and the third position information of the fourth target; generating information for characterizing the probability that the first target is the same as the fourth target based on the determined fourth distance, the calculated third time difference and the determined fifth distance; and determining the target that is the same as the first target among the targets included in the historical frame based on the generated information.

[0053] In the present method, the historical frame includes multiple targets, and the target that is the same as the first target among the multiple targets can be determined. The target with the largest probability indicated in the information generated for the multiple targets and a probability exceeding a preset threshold can be determined as the target that is the same as the first target.

[0054] Continue to see Figure 3 , Figure 3 FIG. 1 is a schematic diagram of an application scenario of the information generation method according to this embodiment. Figure 3 In the application scenario, the server 301 can obtain the first time information, the first position information and the first image feature vector of the first target 3021 included in the current frame 302 in the first target video, and the second time information, the second position information and the second image feature vector of the second target 3031 included in the historical frame 303; determine the first distance between the first image feature vector and the second image feature vector; calculate the first time difference between the first time information and the second time information; determine the second distance between the first target 3021 and the second target 3031 based on the first position information and the second position information; and generate information for characterizing the probability that the first target 3021 is the same as the second target 3031 based on the first distance, the first time difference and the second distance.

[0055] The method provided by the above-mentioned embodiment of the present application obtains the first time information, first position information and first image feature vector of the first target included in the current frame of the first target video and the second time information, second position information and second image feature vector of the second target included in the historical frame; determines the first distance between the first image feature vector and the second image feature vector; calculates the first time difference between the first time information and the second time information; determines the second distance between the first target and the second target based on the first position information and the second position information; generates information for characterizing the probability that the first target is the same as the second target based on the first distance, the first time difference and the second distance, thereby providing an information generation mechanism based on spatiotemporal information and improving the accuracy of the generated information.

[0056] Further references Figure 4 , which shows a process 400 of another embodiment of the information generation method. The process 400 of the information generation method includes the following steps:

[0057] Step 401, obtaining first time information, first position information and first image feature vector of a first target included in a current frame in a first target video and second time information, second position information and second image feature vector of a second target included in a historical frame.

[0058] In this embodiment, the information generation method execution subject (eg Figure 1 The server shown in the figure can first obtain the first time information, first position information and first image feature vector of the first target included in the current frame of the first target video and the second time information, second position information and second image feature vector of the second target included in the historical frame.

[0059] Step 402: Determine a first distance between a first image feature vector and a second image feature vector.

[0060] In this embodiment, the execution entity may determine the first distance between the first image feature vector and the second image feature vector obtained in step 401 .

[0061] Step 403: Calculate a first time difference between the first time information and the second time information.

[0062] In this embodiment, the execution entity may calculate the first time difference between the first time information obtained in step 401 and the second time information.

[0063] Step 404: Determine a second distance between the first target and the second target based on the first position information and the second position information.

[0064] In this embodiment, the execution entity may determine the second distance between the first target and the second target according to the first position information and the second position information acquired in step 401 .

[0065] Step 405: Generate information for characterizing the probability that the first target and the second target are the same according to the first distance, the first time difference, and the second distance.

[0066] In this embodiment, the execution entity may generate information for characterizing the probability that the first target is identical to the second target based on the first distance determined in step 402 , the first time difference calculated in step 403 , and the second distance determined in step 404 .

[0067] Step 406 , in response to determining that the historical frame does not include a target identical to the first target according to the generated information, obtaining third time information and a third image feature vector of a third target included in the video frame in the second target video.

[0068] In this embodiment, the execution subject can obtain the third time information and the third image feature vector of the third target included in the video frame of the second target video in response to determining that the historical frame does not include the target that is the same as the first target according to the information generated in step 405, and the second target video is obtained by shooting a camera different from the camera that shoots the first target video. The camera different from the camera that shoots the first target video can be another camera other than the camera in the same monitoring area. For example, if the monitoring area is a convenience store, the video shot by camera A in the convenience store can be used as the first target video, and the video shot by other cameras in the convenience store except camera A can be used as the second target video. The method for obtaining the third time information and the third image feature vector of the third target can refer to the first time information and the first image feature vector of the first target and the second time information and the second image feature vector of the second target.

[0069] Step 407: Determine a third distance between the first image feature vector and the third image feature vector.

[0070] In this embodiment, the execution subject may determine a third distance between the first image feature vector obtained in step 401 and the third image feature vector obtained in step 406. The third distance may be determined by referring to the first distance.

[0071] Step 408: Calculate a second time difference between the first time information and the third time information.

[0072] In this embodiment, the execution entity may calculate the second time difference between the first time information obtained in step 401 and the third time information obtained in step 406. The calculation method of the second time difference may refer to the first time difference.

[0073] Step 409: Generate information for characterizing the probability that the first target is identical to the third target according to the third distance and the second time difference.

[0074] In this embodiment, the execution subject may generate information for characterizing the probability that the first target is identical to the third target based on the third distance determined in step 407 and the second time difference calculated in step 408. Here, the third distance may be adjusted based on the second time difference to generate information for characterizing the probability that the first target is identical to the third target based on the third distance and the second time difference, and the specific method of information generation in step 205 may be referred to.

[0075] In this embodiment, the operations of step 401, step 402, step 403, step 404, and step 405 are substantially the same as the operations of step 201, step 202, step 203, step 204, and step 205, and are not described in detail herein.

[0076] from Figure 4 It can be seen that Figure 2 Compared with the corresponding embodiment, in the process 400 of the information generation method in this embodiment, after the target identical to the current frame is not detected in the historical frames taken by a single camera, the information of the targets detected by other cameras is obtained, and based on this, it is judged whether the video frames taken by other cameras include the target identical to the current frame. Therefore, the scheme described in this embodiment realizes cross-camera target recognition, and after the target identical to the current frame is not detected in the historical frames, it is judged whether the video frames taken by other cameras include the target identical to the current frame, thereby reducing the amount of data processing and improving the target recognition efficiency.

[0077] Further references Figure 5As an implementation of the methods shown in the above figures, the present application provides an embodiment of an information generating device, which is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0078] like Figure 5 As shown, the information generating device 500 of this embodiment includes: a first acquiring unit 501, a first determining unit 502, a first calculating unit 503, a second determining unit 504, and a first generating unit 505. The first acquiring unit 501 is configured to acquire the first time information, the first position information, and the first image feature vector of the first target included in the current frame in the first target video, and the second time information, the second position information, and the second image feature vector of the second target included in the historical frame; the first determining unit 502 is configured to determine the first distance between the first image feature vector and the second image feature vector; the first calculating unit 503 is configured to calculate the first time difference between the first time information and the second time information; the second determining unit 504 is configured to determine the second distance between the first target and the second target according to the first position information and the second position information; the first generating unit 505 is configured to generate information for characterizing the probability that the first target and the second target are the same according to the first distance, the first time difference, and the second distance.

[0079] In this embodiment, the specific processing of the first acquisition unit 501, the first determination unit 502, the first calculation unit 503, the second determination unit 504, and the first generation unit 505 of the information generation device 500 can refer to Figure 2 Corresponding to step 201, step 202, step 203, step 204 and step 205 in the embodiment.

[0080] In some optional implementations of this embodiment, the first generation unit includes: a mapping subunit, configured to map the first time difference and the second distance to a preset interval; a calculation subunit, configured to calculate the product of the mapped first time difference, the mapped second distance and the first distance; and a generation subunit, configured to generate information for characterizing the probability that the first target is the same as the second target based on the product.

[0081] In some optional implementations of this embodiment, the second target is associated with multiple groups of second time information, second position information and second image feature vectors; and the device also includes: a storage unit, configured to store the first time information, the first position information and the first image feature vector as a group of second time information, second position information and second image feature vector associated with the second target in response to determining that the first target is the same as the second target based on the generated information.

[0082] In some optional implementations of this embodiment, the device also includes: a second acquisition unit, configured to obtain third time information and a third image feature vector of a third target included in a video frame in a second target video in response to determining based on the generated information that the historical frame does not include a target that is the same as the first target, wherein the second target video is shot by a camera different from the camera that shot the first target video; a third determination unit, configured to determine a third distance between the first image feature vector and the third image feature vector; a second calculation unit, configured to calculate a second time difference between the first time information and the third time information; and a second generation unit, configured to generate information for characterizing the probability that the first target is the same as the third target based on the third distance and the second time difference.

[0083] In some optional implementations of this embodiment, the historical frame also includes at least one fourth target; and the device also includes: a third generating unit, configured to obtain, for a fourth target among the at least one fourth target, fourth time information, third position information and fourth image feature vector of the fourth target; determine a fourth distance between the first image feature vector and the fourth image feature vector of the fourth target; calculate a third time difference between the first time information and the fourth time information; determine a fifth distance between the first target and the fourth target based on the first position information and the third position information of the fourth target; generate information for characterizing the probability that the first target is the same as the fourth target based on the determined fourth distance, the calculated third time difference and the determined fifth distance; a fourth determining unit, configured to determine, based on the generated information, targets included in the historical frame that are the same as the first target.

[0084] The device provided by the above-mentioned embodiments of the present application obtains the first time information, first position information and first image feature vector of the first target included in the current frame of the first target video and the second time information, second position information and second image feature vector of the second target included in the historical frame; determines the first distance between the first image feature vector and the second image feature vector; calculates the first time difference between the first time information and the second time information; determines the second distance between the first target and the second target based on the first position information and the second position information; generates information for characterizing the probability that the first target and the second target are the same based on the first distance, the first time difference and the second distance, thereby providing an information generation mechanism based on spatiotemporal information and improving the accuracy of the generated information.

[0085] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 suitable for implementing a server or terminal of an embodiment of the present application. Figure 6 The server or terminal shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0086] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0087] The following components can be connected to the I / O interface 605: an input section 606 including such as a keyboard, a mouse, etc.; an output section 607 including such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0088] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above functions defined in the method of the present application are executed. It should be noted that the computer-readable medium described in the present application can be a computer-readable signal medium or a computer-readable medium or any combination of the above two. The computer-readable medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, an apparatus or a device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, an apparatus or a device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0089] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as C or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0090] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0091] The units involved in the embodiments described in the present application may be implemented by software or by hardware. The units described may also be set in a processor, for example, may be described as: a processor includes a first acquisition unit, a first determination unit, a first calculation unit, a second determination unit, and a first generation unit. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the first generation unit may also be described as "a unit configured to generate information for characterizing the probability that the first target is the same as the second target based on the first distance, the first time difference and the second distance".

[0092] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the device, the device: obtains the first time information, first position information and first image feature vector of the first target included in the current frame of the first target video, and the second time information, second position information and second image feature vector of the second target included in the historical frame; determines the first distance between the first image feature vector and the second image feature vector; calculates the first time difference between the first time information and the second time information; determines the second distance between the first target and the second target based on the first position information and the second position information; generates information for characterizing the probability that the first target and the second target are the same based on the first distance, the first time difference and the second distance.

[0093] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. A method for generating information, comprising: Acquire first time information, first position information, and a first image feature vector of a first target included in a current frame in a first target video, and second time information, second position information, and a second image feature vector of a second target included in a historical frame; determining a first distance between the first image feature vector and the second image feature vector; Calculating a first time difference between the first time information and the second time information; Determine a second distance between the first target and the second target according to the first position information and the second position information; Generate information for characterizing the probability that the first target is the same as the second target based on the first distance, the first time difference and the second distance, including: mapping the first time difference and the second distance to a preset interval; calculating the product of the mapped first time difference, the mapped second distance and the first distance; and generate information for characterizing the probability that the first target is the same as the second target based on the product.

2. The method according to claim 1, wherein: The second target is associated with a plurality of sets of second time information, second position information and second image feature vectors; and After generating information characterizing the probability that the first target is identical to the second target according to the first distance, the first time difference, and the second distance, the method further includes: In response to determining that the first target is the same as the second target based on the generated information, the first time information, the first position information and the first image feature vector are stored as a set of second time information, second position information and second image feature vector associated with the second target.

3. The method according to claim 1, wherein: After generating information characterizing the probability that the first target is the same as the second target according to the product, the method further includes: In response to determining that the historical frame does not include a target identical to the first target according to the generated information, obtaining third time information and a third image feature vector of a third target included in a video frame in a second target video, where the second target video is shot by a camera different from the camera that shot the first target video; determining a third distance between the first image feature vector and the third image feature vector; Calculating a second time difference between the first time information and the third time information; Information representing a probability that the first target is identical to the third target is generated according to the third distance and the second time difference.

4. The method according to any one of claims 1 to 3, wherein: The historical frame also includes at least one fourth target; as well as The method further comprises: For a fourth target among the at least one fourth target, obtaining fourth time information, third position information and a fourth image feature vector of the fourth target; determining a fourth distance between the first image feature vector and the fourth image feature vector of the fourth target; calculating a third time difference between the first time information and the fourth time information; determining a fifth distance between the first target and the fourth target based on the first position information and the third position information of the fourth target; generating information for characterizing the probability that the first target is the same as the fourth target based on the determined fourth distance, the calculated third time difference and the determined fifth distance; Determine, according to the generated information, a target that is the same as the first target among the targets included in the historical frame.

5. An information generating device, comprising: A first acquisition unit is configured to acquire first time information, first position information, and a first image feature vector of a first target included in a current frame in a first target video, and second time information, second position information, and a second image feature vector of a second target included in a historical frame; a first determining unit, configured to determine a first distance between the first image feature vector and the second image feature vector; A first calculation unit, configured to calculate a first time difference between the first time information and the second time information; a second determining unit, configured to determine a second distance between the first target and the second target according to the first position information and the second position information; A first generating unit is configured to generate information for characterizing the probability that the first target is the same as the second target based on the first distance, the first time difference and the second distance, including: a mapping subunit, configured to map the first time difference and the second distance to a preset interval; a calculating subunit, configured to calculate the product of the mapped first time difference, the mapped second distance and the first distance; and a generating subunit, configured to generate information for characterizing the probability that the first target is the same as the second target based on the product.

6. The device according to claim 5, wherein: The second target is associated with a plurality of sets of second time information, second position information and second image feature vectors; as well as The device also includes: A storage unit is configured to store the first time information, the first position information and the first image feature vector as a set of second time information, second position information and second image feature vector associated with the second target in response to determining that the first target is the same as the second target based on the generated information.

7. The device according to claim 5, wherein: The device also includes: A second acquisition unit is configured to, in response to determining that the historical frame does not include a target identical to the first target according to the generated information, acquire third time information and a third image feature vector of a third target included in a video frame in a second target video, where the second target video is shot by a camera different from the camera that shot the first target video; a third determining unit, configured to determine a third distance between the first image feature vector and the third image feature vector; A second calculation unit, configured to calculate a second time difference between the first time information and the third time information; A second generating unit is configured to generate information representing a probability that the first target is the same as the third target according to the third distance and the second time difference.

8. The device according to any one of claims 5 to 7, wherein: The historical frame also includes at least one fourth target; as well as The device also includes: a third generating unit configured to obtain, for a fourth target among the at least one fourth target, fourth time information, third position information and a fourth image feature vector of the fourth target; determine a fourth distance between the first image feature vector and the fourth image feature vector of the fourth target; calculate a third time difference between the first time information and the fourth time information; determine a fifth distance between the first target and the fourth target based on the first position information and the third position information of the fourth target; and generate information for characterizing the probability that the first target is the same as the fourth target based on the determined fourth distance, the calculated third time difference and the determined fifth distance; The fourth determining unit is configured to determine, according to the generated information, a target that is the same as the first target among the targets included in the historical frame.

9. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 4.

10. A computer readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Machine vision recognition system based on cooperation of artificial error correction mechanism and deep learning network

    CN106067031A