Remote alarm device and method for security and protection of cultural relics
By designing a remote alarm device for security of wooden cultural relics using preset frequency light monitoring, the problem of automatic early warning cannot be achieved in the existing technology is solved, automatic supervision and remote alarm of cultural relics are realized, labor costs are reduced and anti-theft protection is improved Effect.
Patent Information
- Application Number
- CN202411644697.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-02-21
AI Technical Summary
The existing cultural relics supervision system relies on manual inspection and equipment monitoring, and cannot achieve automatic early warning, resulting in high labor costs and ineffective anti-theft.
A remote alarm device for security of wooden cultural relics is designed, and the light at preset frequency is used for monitoring, and the reflected spectral image is collected through the camera. The feature peak recognition module generates a remote alarm signal, and sends emails and text messages through the software.
It realizes automatic supervision of cultural relics and remote alarm, reduces labor costs, improves the anti-theft protection effect, and is suitable for immovable wooden cultural relics components.
Smart Images

Figure CN119495155A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cultural relics detection, in particular to a remote alarm device and method for cultural relics security. Background Art
[0002] At present, the management and protection of cultural relics are becoming more and more important, but they are also facing huge challenges. The existing cultural relics supervision system mainly adopts a combination of equipment monitoring and manual inspection. Equipment monitoring usually uses video monitoring, but the current surveillance camera video data often does not have an automatic alarm function. It is necessary to arrange personnel on duty in the monitoring room, which has high labor costs and cannot play the role of automatic warning in advance, making it inconvenient to use.
[0003] Therefore, a device and method for automatically monitoring cultural relics and providing a remote alarm in a timely manner is needed. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a wooden cultural relic security remote alarm device and method, which uses light of preset frequency to monitor and generate remote alarm signals according to changes in target position, thereby realizing automatic supervision of cultural relics.
[0005] In order to achieve the above object, the present invention provides the following technical solutions:
[0006] The cultural relics security remote alarm device provided by the present invention comprises a light source module, a camera, a filter, a characteristic peak recognition module, and an alarm device;
[0007] The light source module emits light with a preset frequency toward the target to be monitored;
[0008] The camera is used to collect a spectral image with a preset frequency reflected from the target to be monitored;
[0009] The optical filter is used to allow light with a preset frequency reflected from the target to be monitored to pass through;
[0010] The characteristic peak recognition module is used to receive the image of the spectrum reflected from the target to be monitored, and generate a remote alarm signal according to the matching degree of the image;
[0011] The alarm device is used to send emails to a designated mailbox and send text messages to a designated number through software according to a remote alarm signal.
[0012] Furthermore, a slot for fixing an infrared polarizer is provided in front of the light emitting portion of the light source module to adjust the infrared polarizers in front of the camera and the light source;
[0013] The light source module adopts a stable narrow-band light source module in a specific near-infrared band, and a plurality of light source module bulbs of the same specification are packaged and fixed in the light source module.
[0014] Furthermore, the camera adopts a UVC driver-free USB camera, the UVC driver is adapted to the Linux system architecture of the Raspberry Pi 4b, and is connected to the Raspberry Pi using a USB cable; an infrared polarizer and a filter are arranged in front of the lens of the camera.
[0015] Furthermore, a characteristic spectrum tag is provided on the target to be monitored, and a film material capable of reflecting light of a preset characteristic peak band is provided on the characteristic spectrum tag, and the light of the preset characteristic peak reflected by the film material is consistent with the characteristic peak identifiable in the characteristic peak identification module.
[0016] Furthermore, the characteristic peak identification module generates an alarm signal in the following manner:
[0017] When the light reflected by the film material is a preset characteristic peak and matches the characteristic peak that can be identified in the characteristic peak identification module, the characteristic peak identification module will not generate an alarm signal;
[0018] When the light reflected by the film material matches the preset characteristic peak, but the position does not match the degree, the characteristic peak recognition module generates and sends a remote alarm signal;
[0019] When the light reflected by the film material has a low matching degree with the preset characteristic peak, and has a low matching degree with the characteristic peak identifiable in the characteristic peak identification module, the characteristic peak identification module will send a remote alarm signal.
[0020] Further, the matching of the characteristic peaks is determined in the following manner:
[0021] From the upper left corner (0,0) of the captured spectrum image, intercept an image of the same size as the preset characteristic peak image, compare the intercepted image with the preset characteristic peak, and calculate the matching degree S(x,y) according to the following formula:
[0022]
[0023] Wherein, T is the preset characteristic peak image, T(x, y) is the gray value of the corresponding coordinate, I is the captured image, and I(x, y) is the gray value of the corresponding coordinate;
[0024] In this way, we traverse each pixel from left to right and from top to bottom and take the maximum value of all matching degrees S(x,y).
[0025] Further, the matching of the positions is determined in the following manner:
[0026] From the upper left corner (0,0) of the captured spectrum image, intercept an image of the same size as the preset characteristic peak image, compare the intercepted image with the preset characteristic peak, and calculate the displacement distance according to the following formula:
[0027]
[0028] Wherein, w and h are the width and height of the preset characteristic peak image, respectively; x0 and y0 are the horizontal and vertical coordinates of the center position of the preset characteristic peak image, respectively; and K is the ratio of the actual distance to the length of one pixel.
[0029] The cultural relics security remote alarm method provided by the present invention comprises the following steps:
[0030] S1: Initialize the program and turn on the camera;
[0031] S2: Set the image size and exposure;
[0032] S3: timing driving the camera to take pictures; emitting light of a preset frequency through the infrared polarizer to the target to be monitored; receiving light of a preset frequency through the filter reflected from the target to be monitored; obtaining a spectral characteristic signal reflected from the target to be monitored;
[0033] S4: Calculate the matching degree S between the captured image and the preset characteristic peak;
[0034] S5: Determine whether the matching degree is greater than a preset value. If not, use the software to send an email and drive EC600N to send a text message; enter the next step of capturing the video stream; if yes, calculate the distance between the center point of the best matching position and the center point of the initial tag to obtain the displacement distance D, and determine whether the displacement distance D is less than a preset distance threshold. If not, use the software to send an email and drive EC600N to send a text message, and enter the next step of capturing the video stream; if yes, it is determined to be in a normal state;
[0035] S6: Save the obtained matching degree S, displacement distance D, shooting time and the shot picture locally on the Raspberry Pi;
[0036] S7: The camera is driven to take pictures again at a fixed time, and the above process is repeated.
[0037] Furthermore, the matching degree S is calculated in the following manner:
[0038] From the upper left corner (0,0) of the captured spectrum image, intercept an image of the same size as the preset characteristic peak image, compare the intercepted image with the preset characteristic peak, and calculate the matching degree S(x,y) according to the following formula:
[0039]
[0040] Wherein, T is the preset characteristic peak image, T(x, y) is the gray value of the corresponding coordinate, I is the captured image, and I(x, y) is the gray value of the corresponding coordinate;
[0041] In this way, we traverse each pixel from left to right and from top to bottom and take the maximum value of all matching degrees S(x,y).
[0042] Further, the displacement distance D is calculated in the following manner:
[0043] From the upper left corner (0,0) of the captured spectrum image, intercept an image of the same size as the preset characteristic peak image, compare the intercepted image with the preset characteristic peak, and calculate the displacement distance according to the following formula:
[0044]
[0045] Wherein, w and h are the width and height of the preset characteristic peak image, respectively; x0 and y0 are the horizontal and vertical coordinates of the center position of the preset characteristic peak image, respectively; and K is the ratio of the actual distance to the length of one pixel.
[0046] The beneficial effects of the present invention are:
[0047] The wooden cultural relic security remote alarm device and method provided by the present invention are suitable for immovable wooden cultural relic components. The device controls a camera through a Raspberry Pi to achieve anti-theft protection for target wooden cultural relic parts. By detecting an image formed by light of a preset frequency, it automatically determines whether to send a security threat and send a remote alarm according to a python code. A specific light band alarm device is formed by a camera and a filter, thereby eliminating the need to detect the inherent geometric color or contour of the cultural relic, further improving the security protection effect, and having broad market value.
[0048] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to make the purpose, technical solution and beneficial effects of the present invention clearer, the present invention provides the following drawings for explanation.
[0050] Figure 1 This is the principle block diagram of the remote alarm device for wooden cultural relics security.
[0051] Figure 2 This is a flow chart of the remote alarm method for wooden cultural relics security.
[0052] Figure 3 It is a schematic diagram of the matching degree between the spectral characteristic peak signal and the preset characteristic peak. DETAILED DESCRIPTION
[0053] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0054] Example 1
[0055] like Figure 1 As shown, the cultural relics security remote alarm device provided in this embodiment includes a light source module, a camera, a filter, a characteristic peak recognition module, and an alarm device;
[0056] The light source module emits light with a preset frequency toward the target to be monitored;
[0057] The camera is used to collect a spectral image with a preset frequency reflected from the target to be monitored;
[0058] The optical filter is used to allow light with a preset frequency reflected from the target to be monitored to pass through;
[0059] The characteristic peak recognition module is used to receive the image of the spectrum reflected from the target to be monitored, and generate a remote alarm signal according to the matching degree of the image;
[0060] The alarm device is used to send emails to a designated mailbox and send text messages to a designated number through software according to a remote alarm signal.
[0061] The alarm device provided in this embodiment is suitable for remote security alarm of immovable wooden cultural relics.
[0062] The light source module in this embodiment is used to emit light of a preset frequency to the target to be monitored;
[0063] A slot for fixing an infrared polarizer is provided in front of the light emitting part of the light source module. By adjusting the infrared polarizers in front of the camera and the light source, interfering reflections can be eliminated.
[0064] The light source module provided in this embodiment selects a stable narrow-band light source module in a specific band of near-infrared, and six light source module bulbs of the same specifications are packaged and fixed in the light source module; the light source module needs to have a stable output and high-energy light radiation in the measured spectral range, and the stability of the light source module includes brightness, current, voltage, power, etc.; the light source module selects a stable narrow-band light source module in a specific band of near-infrared, such as 900nm, and six specific band bulbs of the same specifications are packaged and fixed to form a light source module.
[0065] The filter in this embodiment is arranged in front of the characteristic peak recognition module, and the filter is used to allow the light with a preset frequency reflected from the target to be monitored to pass through;
[0066] The camera in this embodiment is used to collect spectral images with preset frequencies reflected from the target to be monitored; the camera can be a USB camera of UVC driver-free type, and the UVC driver is adapted to the Linux system architecture of Raspberry Pi 4b. The Raspberry Pi can be directly connected to the camera using a USB cable, eliminating the step of installing the driver, thereby making it easier to change the exposure, exposure time, contrast, window size and other parameters of the camera. The USB data cable is used for collecting image data;
[0067] The camera needs to select a suitable focal length at a certain distance to meet the field of view size requirement at a specific distance, and can be used with the camera bracket; the captured pictures can be effectively cached and read. An infrared polarizer and a filter are arranged in front of the camera lens. When used with the filter, the camera can effectively identify whether there is reflected light of a specific band.
[0068] The camera in this embodiment has a camera bracket that can be rotated in plane and adjusted in height, and the relative position of the camera and the target to be detected can be adjusted as needed. At the same time, the camera and the characteristic peak recognition module are connected by wire, and an infrared polarizer and filter are arranged in front of the camera lens.
[0069] The camera bracket is provided with a thread for fixing the camera, so that the direction and position of the camera can be adjusted by adjusting the bracket to obtain suitable shooting conditions;
[0070] In the present embodiment, a characteristic spectrum label is provided on the target to be monitored, and a film material capable of reflecting light of a preset characteristic peak band is provided on the characteristic spectrum label; in the present embodiment, light with a preset frequency reflected from the target to be monitored is achieved by providing a characteristic spectrum label on the target to be monitored, and a spectrum enhancement material of a preset frequency is provided on the characteristic spectrum label; the light of the preset characteristic peak reflected by the film material is consistent with the characteristic peak identifiable in the characteristic peak identification module.
[0071] The characteristic peak recognition module generates an alarm signal in the following manner:
[0072] When the light reflected by the film material is a preset characteristic peak, the matching degree with the characteristic peak that can be identified in the characteristic peak identification module is high, and the characteristic peak identification module will not generate an alarm signal;
[0073] When the light reflected by the film material has a high degree of match with the preset characteristic peak (i.e., the characteristic peak match exceeds the preset threshold) but a low degree of position match (i.e., the position match does not reach the preset threshold), the characteristic peak recognition module will send a remote alarm signal;
[0074] When the light reflected by the film material has a low matching degree with the preset characteristic peak, and has a low matching degree with the characteristic peak identifiable in the characteristic peak identification module, the characteristic peak identification module will send a remote alarm signal.
[0075] The matching degree of the characteristic peaks in this embodiment is determined in the following manner:
[0076] The program will start from the upper left corner (0,0) of the captured image (i.e., the spectral image of the reflected light) to intercept an image of the same size as the preset characteristic peak image, and compare the intercepted image with the preset characteristic peak (calculate the product of the corresponding pixels, then sum and standardize), and obtain the matching degree S(x,y):
[0077]
[0078] Wherein, T is the preset characteristic peak image, T(x, y) is the gray value of the corresponding coordinate, I is the captured image, and I(x, y) is the gray value of the corresponding coordinate;
[0079] In this way, traverse each pixel from left to right and from top to bottom, and take the maximum value of all matching degrees S(x,y);
[0080] The matching degree of the position in this embodiment is determined in the following manner:
[0081] Then calculate the displacement distance:
[0082]
[0083] Wherein, w and h are the width and height of the preset characteristic peak image, respectively; x0 and y0 are the horizontal and vertical coordinates of the center position of the preset characteristic peak image, respectively; and K is the ratio of the actual distance to the length of one pixel.
[0084] S ≥ 0.8 indicates a high degree of match, and D ≤ 5 cm indicates a high degree of position match;
[0085] The light source module provided in this embodiment is a specific light source module that cooperates with the characteristic spectrum tag. The filter is used to transmit light of a specific wavelength band. After the characteristic spectrum tag is attached to the surface of the cultural relic, the filter added in front of the camera lens can filter the spectrum signal in the preset wavelength band. During the monitoring process, once the characteristic peak result is found to have a low matching degree, the alarm automatically sends a remote alarm signal, thereby realizing the monitoring of the cultural relic. The filter is a bandpass filter; the specific wavelength band light is the invisible light of the preset spectral characteristic peak.
[0086] The characteristic peak recognition module in this embodiment is used to receive the spectral characteristic signal reflected from the target to be monitored, and send a remote alarm signal according to the spectral characteristic signal. The module adopts the Raspberry Pi module with built-in Python, and is matched with the smtplib, email.mime.multipart, email.mime.text and email.mime.image function libraries to realize the use of a mailbox that allows the SMTP protocol to send emails to a specified mailbox. The emails can contain text, pictures, and files. In this example, the captured pictures and their information can be sent. The peripheral EC600N is used to send a remote alarm signal. The specific model of the Raspberry Pi in this embodiment is Raspberry Pi 4b, Raspberry Pi 4Model B;
[0087] The peripheral EC600N provided in this embodiment has a built-in driver, which can be used to cooperate with the characteristic peak recognition module to send text messages to a designated number; the EC600N has a USB interface and can be directly connected to the Raspberry Pi 4b. After the driver is installed on the Raspberry Pi, the AT instruction set can be used to operate the EC600N to send text messages to the designated number.
[0088] This embodiment uses Raspberry Pi as the image processing core of the entire system, which controls and coordinates the work of the entire system; the camera module transmits the captured photos to the Raspberry Pi module for processing. After preprocessing the image, according to the gray value difference between the spectrum device and the cultural relic background in the photo under a certain band, it can be judged whether the spectrum device has a characteristic peak position in the band, thereby identifying the corresponding component code. When it is found that the information obtained by a certain component code does not meet expectations, it is considered that the cultural relic in that part is missing, and an alarm signal is issued until the video data transmits an image that meets the expected target again, and the alarm is stopped immediately. Thereby achieving the tracking, identification, and tracing of cultural relic components.
[0089] Example 2
[0090] like Figure 2 As shown, this embodiment also provides a method for performing security alarm using a wooden cultural relic security remote alarm device, comprising the following steps:
[0091] S1: Initialize the program and turn on the camera;
[0092] S2: Set the image size and exposure;
[0093] S3: timing driving the camera to take pictures; emitting light of a preset frequency through the infrared polarizer to the target to be monitored; receiving light of a preset frequency through the filter reflected from the target to be monitored; obtaining a spectral characteristic signal reflected from the target to be monitored;
[0094] S4: Calculate the matching degree S between the captured image and the preset characteristic peak;
[0095] S5: Determine whether the matching degree is greater than a preset value. If not, use the software to send an email and drive EC600N to send a text message; enter the next step of capturing the video stream; if yes, calculate the distance between the center point of the best matching position and the center point of the initial tag to obtain the displacement distance D, and determine whether the displacement distance D is less than a preset distance threshold. If not, use the software to send an email and drive EC600N to send a text message, and enter the next step of capturing the video stream; if yes, it is determined to be in a normal state;
[0096] Among them, the program will start from the upper left corner (0,0) of the captured image to capture an image of the same size as the preset feature peak image, compare the captured image with the preset feature peak (find the product of the corresponding pixels, then sum and standardize), and obtain the matching degree S(x,y). In this way, each pixel is traversed from left to right and from top to bottom, and the maximum value of all matching degrees S is taken; the center of the corresponding captured image is located at the pixel position of the captured image (the upper left corner is (0,0), and it increases to the right and downward), and this position is the "center point of the best matching position". The same method is used to calculate the "center point of the initial label", the two are subtracted to obtain the modulus, and then multiplied by the coefficient actual distance / each pixel point (determined by the focal length of the camera and the distance between the camera and the target to be measured, and it is a constant after the camera and the target to be measured are fixed), where the coefficient is after the focal length of the camera and the distance between the camera and the target to be measured are fixed, by moving the target to be measured a certain distance, and using the image viewing software to measure the number of pixels moved by the target to be measured in the captured image, and the two are divided to obtain the ratio, and the displacement distance D is obtained.
[0097] In this example, the coefficient is 4 / 93. The threshold is affected by weather and natural jitter. If the threshold is too high, the misjudgment rate will increase. Therefore, it needs to be determined according to the actual situation. In this example, the threshold is 0.8 for S and 5 cm for D indoors.
[0098] S6: Save the obtained matching degree S, displacement distance D, shooting time and the shot picture locally on the Raspberry Pi;
[0099] S7: The camera is driven to take pictures again at a fixed time, and the above process is repeated.
[0100] In this embodiment, light of a preset frequency is emitted to the target to be monitored; the light is emitted to the target to be monitored through an infrared polarizer; the target to be monitored is a wooden cultural relic; the preset frequency is near-infrared light, which can be within 272`385THz, i.e., 780-1100nm, and 333.3THz, i.e., 900nm, is used in the example. At this frequency, the reflectivity of the wooden cultural relic is high, which can make the light reflected by the multilayer film material more obvious.
[0101] like Figure 3 As shown, Figure 3 Schematic diagram of the matching degree between the spectral characteristic peak signal and the preset characteristic peak. In this embodiment, the reflected spectral characteristic peak signal is compared with the preset characteristic peak. When the shape matching degree of the two characteristic peak signals is high, the position matching degree of the two characteristic peak signals is further determined. Figure 3 3-1 is the preset characteristic peak image, 3-2 is the preset characteristic peak initial position image, and after the program recognizes and calculates, 3-3 obtains a matching degree S=0.9890≥0.8, D=0.0cm≤5.0cm, so it is regarded as a high degree of shape and position matching, no remote alarm signal is sent, and the next timed shooting is started; 3-4 obtains a matching degree S=0.4232≤0.8 after the program recognizes and calculates, so it is regarded as a low degree of shape matching, a remote alarm signal is sent, and it is incorporated into the next timed shooting; 3-5 obtains a matching degree S=0.9213≥0.8 after the program recognizes and calculates, D=6.8cm≥5.0cm, so it is regarded as a high degree of shape matching and a low degree of position matching, a remote alarm signal is sent, and the next timed shooting is started.
[0102] The above-described embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or changes made by those skilled in the art based on the present invention are within the protection scope of the present invention. The protection scope of the present invention shall be subject to the claims.
Claims
1. Cultural relics security remote alarm device, characterized by: It includes a light source module, a camera, a filter, a characteristic peak recognition module, and an alarm device; The light source module emits light with a preset frequency toward the target to be monitored; The camera is used to collect a spectral image with a preset frequency reflected from the target to be monitored; The optical filter is used to allow light with a preset frequency reflected from the target to be monitored to pass through; The characteristic peak recognition module is used to receive the image of the spectrum reflected from the target to be monitored, and generate a remote alarm signal according to the matching degree of the image; The alarm device is used to send emails to a designated mailbox and send text messages to a designated number through software according to a remote alarm signal.
2. The cultural relics security remote alarm device according to claim 1, characterized in that: A slot for fixing an infrared polarizer is provided in front of the light emitting portion of the light source module to adjust the infrared polarizers in front of the camera and the light source; The light source module adopts a stable narrow-band light source module in a specific near-infrared band, and a plurality of light source module bulbs of the same specification are packaged and fixed in the light source module.
3. The cultural relics security remote alarm device as claimed in claim 1, characterized in that: The camera adopts a UVC driver-free USB camera, the UVC driver is adapted to the Linux system architecture of the Raspberry Pi 4b, and is connected to the Raspberry Pi using a USB cable; an infrared polarizer and a filter are arranged in front of the lens of the camera.
4. The cultural relics security remote alarm device according to claim 1, characterized in that: The target to be monitored is provided with a characteristic spectrum tag, and the characteristic spectrum tag is provided with a film material capable of reflecting light of a preset characteristic peak band, and the light of the preset characteristic peak reflected by the film material is consistent with the characteristic peak identifiable in the characteristic peak identification module.
5. The cultural relics security remote alarm device as claimed in claim 4, characterized in that: The characteristic peak recognition module generates an alarm signal in the following manner: When the light reflected by the film material is a preset characteristic peak and matches the characteristic peak that can be identified in the characteristic peak identification module, the characteristic peak identification module will not generate an alarm signal; When the light reflected by the film material matches the preset characteristic peak, but the position does not match the degree, the characteristic peak recognition module generates and sends a remote alarm signal; When the light reflected by the film material has a low matching degree with the preset characteristic peak, and has a low matching degree with the characteristic peak identifiable in the characteristic peak identification module, the characteristic peak identification module will send a remote alarm signal.
6. The cultural relics security remote alarm device as claimed in claim 5, characterized in that: The matching of the characteristic peaks is determined in the following manner: From the upper left corner (0,0) of the captured spectrum image, intercept an image of the same size as the preset characteristic peak image, compare the intercepted image with the preset characteristic peak, and calculate the matching degree S(x,y) according to the following formula: Wherein, T is the preset characteristic peak image, T(x, y) is the gray value of the corresponding coordinate, I is the captured image, and I(x, y) is the gray value of the corresponding coordinate; In this way, we traverse each pixel from left to right and from top to bottom and take the maximum value of all matching degrees S(x,y).
7. The cultural relics security remote alarm device as claimed in claim 5, characterized in that: The matching of the positions is determined as follows: From the upper left corner (0,0) of the captured spectrum image, intercept an image of the same size as the preset characteristic peak image, compare the intercepted image with the preset characteristic peak, and calculate the displacement distance according to the following formula: Wherein, w and h are the width and height of the preset characteristic peak image, respectively; x0 and y0 are the horizontal and vertical coordinates of the center position of the preset characteristic peak image, respectively; and K is the ratio of the actual distance to the length of one pixel.
8. A remote alarm method for cultural relics security, characterized in that: The following steps are involved: S1: Initialize the program and turn on the camera; S2: Set the image size and exposure; S3: timing driving the camera to take pictures; emitting light of a preset frequency through the infrared polarizer to the target to be monitored; receiving light of a preset frequency through the filter reflected from the target to be monitored; obtaining a spectral characteristic signal reflected from the target to be monitored; S4: Calculate the matching degree S between the captured image and the preset characteristic peak; S5: Determine whether the matching degree is greater than a preset value. If not, use the software to send an email and drive EC600N to send a text message; Enter the next step of capturing video stream; If yes, calculate the distance between the center point of the best matching position and the center point of the initial tag to obtain the displacement distance D, and determine whether the displacement distance D is less than the preset distance threshold. If not, use the software to send an email and drive EC600N to send a text message, and enter the next step of capturing the video stream; If yes, it is considered as normal state; S6: Save the obtained matching degree S, displacement distance D, shooting time and the shot picture locally on the Raspberry Pi; S7: The camera is driven to take pictures again at a fixed time, and the above process is repeated.
9. The cultural relics security remote alarm method according to claim 8, characterized in that: The matching degree S is calculated as follows: From the upper left corner (0,0) of the captured spectrum image, intercept an image of the same size as the preset characteristic peak image, compare the intercepted image with the preset characteristic peak, and calculate the matching degree S(x,y) according to the following formula: Wherein, T is the preset characteristic peak image, T(x, y) is the gray value of the corresponding coordinate, I is the captured image, and I(x, y) is the gray value of the corresponding coordinate; In this way, we traverse each pixel from left to right and from top to bottom and take the maximum value of all matching degrees S(x,y).
10. The cultural relics security remote alarm method according to claim 8, characterized in that: The matching degree S and displacement distance D are calculated in the following manner: From the upper left corner (0,0) of the captured spectrum image, intercept an image of the same size as the preset characteristic peak image, compare the intercepted image with the preset characteristic peak, and calculate the displacement distance according to the following formula: Wherein, w and h are the width and height of the preset characteristic peak image, respectively; x0 and y0 are the horizontal and vertical coordinates of the center position of the preset characteristic peak image, respectively; and K is the ratio of the actual distance to the length of one pixel.