Information retrieval method, device and electronic equipment
By displaying the image list and highlighting the selected target in the information retrieval system, and displaying the location information of the target monitoring equipment on the map, the problem of difficult selection for users in the case of overlapping multiple targets is solved, and the efficiency of information retrieval and users are improved. experience.
Patent Information
- Application Number
- CN202010674732.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-14
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-07-14
AI Technical Summary
In scenarios such as video surveillance, when users select targets in original images, it is easy to cause misoperation due to overlapping of multiple targets, making the operation difficult, affecting the efficiency of information retrieval and user experience.
An information retrieval method and device are provided. By acquiring and displaying an image list, the selected target is highlighted, ensuring that the user can conveniently and accurately select the target to be retrieved, and perform retrieval based on the selected target. In addition, by obtaining the location information of the target monitoring device, the identification of the target image captured by the target monitoring device is displayed on the map to help users understand the location of the target.
It improves the accuracy and convenience for users to select targets in image lists, reduces misoperations, enhances the efficiency and user experience of information retrieval, and enables users to understand the location of targets more clearly.
Smart Images

Figure CN111813979B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information retrieval, and in particular to an information retrieval method, device and electronic equipment. Background Art
[0002] In video surveillance and other scenarios, information retrieval is often required, and this information retrieval mainly uses images as retrieval conditions. When performing retrieval, matching snapshot images can be retrieved from the stored snapshot images based on the similarity between the target image to be retrieved and the snapshot images stored by each monitoring device, and the matching snapshot images can be used as retrieval results.
[0003] In the prior art, the user needs to select the target to be retrieved in the original image by clicking or other operations.
[0004] Since there are likely to be multiple targets in the original image and there are overlaps between the multiple targets, users may easily make mistakes and fail to select the target they want to retrieve. The operation is difficult, not conducive to information retrieval, and the user experience is poor. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide an information retrieval method, device and electronic device to improve the user experience when performing information retrieval. The specific technical solution is as follows:
[0006] In a first aspect, an embodiment of the present invention provides an information retrieval method, the method comprising:
[0007] Acquire a search image, wherein the search image includes a search target;
[0008] Acquire the image of the retrieval target and display an image list, wherein the image list includes the image of the retrieval target;
[0009] When any image of the search target is selected in the image list, the search target corresponding to the selected image is highlighted in the search image;
[0010] A search instruction for the selected search target image is acquired, and a search is performed based on the selected search target image.
[0011] In a second aspect, an embodiment of the present invention provides an information retrieval method, the method comprising:
[0012] Acquire location information of a target monitoring device determined based on a search condition, wherein the search condition includes: a search target image and a selected monitoring device, wherein the target monitoring device is: a monitoring device whose captured image matches the image of the search target among the selected monitoring devices included in the search condition;
[0013] Based on the location information, an identification indicating that the target monitoring device has captured an image of the retrieval target is displayed on the map.
[0014] In a third aspect, an embodiment of the present invention provides an information retrieval device, the device comprising:
[0015] An image acquisition module, used to acquire a search image, wherein the search image includes a search target;
[0016] An image list display module, used to obtain the image of the search target and display an image list, wherein the image list includes the image of the search target;
[0017] A highlighting module, configured to highlight the search target corresponding to any one of the search target images in the search image when the image is selected from the image list;
[0018] The information retrieval module is used to obtain a retrieval instruction for the image of the selected retrieval target and perform retrieval based on the image of the selected retrieval target.
[0019] In a fourth aspect, an embodiment of the present invention provides an information retrieval device, the device comprising:
[0020] A location information acquisition module, used to acquire location information of a target monitoring device determined based on a search condition, wherein the search condition includes: a search target image and a selected monitoring device, and the target monitoring device is: a monitoring device whose captured image matches the search target image among the selected monitoring devices included in the search condition;
[0021] The fourth identification display module is used to display an identification indicating the image of the retrieval target captured by the target monitoring device on the map based on the location information.
[0022] In a fifth aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, wherein:
[0023] Memory, used to store computer programs;
[0024] The processor is used to implement any of the above-mentioned method steps when executing the program stored in the memory.
[0025] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the method steps described above is implemented.
[0026] In a seventh aspect, an embodiment of the present invention provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the method steps described above.
[0027] It is not necessary to achieve all the advantages described below at the same time to implement any embodiment of the present invention.
[0028] In one or more embodiments provided by the present invention, an electronic device can obtain a search image, wherein the search image includes a search target, obtain an image of the search target, and display an image list, wherein the image list includes the image of the search target, and when any image of the search target is selected in the image list, the search target corresponding to the selected image is highlighted in the search image, a search instruction for the image of the selected search target is obtained, and a search is performed based on the image of the selected search target. Since the electronic device can display an image list, and when any image of the search target is selected in the image list, the search target corresponding to the selected image is highlighted in the search image, the user can conveniently and accurately select the image of the target to be retrieved in the image list, and since the images of the search targets will not overlap in the image list, it is not easy to cause misoperation, which can improve the convenience of user operation, facilitate information retrieval, and improve user experience.
[0029] In one or more embodiments provided by the present invention, an electronic device can obtain the location information of a target monitoring device determined based on a search condition, wherein the search condition includes: an image of the search target and a selected monitoring device, and the target monitoring device is: a monitoring device whose captured image matches the image of the search target among the selected monitoring devices included in the search condition, and then based on the location information, an identifier representing the image captured by the target monitoring device of the search target is displayed on a map. Since the electronic device can display an identifier representing the image captured by the target monitoring device of the search target on a map based on the location information of the target monitoring device, the user can easily view the search results, and the user can understand the spatial positional relationship of the target monitoring device, and then understand the location where the search target has appeared, which can improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1 A flowchart of a first information retrieval method provided by an embodiment of the present invention;
[0032] FIG. 2( a ) is a schematic diagram of a search image provided by an embodiment of the present invention;
[0033] FIG2( b ) is a schematic diagram of an image list provided by an embodiment of the present invention;
[0034] FIG2( c ) is another schematic diagram of a search image provided by an embodiment of the present invention;
[0035] FIG2( d ) is another schematic diagram of an image list provided by an embodiment of the present invention;
[0036] FIG3( a ) is another schematic diagram of a search image provided by an embodiment of the present invention;
[0037] FIG3( b ) is another schematic diagram of an image list provided by an embodiment of the present invention;
[0038] Figure 4 A flowchart of a second information retrieval method provided by an embodiment of the present invention;
[0039] Figure 5 for Figure 4 A specific flow chart of step S402 in the illustrated embodiment;
[0040] Figure 6 Based on Figure 4 A flow chart of a method for displaying a captured image in the illustrated embodiment;
[0041] Figure 7 A schematic diagram of the display effect of a map image provided by an embodiment of the present invention;
[0042] Figure 8 Based on Figure 4 A flow chart showing a display method of an identification of a target image captured by a target monitoring device in the embodiment shown;
[0043] Fig. 9 Another schematic diagram of the display effect of the map image provided by the embodiment of the present invention;
[0044] Fig.10 A schematic diagram of the display effect of the action trajectory provided by an embodiment of the present invention;
[0045] Fig.11 A schematic diagram of the structure of a first information retrieval device provided by an embodiment of the present invention;
[0046] Fig.12 A schematic diagram of the structure of a second information retrieval device provided by an embodiment of the present invention;
[0047] Fig.13A schematic diagram of the structure of a first electronic device provided by an embodiment of the present invention;
[0048] Fig.14 Another structural schematic diagram of the first electronic device provided by an embodiment of the present invention;
[0049] Fig.15 A schematic diagram of the structure of a second electronic device provided by an embodiment of the present invention;
[0050] Fig.16 Another structural schematic diagram of a second electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention.
[0052] In order to improve the convenience of user operation, facilitate information retrieval, and improve user experience, the embodiments of the present invention provide an information retrieval method, device, electronic device, computer-readable storage medium, and computer program product.
[0053] The following first introduces the first information retrieval method provided by the embodiment of the present invention. The first information retrieval method provided by the embodiment of the present invention can be applied to any electronic device that needs to perform information retrieval, for example, a mobile phone, a computer, a monitoring terminal, etc., which is not specifically limited here. For the convenience of description, it is referred to as an electronic device in the following.
[0054] like Figure 1 As shown, an information retrieval method, the method comprising:
[0055] S101, obtaining a search image;
[0056] Wherein, the retrieval image includes a retrieval target.
[0057] S102, acquiring images of the search target and displaying an image list;
[0058] The image list includes the images of the retrieval target.
[0059] S103, when any image of the search target is selected in the image list, highlighting the search target corresponding to the selected image in the search image;
[0060] S104, obtaining a search instruction for the selected search target image, and performing a search based on the selected search target image.
[0061] It can be seen that in the solution provided by the embodiment of the present invention, the electronic device can obtain a search image, wherein the search image includes a search target, obtain an image of the search target, and display an image list, wherein the image list includes the image of the search target, and when any image of the search target is selected in the image list, the search target corresponding to the selected image is highlighted in the search image, a search instruction for the image of the selected search target is obtained, and a search is performed based on the image of the selected search target. Since the electronic device can display an image list, and when any image of the search target is selected in the image list, the search target corresponding to the selected image is highlighted in the search image, the user can conveniently and accurately select the image of the target to be retrieved in the image list, and since the images of the search targets will not overlap in the image list, it is not easy to cause misoperation, which can improve the convenience of user operation, facilitate information retrieval, and improve user experience.
[0062] When information retrieval is required, the user can select or provide a retrieval image to be retrieved, wherein the retrieval image includes a retrieval target, which can be a creature, a building, a vehicle, etc., and is not specifically limited here.
[0063] The above-mentioned retrieval image can be an image uploaded by the user, or an image selected by the user from images stored in the electronic device, or an image selected from images stored in a device connected to the electronic device for communication, which is reasonable.
[0064] For example, the electronic device is equipped with a monitoring client, through which the images captured by the monitoring platform during the monitoring of the shopping mall A can be viewed. Then, when the user wants to retrieve relevant information of the target R, the monitoring image including the target R can be selected as the retrieval image.
[0065] In order to clearly display the search target and facilitate user operation, the electronic device can perform the above step S102, that is, obtain the image of the search target and display the image list. The image list includes the image of the search target.
[0066] In one embodiment, the electronic device can extract the images of each search target from the search image and display them in the image list, so that the images of each search target can be clearly displayed without overlapping, which is convenient for the user to select the search target he wants to search.
[0067] In another embodiment, the image of the retrieval target can be an image that can represent the retrieval target obtained from other means, that is, the image of the retrieval target can be an image that can clearly see the retrieval target. For example, the retrieval image is an image including multiple targets, and the image of the retrieval target can be a separate image of each target. In this embodiment, the images of each retrieval target can be stored in the retrieval device in advance, and then after the retrieval target in the retrieval image is identified, the image corresponding to the identified retrieval target can be obtained from the retrieval device and then displayed in the image list.
[0068] The number of search targets in the search image can be one or more, which is not specifically limited here. If the number of search targets in the search image is one, then the image list will display the image of the one search target; if the number of search targets in the search image is more than one, then the image list will display the images of the more than one search targets.
[0069] For example, as shown in the retrieval image 210 of FIG2(a), which includes five retrieval targets, the electronic device can extract the images of the five retrieval targets from the retrieval image 210, and then display an image list 220 as shown in FIG2(b), in which the images of the five retrieval targets are displayed.
[0070] For another example, as shown in FIG2(c), the retrieval image 230 includes three retrieval targets. The electronic device can extract the images of the three retrieval targets from the retrieval image 230 and then display an image list 240 as shown in FIG2(d), in which the images of the three retrieval targets are displayed.
[0071] After viewing the above image list, the user can select the image of the search target that he wants to search from the image list. When the user selects any search target image in the image list, the electronic device can also execute the above step S103, that is, highlighting the search target corresponding to the selected image in the search image. In one embodiment, the user can select the image of the search target in the image list by clicking, long pressing, etc., and the image of the search target selected by the user is the image of the search target that needs to be searched.
[0072] Among them, the highlighting method can be bold display, luminous display, shadow display, or using different lines, colors, etc., which are all reasonable and are not specifically limited here.
[0073] Furthermore, in the above step S104, the electronic device may obtain a search instruction for the image of the selected search target, and then perform a search based on the image of the selected search target. In one embodiment, a user interface such as a search button and a confirmation button may be provided so that after the user selects any image of the search target in the image list, the user may determine to perform a search operation through the user interface.
[0074] After obtaining the search instruction, if the electronic device does not have a search function, the electronic device can send a search request including an image of the search target selected by the user to the search device, so that the search device searches in pre-stored surveillance images based on the image of the search target.
[0075] The above-mentioned retrieval device may be an intelligent device capable of image recognition. After receiving the image of the retrieval target, the retrieval device may search in the pre-stored surveillance images to find a surveillance image matching the image of the retrieval target. The surveillance image may be a snapshot image of the surveillance device or an image included in a surveillance video shot by the surveillance device, which is reasonable.
[0076] For example, if the surveillance images pre-stored by the retrieval device are snapshot images taken for monitoring of shopping mall A, then after receiving the image of the retrieval target included in the retrieval request, the retrieval device can search for snapshot images that match the image of the retrieval target from these snapshot images and return them to the electronic device. If the image of the retrieval target is an image of target B, then the retrieval device can search for snapshot images including target B and return them to the electronic device, so that the user can also view these snapshot images and complete the information retrieval.
[0077] Since the electronic device can obtain the image of the retrieval target and display the image list, the user can easily and accurately select the image of the retrieval target he wants to retrieve in the image list, which is less likely to cause misoperation, thereby improving the convenience of user operation and facilitating information retrieval.
[0078] As an implementation manner of an embodiment of the present invention, the step of acquiring the image of the retrieval target may include:
[0079] Determine the position information of the search target in the search image; and capture the image of the search target in the search image according to the position information of the search target.
[0080] In order to accurately capture the image of the search target from the search image, the electronic device can first determine the position information of the search target in the search image. The position information can be the diagonal corner coordinates of the rectangular box that can represent the position of the search target in the search image, the length, width and vertex coordinates of the rectangular box, etc., and of course, it can also be other information that can identify the position of the search target in the search image, which is not specifically limited here.
[0081] As an implementation mode, if the electronic device has a target recognition function, the electronic device can perform target recognition on the search image, determine the position information of the search target in the search image, and then capture the image of the search target in the search image according to the position information of the search target.
[0082] As another implementation, since the retrieval device has a target recognition function, in order to accurately and quickly recognize the retrieval image, the electronic device can send the retrieval image to the retrieval device. After receiving the retrieval image, the retrieval device can perform target recognition on the retrieval image, and then determine the position information of each retrieval target in the retrieval image.
[0083] The specific method of target recognition may be any target recognition method in the field of image processing, as long as the position information of the target in the search image can be recognized, and no specific limitation or explanation is given here.
[0084] After the retrieval device identifies the location information of each retrieval target, it can send the location information of each retrieval target to the electronic device, and the electronic device can also obtain the location information of each retrieval target, so as to intercept the image of the retrieval target in the retrieval image according to the location information of the retrieval target. Of course, the retrieval device can also intercept the image of the retrieval target in the retrieval image according to the location information of the retrieval target, and then send the intercepted image of the retrieval target to the electronic device, which is also reasonable.
[0085] It can be seen that in this embodiment, the electronic device can determine the position information of the retrieval target in the retrieval image, and then capture the image of the retrieval target in the retrieval image based on the position information of the retrieval target. In this way, it can be ensured that the image of the retrieval target in the image list and the image of the retrieval target in the retrieval image are consistent, and the user can intuitively see the retrieval target that is exactly the same as the retrieval target in the retrieval image in the image list, further improving the convenience of the user in selecting the retrieval target and improving the user experience.
[0086] As an implementation of an embodiment of the present invention, after the step of acquiring the search image, the method may further include:
[0087] Determine the position information of each search target in the search image; and for each search target, establish a corresponding relationship between the position information of the search target and the image of the search target in the image list.
[0088] Since the specific method of determining the position information of each search target in the search image has been introduced in the above embodiment, it will not be repeated here. After determining the position information of each search target in the search image, in order to conveniently highlight the search target corresponding to the image selected by the user in the search image, a corresponding relationship between the position information of the search target and the image of the search target in the image list can be established for each search target.
[0089] Accordingly, the step of highlighting the search target corresponding to the selected image in the search image may include:
[0090] According to the corresponding relationship, the position information of the retrieval target corresponding to the selected image in the retrieval image is determined as the target position information; based on the target position information, the retrieval target corresponding to the selected image is highlighted in the retrieval image.
[0091] When any image of a search target is selected in the above image list, the electronic device can determine the position information of the search target corresponding to the selected image in the search image according to the above correspondence, and use the position information as the target position information. After determining the target position information, the electronic device can highlight the search target corresponding to the selected image in the search image based on the target position information.
[0092] For example, the above image list includes 3 images of search targets in total, and the user selects the first search target image in the image list. The electronic device can determine the position information of the search target included in the first search target image in the search image based on the above correspondence, assuming that it is the coordinates of the four vertices of the identification box. Then the electronic device can use the coordinates of the four vertices as the target position information. Furthermore, the identification box represented by the coordinates of the four vertices is highlighted in the search image to achieve the effect of highlighting the search target.
[0093] It can be seen that in this embodiment, the electronic device can determine the position information of each search target in the search image, and for each search target, establish a corresponding relationship between the position information of the search target and the image of the search target in the image list, and then determine the position information of the search target corresponding to the selected image in the search image based on the corresponding relationship as the target position information, and based on the target position information, highlight the search target corresponding to the selected image in the search image. In this way, the electronic device can accurately and quickly determine the position information of the search target corresponding to the selected image in the search image based on the above-mentioned corresponding relationship, and then highlight the search target corresponding to the selected image in the search image.
[0094] As an implementation manner of an embodiment of the present invention, after the step of determining the position information of each search target in the search image, the method may further include:
[0095] Based on the position information, the mark of each search target is displayed in the search image.
[0096] In order to further facilitate the user to view and select the image of the search target that he wants to retrieve, the electronic device can display the identification of each search target in the search image based on the position information of each search target in the search image. At the same time, the identification of the image of each search target can also be displayed in the image list. The identification of the same search target in the search image corresponds to the identification of the image of the search target in the image list. Among them, the identification of the search target can be numbers, letters, icons, symbols, etc., which are all reasonable.
[0097] In order to display the search targets in an associated manner in the image list and facilitate the user to view and select, the electronic device may also display the identifier of each search target in the image list. In one embodiment, the identifier of each search target displayed in the image list may be the same as the identifier of each search target displayed in the search image. For example, if the identifier of search target m displayed in the search image is t1, then the identifier of search target m displayed in the image list may also be t1.
[0098] Of course, the identifiers of the search targets displayed in the image list and the identifiers of the search targets displayed in the search image may be different, which is also reasonable, as long as they can be shown to correspond to each other. For example, if the identifier of the search target m displayed in the search image is 10, then the identifier of the search target m displayed in the image list may be 10a.
[0099] It can be seen that in this embodiment, after determining the position information of each search target in the search image, the electronic device can display the identification of each search target in the search image based on the position information, and the identification of the image of each search target is displayed in the image list. The identification of the same search target in the search image corresponds to the identification of the image of the search target in the image list. In this way, it can further facilitate users to view and select search targets, and further improve user experience.
[0100] As an implementation of an embodiment of the present invention, when any image of a search target is selected in the image list, the method may further include:
[0101] The identification of the search target corresponding to the selected image is highlighted in the search image; and the identification of the image of the search target corresponding to the selected image is highlighted in the image list.
[0102] In the case where the identification of the retrieval target and the identification of the image of the retrieval target are respectively displayed in the retrieval image and the image list, after the user selects any image of the retrieval target in the above-mentioned image list, the electronic device can highlight the identification of the retrieval target corresponding to the selected image in the retrieval image. At the same time, it can also highlight the identification of the image of the retrieval target corresponding to the selected image in the image list, so as to facilitate the user to determine whether the retrieval target selected by the user is correct.
[0103] For example, the image list displays images of search target m1, search target m2, and search target m3, and the labels of the images of the three search targets are S1, S2, and S3 respectively. The labels of the three search targets in the search image are also S1, S2, and S3 respectively. If the user selects the image of search target m2 in the image list, the label S2 can be highlighted in the image list. At the same time, the label S2 is highlighted in the search image.
[0104] As an implementation, the electronic device may also highlight a selection box of the search target corresponding to the selected image in the search image. In order to more clearly display the search target selected by the user to be searched so that the user can confirm whether the selection is wrong, the electronic device may also highlight a selection box of the search target corresponding to the selected image in the search image.
[0105] Of course, the image of the search target selected by the user can also be highlighted in the image list, wherein the highlighting method can be a method of selecting the image of the search target by a frame, etc., which is not specifically limited here.
[0106] For example, the search image 410 shown in FIG3(a) includes five search targets, and the identifiers of the search targets are 1, 2, 3, 4, and 5. The image list 420 corresponding to the search image 410 is shown in FIG3(b), which includes images of the five search targets and their corresponding identifiers, which are the same as the identifiers of the five search targets in the search image 410, namely, 1, 2, 3, 4, and 5.
[0107] When the user clicks on the image of the search target identified as 1 in the image list 420, the electronic device obtains the search instruction and selects the search target identified as 1 in the search image 410 and the image list 420 respectively to achieve the purpose of highlighting. Of course, the identification 1 can also be highlighted in the search image 410 and the image list 420.
[0108] It can be seen that in this embodiment, when an image of any retrieval target is selected in the image list, the electronic device can highlight the logo and / or selection box of the selected retrieval target in the retrieval image, and can also highlight the logo and / or selection box of the selected retrieval target in the image list. In this way, the electronic device can display the image of the retrieval target more clearly, and the user can more conveniently and accurately select the image of the target to be retrieved, which is less likely to cause misoperation, and can further improve the convenience of user operation.
[0109] As an implementation manner of an embodiment of the present invention, after the step of determining the position information of each search target in the search image, the method may further include:
[0110] Based on the position information, a mark indicating that the search target is not selected is displayed in the search image.
[0111] In order to more clearly inform the user which search target or targets are not selected, the electronic device may determine the position information of each search target in the search image, and then display an indicator indicating that the search target is not selected in the search image based on the position information.
[0112] The mark indicating that the search target is not selected may be a preset color, such as red, green, blue, etc., or a preset character, such as a number, letter, text, etc. It may also be a preset icon, such as a cross icon, a hollow circle icon, etc., which is not specifically limited here.
[0113] Accordingly, after the above step of displaying the image list, the above method may further include:
[0114] A mark indicating that the search target image is not selected is displayed for the search target image in the image list.
[0115] Similarly, in order to more clearly inform the user which search target or targets are not selected, the electronic device may also display a mark indicating that the search target image is not selected for the search target image in the image list. The mark indicating that the search target image is not selected displayed in the image list may be the same as or different from the mark indicating that the search target image is not selected displayed in the search image.
[0116] In this case, when any image of the search target is selected in the image list, the step of highlighting the search target corresponding to the selected image in the search image may include:
[0117] When any image of the retrieval target is selected in the image list, the mark indicating that the retrieval target corresponding to the selected image is not selected in the retrieval image is replaced by a mark indicating that the retrieval target is selected, and the mark indicating that the selected image is not selected in the image list is replaced by a selected mark.
[0118] In order to more clearly inform the user which search target or targets are selected, when any search target image is selected in the image list, the electronic device can replace the mark indicating that the search target corresponding to the selected image is not selected in the search image with a mark indicating that the search target is selected, and replace the mark indicating that the selected image is not selected in the image list with a selected mark.
[0119] For example, the search image includes five search targets, and the displayed marks indicating that the search targets are not selected are A1, A2, A3, A4 and A5. The image list displays five search target images and marks indicating that they are not selected, which are A1, A2, A3, A4 and A5. When the user clicks on the image of the search target marked as A3 in the image list, the electronic device can replace the search image and the image marked as A3 in the image list with the selected mark B3, respectively, to inform the user that the search target corresponding to the mark B3 is currently selected.
[0120] It should be noted that, when the image of any retrieval target in the image list is converted from a selected state to an unselected state, the mark indicating that the retrieval target corresponding to the selected image is selected in the retrieval image is replaced by a mark indicating that the retrieval target is unselected, and the mark indicating that the selected image is selected in the image list is replaced by an unselected mark.
[0121] Preferably, in one embodiment, based on the position information, a mark indicating that the search target is not selected is displayed in the search image, which may be by adding a selection box of the first color to the search target in the search image; a mark indicating that the image of the search target is not selected is displayed on the image of the search target in the image list, which may be by adding a selection box of the second color to the image of the search target in the image list, where the first color and the second color may be the same (for example, both are green) or different (for example, the first color is light green and the second color is light blue). When any image of the search target is selected in the image list, the first color of the selection box of the currently selected search target in the search image is replaced with a third color, and the second color of the selection box of the currently selected image of the search target in the image list is replaced with a fourth color, and the third color and the fourth color may be the same (for example, both are red) or different (for example, the third color is red and the fourth color is yellow). It should be noted that when a target in the image list is converted from a selected state to an unselected state, the selection box color corresponding to the target in the search image will be restored to the first color, and the selection box color corresponding to the image of the target in the image list will be restored to the second color.
[0122] For another example, the search image includes three search targets, and the mark displayed in the search image indicating that the search target is not selected is a green selection box displayed for each search target. The image list displays images of three search targets and marks indicating that they are not selected, that is, a green selection box is displayed for the image of each search target. When the user clicks on the image of the first search target in the image list, the electronic device can display the search image and the green selection box corresponding to the first search target in the image list in red, respectively, to inform the user that the search target selected by the red selection box is currently selected.
[0123] It can be seen that in this embodiment, the electronic device can display a mark indicating that the search target is not selected in the search image based on the location information, and display a mark indicating that the search target is not selected for the image of the search target in the image list, and then when any image of the search target is selected in the image list, the mark indicating that the search target is not selected corresponding to the selected image in the search image is replaced with a mark indicating that the search target is selected, and the mark indicating that the selected image is not selected is replaced with a selected mark in the image list. In this way, it is further convenient for users to check whether the search target they have selected is correct, and the user experience is further improved.
[0124] Since the human eye is relatively sensitive to the brightness of colors, as an implementation of the present invention, the above-mentioned highlighting method can be a highlighting display. In this way, the selection box and / or logo of the selected search target can be highlighted simply and quickly, and a good highlighting effect can be achieved to attract sufficient attention of the user.
[0125] As an implementation of an embodiment of the present invention, after the step of acquiring the search image, the method may further include:
[0126] A search time input box and / or a list of monitored device IDs is displayed.
[0127] Since the surveillance image has the shooting time and the corresponding surveillance device used for shooting, the user can also search based on the shooting time and the surveillance device used for shooting when searching for information. Therefore, the electronic device can also display a retrieval time input box and / or a monitoring device identification list so that the user can select the retrieval time and / or monitoring device they want to retrieve.
[0128] The user can enter the time period or time point that he wants to search in the search time input box. The time period or time point can be one or more. The user can also select the identification of the monitoring device that he wants to search in the monitoring device identification list, and can select the identification of one monitoring device or multiple monitoring devices.
[0129] For example, the user can enter 10:00 on June 22, 2020 to 12:00 on June 22, 2020 in the search time input box, and can also enter the ID of the monitoring device to be searched in the monitoring device ID list. For example, it can be P1, P3, P4 and P7, then the user wants to search for monitoring images that match the image of the search target and are captured by monitoring devices identified as P1, P3, P4 and P7 during the period from 10:00 on June 22, 2020 to 12:00 on June 22, 2020.
[0130] It can be seen that in this embodiment, after acquiring the retrieval image, the electronic device can also display a retrieval time input box and / or a monitoring device identification list, so that retrieval can be performed based on the retrieval time and / or monitoring device identification and the image of the retrieval target, which can facilitate users to perform more comprehensive information retrieval based on time and monitoring device identification, further improve the convenience of user operation, and improve the user experience.
[0131] Corresponding to the above-mentioned first information retrieval method, the embodiment of the present invention further provides a second information retrieval method. The second information retrieval method provided by the embodiment of the present invention is introduced below.
[0132] The second information retrieval method provided in the embodiment of the present invention can be applied to any electronic device that needs to perform information retrieval, for example, a mobile phone, a computer, a monitoring terminal, etc., which is not specifically limited here. For the convenience of description, it is referred to as an electronic device in the following. The electronic device and the electronic device that executes the above-mentioned first information retrieval method can be the same device or different devices, which is not specifically limited here.
[0133] like Figure 4 As shown, an information retrieval method, the method comprising:
[0134] S401, obtaining location information of a target monitoring device determined based on a search condition;
[0135] Among them, the retrieval conditions include: the image of the retrieval target and the selected monitoring device, and the target monitoring device is: among the selected monitoring devices included in the retrieval conditions, the monitoring device whose captured image matches the image of the retrieval target in the captured image.
[0136] S402: Based on the location information, displaying an identification indicating that the target monitoring device has captured an image of the retrieval target on a map.
[0137] It can be seen that in the scheme provided by the embodiment of the present invention, the electronic device can obtain the location information of the target monitoring device determined based on the search conditions, wherein the search conditions include: the image of the search target and the selected monitoring device, and the target monitoring device is: among the selected monitoring devices included in the search conditions, the monitoring device whose captured image matches the search target image, and then based on the location information, the identification indicating that the target monitoring device has captured the image of the search target is displayed on the map. Since the electronic device can display the identification of the target monitoring device capturing the search target image on the map based on the location information of the target monitoring device, the user can conveniently view the search results, and can enable the user to understand the spatial location of the target monitoring device, and then understand the location where the search target has appeared, which can improve the user experience.
[0138] After performing information retrieval based on the retrieval conditions, the electronic device can obtain the location information of the target monitoring device determined based on the retrieval conditions, wherein the retrieval conditions may include: an image of the retrieval target and a selected monitoring device, and the target monitoring device is a monitoring device among the selected monitoring devices included in the retrieval conditions, and the captured image contains a captured image that matches the image of the retrieval target. The image of the retrieval target can be the image of the retrieval target in the first information retrieval method described above, that is, after performing retrieval using the first information retrieval method described above, the second information retrieval method provided by the embodiment of the present invention can be used to display an identification indicating that the target monitoring device has captured the image of the retrieval target.
[0139] In one embodiment, the location information of the target monitoring device may be sent by the retrieval device to the electronic device. Specifically, after the retrieval device obtains the retrieval result after performing the retrieval, the retrieval result may be sent to the electronic device, so that the electronic device can also receive the retrieval result sent by the retrieval device. The retrieval result may include the location information of the target monitoring device determined based on the retrieval condition.
[0140] When the retrieval device performs a search, it can search for an image that is taken by a monitoring device identified as the selected monitoring device and matches the retrieval target image from pre-stored monitoring images. This image is the corresponding captured image of the target monitoring device determined based on the retrieval conditions. Furthermore, the retrieval device can send the location information of the target monitoring device determined based on the retrieval conditions to the electronic device.
[0141] In another implementation, the electronic device may obtain an identifier of a target monitoring device determined based on a search condition, and then determine the location information of the target monitoring device from pre-stored location information of various monitoring devices.
[0142] In order to facilitate the user to view the search results, the electronic device can obtain the map in advance. After obtaining the search conditions, the electronic device can obtain the map where the target monitoring device corresponding to the search conditions is located. In one embodiment, the electronic device can pre-store the corresponding relationship between the identification of each monitoring device and the map to facilitate determining the map to be obtained.
[0143] As an implementation method, the map can be pre-stored in a preset database of the server, and when the electronic device needs to obtain a certain map or certain maps, the corresponding map can be loaded from the server. The map can be a map image or a GIS (Geographic Information System) map, etc., which is not specifically limited here.
[0144] After the electronic device obtains the above-mentioned location information, the above-mentioned step S402 can be executed, that is, based on the location information, an identification indicating that the target monitoring device has captured the image of the search target is displayed on the map.
[0145] Since the installation locations of various monitoring devices are fixed, the location information of the target monitoring device is known. Therefore, after the electronic device obtains the above location information, it can determine the location of the target monitoring device in the pre-acquired map, and then can display an identification on the map indicating that the target monitoring device has captured the image of the retrieval target.
[0146] In another embodiment, the location of each monitoring device can be pre-marked in the map, and after the electronic device obtains the above location information, it can hide the location identifier of the location that does not match the location information. That is, the location of other monitoring devices other than the above target monitoring device is not displayed in the map.
[0147] As an implementation method of the embodiment of the present invention, Figure 5 As shown, based on the above-mentioned location information, the step of displaying an identification indicating that the target monitoring device has captured an image of the retrieval target on a map may include:
[0148] S501, determining a display position of the target monitoring device in the map based on the position information;
[0149] In order to display the identification of the image of the retrieval target captured by the target monitoring device on the map, the electronic device first needs to determine the display position of the target monitoring device on the map. The electronic device can determine its display position on the map based on the location information of the target monitoring device, wherein the location information of the target monitoring device can be: the location of the target monitoring device on the map or the geographic location of the target monitoring device.
[0150] In one embodiment, the above-mentioned display position can be the exact position corresponding to the target monitoring device in the map determined based on the location information of the target monitoring device, or it can be a display position within a certain range of the exact position, as long as it can represent the approximate position of the target monitoring device in the map.
[0151] If the location information of the target monitoring device is the location of the target monitoring device in a map, the electronic device may determine the location information of the target monitoring device as the display location of the target monitoring device in the map.
[0152] If the location information of the target monitoring device is the geographical location of the target monitoring device, for example, longitude and latitude coordinates, then since the geographical location corresponding to each point in the map is fixed, the electronic device can convert the geographical location of the target monitoring device into the display position of the target monitoring device in the map.
[0153] S502: Displaying, at the display position, an identification indicating that the target monitoring device has captured an image of the retrieval target.
[0154] Once the display position of the target monitoring device in the map is determined, the electronic device can display an identification indicating that the target monitoring device has captured an image of the retrieval target at the determined display position.
[0155] Among them, the identifier representing the image of the retrieval target captured by the target monitoring device may include: a location identifier of the target monitoring device, a specified image among the captured images captured by the target monitoring device that matches the image of the retrieval target, and at least one of a display icon.
[0156] The location identifier of the target monitoring device is an identifier that can indicate the location of the target monitoring device in the map. For example, camera 1, camera 2, camera 3, etc. can be used as location identifiers. The specified image in the captured image that matches the image of the search target captured by the target monitoring device can be a random one or a preset one in the captured image, both of which are reasonable. The display icon can be used to indicate the total number of captured images that match the image of the search target captured by the target monitoring device. The display icon can be an operable icon, and the user can click on it and perform other operations.
[0157] It can be seen that in this embodiment, the electronic device can use at least one of the above three types of identification as an identification to indicate that the target monitoring device has captured the image of the retrieval target. No matter which identification is used, the target monitoring device can be clearly identified on the map, and the location where the retrieval target has appeared can be identified, which is convenient for users to view.
[0158] As an implementation method of the embodiment of the present invention, Figure 6 As shown, the above method may also include:
[0159] S601, obtaining a captured image captured by the target monitoring device and matching the image of the search target;
[0160] In order to display to the user the captured image captured by the target monitoring device that matches the image of the retrieval target, the electronic device may also obtain the captured image captured by the target monitoring device that matches the image of the retrieval target.
[0161] For a target monitoring device, there may be multiple corresponding snapshot images that match the image of the search target. There may be multiple snapshot images that meet the search conditions. For example, a courier drives a courier vehicle r to deliver parcels in a residential area. He enters and exits different apartment buildings. He will be photographed multiple times by multiple monitoring devices or the same monitoring device. Then there will be multiple snapshot images that include the courier vehicle r. Then, when the search target included in the search conditions is the courier vehicle r, the target monitoring device will capture multiple snapshot images that match the search target image.
[0162] Since there are multiple captured images, if all of them are displayed, they will occupy a larger area in the map, which may affect the display of the captured images corresponding to other target monitoring devices and may cause a confusing display effect. Therefore, in one embodiment, the electronic device can display a specified image among the multiple captured images and a display icon.
[0163] The designated image among the multiple captured images may be a captured image randomly selected from the multiple captured images, or may be the earliest captured image sorted according to the capturing time, which is not specifically limited here.
[0164] S602: When a display instruction is obtained for a captured image captured by the target monitoring device and matching the image of the search target, the captured image is displayed in order of corresponding capturing time or similarity.
[0165] Furthermore, when a display instruction for a captured image captured by a target monitoring device and matching an image of a search target is obtained, the electronic device can display the captured image in the order of the corresponding capture time or similarity, wherein the display instruction is triggered based on an identifier indicating that the target monitoring device captured an image of the search target.
[0166] If the identifier indicating that the target monitoring device has captured the image of the retrieval target is a designated image and a display icon, then when a display instruction triggered by the display icon is obtained, the electronic device can display the designated image and the non-designated image at the same time.
[0167] For example, the location identifications of the target monitoring devices are: camera 1, camera 2, camera 3, camera 4, and the number of captured images corresponding to the four target monitoring devices is 1, 2, 3, and 4 respectively. Then the electronic device can pre-acquire the map where the four target monitoring devices are located, and then determine the display positions of the four target monitoring devices in the map, and display the location identifications of the target monitoring devices and the specified images and display icons in the multiple captured images in the map.
[0168] like Figure 7 In the map 710 shown, the designated image displayed by camera 1 is picture 1, and the display icon is "total 1"; the designated image displayed by camera 2 is picture 2, and the display icon is "total 2"; the designated image displayed by camera 3 is picture 3, and the display icon is "total 3"; the designated image displayed by camera 4 is picture 4, and the display icon is "total 4". The user can view the corresponding designated image and non-designated image by clicking the display icon.
[0169] In one embodiment, since the capture time of the captured image can represent the relationship between the appearance time and location of the retrieval target, in order to facilitate users to understand relevant information, the display order of multiple captured images can be sorted according to the capture time. The specific capture time sorting can be from early to late or from late to early, which is reasonable.
[0170] In another embodiment, the above similarity is the similarity between each captured image and the image of the retrieval target included in the retrieval condition. Since the similarity between each captured image and the image of the retrieval target included in the retrieval condition can indicate the possibility that the captured image is the image of the retrieval target. The higher the similarity, the higher the possibility that the captured image is the image of the retrieval target. On the contrary, the lower the similarity, the lower the possibility that the captured image is the image of the retrieval target. Therefore, the display order of multiple captured images can be displayed in order of similarity. The specific similarity sorting can be from high to low or from low to high, which is reasonable.
[0171] It can be seen that in this embodiment, the electronic device can obtain the captured image captured by the target monitoring device that matches the image of the retrieval target, and then when the display instruction for the captured image captured by the target monitoring device that matches the image of the retrieval target is obtained, the captured image is displayed according to the corresponding capture time sorting or similarity sorting. This can facilitate users to view the captured images, obtain more relevant information, and further improve the user experience.
[0172] As an implementation of the embodiment of the present invention, there may be multiple target monitoring devices.
[0173] The above step of displaying, on a map, an identification indicating that the target monitoring device has captured an image of the search target based on the location information may include:
[0174] Acquire multiple target map images corresponding to the target monitoring device; based on the location information, display in the target map image an identification indicating an image of the retrieval target captured by the target monitoring device.
[0175] In one implementation, the electronic device can select multiple target map images corresponding to the target monitoring device from multiple map images. Specifically, for monitoring places with a small scale and unchanged structure, such as residential areas, shopping malls, Baogong buildings, stations, and airports, map images can be used. The installation location of the monitoring device is fixed, so the corresponding relationship between the device identification of the monitoring device and the map image is fixed.
[0176] For example, two monitoring devices are installed at the gate of the community, identified as D0 and D1, and one monitoring device is installed at the garden of the community, identified as D2. Then the device identifications of the monitoring devices corresponding to the map image A1 at the gate of the community are D0 and D1, and the device identification of the monitoring device corresponding to the map image A2 of the garden of the community is D2. If the search conditions include the device identifications of the monitoring devices to be selected as D0, D1 and D2, then the electronic device can obtain the map image A1 and the map image A2 as the target map image.
[0177] For another example, the search conditions include the device identifiers of the selected monitoring devices as C1, C3 and C6, and the correspondence between the pre-stored device identifiers and the map is shown in the following table:
[0178]
[0179]
[0180] Then the electronic device can obtain the Figure 1 and Map 2 as the target map image so that the location information of the target monitoring device that meets the retrieval conditions can be displayed in the map after it is obtained.
[0181] In another embodiment, the electronic device can intercept multiple target map images corresponding to the target monitoring device from the map image. Since the map image may be a map image with a relatively large range and include a large number of monitoring devices, and the number of target monitoring devices is generally not too large, if the map image is directly used as the target map image, then the identification displayed in the map image indicating that the target monitoring device has captured the retrieved target image will be relatively scattered, which is not conducive to user viewing. Therefore, the electronic device can intercept multiple target map images corresponding to the target monitoring device from the map image based on the location information of the target monitoring device. The multiple target map images are map images that include the target monitoring device and have a smaller map range.
[0182] After acquiring the target map image, the electronic device can display an identification indicating that the target monitoring device has captured the image of the search target in the target map image based on the above-mentioned location information. The specific display method is the same as the method of displaying an identification indicating that the target monitoring device has captured the image of the search target in the map described above, and will not be repeated here.
[0183] It can be seen that in this embodiment, when there are multiple target monitoring devices, the electronic device can obtain multiple target map images corresponding to the target monitoring devices, and then display an identifier indicating that the target monitoring device has captured the image of the search target in the target map image based on the location information. When there are multiple target monitoring devices, the target map image can be accurately obtained and an identifier indicating that the target monitoring device has captured the image of the search target can be displayed in the target map image, which is convenient for users to view.
[0184] As an implementation method of the present invention, when there are multiple target map images, such as Figure 8 As shown, the step of displaying in the target map image an identification indicating that the target monitoring device has captured an image of the retrieval target may include:
[0185] S801, displaying a designated map image in the target map image in a preset window, and displaying an identification of the corresponding target monitoring device indicating that an image of the search target has been captured in the designated map image;
[0186] In this case, in order to clearly display the identification of each target monitoring device indicating that the image of the retrieved target has been captured, the electronic device can display the specified map image in the target map image in a preset window, and display the identification of the corresponding target monitoring device indicating that the image of the retrieved target has been captured in the specified map image.
[0187] The designated map image may be a map image randomly selected from a plurality of target map images, or may be a map image selected according to a certain rule, for example, the first map image among a plurality of target map images, etc., which is not specifically limited here.
[0188] S802: Display thumbnails of non-specified map images in the target map image at a display position different from the preset window.
[0189] While displaying the designated map image in the preset window, a thumbnail of a non-designated map image in the target map image can be displayed at a display position different from the preset window. The display position can be at the lower left, upper right, upper center, etc. of the interface, as long as it is different from the preset window, and is not specifically limited here. Preferably, the size of the preset window can be larger than the size of the display position different from the preset window, so that the designated map image can be clearly displayed in the preset window.
[0190] For example, Fig. 9 As shown, while the designated map image 910 is displayed in the preset window, thumbnails of the non-designated map image 920 and the non-designated map image 930 may be displayed at a display position different from the preset window at the lower left of the interface.
[0191] In one embodiment, the thumbnail of the non-specified map image may display an identifier of the corresponding target monitoring device indicating that the search target image has been captured, so that the user can easily know which target monitoring device or devices the non-specified map image corresponds to. Fig. 9 As shown, the identification camera 1 and camera 5 of the corresponding target monitoring device that have captured the retrieved target image can be displayed in the thumbnail 920 of the non-specified map image, and the identification camera 6 of the corresponding target monitoring device that has captured the retrieved target image can be displayed in the thumbnail 930 of the non-specified map image.
[0192] It can be seen that in this embodiment, when there are multiple target map images, the electronic device can display a specified map image in the target map image in a preset window, and display the mark of the corresponding target monitoring device indicating that the image of the search target is captured in the specified map image, and at the same time display the thumbnail of the non-specified map image in the target map image at a display position different from the preset window. In this way, the target map image can be clearly displayed, which is convenient for users to view.
[0193] As an implementation of the embodiment of the present invention, the above method may further include:
[0194] When a display instruction issued for the thumbnail is obtained, a non-specified map image corresponding to the display instruction is displayed in the preset window, and an identification of the corresponding target monitoring device indicating that an image of the retrieval target has been captured is displayed in the non-specified map image.
[0195] When the user wants to view a non-specified map image, the user can click or long press the thumbnail corresponding to the non-specified map image to trigger a display instruction. Then, the electronic device can display the non-specified map image corresponding to the display instruction in a preset window, and display the corresponding target monitoring device's identification indicating the image of the retrieval target captured in the non-specified map image for the user to view.
[0196] For example, Fig. 9 Taking the map shown as an example, when the user clicks on the thumbnail of the non-specified map image 920, the electronic device can display the non-specified map image 920 in the preset window. If the target monitoring device corresponding to the non-specified map image 920 is identified by camera 1 and camera 5 as the image capturing the retrieval target, the electronic device can display the identification camera 1 and the identification camera 5 in the non-specified map image 920 displayed in the preset window.
[0197] In one embodiment, after the non-specified map image corresponding to the display instruction is displayed in the preset window, the thumbnail of the map image originally displayed in the preset window can be displayed at the location where the thumbnail of the non-specified map image corresponding to the display instruction is located, that is, the thumbnail of the non-specified map image corresponding to the display instruction can be replaced with the thumbnail of the map image originally displayed in the preset window. In this way, when the user wants to view the map image originally displayed in the preset window again, a display instruction can be issued for the thumbnail of the map image, which is convenient for the user to operate.
[0198] It can be seen that in this embodiment, when the electronic device obtains a display instruction issued for a thumbnail, it can display a non-specified map image corresponding to the display instruction in a preset window, and display an identification of the corresponding target monitoring device indicating that the image of the retrieval target has been captured in the non-specified map image, thereby facilitating the user to switch the map image to be viewed, further improving the convenience of user operation.
[0199] As an implementation of an embodiment of the present invention, in order to facilitate the user to view the action-related information of the search target, the above method may further include:
[0200] The capturing time of the captured image captured by the target monitoring device and matching the image of the search target is obtained; based on the location information of the target monitoring device and the capturing time, the movement trajectory of the search target is displayed on a map.
[0201] The electronic device can display an identifier indicating the image of the search target captured by the target monitoring device on the map, can also display a captured image captured by the target monitoring device that matches the image of the search target, and can also display the movement trajectory of the search target. Specifically, the electronic device can obtain the capture time of the captured image captured by the target monitoring device that matches the image of the search target, and then according to the corresponding capture time of the target monitoring device, it can determine the time when the search target is captured within the capture range of the target monitoring device, and then based on the location information of the target monitoring device, it can draw the movement trajectory of the search target on the map and display it.
[0202] For example, Fig.10In the map 1010 shown, the display icon corresponding to camera 1 is "Total 2", where the capture time of the first picture is 9:05, and the capture time of the second picture is 9:47; the display icon corresponding to camera 2 is "Total 1", where the capture time of the picture is 9:09; the display icon corresponding to camera 3 is "Total 2", where the capture time of the first picture is 9:16, and the capture time of the second picture is 9:33; the display icon corresponding to camera 4 is "Total 1", where the capture time of the picture is 9:27. Then, the electronic device can determine the action trajectory of the retrieval target according to the above capture time: camera 1-camera 2-camera 3-camera 4-camera 3-camera 1, and then the action trajectory can be displayed on the map.
[0203] In one implementation, the electronic device may use an arrow or other graphic mark on the action trajectory to indicate the action direction of the search target, and may also mark the sequence of each segment of the action trajectory according to the capture time to facilitate user viewing. Fig.10 In the figure, an arrow is used to indicate the direction of the search target, and numbers 1 to 5 are used to indicate the sequence of each track. Of course, the track can also be displayed in the form of animation. For example, each track can be displayed in sequence according to the sequence of each track, so that the user can know the action process of the search target.
[0204] It can be seen that in this embodiment, the electronic device can also obtain the capture time of the captured image captured by the target monitoring device that matches the image of the retrieval target, and display the movement trajectory of the retrieval target on the map based on the location information and capture time of the target monitoring device, thereby further facilitating the user to view information related to the movement of the retrieval target, improving the convenience of information retrieval, and further improving the user experience.
[0205] Corresponding to the first information retrieval method described above, an embodiment of the present invention provides an information retrieval device. The first information retrieval device provided by the embodiment of the present invention is introduced below.
[0206] like Fig.11 As shown, an information retrieval device, the device comprising:
[0207] A first image acquisition module 1110, used to acquire a search image;
[0208] Wherein, the retrieval image includes a retrieval target.
[0209] An image list display module 1120 is used to obtain images of the search target and display an image list;
[0210] The image list includes the images of the retrieval target.
[0211] A highlighting module 1130, configured to highlight the search target corresponding to any one of the search target images in the search image list when the image of the search target is selected;
[0212] The information retrieval module 1140 is used to obtain a retrieval instruction for the image of the selected retrieval target, and perform retrieval based on the image of the selected retrieval target.
[0213] It can be seen that in the solution provided by the embodiment of the present invention, the electronic device can obtain a search image, wherein the search image includes a search target, obtain an image of the search target, and display an image list, wherein the image list includes the image of the search target, and when any image of the search target is selected in the image list, the search target corresponding to the selected image is highlighted in the search image, a search instruction for the image of the selected search target is obtained, and a search is performed based on the image of the selected search target. Since the electronic device can display an image list, and when any image of the search target is selected in the image list, the search target corresponding to the selected image is highlighted in the search image, the user can conveniently and accurately select the image of the target to be retrieved in the image list, and since the images of the search targets will not overlap in the image list, it is not easy to cause misoperation, which can improve the convenience of user operation, facilitate information retrieval, and improve user experience.
[0214] As an implementation of an embodiment of the present invention, the first image acquisition module 1110 may be used to determine the position information of the search target in the search image; and capture the image of the search target in the search image according to the position information of the search target.
[0215] As an implementation of the embodiment of the present invention, the above device may further include:
[0216] A position information acquisition module, used for determining the position information of each search target in the search image after the search image is acquired;
[0217] A corresponding relationship establishing module, used for establishing, for each search target, a corresponding relationship between the position information of the search target and the image of the search target in the image list;
[0218] The highlighting module 1130 can be used to determine the position information of the retrieval target corresponding to the selected image in the retrieval image according to the corresponding relationship as the target position information; based on the target position information, highlight the retrieval target corresponding to the selected image in the retrieval image.
[0219] As an implementation of the embodiment of the present invention, the above device may further include:
[0220] A first identification display module, configured to display identifications of the respective search targets in the search image based on the position information after the position information of the respective search targets in the search image is determined;
[0221] The image list displays the identifiers of the images of the various search targets, and the identifier of the same search target in the search image corresponds to the identifier of the image of the search target in the image list.
[0222] As an implementation of the embodiment of the present invention, the above device may further include:
[0223] A second identification display module is used for displaying an identification indicating that the search target is not selected in the search image based on the position information after the position information of each search target in the search image is determined;
[0224] A third identification display module is used for displaying an identification indicating that the image of the search target is not selected for the image of the search target in the image list after the image list is displayed;
[0225] The highlighting module 1130 can be used to, when any image of the retrieval target is selected in the image list, replace in the retrieval image the mark indicating that the retrieval target corresponding to the selected image is not selected with a mark indicating that the retrieval target is selected, and in the image list replace in the retrieval image the mark indicating that the selected image is not selected with a selected mark.
[0226] Corresponding to the above second information retrieval method, an embodiment of the present invention provides an information retrieval device. The second information retrieval device provided by the embodiment of the present invention is introduced below.
[0227] like Fig.12 As shown, an information retrieval device, the device comprising:
[0228] The location information acquisition module 1210 is used to acquire the location information of the target monitoring device determined based on the search condition;
[0229] Among them, the retrieval conditions include: the image of the retrieval target and the selected monitoring device, and the target monitoring device is: among the selected monitoring devices included in the retrieval conditions, the monitoring device whose captured image matches the image of the retrieval target in the captured image.
[0230] The fourth identification display module 1220 is used to display an identification indicating the image of the retrieval target captured by the target monitoring device on the map based on the location information.
[0231] It can be seen that in the scheme provided by the embodiment of the present invention, the electronic device can obtain the location information of the target monitoring device determined based on the search conditions, wherein the search conditions include: the image of the search target and the selected monitoring device, and the target monitoring device is: among the selected monitoring devices included in the search conditions, a monitoring device whose captured image matches the image of the search target in the captured image, and then based on the location information, an identifier representing the image captured by the target monitoring device of the search target is displayed on the map. Since the electronic device can display an identifier representing the image captured by the target monitoring device of the search target on the map based on the location information of the target monitoring device, the user can conveniently view the search results, and can enable the user to understand the spatial positional relationship of the target monitoring device, and then understand the location where the search target has appeared, which can improve the user experience.
[0232] As an implementation of an embodiment of the present invention, the fourth identification display module 1220 can be used to determine the display position of the target monitoring device in the map based on the location information; and display an identification indicating that the target monitoring device has captured the retrieved target image at the display position.
[0233] The location information is: the location of the target monitoring device in the map or the geographical location of the target monitoring device. The identifier indicating that the target monitoring device has captured the retrieval target image includes: at least one of the location identifier of the target monitoring device, a specified image among the captured images captured by the target monitoring device that matches the retrieval target image, and a display icon, wherein the display icon is used to indicate the total number of captured images captured by the target monitoring device that matches the retrieval target image.
[0234] As an implementation of the embodiment of the present invention, the above device may further include:
[0235] A second image acquisition module, used to acquire a captured image captured by the target monitoring device and matching the image of the retrieval target;
[0236] The image display module is used to display the captured images captured by the target monitoring device and matching the image of the search target according to the corresponding capture time sorting or similarity sorting when a display instruction is obtained.
[0237] The similarity is the similarity between each of the captured images and the image of the retrieval target included in the retrieval condition, and the display instruction is triggered based on the identifier representing the image of the retrieval target captured by the target monitoring device.
[0238] As an implementation method of the embodiment of the present invention, the above-mentioned captured image may be multiple;
[0239] The fourth identification display module 1220 can be used to display a specified image and a display icon from among multiple captured images that match the image of the retrieval target captured by the target monitoring device at the display position, wherein the display icon is used to indicate the number of captured images.
[0240] As an implementation method of the embodiment of the present invention, the above-mentioned target monitoring device may be multiple;
[0241] The fourth identification display module 1220 can be used to obtain multiple target map images corresponding to the target monitoring device; based on the location information, an identification indicating that the target monitoring device has captured the retrieved target image is displayed in the target map image.
[0242] As an implementation mode of an embodiment of the present invention, the above-mentioned fourth identification display module 1220 can be used to select multiple target map images corresponding to the target monitoring device from multiple map images; or, to intercept multiple target map images corresponding to the target monitoring device from the map image.
[0243] As an implementation of an embodiment of the present invention, the above-mentioned fourth identification display module 1220 can be used to display a specified map image in the target map image in a preset window, and display an identification of the corresponding target monitoring device indicating that the retrieved target image has been captured in the specified map image; and display a thumbnail of a non-specified map image in the target map image at a display position different from the preset window.
[0244] As an implementation of the embodiment of the present invention, the above device may further include:
[0245] A time acquisition module, used to acquire the capture time of the captured image captured by the target monitoring device and matching the search target image;
[0246] The trajectory display module is used to display the movement trajectory of the retrieved target on a map based on the location information of the target monitoring device and the capture time.
[0247] The embodiment of the present invention further provides an electronic device, such as Fig.13 As shown, the electronic device includes a processor 1301 and a memory 1302;
[0248] Memory 1302, used for storing computer programs;
[0249] The processor 1301 is used to implement the steps of the first information retrieval method described in any of the above embodiments when executing the program stored in the memory 1302.
[0250] Optional, such as Fig.14 As shown, an embodiment of the present invention further provides another electronic device, which may include a processor 1401, a communication interface 1402, a memory 1403 and a communication bus 1404, wherein the processor 1401, the communication interface 1402, and the memory 1403 communicate with each other through the communication bus 1404.
[0251] Memory 1403, used for storing computer programs;
[0252] The processor 1401 is used to implement the steps of the first information retrieval method described in any of the above embodiments when executing the program stored in the memory 1403.
[0253] It can be seen that in the solution provided by the embodiment of the present invention, the electronic device can obtain a search image, wherein the search image includes a search target, obtain an image of the search target, and display an image list, wherein the image list includes the image of the search target, and when any image of the search target is selected in the image list, the search target corresponding to the selected image is highlighted in the search image, a search instruction for the image of the selected search target is obtained, and a search is performed based on the image of the selected search target. Since the electronic device can display an image list, and when any image of the search target is selected in the image list, the search target corresponding to the selected image is highlighted in the search image, the user can conveniently and accurately select the image of the target to be searched in the image list, and since the images of the search targets will not overlap in the image list, it is not easy to cause misoperation, which can improve the convenience of user operation, facilitate information retrieval, and improve user experience.
[0254] The embodiment of the present invention also provides another electronic device, such as Fig.15 As shown, the electronic device includes a processor 1501 and a memory 1502;
[0255] Memory 1502, used for storing computer programs;
[0256] The processor 1501 is used to implement the steps of the second information retrieval method described in any of the above embodiments when executing the program stored in the memory 1502.
[0257] Optional, such as Fig.16 As shown, an embodiment of the present invention further provides another electronic device, which may include a processor 1601, a communication interface 1602, a memory 1603 and a communication bus 1604, wherein the processor 1601, the communication interface 1602, and the memory 1603 communicate with each other through the communication bus 1604.
[0258] Memory 1603, used for storing computer programs;
[0259] The processor 1601 is used to implement the steps of the second information retrieval method described in any of the above embodiments when executing the program stored in the memory 1603.
[0260] It can be seen that in the scheme provided by the embodiment of the present invention, the electronic device can obtain the location information of the target monitoring device determined based on the search conditions, wherein the search conditions include: the image of the search target and the selected monitoring device, and the target monitoring device is: among the selected monitoring devices included in the search conditions, a monitoring device whose captured image matches the image of the search target, and then based on the location information, the identification of the image captured by the target monitoring device of the search target is displayed on the map. Since the electronic device can display the identification indicating the image captured by the target monitoring device of the search target on the map based on the location information of the target monitoring device, the user can easily view the search results, which enables the user to understand the spatial position relationship of the target monitoring device, and then understand the location where the search target has appeared, which can improve the user experience.
[0261] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0262] The communication interface is used for communication between the above electronic device and other devices.
[0263] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0264] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0265] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the first information retrieval method described in any of the above embodiments are implemented.
[0266] It can be seen that in the scheme provided by the embodiment of the present invention, when the computer program is executed by the processor, a retrieval image can be obtained, wherein the retrieval image includes a retrieval target, an image of the retrieval target is obtained, and an image list is displayed, wherein the image list includes the image of the retrieval target, and when any image of the retrieval target is selected in the image list, the retrieval target corresponding to the selected image is highlighted in the retrieval image, a retrieval instruction for the image of the selected retrieval target is obtained, and a retrieval is performed based on the image of the selected retrieval target. Since the electronic device can display an image list, and when any image of the retrieval target is selected in the image list, the retrieval target corresponding to the selected image is highlighted in the retrieval image, the user can conveniently and accurately select the image of the target to be retrieved in the image list, and since the images of the retrieval target will not overlap in the image list, it is not easy to cause misoperation, which can improve the convenience of user operation, facilitate information retrieval, and improve user experience.
[0267] An embodiment of the present invention further provides another computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the second information retrieval method described in any of the above embodiments are implemented.
[0268] It can be seen that in the scheme provided by the embodiment of the present invention, when the computer program is executed by the processor, the location information of the target monitoring device determined based on the search conditions can be obtained, wherein the search conditions include: the image of the search target and the selected monitoring device, and the target monitoring device is: among the selected monitoring devices included in the search conditions, a monitoring device whose captured image matches the image of the search target, and then based on the location information, the identification of the image captured by the target monitoring device to the search target is displayed on the map. Since the electronic device can display the identification indicating that the target monitoring device has captured the image of the search target on the map based on the location information of the target monitoring device, the user can easily view the search results, which enables the user to understand the spatial position relationship of the target monitoring device, and then understand the location where the search target has appeared, which can improve the user experience.
[0269] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the steps of the first information retrieval method described in any one of the above embodiments.
[0270] It can be seen that in the solution provided by the embodiment of the present invention, when the computer program product is running on a computer, a search image can be obtained, wherein the search image includes a search target, an image of the search target is obtained, and an image list is displayed, wherein the image list includes the image of the search target, and when any image of the search target is selected in the image list, the search target corresponding to the selected image is highlighted in the search image, a search instruction for the image of the selected search target is obtained, and a search is performed based on the image of the selected search target. Since the electronic device can display an image list, and when any image of the search target is selected in the image list, the search target corresponding to the selected image is highlighted in the search image, the user can conveniently and accurately select the image of the target to be searched in the image list, and since the images of the search targets will not overlap in the image list, it is not easy to cause misoperation, which can improve the convenience of user operation, facilitate information retrieval, and improve user experience.
[0271] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the steps of the second information retrieval method described in any of the above embodiments.
[0272] It can be seen that in the scheme provided by the embodiment of the present invention, when the computer program product is running on a computer, it can obtain the location information of the target monitoring device determined based on the search conditions, wherein the search conditions include: the image of the search target and the selected monitoring device, and the target monitoring device is: among the selected monitoring devices included in the search conditions, a monitoring device whose captured image matches the image of the search target, and then based on the location information, an identification of the image captured by the target monitoring device to the search target is displayed on the map. Since the electronic device can display an identification indicating that the target monitoring device has captured the image of the search target on the map based on the location information of the target monitoring device, the user can easily view the search results, which enables the user to understand the spatial positional relationship of the target monitoring device, and then understand the location where the search target has appeared, which can improve the user experience.
[0273] It should be noted that, for the above-mentioned device, electronic device, computer-readable storage medium and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0274] It should be further noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0275] The various embodiments in this specification are described in a related manner, and the same or similar components between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0276] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. An information retrieval method, characterized in that: The method comprises: Acquire a search image, wherein the search image includes a search target; Acquire the image of the retrieval target and display an image list, wherein the image list includes the image of the retrieval target; When any image of the search target is selected in the image list, the search target corresponding to the selected image is highlighted in the search image; Acquire a search instruction for the image of the selected search target, and perform a search based on the image of the selected search target; The step of highlighting the retrieval target corresponding to the selected image in the retrieval image comprises: According to the corresponding relationship, determining the position information of the search target corresponding to the selected image in the search image as the target position information, wherein the corresponding relationship is the corresponding relationship between the position information of the search target and the image of the search target in the image list; Based on the target position information, highlighting the search target corresponding to the selected image in the search image; After the step of acquiring the retrieval image, the method further comprises: Determining the position information of each search target in the search image; For each search target, establishing a corresponding relationship between the location information of the search target and the image of the search target in the image list; After the step of determining the position information of each search target in the search image, the method further includes: Based on the position information of each search target in the search image, the identifier of each search target is displayed in the search image, wherein the identifier of the image of each search target is displayed in the image list, and the identifier of the same search target in the search image corresponds to the identifier of the image of the search target in the image list; In the case where any image of the search target is selected in the image list, the method further comprises: highlighting the identification of the search target corresponding to the selected image in the search image; highlighting the identification of the image of the search target corresponding to the selected image in the image list; Acquire location information of a target monitoring device determined based on a search condition, wherein the search condition includes: an image of the selected search target and a monitoring device to be selected, wherein the target monitoring device is: a monitoring device whose captured image matches the image of the selected search target among the monitoring devices to be selected included in the search condition; and there are multiple target monitoring devices; Acquire a plurality of target map images corresponding to the target monitoring device, wherein the plurality of target map images are a plurality of target map images corresponding to the target monitoring device intercepted from a map image according to location information of the target monitoring device; Based on the location information of the target monitoring device, a designated map image in the target map image is displayed in a preset window, and an identifier of the corresponding target monitoring device indicating that the image of the selected retrieval target has been captured is displayed in the designated map image; a thumbnail of a non-designated map image in the target map image is displayed at a display position different from the preset window.
2. The method according to claim 1, characterized in that After the step of determining the position information of each search target in the search image, the method further includes: Based on the position information of each search target in the search image, displaying a mark indicating that the search target is not selected in the search image; After the step of displaying the image list, the method further comprises: Displaying, for the image of the search target in the image list, a mark indicating that the image of the search target is not selected; In the case where any image of the retrieval target is selected in the image list, the step of highlighting the retrieval target corresponding to the selected image in the retrieval image comprises: When any image of the retrieval target is selected in the image list, the mark indicating that the retrieval target corresponding to the selected image is not selected in the retrieval image is replaced by a mark indicating that the retrieval target is selected, and the mark indicating that the selected image is not selected in the image list is replaced by a selected mark.
3. The method according to claim 1, characterized in that The method further comprises: Acquire a captured image captured by the target monitoring device that matches the image of the selected retrieval target; When a display instruction is obtained for a captured image captured by the target monitoring device and matching the image of the selected retrieval target, the captured images are displayed in order of corresponding capturing time or similarity, wherein the similarity is the similarity between each captured image and the image of the selected retrieval target included in the retrieval condition, and the display instruction is triggered based on an identifier representing the image captured by the target monitoring device to capture the retrieval target.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Obtaining the capture time of the captured image captured by the target monitoring device and matching the image of the selected retrieval target; Based on the location information of the target monitoring device and the capture time, the movement trajectory of the retrieved target is displayed on a map.
5. An information retrieval device, characterized in that: The device comprises: A first image acquisition module is used to acquire a search image, wherein the search image includes a search target; An image list display module, used to obtain the image of the search target and display an image list, wherein the image list includes the image of the search target; A highlighting module, configured to highlight the search target corresponding to any one of the search target images in the search image when the image is selected from the image list; An information retrieval module, used to obtain a retrieval instruction for the image of the selected retrieval target, and perform retrieval based on the image of the selected retrieval target; The highlighting module is specifically used to determine, according to the corresponding relationship, the position information of the search target corresponding to the selected image in the search image as the target position information; based on the target position information, highlight the search target corresponding to the selected image in the search image; wherein the corresponding relationship is the corresponding relationship between the position information of the search target and the image of the search target in the image list; The device also includes: A position information acquisition module, used for determining the position information of each search target in the search image after the search image is acquired; A corresponding relationship establishing module, used for establishing, for each search target, a corresponding relationship between the position information of the search target and the image of the search target in the image list; The device also includes: A first identification display module is used to display the identification of each search target in the search image based on the position information of each search target in the search image, and when an image of any search target is selected in the image list, highlight the identification of the search target corresponding to the selected image in the search image; highlight the identification of the image of the search target corresponding to the selected image in the image list; wherein the identification of the image of each search target is displayed in the image list, and the identification of the same search target in the search image corresponds to the identification of the image of the search target in the image list; A location information acquisition module, used to acquire location information of a target monitoring device determined based on a search condition, wherein the search condition includes: an image of the selected search target and a monitoring device to be selected, and the target monitoring device is: a monitoring device whose captured image matches the image of the selected search target among the monitoring devices to be selected included in the search condition; and there are multiple target monitoring devices; a fourth identification display module, configured to display, on a map, an identification indicating that the target monitoring device has captured an image of the selected retrieval target, based on the location information of the target monitoring device; The fourth identification display module is used to obtain a plurality of target map images corresponding to the target monitoring device; based on the location information of the target monitoring device, display an identification indicating that the target monitoring device has captured the retrieved target image in the target map image, wherein the plurality of target map images are a plurality of target map images corresponding to the target monitoring device captured from the map image according to the location information of the target monitoring device; The fourth identification display module is used to display the specified map image in the target map image in a preset window, and to display the identification of the corresponding target monitoring device in the specified map image, indicating that the selected retrieval target image has been captured; and to display the thumbnail of the non-specified map image in the target map image at a display position different from the preset window.
6. The device according to claim 5, characterized in that The device also includes: A second identification display module is used for displaying an identification indicating that a search target is not selected in the search image based on the position information of each search target in the search image after the position information of each search target in the search image is determined; A third identification display module is used for displaying an identification indicating that the image of the search target is not selected for the image of the search target in the image list after the image list is displayed; The highlighting module is used to, when any image of the retrieval target is selected in the image list, replace in the retrieval image the mark indicating that the retrieval target corresponding to the selected image is not selected with a mark indicating that the retrieval target is selected, and in the image list replace in the retrieval image the mark indicating that the selected image is not selected with a mark indicating that the retrieval target is selected.
7. The device according to claim 5, characterized in that The device also includes: A second image acquisition module is used to acquire a captured image captured by the target monitoring device that matches the image of the selected retrieval target; an image display module, for, upon obtaining a display instruction for a captured image captured by the target monitoring device and matching the image of the selected search target, displaying the captured images in order of corresponding capture time or similarity, wherein the similarity is the similarity between each captured image and the image of the selected search target included in the search condition, and the display instruction is triggered based on the identifier indicating that the image of the search target is captured by the target monitoring device; The device also includes: A time acquisition module, used to acquire the capture time of the captured image captured by the target monitoring device and matching the image of the selected retrieval target; The trajectory display module is used to display the movement trajectory of the retrieved target on a map based on the location information of the target monitoring device and the capture time.
8. An electronic device, characterized in that: comprising a processor and a memory, wherein: Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 4 when executing a program stored in a memory.
Citation Information
Patent Citations
Image processing apparatus, image processing method, and program
CN105075237A
A retrieval positioning method and device for a target object
CN109886078A
Image search method and device, electronic equipment and storage medium
CN110110110A
Personnel behavior analysis method and device and electronic equipment
CN111222373A
Apparatus and method for processing images, apparatus and method for processing reproduced images
CN1777282A
