Shop information change monitoring method and device

The use of cameras to identify changes in store plaque areas solves the problem of police being unable to promptly know changes in store information along the street, achieving timely updates of information and improving management efficiency.

CN118628977APending Publication Date: 2024-09-10HANGZHOU HIKVISION SYST TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410737274.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

It is difficult for the police to know the changes in store information along the street in a timely manner, resulting in inaccurate information about the actual units and affecting management efficiency.

Method used

Obtain the current and last images of the store through the camera, identify the plaque area, calculate the matching degree, determine whether the store name information has changed, and update the inspection execution list to output the results.

Benefits of technology

It achieves timely acquisition of store name change information, saves human resources and improves management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628977A
    Figure CN118628977A
Patent Text Reader

Abstract

The invention discloses a shop information change monitoring method and device, and the method comprises the steps: obtaining a current image photographed by at least one camera based on each photographing parameter, and determining at least one current plaque image region in the current image for each current image; according to a shooting parameter corresponding to the current image, obtaining an image obtained last time corresponding to the shooting parameter, and determining at least one plaque image area obtained last time in the image obtained last time; and for each current plaque image area, determining a matching degree between the current plaque image area and each plaque image area obtained last time, judging whether the shop name information is changed according to a matching degree result, and when it is determined that the shop name information is changed, outputting a shop name information change result. The information of shop name change can be obtained in time, and manpower resources are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field, and in particular to a method and device for monitoring changes in store information. Background Art

[0002] At present, the application of cameras is becoming more and more popular. In daily life, you can see many cameras around shops along the street. In the process of daily management of the police in the area under their jurisdiction, the management of shops along the street is a relatively important link.

[0003] The management of street shops mainly focuses on the following points: collecting and registering the actual units of street shops, entering the unit name, location, legal person and other relevant information; conducting fire inspections and management of street shops, and conducting regular fire inspections; and managing and registering the actual population of employees in street shops. However, the daily work of police officers is complicated and the police resources are limited. The information of many street shops has changed, but the police cannot be informed in time, resulting in inaccurate information collected on the actual units. Summary of the invention

[0004] The purpose of this application is to provide a method and device for monitoring store information changes, so that users can obtain information about store name changes in a timely manner, saving human resources and improving work efficiency.

[0005] Based on the above purpose, the present application provides a method for monitoring store information changes, the method comprising:

[0006] Acquire a current image captured by at least one camera based on each shooting parameter, and for each current image, determine at least one current plaque image area in the current image;

[0007] According to the shooting parameters corresponding to the current image, the image acquired last time corresponding to the shooting parameters is acquired, and at least one plaque image region acquired last time in the image acquired last time is determined;

[0008] For each current plaque image area, determine the matching degree between the current plaque image area and the plaque image areas obtained last time, and judge whether the store name information has changed based on the matching result. When it is determined that the store name information has changed, output the result of the store name information change.

[0009] Furthermore, the shooting parameters include a PTZ value of the camera, and the method further includes:

[0010] Traverse all PTZ values ​​of any camera, obtain at least one store information in the image based on the image taken at each PTZ value, and establish a mapping relationship between each PTZ value and at least one store information, where the store information includes the location information of the signboard, the color of the signboard, and the name of the store;

[0011] Constructing an inspection execution list, which includes a camera ID, a PTZ value, store information, and a collection time. The camera ID corresponds to multiple PTZ values, and each PTZ value corresponds to at least one store information;

[0012] For each current image, the step of determining at least one current plaque image region in the current image further includes:

[0013] Perform image recognition on each current signboard image area in the current image to obtain the new signboard location information, new signboard color, new store name and new collection time of the corresponding store;

[0014] When it is determined that the store information has changed, the steps of outputting the store change result include:

[0015] Get the camera ID and PTZ value corresponding to the current image, search for the entry that matches the camera ID and PTZ value in the inspection execution list, and update the new sign location information, new sign color, new store name, and new acquisition time to the entry.

[0016] Further, for each current signboard image area, determining the matching degree between the current signboard image area and each signboard image area acquired last time, and judging whether the store name information has changed according to the matching result includes:

[0017] If there is no signboard image area in the image acquired last time, the new store name recognized by the current signboard image area is used as the newly added store name;

[0018] and / or,

[0019] According to the camera identification and PTZ value corresponding to the current image, the corresponding plaque position information obtained last time is obtained in the constructed inspection execution list;

[0020] According to the new plaque position information and the current image, as well as the image acquired last time and the plaque position information acquired last time, it is determined whether there is an overlapping area between the current plaque image area and the corresponding plaque image area acquired last time;

[0021] If there is no overlapping area, it is determined that the store name information has been changed;

[0022] If there is an overlapping area, determine whether the store name information has changed based on the overlapping area.

[0023] Furthermore, if there is an overlapping area, the step of determining whether the store name information has been changed based on the overlapping area includes:

[0024] If there is only one overlapping area between the current plaque image area and the corresponding plaque image area obtained last time, perform text recognition on the plaque image area obtained last time to obtain the old store name;

[0025] If the new store name is exactly the same as the old store name, it is determined that the store name information has not been changed; otherwise, it is determined that the store name information has been changed.

[0026] Furthermore, if there is an overlapping area, the step of determining whether the store name information has been changed based on the overlapping area includes:

[0027] If there are multiple overlapping areas between the current signboard image area and the corresponding signboard image area acquired last time, and there is only one overlapping area among the multiple overlapping areas, and the area ratio of the overlapping area in the current signboard image area is greater than or equal to a preset ratio threshold, the signboard image area acquired last time corresponding to the overlapping area is obtained, and text recognition is performed on the signboard image area acquired last time to obtain the old store name;

[0028] If the new store name is exactly the same as the old store name, it is determined that the store name information has not been changed; otherwise, it is determined that the store name information has been changed;

[0029] or,

[0030] If there are multiple overlapping areas between the current signboard image area and the corresponding signboard image area obtained last time, for any overlapping area, the area ratio of the overlapping area in the last store signboard area is greater than or equal to a preset ratio threshold, the last acquired signboard image area corresponding to each overlapping area is obtained, and text recognition is performed on each last acquired signboard image area to obtain all the old store names;

[0031] If the new store name is consistent with all the old store names, it is determined that the store name information has not been changed, otherwise it is determined that the store name information has been changed.

[0032] Furthermore, if there is an overlapping area, the step of determining whether the store name information has been changed based on the overlapping area includes:

[0033] If there are multiple overlapping areas between the current plaque image area and the corresponding plaque image area obtained last time, for any overlapping area, the area ratio of the overlapping area in the current plaque area is less than the preset ratio threshold, and the area ratio of the overlapping area in the last store plaque area is less than the ratio threshold, it is determined that the store information name has changed.

[0034] Further, if there is no overlapping area, the step of determining whether the store name information has been changed, or the step of determining whether the store name information has been changed, includes:

[0035] Obtain an image region with the same position information as the new plaque in the image acquired last time, and calculate an image similarity value between the image region and the current plaque image region;

[0036] Determine the weight value of the image similarity value according to the total weight of the image similarity and the image similarity value;

[0037] Determine the confidence level of the store name information change based on the total weight of the store name similarity, the total weight of the plaque color similarity, and the weight value of the image similarity;

[0038] If the confidence level of the store name information change is greater than a confidence threshold, it is determined that the store name information has changed.

[0039] Furthermore, the step of determining whether the store name information has been changed also includes:

[0040] Calculating the store name similarity between the new store name and the old store name, and determining a weight value of the store name similarity based on the total weight of the store name similarities and the store name similarities;

[0041] Calculating the plaque color similarity between the new plaque color and the old plaque color, and determining the weight value of the plaque color similarity based on the total weight of the plaque color similarity and the plaque color similarity;

[0042] Acquire an image region having the same position information as the new plaque in the image acquired last time, calculate an image similarity value between the image region and the current plaque image region, and determine a weight value of the image similarity value based on a total weight of the image similarity and the image similarity value;

[0043] Determine the confidence level of the store name information change based on the weight values ​​of the store name similarity, the plaque color similarity, and the image similarity;

[0044] If the confidence level of the store name information change is greater than a confidence threshold, it is determined that the store name information has changed.

[0045] Based on the above purpose, the present application provides a monitoring device for store information changes, the device comprising:

[0046] A first acquisition module is used to acquire a current image captured by at least one camera based on each shooting parameter, and for each current image, determine at least one current plaque image area in the current image;

[0047] A second acquisition module is used to acquire the last acquired image corresponding to the shooting parameters according to the shooting parameters corresponding to the current image, and determine at least one last acquired plaque image area in the last acquired image;

[0048] A matching module is used to determine the matching degree between the current plaque image area and each plaque image area acquired last time for each current plaque image area, and judge whether the store name information has changed according to the matching result;

[0049] The output module is used to output the result of the store name information change when it is determined that the store name information has changed.

[0050] Based on the above-mentioned purpose, the present application provides an electronic device, including: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus, and the memory is used to store a computer program, and the computer program includes instructions and data to implement the steps of the method for monitoring store information changes as described above.

[0051] This application can obtain information about store name changes in a timely manner, save human resources, improve user service efficiency, and bring convenience to users. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 is a first flow chart of a method for monitoring store information changes provided in an embodiment of the present application;

[0053] Figure 2 is a second flow chart of the method for monitoring store information changes provided in an embodiment of the present application;

[0054] Figure 3 is a third flow chart of a method for monitoring store information changes provided in an embodiment of the present application;

[0055] Figure 4 is a fourth flow chart of a method for monitoring store information changes provided in an embodiment of the present application;

[0056] Figure 5 is a first schematic diagram of an overlapping area provided according to an embodiment of the present application;

[0057] Figure 6 is a fifth flow chart of a method for monitoring store information changes provided in an embodiment of the present application;

[0058] Figure 7 is a second schematic diagram of an overlapping area provided according to an embodiment of the present application;

[0059] Figure 8 is a third schematic diagram of an overlapping area provided according to an embodiment of the present application;

[0060] Fig. 9 is a sixth flow chart of a method for monitoring store information changes provided in an embodiment of the present application;

[0061] Fig.10 is a seventh flow chart of a method for monitoring store information changes provided in an embodiment of the present application;

[0062] Fig.11 is a system block diagram of a store information change monitoring system provided according to an embodiment of the present application;

[0063] Fig.12 It is a schematic diagram of the hardware structure of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0064] The present application will be described in detail below in conjunction with the specific implementation modes shown in the accompanying drawings, but these implementation modes do not limit the present application. Structural, methodological, or functional changes made by ordinary technicians in the field based on these implementation modes are included in the protection scope of the present application.

[0065] In order to obtain information about store name changes in a timely manner and improve the efficiency of user services, the present application embodiment provides a method, device, computer-readable storage medium and electronic device for monitoring store information changes. The following first introduces a method for monitoring store information changes provided by the present application embodiment.

[0066] The method for monitoring store information changes provided in the embodiment of the present application can be applied to any electronic device that can monitor store information changes, and the electronic device can be a server, a server cluster or a data center, or a computer device, etc., which is not specifically limited here. For the sake of clarity, it is hereinafter referred to as an electronic device.

[0067] Please refer to Figure 1 , an embodiment of the present application provides a method for monitoring store information changes, the method comprising steps S101-S103.

[0068] Step S101: obtaining a current image captured by at least one camera based on each shooting parameter, and for each current image, determining at least one current plaque image area in the current image.

[0069] Multiple monitoring points are usually set up around shops along the street, and videos or images of the shops are collected based on cameras set up at each monitoring point. The electronic device can obtain images or videos taken by each camera. The electronic device can adjust the shooting parameters of the camera to obtain the store image or store video taken by the camera based on each shooting parameter.

[0070] For example, the camera may be a PTZ (Pan / Tilt / Zoom) camera, usually referred to as a pan / tilt omnidirectional camera, such as a ball camera. The ball camera can rotate and zoom to monitor different areas of the deployed scene.

[0071] As an implementation of an embodiment of the present application, the above-mentioned shooting parameters may include the PTZ value of the camera, wherein the PTZ value indicates the rotation angle of the camera in the horizontal direction, the rotation angle in the vertical direction and the focal length, P is Pan, indicating the rotation angle of the camera in the horizontal direction, T is Tilt, indicating the rotation angle of the camera in the vertical direction, and Z is Zoom, indicating the focal length of the camera. Taking the ball camera as an example, in order to facilitate the acquisition of store images, multiple preset points can be set in advance according to the shooting field of view of the ball camera, etc. The multiple preset points can correspond to the PTZ value of the ball camera, so that the ball camera can rotate 360 ​​degrees or other required angles after rotating to each preset point, and the collected image can include all the contents of the current scene or the contents within the required range. The electronic device can traverse all the PTZ values ​​of the ball camera, control the ball camera to rotate to each preset point respectively, and collect an image every time the ball camera rotates to a preset point. The electronic device can obtain the image collected by the ball camera at each preset point, and can also obtain the current image captured by the above-mentioned camera based on each PTZ value.

[0072] In the area that the camera can monitor, there may be multiple targets, that is, there may be multiple store signs. It is understandable that there may be multiple store signs for one store, or there may be store signs for multiple stores. Since an image may include multiple store signs, for each current image, the electronic device can call a target recognition algorithm, such as a store sign recognition algorithm, to identify each store sign target in the current image, obtain the location information of each store sign in the current image, and then determine each current sign image area in the current image.

[0073] S102. According to the shooting parameters corresponding to the current image, obtain the last acquired image corresponding to the shooting parameters, and determine at least one last acquired plaque image region in the last acquired image.

[0074] Based on the shooting parameters of the camera corresponding to the current image, the electronic device obtains the corresponding last acquired image according to the shooting parameters, that is, obtains the image captured by the camera last time, and determines at least one plaque image area in the last acquired image. It is understandable that the electronic device stores the last acquired image. Similarly, the electronic device identifies each plaque image area in the last acquired image based on the store plaque recognition algorithm.

[0075] Exemplarily, the electronic device obtains the image last captured by the camera at the PTZ value according to the PTZ value of the camera corresponding to the current image, based on the PTZ value, and determines at least one plaque image area in the last acquired image.

[0076] S103. For each current plaque image area, determine the matching degree between the current plaque image area and each previously acquired plaque image area, and judge whether the store name information has changed based on the matching result. When it is determined that the store name information has changed, output the result of the store change.

[0077] It is understandable that the above-mentioned plaque image area refers to an image containing shop sign information, and the shop name information can be obtained based on the shop sign information. The shop name information is used to identify the shop, which can be specifically expressed as a series of Chinese characters, numbers or letters, or any combination thereof. The electronic device matches the current plaque image area with each of the plaque image areas obtained last time, and determines whether the shop name information has changed based on the matching result. When it is determined that the shop name information has changed, the result of the shop name information change is output. Exemplarily, the electronic device sends the result of the store name information change to the server so that the user can obtain the change information in time. Whether the name of the shop monitored at each monitoring point has changed can be obtained in the above manner, which will not be repeated here.

[0078] This embodiment matches the currently acquired plaque image with the last acquired plaque image to determine whether the current store name information has changed, and notifies the user of the result of the store name change so that the user can obtain the information of the store name change in time, saving human resources, improving the efficiency of users' work, and bringing convenience to users.

[0079] As an optional implementation method, traverse all PTZ values ​​of any camera, obtain at least one store information in the image based on the image taken at each PTZ value, establish a mapping relationship between each PTZ value and at least one store information, the store information includes the location information of the plaque, the color of the plaque and the name of the store; construct an inspection execution list, the inspection execution list includes the camera identification, PTZ value, store information and acquisition time, the camera identification corresponds to multiple PTZ values, and each PTZ value corresponds to at least one store information. Exemplarily, the creation of the inspection execution list is explained. Taking the ball camera as an example, the electronic device can traverse all PTZ values ​​of the ball camera, control the ball camera to rotate to each preset point respectively, and each time the ball camera rotates to a preset point, it will collect an image to obtain the image corresponding to the PTZ value. For any image, image recognition is performed on the image to obtain the location information of the plaque, the color of the plaque and the name of the store. If there are multiple plaques in an image, multiple plaque location information, plaque colors and store names can be identified. Therefore, in the inspection execution list, one camera ID corresponds to multiple PTZ values, and one camera ID and one PTZ value correspond to multiple plaque location information, plaque colors and store names. Through the inspection execution list, the store area covered by any camera is automatically associated and bound to the store, and the camera ID and PTZ value are associated with the store information. In addition to the daily camera coverage area, the area that can be covered by the camera rotation can be associated. The associated data can be used for subsequent rapid retrieval. According to the associated parameters, the rotation angle of the camera is called, etc., to quickly locate the area that needs attention, and provide data support for subsequent security and other scene applications.

[0080] Exemplarily, the electronic device performs image recognition on an acquired image, and identifies the location information of all store plaques in the image, and the location information is used to indicate the position coordinates of the plaque area image in the image. For example, the position information of the plaque identified is: L1 coordinates are (0.15825, 0.080000), R1 coordinates are (0.372025, 0.127778), R2 coordinates are (0.372025, 0.265481), and L2 coordinates are (0.16025, 0.270481). L1 represents the position coordinates of the upper left corner of the plaque, R1 represents the position coordinates of the upper right corner of the plaque, L2 represents the position coordinates of the lower left corner of the plaque, and R2 represents the position coordinates of the lower right corner of the plaque.

[0081] Exemplarily, the electronic device performs text extraction and color extraction on the plaque image area in the image. The plaque image area is detected by a text detection method, and the text area in the image is located to determine the position information, area occupied, and other information of the text area in the image. The position information of the text area is compared with the position information of the plaque, and the text in a plaque can be obtained, and then the name of the store can be determined. By analogy, the text of each plaque in an image can be obtained. The obtained text is subjected to color extraction to obtain the color of the text. The color of the plaque can be obtained by performing color extraction on the plaque image area in the image, so that the color of the plaque and the color of the font on the plaque can be obtained. The plaque color in the embodiment of the present application includes the color of the plaque itself and the font color on the plaque. For example, the text in the image is extracted by an OCR (Optical Character Recognition) model to obtain the text in the plaque.

[0082] By analogy, the above implementation method is executed for multiple cameras in a certain monitoring area, so that the inspection execution list of the area can be obtained, and each PTZ value of each camera in the inspection execution list is associated with the store information. Based on the inspection execution list, the regular inspection time of the camera is set, and based on each inspection time, the new image collected is obtained, and then the new store information is obtained, and the store information in the list is updated, so that the inspection execution list can be updated regularly. Some important police alarms will use the surrounding landmark buildings (such as store names) as the main location clues, but the police cannot quickly find the camera corresponding to this store, and usually need to check each camera around the store one by one to obtain the latest dynamic information. In the embodiment of the present application, the camera is associated with the store information, and when a police case occurs, the camera corresponding to the store can be quickly obtained, which can help users check the camera in time to obtain the latest dynamic information.

[0083] As an optional implementation, for each current image, the step of determining at least one current signboard image area in the current image further includes: performing image recognition on each current signboard image area in the current image to obtain the corresponding new signboard position information, new signboard color, new store name, and new acquisition time. According to the above-described implementation, the electronic device performs image recognition on the current image to obtain the current new signboard position information, new signboard color, new store name, and new acquisition time.

[0084] As an optional implementation, if there is no signboard image area in the image acquired last time, the new store name is determined to be a newly added store name. One of the application scenarios of this embodiment is that if no signboard image area is identified in the image acquired last time, it indicates that there was no store at the time of the last acquisition, and a store signboard image is identified in the currently acquired image, indicating that there is now a store, and the store is a newly added store.

[0085] As an optional implementation, Figure 2 As shown, for each current plaque image area, determining the matching degree between the current plaque image area and each plaque image area acquired last time, and judging whether the store name information has changed according to the matching result includes:

[0086] S201. According to the camera identification and PTZ value corresponding to the current signboard image area, obtain the corresponding signboard position information obtained last time in the inspection execution list.

[0087] The electronic device determines the corresponding camera identification according to the current image, and determines the PTZ value set when the camera is shooting, searches the table entry corresponding to the camera identification and PTZ value in the inspection execution list, and determines the plaque position information obtained by the camera last time in the table entry.

[0088] S202. Based on the new plaque position information and the current image, as well as the last acquired image and each last acquired plaque position information, determine whether there is an overlapping area between the current plaque image area and the corresponding last acquired plaque image area. If not, execute step S203; otherwise, execute step S204.

[0089] In the method for determining the overlapping area, the size of the current image and the image acquired last time are usually the same. The electronic device identifies the new plaque position coordinates in the current image, determines the old plaque position coordinates based on the plaque position information acquired last time, and determines whether there is an overlapping area between the current plaque image area and the plaque image area acquired last time based on the new plaque position coordinates and the old plaque position coordinates, that is, determines whether the plaque position in the current image coincides with the plaque position in the image acquired last time. There may be multiple current plaque image areas in the current image, and it is determined whether there is an overlapping area for each current plaque image area and the corresponding plaque image area acquired last time.

[0090] S203, determining whether the store name information has been changed;

[0091] S204: Determine whether the store name information has changed based on the overlapping area.

[0092] If there is no overlapping area, it means that the position of the store's plaque has changed, and it is determined that the store name information has changed. If there is an overlapping area, it is determined whether the store name information has changed based on the overlapping area. The implementation method of the present application determines whether the current plaque image area and the previous current plaque image area have overlapping image areas based on the new plaque position information and the plaque position information obtained last time, so as to determine whether the store name information has changed. The information of store changes can be obtained in real time, and there is no need to manually collect store change information, which saves human resources and improves work efficiency.

[0093] As an optional implementation, Figure 3 As shown, if there is an overlapping area, the step of determining whether the store name information has changed based on the overlapping area includes:

[0094] S301, if there is only one overlapping area between the current plaque image area and the corresponding plaque image area obtained last time, perform text recognition on the plaque image area obtained last time to obtain the old store name;

[0095] S302: Determine whether the new store name is completely consistent with the old store name. If so, proceed to step S303; otherwise, proceed to step S304.

[0096] S303, determining that the store name information has not been changed;

[0097] S304: Determine whether the store name information has been changed.

[0098] One of the application scenarios of step S301 is that a plaque was recognized last time, and a plaque is recognized currently. The currently recognized store plaque area completely overlaps with the plaque image area obtained last time. Therefore, it is judged whether the text in the store plaque area recognized twice is consistent. If it is consistent, it indicates that the store name information has not changed.

[0099] As an optional implementation, Figure 4 As shown, if there is an overlapping area, the step of determining whether the store name information has changed based on the overlapping area includes:

[0100] S401, if there are multiple overlapping areas between the current signboard image area and the corresponding signboard image area acquired last time, and there is only one overlapping area among the multiple overlapping areas, and the area ratio of the overlapping area to the current signboard image area is greater than or equal to a preset ratio threshold, the signboard image area acquired last time corresponding to the overlapping area is acquired, and text recognition is performed on the signboard image area acquired last time to obtain the old store name;

[0101] S402: Determine whether the new store name is consistent with the old store name. If so, execute step S403; otherwise, execute step S404.

[0102] S403, determining that the store name information has not been changed;

[0103] S404: Determine whether the store name information has been changed.

[0104] One of the application scenarios of step S401 is that in a store, multiple plaques were recognized last time, and only one plaque is recognized currently, which corresponds to the fact that multiple store plaque areas were recognized last time, and only one store plaque area is recognized currently. This may be caused by an error in the image recognition algorithm. Therefore, when judging the overlapping area, it can be obtained that there are multiple overlapping areas between the current plaque image area and the plaque image area obtained last time, and there is only one overlapping area among the multiple overlapping areas, and the area ratio of the overlapping area to the current plaque image area is greater than or equal to the preset ratio threshold, such as Figure 5 In the schematic diagram shown, the new block diagram in the figure represents the current plaque image area, and the old block diagram represents the plaque image area obtained last time. The percentage threshold can be set to 90%. The electronic device performs text recognition based on the plaque image area obtained last time corresponding to the overlapping area to identify the old store name, judge whether the new store name is consistent with the old store name, and determine whether the store name information has changed. This implementation method can reduce the impact of algorithm recognition errors and improve the accuracy of the store name information change judgment result.

[0105] As an optional implementation, Figure 6 As shown, if there is an overlapping area, the step of determining whether the store name information has changed based on the overlapping area includes:

[0106] S601. If there are multiple overlapping areas between the current signboard image area and the corresponding signboard image area obtained last time, for any overlapping area, the area ratio of the overlapping area in the last store signboard area is greater than or equal to a preset ratio threshold, obtain the last acquired signboard image area corresponding to each overlapping area, perform text recognition on each last acquired signboard image area, and obtain all the old store names.

[0107] S602: Determine whether the new store name is consistent with all old store names. If yes, go to step S603; otherwise, go to step S604.

[0108] S603: Determine that the store name information has not been changed;

[0109] S604: Determine whether the store name information has been changed.

[0110] One of the application scenarios of step 601 is that in a store, multiple plaques were recognized last time, and only one plaque is recognized currently. This corresponds to the fact that multiple store plaque areas were recognized last time, and only one store plaque area is recognized currently. This may be caused by an error in the image recognition algorithm. Therefore, when judging the overlapping area, it can be obtained that there are multiple overlapping areas between the current plaque image area and the plaque image area obtained last time. For any overlapping area, the area ratio of the overlapping area in the last store plaque area is greater than or equal to the preset ratio threshold, such as Figure 7 In the schematic diagram shown, the new box diagram in the figure represents the current plaque image area, and the old box diagram represents the plaque image area obtained last time. The percentage threshold can be set to 90%. The electronic device obtains the plaque image area obtained last time corresponding to each overlapping area, performs text recognition on each plaque image area obtained last time, obtains all the old store names in the plaque image area, and determines whether the new store name is consistent with all the old store names to determine whether the store name information has changed. This implementation method can reduce the impact of algorithm recognition errors and improve the accuracy of the store name information change judgment result.

[0111] As an optional implementation, if there is an overlapping area, the step of determining whether the store name information has been changed based on the overlapping area includes:

[0112] If there are multiple overlapping areas between the current plaque image area and the corresponding plaque image area obtained last time, for any overlapping area, the area ratio of the overlapping area in the current plaque area is less than the preset ratio threshold, and the area ratio in the last store plaque area is less than the ratio threshold, it is determined that the store information name has changed. One of the application scenarios of this implementation is that multiple plaques were identified in a store last time, and one plaque is currently identified, which corresponds to the fact that multiple store plaque areas were identified last time, and only one store plaque area is currently identified. This may be caused by an error in the image recognition algorithm. Therefore, when judging the overlapping area, it can be obtained that there are multiple overlapping areas between the current plaque image area and the plaque image area obtained last time. For any overlapping area, the area ratio of the overlapping area in the current plaque area is less than the preset ratio threshold, and the area ratio in the last store plaque area is less than the ratio threshold, it is determined that the store information name has changed. Figure 8 In the schematic diagram shown, the new block diagram in the figure represents the current plaque image area, and the old block diagram represents the plaque image area obtained last time. The percentage threshold can be set to 90%. This implementation method can reduce the impact of algorithm recognition errors and improve the accuracy of the store name information change judgment result.

[0113] In step S302, it is determined that the store name information has changed, or in step S404, it is determined that the store name information has changed, or in step S604, it is determined that the store name information has changed. In order to avoid errors in the judgment of store information changes caused by image recognition, the electronic device further judges the change of the store name, such as Fig. 9 As shown, the steps for changing store information include:

[0114] S901. Calculate the store name similarity between the new store name and the old store name, and determine the weight value of the store name similarity based on the total weight of the store name similarity and the store name similarity.

[0115] Exemplarily, the ratio of the number of identical characters between the new store name and the old store name to the total number of characters in the new store name is the store name similarity. The total weight of the store name similarity is set, and the product of the store name similarity and the total weight of the store name similarity is used as the weight value of the store name similarity.

[0116] S902: Calculate the plaque color similarity between the new plaque color and the old plaque color, and determine the weight value of the plaque color similarity based on the total weight of the plaque color similarity and the plaque color similarities.

[0117] Exemplarily, the ratio of the number of identical colors between the new plaque color and the old plaque color to the total number of new plaque colors is the plaque color similarity, and the total weight of the plaque color similarity is set. The product of the plaque color similarity and the total weight of the plaque color similarity is used as the weight value of the plaque color similarity.

[0118] S903, obtaining an image region having the same position information as the new plaque in the image obtained last time, calculating the image similarity value between the image region and the current plaque image region, and determining the weight value of the image similarity value based on the total weight of the image similarity and the image similarity value.

[0119] Exemplarily, an image region identical to the new plaque location information is obtained in the last acquired image, a first image feature of the image region is identified, a second image feature of the current plaque image region is identified, and an image similarity value between the image region and the current plaque image region is determined based on the first image feature and the second image feature. One implementation of the similarity is to calculate the distance between the first image feature and the second image feature, such as the Euclidean distance, the cosine distance, etc., and determine the image similarity based on the calculated distance. The image similarity value is generally less than or equal to 1. A total weight based on image similarity is set, and the product of the image similarity value and the total weight of the image similarity is used as the weight value of the plaque color similarity.

[0120] S904: Determine the confidence level of the store name information change according to the weight value of the store name similarity, the weight value of the plaque color similarity, and the weight value of the image similarity.

[0121] Exemplarily, the confidence level of the change in store name information is calculated as follows: calculate the difference between the total weight of store name similarity and the weight value of store name similarity, calculate the difference between the total weight of signboard color similarity and the weight value of signboard color similarity, calculate the difference between the total weight of image similarity and the weight value of image similarity, and the sum of these three differences is used as the confidence level of the change in store name information.

[0122] S905: If the confidence level of the store name information change is greater than a confidence threshold, it is determined that the store name information has changed.

[0123] The confidence threshold may be set to 85%. When the confidence of the store name information change is greater than 85%, it is determined that the store name information has changed, otherwise it is determined that the store name information has not changed.

[0124] This embodiment calculates the similarity of store names, the similarity of signboard colors, and the image similarity, and sets different weights for different similarities to obtain the confidence level of the store name information change. Based on the confidence level, it determines whether the store name information has changed, which can further ensure the accuracy of the store name information change judgment and reduce the error impact caused by image recognition and algorithm recognition.

[0125] In the above implementation, it is determined that the store name has not changed, or it is determined in step S203 that the store name has changed. To avoid errors in the judgment of store name changes due to image recognition, further judgment is made on the store name change, such as Fig.10 As shown, including:

[0126] S1001, obtaining an image region with the same position information as the new plaque in the image obtained last time, and calculating an image similarity value between the image region and the current plaque image region;

[0127] S1002, determining a weight value of the image similarity value according to the total weight of the image similarity and the image similarity value;

[0128] S1003, determining the confidence level of the store name information change according to the total weight of the store name similarity, the total weight of the plaque color similarity, and the weight value of the image similarity;

[0129] S1004: If the confidence level of the store name information change is greater than a confidence threshold, it is determined that the store name information has changed.

[0130] In the above-mentioned situation of judging store changes, the text and color of the plaque are no longer compared. By comparing the image similarity of the plaque area, the influence of image recognition errors on the judgment results is eliminated, thereby further improving the accuracy of change judgment.

[0131] As an optional implementation method, when it is determined that the store information has changed, the step of outputting the result of the store change includes: obtaining the camera identification and PTZ value corresponding to the current signboard image area, searching for an entry that matches the camera identification and the PTZ value in the inspection execution list, and updating the new signboard location information, new signboard color, new store name, and new collection time to the entry, so that users can obtain the latest information of the store in a timely manner.

[0132] like Fig.11 As shown, a monitoring device for store information changes includes:

[0133] The first acquisition module 1101 is used to acquire a current image captured by at least one camera based on each shooting parameter, and for each current image, determine at least one current plaque image area in the current image;

[0134] The second acquisition module 1102 is used to acquire the last acquired image corresponding to the shooting parameters according to the shooting parameters corresponding to the current image, and determine at least one last acquired plaque image area in the last acquired image;

[0135] The matching module 1103 is used to determine the matching degree between the current signboard image region and each of the last acquired signboard image regions for each current signboard image region, and judge whether the store name information has changed according to the matching result;

[0136] The output module 1104 is used to output the result of the store name information change when it is determined that the store name information has changed.

[0137] In the solution provided by the embodiment of the present application, the currently acquired plaque image is matched with the last acquired plaque image, and whether the store name information has changed is determined based on the matching result, and the result of the store name change is notified to the user, so that the user can obtain the information of the store name change in time, saving human resources, improving the efficiency of users' affairs, and bringing convenience to users.

[0138] Optionally, the matching module 1103 is specifically used for:

[0139] According to the camera identification and PTZ value corresponding to the current signboard image area, the corresponding signboard position information obtained last time is obtained in the inspection execution list;

[0140] According to the new plaque position information and the current image, as well as the image acquired last time and the plaque position information acquired last time, it is determined whether there is an overlapping area between the current plaque image area and the corresponding plaque image area acquired last time;

[0141] If there is no overlapping area, it is determined that the store name information has been changed;

[0142] If there is an overlapping area, determine whether the store name information has changed based on the overlapping area.

[0143] Optionally, the matching module 1103 is further configured to:

[0144] If there is only one overlapping area between the current plaque image area and the corresponding plaque image area obtained last time, perform text recognition on the plaque image area obtained last time to obtain the old store name;

[0145] If the new store name is exactly the same as the old store name, it is determined that the store name information has not been changed; otherwise, it is determined that the store name information has been changed.

[0146] Optionally, the matching module 1103 is further configured to:

[0147] If there are multiple overlapping areas between the current signboard image area and the corresponding signboard image area acquired last time, and there is only one overlapping area among the multiple overlapping areas, and the area ratio of the overlapping area in the current signboard image area is greater than or equal to a preset ratio threshold, the signboard image area acquired last time corresponding to the overlapping area is obtained, and text recognition is performed on the signboard image area acquired last time to obtain the old store name;

[0148] If the new store name is exactly the same as the old store name, it is determined that the store name information has not been changed, otherwise it is determined that the store name information has been changed.

[0149] Optionally, the matching module 1103 is further configured to:

[0150] If there are multiple overlapping areas between the current signboard image area and the corresponding signboard image area obtained last time, for any overlapping area, the area ratio of the overlapping area in the last store signboard area is greater than or equal to a preset ratio threshold, the last acquired signboard image area corresponding to each overlapping area is obtained, and text recognition is performed on each last acquired signboard image area to obtain all the old store names;

[0151] If the new store name is consistent with all the old store names, it is determined that the store name information has not been changed, otherwise it is determined that the store name information has been changed.

[0152] Optionally, the matching module 1103 is further configured to:

[0153] If there are multiple overlapping areas between the current plaque image area and the corresponding plaque image area obtained last time, for any overlapping area, the area ratio of the overlapping area in the current plaque area is less than the preset ratio threshold, and the area ratio of the overlapping area in the last store plaque area is less than the ratio threshold, it is determined that the store information name has changed.

[0154] Optionally, the matching module 1103 is further configured to:

[0155] Calculating the store name similarity between the new store name and the old store name, and determining a weight value of the store name similarity based on the total weight of the store name similarities and the store name similarities;

[0156] Calculating the plaque color similarity between the new plaque color and the old plaque color, and determining the weight value of the plaque color similarity based on the total weight of the plaque color similarity and the plaque color similarity;

[0157] Acquire an image region having the same position information as the new plaque in the image acquired last time, calculate an image similarity value between the image region and the current plaque image region, and determine a weight value of the image similarity value based on a total weight of the image similarity and the image similarity value;

[0158] Determine the confidence level of the store name information change based on the weight values ​​of the store name similarity, the plaque color similarity, and the image similarity;

[0159] If the confidence level of the store name information change is greater than a confidence threshold, it is determined that the store name information has changed.

[0160] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, any of the above-mentioned methods for monitoring changes in store information is implemented.

[0161] Fig.12 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. Fig.12 The electronic device shown includes: a processor 1201, a communication interface 1202, a memory 1203 and a communication bus 1204. The processor 1201, the communication interface 1202 and the memory 1203 communicate with each other via the communication bus 1204. Fig.12 The connection method between the processor 1201, the communication interface 1202, and the memory 1203 shown is only exemplary. During implementation, the processor 1201, the communication interface 1202, and the memory 1203 may also be connected to each other in communication with each other using other connection methods besides the communication bus 1204.

[0162] The memory 1203 can be used to store computer programs, which may include instructions and data to implement the steps of any of the above methods for monitoring changes in store information. In an embodiment of the present application, the memory 1203 may be various types of storage media, such as random access memory (RAM), read only memory (ROM), non-volatile RAM (NVRAM), programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), flash memory, optical storage, and registers. The memory 1203 may include a hard disk and / or memory.

[0163] The processor 1201 may be a general-purpose processor, which may be a processor that performs specific steps and / or operations by reading and executing a computer program (e.g., a computer program) stored in a memory (e.g., memory 1203), and the general-purpose processor may use data stored in the memory (e.g., memory 1203) in the process of performing the steps and / or operations. The general-purpose processor may be, for example, but not limited to, a central processing unit (CPU). In addition, the processor 1201 may also be a dedicated processor, which may be a processor specially designed to perform specific steps and / or operations, and the dedicated processor may be, for example, but not limited to, an ASIC and an FPGA, etc. In addition, the processor 1201 may also be a combination of multiple processors, such as a multi-core processor.

[0164] The communication interface 1202 may include an input / output (I / O) interface, a physical interface, and a logical interface for interconnecting devices within the network device, as well as an interface for interconnecting the network device with other devices (e.g., network devices). The communication network may be Ethernet, a radio access network (RAN), a wireless local area network (WLAN), etc. The communication interface 1202 may be a module, a circuit, a transceiver, or any device capable of implementing communication.

[0165] In the implementation process, each step of the above method can be completed by an integrated logic circuit of the hardware in the processor 1201 or an instruction in the form of software. The method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in the processor for execution. The software module can be located in a mature storage medium in the art such as a random access memory flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 1203, and the processor 1201 reads the information in the memory 1203 and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0166] Although the preferred embodiments of the present application have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, without departing from the scope and spirit of the application as disclosed in the accompanying claims.

Claims

1. A method for monitoring store information changes, characterized in that: The method comprises: Acquire a current image captured by at least one camera based on each shooting parameter, and for each current image, determine at least one current plaque image area in the current image; According to the shooting parameters corresponding to the current image, the image acquired last time corresponding to the shooting parameters is acquired, and at least one plaque image region acquired last time in the image acquired last time is determined; For each current plaque image area, determine the matching degree between the current plaque image area and each last acquired plaque image area, and judge whether the store name information has changed based on the matching result. When it is determined that the store name information has changed, output the result of the store name information change.

2. The method for monitoring store information changes according to claim 1, characterized in that: The shooting parameter includes a PTZ value of the camera, and the method further includes: Traverse all PTZ values ​​of any camera, obtain at least one store information in the image based on the image taken at each PTZ value, and establish a mapping relationship between each PTZ value and at least one store information, where the store information includes the location information of the signboard, the color of the signboard, and the name of the store; Constructing an inspection execution list, the inspection execution list including a camera identifier, a PTZ value, store information and a collection time, the camera identifier corresponds to a plurality of PTZ values, and each PTZ value corresponds to at least one store information; The step of determining at least one current plaque image area in the current image for each current image further comprises: Perform image recognition on each current signboard image area in the current image to obtain new signboard location information, new signboard color, new store name and new collection time of the corresponding store; When it is determined that the store information has changed, the step of outputting the result of the store change includes: Obtain the camera ID and PTZ value corresponding to the current image, search for an entry matching the camera ID and the PTZ value in the inspection execution list, and update the new signboard location information, the new signboard color, the new store name, and the new acquisition time into the entry.

3. The method for monitoring store information changes according to claim 1, characterized in that: The step of determining the matching degree between the current plaque image region and each plaque image region acquired last time for each current plaque image region, and judging whether the store name information has changed according to the matching result comprises: If there is no signboard image area in the image acquired last time, the new store name identified by the current signboard image area is used as the newly added store name; and / or, According to the camera identification and PTZ value corresponding to the current image, the corresponding plaque position information obtained last time is obtained in the constructed inspection execution list; According to the new plaque position information and the current image, as well as the image acquired last time and each plaque position information acquired last time, it is determined whether there is an overlapping area between the current plaque image area and the corresponding plaque image area acquired last time; If there is no overlapping area, it is determined that the store name information has been changed; If there is an overlapping area, determine whether the store name information has changed based on the overlapping area.

4. The method for monitoring store information changes according to claim 3, characterized in that: If there is an overlapping area, the step of determining whether the store name information has been changed based on the overlapping area includes: If there is only one overlapping area between the current signboard image area and the corresponding signboard image area acquired last time, perform text recognition on the signboard image area acquired last time to obtain the old store name; If the new store name is completely consistent with the old store name, it is determined that the store name information has not been changed; otherwise, it is determined that the store name information has been changed.

5. The method for monitoring store information changes according to claim 3, characterized in that: If there is an overlapping area, the step of determining whether the store name information has been changed based on the overlapping area includes: If there are multiple overlapping areas between the current signboard image area and the corresponding signboard image area acquired last time, and there is only one overlapping area among the multiple overlapping areas, and the area ratio of the overlapping area in the current signboard image area is greater than or equal to a preset ratio threshold, the signboard image area acquired last time corresponding to the overlapping area is obtained, and text recognition is performed on the signboard image area acquired last time to obtain the old store name; If the new store name is completely consistent with the old store name, it is determined that the store name information has not been changed; otherwise, it is determined that the store name information has been changed; or, If there are multiple overlapping areas between the current signboard image area and the corresponding signboard image area acquired last time, for any overlapping area, the area ratio of the overlapping area in the last store signboard area is greater than or equal to a preset ratio threshold, the last acquired signboard image area corresponding to each overlapping area is obtained, and text recognition is performed on each last acquired signboard image area to obtain all old store names; If the new store name is consistent with all the old store names, it is determined that the store name information has not been changed, otherwise it is determined that the store name information has been changed.

6. The method for monitoring store information changes according to claim 3, characterized in that: If there is an overlapping area, the step of determining whether the store name information has been changed based on the overlapping area includes: If there are multiple overlapping areas between the current plaque image area and the corresponding plaque image area obtained last time, for any overlapping area, the area ratio of the overlapping area in the current plaque area is less than the preset ratio threshold, and the area ratio of the overlapping area in the last store plaque area is less than the ratio threshold, it is determined that the store information name has changed.

7. The method for monitoring store information changes according to claim 3 or 6, characterized in that: The step of determining whether the store name information has been changed includes: Obtain an image region with the same position information as the new plaque in the image acquired last time, and calculate an image similarity value between the image region and the current plaque image region; Determine the weight value of the image similarity value according to the total weight of the image similarity and the image similarity value; Determine the confidence level of the store name information change based on the total weight of the store name similarity, the total weight of the plaque color similarity, and the weight value of the image similarity; If the confidence level of the store name information change is greater than a confidence threshold, it is determined that the store name information has changed.

8. The method for monitoring store information changes according to claim 4 or 5, characterized in that: The step of determining whether the store name information has been changed also includes: Calculating the store name similarity between the new store name and the old store name, and determining a weight value of the store name similarity based on the total weight of the store name similarities and the store name similarities; Calculating the plaque color similarity between the new plaque color and the old plaque color, and determining the weight value of the plaque color similarity based on the total weight of the plaque color similarity and the plaque color similarity; Acquire an image region having the same position information as the new plaque in the image acquired last time, calculate an image similarity value between the image region and the current plaque image region, and determine a weight value of the image similarity value based on a total weight of the image similarity and the image similarity value; Determine the confidence level of the store name information change based on the weight values ​​of the store name similarity, the plaque color similarity, and the image similarity; If the confidence level of the store name information change is greater than a confidence threshold, it is determined that the store name information has changed.

9. A monitoring device for store information changes, characterized in that: The device comprises: A first acquisition module is used to acquire a current image captured by at least one camera based on each shooting parameter, and for each current image, determine at least one current plaque image area in the current image; A second acquisition module is used to acquire, according to the shooting parameters corresponding to the current image, the image acquired last time corresponding to the shooting parameters, and determine at least one plaque image region acquired last time in the image acquired last time; A matching module is used to determine the matching degree between each current signboard image area and each previously acquired signboard image area for each current signboard image area, and to judge whether the store name information has changed according to the matching result; The output module is used to output the result of the store name information change when it is determined that the store name information has changed.

10. An electronic device, characterized in that: include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus, and the memory is used to store a computer program, wherein the computer program includes instructions and data to implement the steps of the method for monitoring store information changes as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Image monitoring device and method therefor

    CN106507697A

  • Store identification method and device based on image, and electronic equipment

    CN109711399A

  • Image-text matching model training method, image-text matching method and device

    CN113901907A

  • Target event determination method and device, storage medium and electronic device

    CN114332706A

  • Business change detection from street level imagery

    US10339193B1