Automatic alarm method and device, storage medium and electronic equipment

CN116597369BActive Publication Date: 2026-09-11INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310250166.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-13
Publication Date
2026-09-11
Estimated Expiration
2043-03-13

AI Technical Summary

Technical Problem

[0004]本发明实施例提供了一种自动报警方法、装置、存储介质及电子设备,以至少解决现有技术中通过人工报警存在报警人员的人身安全性较低的技术问题

Benefits of technology

[0016] In this embodiment of the invention, an automatic alarm function is triggered based on a first number obtained from parsing the target image. First, multiple target images of first locations are acquired. Then, image extraction processing is performed on each target image to obtain target pixel information. Next, a first number corresponding to each target image is determined based on the target pixel information, resulting in multiple first numbers. If a target number exists among the multiple first numbers, the automatic alarm function is triggered based on the target number. The target image includes multiple stripes of varying widths. The target pixel information characterizes the width of the stripes, and the first number uniquely identifies each first location. The first number is represented by binary code, and the target number indicates that the first location is in an abnormal state.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116597369B_ABST
    Figure CN116597369B_ABST
Patent Text Reader

Abstract

The application discloses an automatic alarm method and device, a storage medium and electronic equipment, and relates to the field of financial technology. The method comprises the following steps: acquiring target images of a plurality of first places, wherein the target images comprise a plurality of stripes with different widths and narrownesses; performing image extraction processing on each target image respectively to obtain target pixel information of each target image, wherein the target pixel information is used for representing the width and narrowness of the stripes; determining a first number corresponding to each target image according to each target pixel information to obtain a plurality of first numbers, wherein the first number is used for uniquely identifying each first place, and the first number is represented by a binary code; and in the case that a target number exists in the plurality of first numbers, triggering an automatic alarm function according to the target number. The application solves the technical problem that the personal safety of the alarm personnel is low in the prior art through manual alarm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of financial technology, and more specifically, to an automatic alarm method, device, storage medium, and electronic device. Background Technology

[0002] Currently, financial institutions have an increasing number of service outlets. When a police incident occurs, the main method of reporting is to make an emergency call manually. This places high demands on the caller's on-the-spot reaction and communication skills. Furthermore, in some extreme cases, if criminals become aware of the caller's actions, it can easily trigger further criminal activity, resulting in a lower level of personal safety for the caller.

[0003] There is currently no effective solution to the above problems. Summary of the Invention

[0004] This invention provides an automatic alarm method, device, storage medium, and electronic device to at least solve the technical problem of low personal safety of alarm personnel in the prior art when using manual alarms.

[0005] According to one aspect of the present invention, an automatic alarm method is provided, comprising: acquiring multiple target images of first locations, wherein the target images include multiple stripes of different widths; performing image extraction processing on each target image to obtain target pixel information of each target image, wherein the target pixel information is used to characterize the width of the stripes; determining a first number corresponding to each target image based on each target pixel information to obtain multiple first numbers, wherein the first number is used to uniquely identify each first location and is represented by binary code; and triggering an automatic alarm function based on the target number when a target number exists among the multiple first numbers, wherein the target number is used to characterize that the first location is in an abnormal state.

[0006] Furthermore, the automatic alarm method also includes: assigning a first number to each first location before acquiring target images of multiple first locations; based on the first number, performing modulation processing on the target device of each first location using a first modulation mode to obtain a first modulation result, wherein the target device is used to present the first modulation result, and the first modulation result is used to characterize the brightness of the target device.

[0007] Furthermore, the automatic alarm method also includes: upon receiving at least one mode switching command, switching the modulation mode of the target device in the first location corresponding to the at least one mode switching command from a first modulation mode to a second modulation mode, wherein the first modulation mode and the second modulation mode have different numbers; based on the target number, using the second modulation mode to perform modulation processing on the target device in the first location corresponding to the at least one mode switching command to obtain a second modulation result, wherein the brightness of the second modulation result is different from that of the first modulation result.

[0008] Furthermore, the automatic alarm method also includes: performing data conversion processing on the target number to obtain a target PWM signal; and adjusting the duty cycle of the target device in the first location corresponding to at least one mode switching command using the target PWM signal to obtain a second modulation result.

[0009] Furthermore, the automatic alarm method also includes: calculating the width value of each stripe based on the information of each target pixel; determining the first number corresponding to each target image based on each width value, thereby obtaining multiple first numbers.

[0010] Furthermore, the automatic alarm method also includes: comparing each width value with a first threshold; if the width value is greater than the first threshold, determining the binary code corresponding to the width value as a first code; if the width value is less than or equal to the first threshold, determining the binary code corresponding to the width value as a second code, wherein the numbers corresponding to the first code and the second code are different; and determining a first number corresponding to each target image based on the first code and the second code, thereby obtaining multiple first numbers.

[0011] Furthermore, the automatic alarm method also includes: after determining the first number corresponding to each target image based on the information of each target pixel, and obtaining multiple first numbers, matching the multiple first numbers with the target number respectively; if the matching is successful, determining that the target number exists among the multiple first numbers.

[0012] Furthermore, the automatic alarm method also includes: if a target number exists among multiple first numbers, obtaining the first number corresponding to the target number; generating an alarm request based on the target number and the first number corresponding to the target number, wherein the alarm request is used to trigger the automatic alarm function.

[0013] According to another aspect of the present invention, an automatic alarm device is also provided, comprising: an acquisition module, configured to acquire multiple target images of first locations, wherein the target images include multiple stripes of different widths; a first processing module, configured to perform image extraction processing on each target image to obtain target pixel information of each target image, wherein the target pixel information is used to characterize the width of the stripes; a determination module, configured to determine a first number corresponding to each target image based on each target pixel information to obtain multiple first numbers, wherein the first number is used to uniquely identify each first location and is represented by binary code; and a second processing module, configured to trigger an automatic alarm function based on the target number if a target number exists among the multiple first numbers, wherein the target number is used to characterize that the first location is in an abnormal state.

[0014] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, wherein the computer program is configured to execute the above-described automatic alarm method when it is run.

[0015] According to another aspect of the present invention, an electronic device is also provided, the electronic device including one or more processors; a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are configured to run the programs, wherein the programs are configured to execute the above-described automatic alarm method when running.

[0016] In this embodiment of the invention, an automatic alarm function is triggered based on a first number obtained from parsing the target image. First, multiple target images of first locations are acquired. Then, image extraction processing is performed on each target image to obtain target pixel information. Next, a first number corresponding to each target image is determined based on the target pixel information, resulting in multiple first numbers. If a target number exists among the multiple first numbers, the automatic alarm function is triggered based on the target number. The target image includes multiple stripes of varying widths. The target pixel information characterizes the width of the stripes, and the first number uniquely identifies each first location. The first number is represented by binary code, and the target number indicates that the first location is in an abnormal state.

[0017] In the aforementioned process, acquiring multiple target images of the first location provides a data foundation for subsequently determining multiple first numbers. Based on these multiple first numbers, it can be determined whether to trigger the automatic alarm function. That is, if the target number exists among the multiple first numbers, the automatic alarm function is triggered based on the target number, achieving timely alarm notification when an alarm occurs. Furthermore, from the occurrence of an alarm to its completion, it only requires manually or automatically switching the modulation mode of the target device to generate a target number. After parsing the target image, if the target number exists among the multiple first numbers, the automatic alarm is triggered. This alarm process is achieved without the perpetrator's awareness, greatly protecting the alarm personnel and improving their personal safety.

[0018] Therefore, the technical solution of this invention achieves the goal of triggering an alarm process without the criminals noticing, thereby improving the personal safety of alarm personnel and solving the technical problem of low personal safety of alarm personnel in the prior art when using manual alarms. Attached Figure Description

[0019] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0020] Figure 1 This is a flowchart of an optional automatic alarm method according to an embodiment of the present invention;

[0021] Figure 2 This is a schematic diagram of the operation of an optional automatic alarm system according to an embodiment of the present invention;

[0022] Figure 3 This is a schematic diagram of an optional automatic alarm device according to an embodiment of the present invention;

[0023] Figure 4 This is a schematic diagram of an optional electronic device according to an embodiment of the present invention. Detailed Implementation

[0024] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0026] It should be noted that all relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this invention are information and data authorized by the user or fully authorized by all parties. For example, this system has an interface with the relevant user or organization. Before obtaining relevant information, it needs to send an acquisition request to the aforementioned user or organization through the interface, and obtain the relevant information after receiving consent from the aforementioned user or organization.

[0027] Example 1

[0028] According to an embodiment of the present invention, an embodiment of an automatic alarm method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0029] Figure 1 This is a flowchart of an optional automatic alarm method according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:

[0030] Step S101: Acquire multiple target images of the first location, wherein the target images include multiple stripes of different widths.

[0031] In the above steps, multiple target images of the first location can be acquired through application systems, processors, electronic devices, etc. Optionally, multiple target images of the first location can be acquired through an automatic alarm system. The first location can be a service outlet of a financial institution, and the target images can be pre-processed images.

[0032] In one optional embodiment, before acquiring multiple target images of the first locations, images of the target devices are acquired by the first devices of each first location based on a preset time interval to obtain a first image of each first location; image preprocessing is performed on the first images of each first location to obtain multiple target images of the first locations, wherein the image preprocessing includes at least one of the following: image enhancement processing and image smoothing processing.

[0033] Optionally, the first device can be a camera, webcam, or other capturing device, the target device can be an LED device, such as an LED light or LED screen, and the first image can be an image from the target device, such as an image from an LED light. Due to the characteristics of LED light sources, the captured image will include multiple stripes of varying widths.

[0034] Specifically, before acquiring multiple target images of the first locations, LED lights are captured periodically using a CMOS camera at each location to obtain an image of the LED light at each location. Then, preprocessing such as image enhancement and image smoothing is performed on the LED light images of each location to obtain multiple target images of the locations. For example, the LED light images are converted from original color images to grayscale images. Further, the grayscale images are converted to black and white images through contrast enhancement. Pixel values ​​are converted according to a set pixel threshold; for example, if the pixel threshold is 125, pixel values ​​greater than 125 are converted to pure white (i.e., 255), and pixel values ​​less than or equal to 125 are converted to pure black (i.e., 0). Further, for each row of pixels in the parallel direction of the image stripes, the number of black / white pixels is calculated, and all pixels in each row are converted to black / white, resulting in an image containing multiple stripes of varying widths of pure black and pure white, i.e., the target image.

[0035] Step S102: Perform image extraction processing on each target image to obtain target pixel information for each target image, wherein the target pixel information is used to characterize the width of the stripes.

[0036] In the above steps, each target image can be extracted and processed by an automatic alarm system. Optionally, the image extraction and processing can be dimensionality reduction processing, and the target pixel information can be a column of pixel information, such as the number of pure black pixels and the number of pure white pixels in a column.

[0037] Specifically, a column of pixels is taken along the vertical direction of the stripes, and the two-dimensional image is converted into one-dimensional pixel information. Optionally, a pixel information image can be generated based on this pixel information, with the horizontal axis representing the position of the pixel and the vertical axis representing the pixel value.

[0038] Step S103: Based on the information of each target pixel, determine the first number corresponding to each target image to obtain multiple first numbers. The first number is used to uniquely identify each first location and is represented by binary code.

[0039] In the above steps, the first number can be the number corresponding to each halftone dot under normal circumstances. For example, the first number of halftone dot A is 000001, and the first number of halftone dot B is 000010. Optionally, based on the information of each target pixel, the first number corresponding to each target image can be determined, resulting in multiple first numbers. Specifically, based on the information of each target pixel, the width value of each stripe can be calculated, and then based on each width value, the first number corresponding to each target image can be determined, resulting in multiple first numbers.

[0040] Step S104: If a target number exists among multiple first numbers, trigger an automatic alarm function based on the target number, whereby the target number is used to indicate that the first location is in an abnormal state.

[0041] In the above steps, the target number can be a special alarm number corresponding to all branches when an alarm occurs. For example, if the target number is 111000, and the target number exists among multiple first numbers, it is considered that an alarm has occurred. At this time, the automatic alarm system will trigger the automatic alarm function based on the target number. If the target number does not exist among multiple first numbers, it is considered that each branch is in a normal state and no alarm has occurred.

[0042] Based on the scheme defined in steps S101 to S104 above, it can be understood that in this embodiment of the invention, the method of determining whether to trigger the automatic alarm function based on the first number obtained by parsing the target image involves first acquiring multiple target images of first locations, then performing image extraction processing on each target image to obtain target pixel information for each target image, then determining the first number corresponding to each target image based on the target pixel information, resulting in multiple first numbers, and then triggering the automatic alarm function based on the target number if a target number exists among the multiple first numbers. The target image includes multiple stripes of varying widths, the target pixel information is used to characterize the width of the stripes, the first number is used to uniquely identify each first location, the first number is represented by binary code, and the target number is used to characterize that the first location is in an abnormal state.

[0043] It is noteworthy that, in the aforementioned process, acquiring multiple target images of the first location provides a data foundation for subsequently determining multiple first numbers. Based on these multiple first numbers, it can be determined whether to trigger the automatic alarm function. That is, if the target number exists among the multiple first numbers, the automatic alarm function is triggered based on the target number, achieving timely alarm notification when an alarm occurs. Furthermore, from the occurrence of an alarm to its completion, it only requires manually or automatically switching the modulation mode of the target device to generate a target number. After parsing the target image, if the target number exists among the multiple first numbers, the automatic alarm is triggered. This alarm process is achieved without the perpetrator's awareness, greatly protecting the alarm personnel and improving their personal safety.

[0044] Therefore, the technical solution of this invention achieves the goal of triggering an alarm process without the criminals noticing, thereby improving the personal safety of alarm personnel and solving the technical problem of low personal safety of alarm personnel in the prior art when using manual alarms.

[0045] In one optional embodiment, before acquiring target images of multiple first locations, a first number is assigned to each first location, and then based on the first number, a first modulation mode is used to modulate the target device in each first location to obtain a first modulation result, wherein the target device is used to present the first modulation result, and the first modulation result is used to characterize the brightness of the target device.

[0046] Optionally, the first modulation mode can be the normal mode, i.e., the mode in which the modulation signal is generated using the first number, and the first modulation result can be the LED light modulated by the normal mode. Specifically, each branch of the financial institution is assigned its own unique number (i.e., the first number). For example, the first number of branch A is 000001, and the first number of branch B is 000010.

[0047] Optional, Figure 2 This is a schematic diagram of the operation of an optional automatic alarm system according to an embodiment of the present invention, such as... Figure 2 As shown, under normal circumstances, the LED lights within the network are modulated using their unique numbers, meaning the light emitted by the LED lights is the result of normal mode modulation. Optionally, in this embodiment, the number of target devices can be set according to requirements; it can be one or more, and the number of target devices is not limited here.

[0048] It should be noted that in the above process, by assigning a first number to each first location, a data basis was provided for subsequently determining whether an incident had occurred.

[0049] In one optional embodiment, upon receiving at least one mode switching instruction, the modulation mode of the target device in the first location corresponding to the at least one mode switching instruction is switched from a first modulation mode to a second modulation mode. Then, based on the target number, the target device in the first location corresponding to the at least one mode switching instruction is modulated using the second modulation mode to obtain a second modulation result. The first and second modulation modes correspond to different numbers, and the brightness of the second modulation result differs from that of the first modulation result.

[0050] Optionally, the mode switching command can be issued manually or automatically upon the occurrence of an alarm. For example, when an alarm occurs at a certain location, the staff at the location triggers the switch, sending a mode switching command to the automatic alarm system. Optionally, the second modulation mode can be a special mode, i.e., a mode that generates a modulation signal using a target number. The second modulation result can be an LED light modulated by the special mode, i.e., an LED light with a changed duty cycle.

[0051] Optionally, when the automatic alarm system receives at least one mode switching command, the modulation mode of the LED light at the network point corresponding to the at least one mode switching command is switched from the normal mode to the special mode, that is, the modulation number of the LED light is switched from the first number to the target number (i.e., the alarm special number). For example, under normal circumstances, network point A uses the first number 000001 to modulate the LED light. When an alarm occurs, the modulation number of the LED light is switched from the first number 000001 to the target number 111000 for modulation.

[0052] In one optional embodiment, in the process of modulating the target device of the first location corresponding to at least one mode switching instruction based on the target number and using the second modulation mode to obtain the second modulation result, the target number is first processed by data conversion to obtain the target PWM signal, and then the duty cycle of the target device of the first location corresponding to at least one mode switching instruction is adjusted by the target PWM signal to obtain the second modulation result.

[0053] Optionally, the target PWM signal can be a PWM modulation signal that modulates the lighting of the target device based on the target number. The target PWM signal can be obtained by performing data conversion processing on the target number through the automatic alarm system. Furthermore, by adjusting the duty cycle of the LED lights of at least one network point corresponding to the mode switching command (i.e., the network point where the alarm occurred) through the target PWM signal, the LED lights modulated by the special mode can be obtained.

[0054] It should be noted that in the above process, by using the first or target number combined with PWM pulse width modulation technology, the brightness of the LED can be adjusted by changing the duty cycle. That is, when the LED light is dimmed using PWM, different duty cycles can control the light intensity. The modulated light and the switched light are imperceptible to the human eye. For example, when the code is 1, the duty cycle is large within one cycle; when the code is 0, the duty cycle is small within one cycle. Figure 2 As shown, when a camera captures an LED image, it produces a narrow striped image. Because the duty cycles corresponding to 0 and 1 codes are different, the LED lights emitted after modulation of the target device using different codes vary, resulting in different stripe widths in the target image captured by the camera. This allows the location of the incident to be identified, triggering an automatic alarm. The alarm process is achieved without the perpetrators noticing, greatly protecting the alarm personnel and improving their personal safety.

[0055] In one optional embodiment, in the process of determining the first number corresponding to each target image based on each target pixel information and obtaining multiple first numbers, firstly, the width value of each stripe is calculated based on each target pixel information, and then the first number corresponding to each target image is determined based on each width value, thus obtaining multiple first numbers.

[0056] In one optional embodiment, in the process of determining a first number corresponding to each target image based on each width value to obtain multiple first numbers, each width value is first compared with a first threshold. Then, if the width value is greater than the first threshold, the binary code corresponding to that width value is determined as a first code; if the width value is less than or equal to the first threshold, the binary code corresponding to that width value is determined as a second code. Then, based on the first code and the second code, the first number corresponding to each target image is determined, resulting in multiple first numbers. The numbers corresponding to the first code and the second code are different.

[0057] Optionally, the first code can be 1, and the second code can be 0. Optionally, the width of each stripe is calculated based on the information of each target pixel. For example, based on the pixel information of a certain column in the target image of halftone dot A, the number of pure black pixels and pure white pixels in that column can be determined, thus allowing the calculation of the width of each stripe in the target image of halftone dot A. Optionally, the derivative is calculated based on the pixel information of a certain column, with the derivative value being 0 except at the stripe boundary. The number of pixels between the calculated non-zero derivatives is the stripe width.

[0058] Optionally, the PWM modulation frequency is f LED The period of a single codeword is t LED When the codeword is 1, the duty cycle is b.H When the codeword is 0, the duty cycle is b. L Since a sequence of numbers has n codewords, a shutter frequency of n×f is used. LED By capturing images of the LED with cameras that are integer multiples of its width, an image of the LED with both wide and narrow stripes can be obtained. In this case, the width ratio of the wide stripes to the narrow stripes is: This ratio is taken as the first ratio.

[0059] Optionally, in this embodiment, after calculating the width value of each stripe based on the information of each target pixel, the calculation result can be verified. Specifically, the ratio of the width of the wide stripe to the width of the narrow stripe is calculated to obtain a second ratio. By comparing the first ratio and the second ratio, it can be determined whether the calculated width value is correct. For example, if the difference between the first ratio and the second ratio is less than a second threshold, the calculated width value is determined to be correct.

[0060] Furthermore, based on each width value, a first number corresponding to each target image can be determined, resulting in multiple first numbers. Specifically, each width value is compared with a first threshold. If the width value is greater than the first threshold, the binary code corresponding to that width value is determined as the first code; if the width value is less than or equal to the first threshold, the binary code corresponding to that width value is determined as the second code. Then, based on the first code and the second code, the first number corresponding to each target image is determined, resulting in multiple first numbers.

[0061] For example, if a target image contains three black stripes 1, 2, and 3, with stripe 1 having a width of 1.2, stripe 2 having a width of 1.3, and stripe 3 having a width of 2, and a first threshold of 1.5, then stripe 1's width is less than the first threshold (1.2 < 1.5), and stripe 2's width is also less than the first threshold (1.3 < 1.5). Therefore, the binary code corresponding to stripe 1 and stripe 2 is determined to be the second code (i.e., 0). Stripe 3's width is greater than the first threshold (2 > 1.5), so the binary code corresponding to stripe 3 is determined to be the first code (i.e., 1). Thus, the first number corresponding to the target image is determined to be 001.

[0062] In one optional embodiment, after determining the first number corresponding to each target image based on the information of each target pixel and obtaining multiple first numbers, the multiple first numbers are first matched with the target number respectively, and then, if the match is successful, it is determined that the target number exists among the multiple first numbers.

[0063] In one optional embodiment, when a target number exists among multiple first numbers, during the process of triggering the automatic alarm function based on the target number, firstly, when a target number exists among multiple first numbers, the first number corresponding to the target number is obtained, and then an alarm request is generated based on the target number and the first number corresponding to the target number, wherein the alarm request is used to trigger the automatic alarm function.

[0064] Optionally, multiple first numbers can be matched with target numbers separately. For example, the first number of site A is 000001, the first number of site B is 000010, and the special alarm number is 111000. The first numbers determined based on the information of each target pixel are 000001 and 111000. 111000 matches the target number (i.e., the special alarm number) 111000 successfully, meaning that the target number exists among the multiple first numbers.

[0065] Optionally, if a target number exists among multiple first numbers, the first number corresponding to the target number is obtained. For example, the first number corresponding to the target number is the first number of site B (i.e., 000010). Further, based on the target number and the first number corresponding to it, an alarm request is generated. For example, by periodically capturing LED photos through a camera and obtaining the number through image processing, it is determined whether it is a special alarm number. If so, the server-side alarm interface is immediately called to generate an alarm request, sending information such as geographical location. The alarm interface automatically assembles the alarm description information and triggers the intelligent voice customer service to make an alarm call.

[0066] It should be noted that in the above process, based on the first number corresponding to the target number, the target location (i.e., the location where the alarm occurred) can be determined from multiple first locations, and an automatic alarm can be triggered, realizing the alarm process without the criminals noticing.

[0067] In this embodiment, by performing PWM modulation on the LED lights in various locations of financial institutions (e.g., branches), once an alarm occurs in the location, the modulation format of the LED lights can be switched immediately. A CMOS camera is used to capture the LED lights at regular intervals, and the images can be transmitted to a computer for image processing. If the parsed number is a special alarm number, an alarm can be automatically triggered without the criminals noticing.

[0068] Therefore, the technical solution of this invention achieves the goal of triggering an alarm process without the criminals noticing, thereby improving the personal safety of alarm personnel and solving the technical problem of low personal safety of alarm personnel in the prior art when using manual alarms.

[0069] Example 2

[0070] According to an embodiment of the present invention, an embodiment of an automatic alarm device is provided, wherein, Figure 3 This is a schematic diagram of an optional automatic alarm device according to an embodiment of the present invention, such as... Figure 3 As shown, the device includes: an acquisition module 301, used to acquire multiple target images of first locations, wherein the target images include multiple stripes of different widths; a first processing module 302, used to perform image extraction processing on each target image to obtain target pixel information of each target image, wherein the target pixel information is used to characterize the width of the stripes; a determination module 303, used to determine a first number corresponding to each target image based on each target pixel information to obtain multiple first numbers, wherein the first number is used to uniquely identify each first location and is represented by binary code; and a second processing module 304, used to trigger an automatic alarm function based on the target number if a target number exists among the multiple first numbers, wherein the target number is used to characterize that the first location is in an abnormal state.

[0071] It should be noted that the above-mentioned acquisition module 301, first processing module 302, determination module 303 and second processing module 304 correspond to steps S101 to S104 in the above embodiments. The four modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the content disclosed in the above embodiment 1.

[0072] Optionally, the automatic alarm device further includes: a third processing module, used to assign a first number to each first location; and a fourth processing module, used to perform modulation processing on the target device of each first location based on the first number and using a first modulation mode to obtain a first modulation result, wherein the target device is used to present the first modulation result, and the first modulation result is used to characterize the brightness of the target device.

[0073] Optionally, the automatic alarm device further includes: a fifth processing module, used to switch the modulation mode of the target device in the first location corresponding to the at least one mode switching command from a first modulation mode to a second modulation mode upon receiving at least one mode switching command, wherein the first modulation mode and the second modulation mode have different numbers; and a sixth processing module, used to perform modulation processing on the target device in the first location corresponding to the at least one mode switching command based on the target number and using the second modulation mode to obtain a second modulation result, wherein the brightness of the second modulation result is different from that of the first modulation result.

[0074] Optionally, the sixth processing module includes: a seventh processing module for performing data conversion processing on the target number to obtain a target PWM signal; and an eighth processing module for adjusting the duty cycle of the target device in the first location corresponding to at least one mode switching command through the target PWM signal to obtain a second modulation result.

[0075] Optionally, the determining module includes: a first determining module, used to calculate the width value of each stripe based on the information of each target pixel; and a second determining module, used to determine a first number corresponding to each target image based on each width value, thereby obtaining multiple first numbers.

[0076] Optionally, the second determining module includes: a comparison module, used to compare each width value with a first threshold respectively; a third determining module, used to determine the binary code corresponding to the width value as a first code when the width value is greater than the first threshold; a fourth determining module, used to determine the binary code corresponding to the width value as a second code when the width value is less than or equal to the first threshold, wherein the numbers corresponding to the first code and the second code are different; and a fifth determining module, used to determine a first number corresponding to each target image based on the first code and the second code, thereby obtaining multiple first numbers.

[0077] Optionally, the automatic alarm device further includes: a matching module for matching multiple first numbers with target numbers respectively; and a sixth determining module for determining that, if the matching is successful, the target number exists among the multiple first numbers.

[0078] Optionally, the second processing module includes: a first acquisition module, used to acquire the first number corresponding to the target number when there is a target number among multiple first numbers; and an alarm module, used to generate an alarm request based on the target number and the first number corresponding to the target number, wherein the alarm request is used to trigger an automatic alarm function.

[0079] Example 3

[0080] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the above-described automatic alarm method when it is run.

[0081] Example 4

[0082] According to another aspect of the present invention, an electronic device is also provided, wherein, Figure 4 This is a schematic diagram of an optional electronic device according to an embodiment of the present invention, such as... Figure 4As shown, the electronic device includes one or more processors; a memory for storing one or more programs, which, when executed by the one or more processors, enable the one or more processors to run the programs, wherein the programs are configured to execute the aforementioned automatic alarm method. When the processor executes the program, it performs the following steps: acquiring multiple target images of first locations, wherein each target image includes multiple stripes of varying widths; performing image extraction processing on each target image to obtain target pixel information for each target image, wherein the target pixel information is used to characterize the width of the stripes; determining a first number corresponding to each target image based on each target pixel information, resulting in multiple first numbers, wherein the first number is used to uniquely identify each first location and is represented by binary code; and triggering an automatic alarm function based on the target number if a target number exists among the multiple first numbers, wherein the target number is used to characterize that the first location is in an abnormal state.

[0083] Optionally, the processor may further implement the following steps when executing the program: before acquiring target images of multiple first locations, assigning a first number to each first location; based on the first number, performing modulation processing on the target device of each first location using a first modulation mode to obtain a first modulation result, wherein the target device is used to present the first modulation result, and the first modulation result is used to characterize the brightness of the target device.

[0084] Optionally, when the processor executes the program, it further implements the following steps: upon receiving at least one mode switching instruction, it switches the modulation mode of the target device in the first location corresponding to the at least one mode switching instruction from a first modulation mode to a second modulation mode, wherein the first modulation mode and the second modulation mode have different numbers; based on the target number, it uses the second modulation mode to perform modulation processing on the target device in the first location corresponding to the at least one mode switching instruction to obtain a second modulation result, wherein the brightness of the second modulation result is different from that of the first modulation result.

[0085] Optionally, the processor may further perform the following steps when executing the program: perform data conversion processing on the target number to obtain a target PWM signal; and adjust the duty cycle of the target device in the first location corresponding to at least one mode switching instruction using the target PWM signal to obtain a second modulation result.

[0086] Optionally, the processor may also perform the following steps when executing the program: calculate the width value of each stripe based on the information of each target pixel; determine the first number corresponding to each target image based on each width value, and obtain multiple first numbers.

[0087] Optionally, the processor, when executing the program, also performs the following steps: comparing each width value with a first threshold; if the width value is greater than the first threshold, determining the binary code corresponding to the width value as a first code; if the width value is less than or equal to the first threshold, determining the binary code corresponding to the width value as a second code, wherein the numbers corresponding to the first code and the second code are different; and determining a first number corresponding to each target image based on the first code and the second code, thereby obtaining multiple first numbers.

[0088] Optionally, the processor may also perform the following steps when executing the program: after determining the first number corresponding to each target image based on the information of each target pixel, and obtaining multiple first numbers, matching the multiple first numbers with the target number respectively; if the matching is successful, determining that the target number exists among the multiple first numbers.

[0089] Optionally, the processor may also perform the following steps when executing the program: if a target number exists among multiple first numbers, obtain the first number corresponding to the target number; generate an alarm request based on the target number and the first number corresponding to the target number, wherein the alarm request is used to trigger the automatic alarm function.

[0090] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.

[0091] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0092] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0093] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0094] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0095] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0096] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0097] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. An automatic alarm method, characterized in that, include: Acquire multiple target images of a first location, wherein the target images include multiple stripes of varying widths; Image extraction processing is performed on each target image to obtain target pixel information for each target image, wherein the target pixel information is used to characterize the width of the stripes; Based on the information of each target pixel, a first number corresponding to each target image is determined, resulting in multiple first numbers. The first number is used to uniquely identify each first location, and the first number is represented by binary code. If a target number exists among the plurality of first numbers, an automatic alarm function is triggered based on the target number. The target number is used to indicate that the first location is in an abnormal state. The target number is generated by changing the first number to a preset alarm special code by switching the modulation mode of the target device. The method further includes, after determining a first number corresponding to each target image based on the information of each target pixel, and obtaining multiple first numbers, the method further includes: Each of the plurality of first numbers is matched with the target number; If a match is successful, it is determined that the target number exists among the plurality of first numbers.

2. The method according to claim 1, characterized in that, Before acquiring multiple target images of the first location, the method further includes: Assign the first number to each of the first locations; Based on the first number, the target device in each first location is modulated using a first modulation mode to obtain a first modulation result, wherein the target device is used to present the first modulation result, and the first modulation result is used to characterize the brightness of the target device.

3. The method according to claim 2, characterized in that, The method further includes: Upon receiving at least one mode switching instruction, the modulation mode of the target device in the first location corresponding to the at least one mode switching instruction is switched from the first modulation mode to the second modulation mode, wherein the first modulation mode and the second modulation mode have different numbers. Based on the target number, the target device in the first location corresponding to the at least one mode switching instruction is modulated using the second modulation mode to obtain a second modulation result, wherein the brightness of the second modulation result is different from that of the first modulation result.

4. The method according to claim 3, characterized in that, Based on the target number, the target device in the first location corresponding to the at least one mode switching instruction is modulated using the second modulation mode to obtain a second modulation result, including: The target number is processed by data conversion to obtain the target PWM signal; By adjusting the duty cycle of the target device in the first location corresponding to the at least one mode switching command using the target PWM signal, the second modulation result is obtained.

5. The method according to claim 1, characterized in that, Based on the information of each target pixel, a first number corresponding to each target image is determined, resulting in multiple first numbers, including: The width value of each stripe is calculated based on the target pixel information. Based on each width value, a first number corresponding to each target image is determined, thus obtaining the plurality of first numbers.

6. The method according to claim 5, characterized in that, Based on each width value, a first number corresponding to each target image is determined, resulting in the plurality of first numbers, including: Each width value is compared with the first threshold. If the width value is greater than the first threshold, the binary code corresponding to the width value is determined to be the first code; If the width value is less than or equal to the first threshold, the binary code corresponding to the width value is determined to be the second code, wherein the numbers corresponding to the first code and the second code are different; Based on the first code and the second code, a first number corresponding to each target image is determined, thereby obtaining the plurality of first numbers.

7. The method according to claim 1, characterized in that, If a target number exists among the plurality of first numbers, an automatic alarm function is triggered based on the target number, including: If the target number exists among the plurality of first numbers, obtain the first number corresponding to the target number; An alarm request is generated based on the target number and the first number corresponding to the target number, wherein the alarm request is used to trigger the automatic alarm function.

8. An automatic alarm device, characterized in that, include: An acquisition module is used to acquire multiple target images of a first location, wherein the target images include multiple stripes of different widths; The first processing module is used to perform image extraction processing on each target image to obtain target pixel information of each target image, wherein the target pixel information is used to characterize the width of the stripes; The determining module is used to determine a first number corresponding to each target image based on the information of each target pixel, thereby obtaining multiple first numbers, wherein the first number is used to uniquely identify each first location, and the first number is represented by binary code; The second processing module is used to trigger an automatic alarm function based on the target number when a target number exists among the plurality of first numbers. The target number is used to indicate that the first location is in an abnormal state. The target number is generated by changing the first number to a preset alarm special code by switching the modulation mode of the target device. The device further includes: a matching module for matching multiple first numbers with target numbers respectively; and a sixth determining module for determining that, if a match is successful, a target number exists among the multiple first numbers.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the automatic alarm method according to any one of claims 1 to 7 when it is run.

10. An electronic device, characterized in that, The electronic device includes one or more processors; A memory for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to be configured to run the programs, wherein the programs are configured to execute the automatic alarm method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Identification card with concealed coding and a simple reader module to decode it

    CA1207457A

  • Bank intelligent monitoring system based on edge computing

    CN115762050A

  • Method and system for automatically detecting belt tearing state based on visual technology

    CN115908272A