Method, device, medium and electronic equipment for monitoring cultural relics based on shared directory

By building a shared directory in the monitoring platform and using MATLAB algorithm services to automatically detect cultural relic monitoring data, the problem of low efficiency in existing technologies has been solved, and efficient automation of cultural relic monitoring has been achieved.

CN120067403BActive Publication Date: 2025-10-24CENT RES INST OF BUILDING & CONSTR CO LTD MCC GRP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510534632.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-27
Publication Date
2025-10-24
Estimated Expiration
2045-04-27

AI Technical Summary

Technical Problem

Existing technologies using MATLAB algorithm services for cultural relic monitoring are inefficient, requiring monitoring personnel to perform repetitive manual operations, resulting in high labor costs.

Method used

By building a shared directory in the monitoring platform, creating target subdirectories corresponding to the monitoring data, and using MATLAB algorithm services to automatically scan and detect cultural relics, the detection results are stored, reducing manual intervention.

Benefits of technology

It improves the efficiency of cultural relics monitoring, reduces labor costs, and realizes the automation and efficiency of cultural relics monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120067403B_ABST
    Figure CN120067403B_ABST
Patent Text Reader

Abstract

The application provides a cultural relic monitoring method and device based on a shared directory, a storage medium and an electronic device, and belongs to the technical field of cultural relic monitoring. In the case that monitoring data uploaded by a user for a to-be-monitored cultural relic is received, a target subdirectory corresponding to the monitoring data is created in a shared directory; the monitoring data is stored in the target subdirectory, so that, in the case that the target subdirectory is scanned, the MATLAB algorithm service detects the to-be-monitored cultural relic according to the monitoring data by using a target MATLAB algorithm, and stores the detection result in the target subdirectory; the target subdirectory is scanned according to a second scanning period, and in the case that the detection result exists in the target subdirectory, the detection result is read and saved, and the target subdirectory is deleted. In this way, the user only needs to upload the monitoring data of the to-be-monitored cultural relic, and the automatic detection of the to-be-monitored cultural relic can be realized, thereby effectively improving the cultural relic monitoring efficiency and reducing the labor cost.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of cultural relic monitoring, and in particular to a cultural relic monitoring method and device based on a shared directory, a storage medium and an electronic device. BACKGROUND

[0002] MATLAB (Matrix Laboratory) is a powerful and easy-to-use mathematical software platform, which is widely used in scientific computing, engineering simulation, data analysis, image processing, machine learning and other fields.

[0003] In related technologies, after monitoring data of a cultural relic to be monitored is collected, a monitoring personnel usually manually inputs the monitoring data into MATLAB, and then uses an algorithm service provided by MATLAB to calculate the monitoring data to obtain a final monitoring result, and finally manually reports the monitoring result to a monitoring platform. When there are many calculation tasks, since the MATLAB algorithm service can only execute the calculation tasks one by one, the monitoring personnel needs to repeatedly perform the above operations, thereby consuming a large amount of manual cost and leading to low cultural relic monitoring efficiency. SUMMARY

[0004] The present application provides a cultural relic monitoring method and device based on a shared directory, a storage medium and an electronic device to solve the problem of low efficiency in cultural relic monitoring by using a MATLAB algorithm service.

[0005] To solve the above problem, the present application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a cultural relic monitoring method based on a shared directory, which is applied to a monitoring platform, and the method comprises:

[0007] In the case that monitoring data uploaded by a user for a cultural relic to be monitored is received, a target subdirectory corresponding to the monitoring data is created in a shared directory;

[0008] The monitoring data is stored in the target subdirectory, so that a MATLAB algorithm service scans the shared directory according to a first scanning period, and in the case that the target subdirectory is scanned, a target MATLAB algorithm detects the cultural relic to be monitored according to the monitoring data to obtain a detection result, and the detection result is stored in the target subdirectory;

[0009] The target subdirectory is scanned according to a second scanning period, and in the case that the detection result exists in the target subdirectory, the detection result is read and saved, and the target subdirectory is deleted.

[0010] In an embodiment of the present application, the method further comprises:

[0011] generating a task category label of the target subdirectory based on task category information uploaded by the user for the to-be-monitored cultural relic;

[0012] determining the target MATLAB algorithm in a preset MATLAB algorithm library based on the task category label, wherein different task category labels correspond to different MATLAB algorithms.

[0013] In an embodiment of the present application, the target MATLAB algorithm is used to detect the to-be-monitored cultural relic according to the monitoring data, and a detection result is obtained, including:

[0014] determining threshold data of the monitoring data based on the task category label;

[0015] detecting the to-be-monitored cultural relic according to the monitoring data and the threshold data by using the target MATLAB algorithm, and obtaining a detection result.

[0016] In an embodiment of the present application, the monitoring data includes a thermal imaging picture and a temperature matrix file corresponding to the thermal imaging picture.

[0017] determining threshold data of the monitoring data based on the task category label, including:

[0018] in a case where the task category label represents weathering identification of the to-be-monitored cultural relic, determining a temperature threshold file of the thermal imaging picture based on geographical location information and climate characteristics of the to-be-monitored cultural relic;

[0019] determining the temperature threshold file as the threshold data of the monitoring data.

[0020] In an embodiment of the present application, detecting the to-be-monitored cultural relic according to the monitoring data and the threshold data, and obtaining a detection result, includes:

[0021] performing gray scale conversion on the thermal imaging picture to obtain a gray scale picture;

[0022] determining a total area of a weathering region of the gray scale picture based on the temperature matrix file and the temperature threshold file;

[0023] determining a weathering degree of the to-be-monitored cultural relic based on a region proportion of the total area of the weathering region in the thermal imaging picture, and determining the weathering degree as the detection result.

[0024] In an embodiment of the present application, determining a total area of a weathering region of the gray scale picture based on the temperature matrix file and the temperature threshold file, includes:

[0025] For any pixel of the grayscale image, a current temperature of the pixel is determined based on the temperature matrix file, and a temperature threshold of the pixel is determined based on the temperature threshold file;

[0026] In a case where the current temperature is less than the temperature threshold, the pixel is determined as an eroded region;

[0027] Based on each of the eroded regions, a total area of the eroded regions of the grayscale image is determined.

[0028] In an embodiment of the present application, after the target subdirectory is deleted, the method further comprises:

[0029] In a case where the target MATLAB algorithm is detected to be updated, the step of creating the target subdirectory corresponding to the monitoring data in the shared directory is performed, so that the updated target MATLAB algorithm detects the to-be-monitored cultural relic according to the monitoring data to obtain an updated detection result.

[0030] In a second aspect, based on the same inventive concept, embodiments of the present application provide a cultural relic monitoring device based on a shared directory, applied to a monitoring platform, the device comprising:

[0031] A directory creation module is configured to, in a case where monitoring data uploaded by a user for a to-be-monitored cultural relic is received, create a target subdirectory corresponding to the monitoring data in a shared directory;

[0032] A cultural relic detection module is configured to store the monitoring data to the target subdirectory, so that a MATLAB algorithm service scans the shared directory according to a first scanning period, and in a case where the target subdirectory is scanned, utilizes a target MATLAB algorithm to detect the to-be-monitored cultural relic according to the monitoring data to obtain a detection result, and stores the detection result to the target subdirectory;

[0033] A result reading module is configured to scan the target subdirectory according to a second scanning period, and in a case where the target subdirectory is scanned to exist the detection result, reads and saves the detection result, and deletes the target subdirectory.

[0034] In an embodiment of the present application, the cultural relic monitoring device based on a shared directory further comprises:

[0035] A label generation module is configured to, based on task category information uploaded by a user for a to-be-monitored cultural relic, generate a task category label of the target subdirectory;

[0036] The algorithm determination module is used to determine the target MATLAB algorithm in a preset MATLAB algorithm library based on the task category label; wherein different task category labels correspond to different MATLAB algorithms.

[0037] In one embodiment of the present application, the cultural relics detection module includes:

[0038] A threshold determination submodule, configured to determine threshold data of the monitoring data based on the task category label;

[0039] The cultural relic detection submodule is used to detect the cultural relic to be monitored according to the monitoring data and the threshold data using a target MATLAB algorithm to obtain a detection result.

[0040] In one embodiment of the present application, the monitoring data includes a thermal imaging image and a temperature matrix file corresponding to the thermal imaging image; the threshold determination submodule includes:

[0041] a temperature threshold determination unit, configured to determine a temperature threshold file of the thermal imaging image based on the geographical location information and climate characteristics of the cultural relic to be monitored, when the task category label indicates that weathering identification of the cultural relic to be monitored is to be performed;

[0042] A threshold data determining unit is configured to determine the temperature threshold file as the threshold data of the monitoring data.

[0043] In one embodiment of the present application, the cultural relics detection submodule includes:

[0044] A grayscale conversion unit, configured to perform grayscale conversion on the thermal imaging image to obtain a grayscale image;

[0045] an area determination unit, configured to determine a total area of ​​the weathered region of the grayscale image based on the temperature matrix file and the temperature threshold file;

[0046] The detection result determination unit is used to determine the weathering degree of the cultural relic to be monitored based on the proportion of the total area of ​​the weathered area to the area of ​​the thermal imaging image, and determine the weathering degree as the detection result.

[0047] In one embodiment of the present application, the area determination unit includes:

[0048] a temperature information determining subunit, configured to determine, for any pixel of the grayscale image, a current temperature of the pixel based on the temperature matrix file, and to determine a temperature threshold of the pixel based on the temperature threshold file;

[0049] a weathered area determination subunit, configured to determine that the pixel is a weathered area when the current temperature is less than the temperature threshold;

[0050] an area determination sub-unit configured to determine a total weathered area of the grayscale image based on a sum of areas of the weathered areas.

[0051] In an embodiment of the present application, the relic monitoring device based on a shared directory further comprises:

[0052] The result updating module is configured to, in a case where it is detected that the target MATLAB algorithm is updated, perform a step of creating a target sub-directory corresponding to the monitoring data in the shared directory, so that the updated target MATLAB algorithm detects the relic to be monitored according to the monitoring data, and obtains an updated detection result.

[0053] In a third aspect, based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium having a executable program stored thereon, and the executable program, when executed by a processor, implements the relic monitoring method based on a shared directory according to the first aspect of the present application.

[0054] In a fourth aspect, based on the same inventive concept, an embodiment of the present application provides an electronic device, comprising:

[0055] a memory configured to store an executable program;

[0056] a processor;

[0057] The executable program, when executed by the processor, implements the relic monitoring method based on a shared directory according to the first aspect of the present application.

[0058] Compared with the prior art, the present application has the following advantages:

[0059] The relic monitoring method based on a shared directory provided by the embodiment of the present application first creates a target sub-directory corresponding to the monitoring data in the shared directory in a case where the monitoring data uploaded by the user for the relic to be monitored is received; then stores the monitoring data into the target sub-directory, so that the MATLAB algorithm service scans the shared directory according to a first scanning period, and in a case where the target sub-directory is scanned, utilizes the target MATLAB algorithm to detect the relic to be monitored according to the monitoring data, obtains a detection result, and stores the detection result into the target sub-directory; finally scans the target sub-directory according to a second scanning period, and in a case where it is detected that the target sub-directory has the detection result, reads and saves the detection result, and deletes the target sub-directory. The embodiment of the present application constructs the target sub-directory corresponding to the monitoring data, so that the user only needs to upload the monitoring data of the relic to be monitored to the monitoring platform, the MATLAB algorithm service can automatically detect the relic to be monitored according to the monitoring data stored in the target sub-directory, and stores the detection result into the target sub-directory, thereby effectively improving the relic monitoring efficiency and reducing the labor cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0061] Figure 1 This is a flowchart of the steps of a cultural relics monitoring method based on a shared directory in one embodiment of the present application.

[0062] Figure 2 This is a module diagram of a cultural relics monitoring device based on a shared directory in one embodiment of the present application.

[0063] Figure 3 It is a structural diagram of an electronic device in one embodiment of the present application. DETAILED DESCRIPTION

[0064] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0065] It should be noted that currently, after monitoring personnel collect monitoring data for the cultural relics to be monitored, they usually need to use the MATLAB algorithm service locally to complete the calculation of the cultural relics to be monitored, and then upload the calculation results to the monitoring platform. For example, to identify the degree of weathering of a brick wall, it is necessary to use a thermal imager to inspect the brick wall and generate an infrared thermal image. Next, the MATLAB algorithm is used to perform weathering detection based on the thermal image to obtain the final weathering degree result. Finally, the thermal image, monitoring time, weathering degree result and other data are manually reported to the monitoring platform.

[0066] When there are many computing tasks, such as when multiple cultural relics of the same type or different types need to be monitored, since the MATLAB algorithm service can only execute computing tasks sequentially, monitoring personnel need to repeat the above operations continuously, which consumes a lot of labor costs and leads to low efficiency of cultural relic monitoring.

[0067] In the related art, there are two ways to apply MATLAB algorithms to engineering applications. The first way is to implement the algorithm using the programming language of the monitoring platform. This way requires programmers to understand and translate the algorithm, and the implementation period is long. After the algorithm is changed, the code needs to be rewritten. The second way is to use a socket interface to interact with the outside. This way requires additional code for message reception and parsing based on the MATLAB algorithm. Both of the above methods have great application difficulty and cost. Therefore, there is an urgent need for a high-efficiency and low-cost way to integrate MATLAB algorithms into existing monitoring platforms to achieve automated monitoring of cultural relics.

[0068] To solve the problem of low efficiency in monitoring cultural relics using MATLAB algorithm services in the related art, the present application aims to provide a cultural relic monitoring method based on a shared directory. By constructing a target subdirectory corresponding to the monitoring data, users only need to upload the monitoring data of the cultural relics to be monitored to the monitoring platform. The MATLAB algorithm service can automatically detect the cultural relics to be monitored based on the monitoring data stored in the target subdirectory, and store the detection results in the target subdirectory. This effectively improves the efficiency of cultural relic monitoring and reduces labor costs.

[0069] Reference Figure 1 A cultural relic monitoring method based on a shared directory is shown, which is applied to a monitoring platform. The method can include the following steps:

[0070] S101: When receiving the monitoring data uploaded by the user for the cultural relics to be monitored, create a target subdirectory corresponding to the monitoring data in the shared directory.

[0071] In this embodiment, the user can use the corresponding data acquisition device to collect data from the cultural relics to be monitored, and use the client to upload the monitoring data of the cultural relics to be monitored to the monitoring platform.

[0072] In this embodiment, different data acquisition devices can be used to collect different monitoring data of the cultural relics to be monitored according to different monitoring tasks. For example, when identifying the weathering of a brick wall, the monitoring data can be a thermal image of the brick wall. When monitoring the structural stability of the brick wall, the monitoring data can be vibration data of the brick wall.

[0073] In this embodiment, the user only needs to upload the monitoring data to the monitoring platform through the client to achieve automated monitoring of the cultural relics to be monitored without additional operations.

[0074] In the embodiment, after receiving the monitoring data of the cultural relics to be monitored, the monitoring platform will create a target subdirectory corresponding to the monitoring data in the shared directory. For example, the shared directory can be set as: shared directory / work / ; the target subdirectory can be named according to the task ID. For example, when the user uploads the monitoring data, the target subdirectory 10001 is created under the shared directory / work / , and the complete directory is: shared directory / work / 10001. The directories of subsequent new monitoring tasks are: shared directory / work / 10002, shared directory / work / 10003, and so on. When the monitoring platform receives different types of monitoring tasks, the target subdirectory 20001 is created under the shared directory / work / , and the complete directory is: shared directory / work / 20001. The directories of subsequent new monitoring tasks of this type are: shared directory / work / 20002, shared directory / work / 20003, and so on.

[0075] S102: store the monitoring data to the target subdirectory, so that the MATLAB algorithm service scans the shared directory according to the first scanning period, and in the case of scanning the target subdirectory, uses the target MATLAB algorithm to detect the cultural relics to be monitored according to the monitoring data, obtains the detection result, and stores the detection result to the target subdirectory.

[0076] It should be noted that the MATLAB algorithm service represents a service of providing one or more MATLAB algorithms. Different MATLAB algorithms are used to complete different monitoring tasks.

[0077] In the embodiment, in order to enable the MATLAB algorithm service to complete a plurality of monitoring tasks, the MATLAB algorithm service integrates a MATLAB algorithm library containing a plurality of MATLAB algorithms. When uploading the monitoring data, the user can select the corresponding task category information through the client, and then upload the task category information to the monitoring platform. The monitoring platform generates a task category label of the target subdirectory based on the task category information uploaded by the user for the cultural relics to be monitored, and determines the target MATLAB algorithm in the preset MATLAB algorithm library based on the task category label. Different task category labels correspond to different MATLAB algorithms.

[0078] In specific implementation, when uploading the monitoring data, the user can display a plurality of preset task category information on the human-computer interaction interface of the client, and the user can click the corresponding task category information according to needs. For example, the plurality of preset task category information includes but is not limited to weathering degree identification, structural stability identification, and surface integrity identification. When the user needs to identify the weathering degree of the brick wall, the user can click the virtual button representing the weathering degree identification.

[0079] In this embodiment, after the monitoring platform completes the creation of the target subdirectory, it will store the monitoring data in the target subdirectory. The MATLAB algorithm service integrated in the monitoring platform will scan the shared directory periodically according to the first scanning cycle, for example, every 5 seconds. If the target subdirectory is scanned, the monitoring data stored in the target subdirectory will be read, and the corresponding target MATLAB algorithm will be used to calculate the monitoring data to obtain the detection results.

[0080] In this embodiment, after calculating the detection results, the MATLAB algorithm service will automatically store the detection results in the target subdirectory so that the monitoring platform can extract the detection results in a timely manner.

[0081] S103: Scan the target subdirectory according to the second scanning cycle, and if a detection result is found in the target subdirectory, read and save the detection result, and delete the target subdirectory.

[0082] In this embodiment, the second scanning cycle can be the same as or different from the first scanning cycle. For example, it can be set to periodically scan the target subdirectory every 5 seconds. If the target subdirectory is scanned and there is a detection result in the target subdirectory, it means that the MATLAB algorithm service has completed the monitoring task, and then deletes the target subdirectory after reading and saving the detection results.

[0083] In this embodiment, by deleting the target sub-directory, the monitoring platform will no longer scan the target sub-directory in the next scanning cycle, thereby avoiding repeated reading of the detection results.

[0084] In this embodiment, data interaction between the monitoring platform and the MATLAB algorithm service is achieved through a shared directory, which allows the MATLAB algorithm service to be integrated into the monitoring platform quickly and easily without developing a new communication interface or recompiling the MATLAB algorithm service. In this way, by constructing a target subdirectory corresponding to the monitoring data in the shared directory, users only need to upload the monitoring data of the cultural relics to be monitored to the monitoring platform. The MATLAB algorithm service can then automatically detect the cultural relics to be monitored based on the monitoring data stored in the target subdirectory and store the detection results in the target subdirectory, thereby effectively improving the efficiency of cultural relic monitoring and reducing labor costs.

[0085] In one feasible embodiment, the step of using the target MATLAB algorithm to detect the cultural relics to be monitored based on the monitoring data and obtaining the detection results in S102 may specifically include the following sub-steps:

[0086] S102-1: Determine threshold data of monitoring data based on the task category label.

[0087] It should be noted that the threshold data is used to assist the target MATLAB algorithm to complete the monitoring task.

[0088] In this embodiment, if the monitoring data includes a thermal imaging picture and a temperature matrix file corresponding to the thermal imaging picture, the threshold data of the monitoring data is a temperature threshold file of the thermal imaging picture.

[0089] It should be noted that the temperature matrix file represents a table file output by the thermal imager for the thermal imaging picture, and is used to represent the temperature information of each region in the thermal imaging picture. The temperature threshold file includes temperature thresholds set for each region of the thermal imaging picture.

[0090] In specific implementation, in a case where the task category label represents weathering identification of the to-be-monitored cultural relics, the temperature threshold file of the thermal imaging picture is determined based on geographical location information and climate characteristics of the to-be-monitored cultural relics, and the temperature threshold file is determined as the threshold data of the monitoring data.

[0091] In this embodiment, the geographical location information can specifically include latitude and longitude information and altitude information of the to-be-monitored cultural relics; and the climate characteristics can specifically include temperature information, humidity information and climate type (such as dry, humid, temperate, tropical, etc.) at the current moment.

[0092] In specific implementation, the initial temperature threshold file can be first determined according to the geographical location information of the to-be-monitored cultural relics, wherein different geographical location information corresponds to different initial temperature threshold files; and then the initial temperature threshold file is corrected based on the climate characteristics of the to-be-monitored cultural relics to obtain the final temperature threshold file.

[0093] In this embodiment, the temperature threshold formulated according to the specific geographical location and climate characteristics can better reflect the actual situation of the to-be-monitored cultural relics, thereby effectively improving the accuracy of weathering degree identification.

[0094] It should be noted that if the target MATLAB algorithm does not require corresponding threshold data, the to-be-monitored cultural relics can be directly detected according to the monitoring data to obtain a detection result.

[0095] S102-2: detecting the to-be-monitored cultural relics according to the monitoring data and the threshold data by using the target MATLAB algorithm to obtain a detection result.

[0096] In the embodiment, after the suitable threshold data is determined, the target MATLAB algorithm can perform corresponding calculation according to the monitoring data and the threshold data to obtain the final detection result. Specifically, when the monitoring data includes the thermal imaging picture and the temperature matrix file corresponding to the thermal imaging picture, and the threshold data includes the temperature threshold file of the thermal imaging picture, the detection result is the weathering degree of the to-be-monitored cultural relic.

[0097] In a specific implementation, the step of detecting the to-be-monitored cultural relic according to the monitoring data and the threshold data in S102-2 to obtain the detection result can specifically include the following sub-steps:

[0098] S102-2-1: performing gray scale conversion on the thermal imaging picture to obtain a gray scale image.

[0099] In the embodiment, by converting the thermal imaging picture into a gray scale image, only the brightness information reflecting the temperature information can be retained, and the color is not considered, so that the data processing process is simplified. By removing the color information, the calculation complexity can be reduced, and the processing speed can be improved; meanwhile, in the weathering degree identification, the image needs to be segmented according to the temperature threshold, and the gray scale image can be more effectively subjected to threshold processing, so that the regions of different weathering degrees can be more easily identified.

[0100] S102-2-2: determining a total area of weathering regions of the gray scale image based on the temperature matrix file and the temperature threshold file.

[0101] In the embodiment, after the thermal imaging picture is converted into a gray scale image, the target MATLAB algorithm can perform threshold processing on the gray scale image based on the temperature matrix file and the temperature threshold file, and then obtain the total area of the weathering regions.

[0102] In a specific implementation, for any pixel of the gray scale image, the current temperature of the pixel is determined based on the temperature matrix file, and the temperature threshold of the pixel is determined based on the temperature threshold file; in a case where the current temperature is less than the temperature threshold, the pixel is determined as a weathering region, and in a case where the current temperature is greater than or equal to the temperature threshold, the pixel is determined as an unweathered region; and the total area of the weathering regions of the gray scale image is determined based on the sum of the areas of the weathering regions.

[0103] In the embodiment, for the purpose of visualization, in a case where the current temperature is less than the temperature threshold, the pixel can be determined as a first pixel value, and in a case where the current temperature is greater than or equal to the temperature threshold, the pixel can be determined as a second pixel value; wherein the first pixel value represents that the pixel is a weathering region, and the second pixel value represents that the pixel is an unweathered region.

[0104] In the embodiment, by adjusting each pixel of the gray-scale image, a more intuitive binary image can be obtained. For example, the first pixel value can be set to 255, i.e., replaced by a white pixel; the second pixel value can be set to 0, i.e., replaced by a black pixel. In this way, the gray-scale image can be further converted into a binary image with clear black and white. The white area in the binary image is the weathered area of the artifact to be monitored.

[0105] S102-2-3: Based on the area ratio of the total area of the weathered area to the area of the thermal imaging image, the weathering degree of the artifact to be monitored is determined, and the weathering degree is determined as the detection result.

[0106] In the embodiment, by calculating the area ratio of the total area of the weathered area to the area of the thermal imaging image, the weathering degree of the artifact to be monitored can be determined.

[0107] In a specific implementation, a plurality of ratio thresholds can be set to grade the weathering degree. For example, the plurality of ratio thresholds can include a first ratio threshold and a second ratio threshold. When the area ratio is less than the first ratio threshold, the weathering degree is determined to be mild weathering; when the area ratio is greater than or equal to the first ratio threshold and less than or equal to the second ratio threshold, the weathering degree is determined to be moderate weathering; and when the area ratio is greater than the second ratio threshold, the weathering degree is determined to be severe weathering. The first ratio threshold can be set to 10%, and the second ratio threshold can be set to 30%.

[0108] In a feasible embodiment, after S103, the artifact monitoring method based on the shared directory can further include the following steps:

[0109] S104: In the case where the target MATLAB algorithm is detected to be updated, the step of creating a target subdirectory corresponding to the monitoring data in the shared directory is performed, so that the updated target MATLAB algorithm detects the artifact to be monitored according to the monitoring data to obtain an updated detection result.

[0110] In the embodiment, considering that in the traditional artifact monitoring method, when the MATLAB algorithm is adjusted, the monitoring personnel needs to re-input the monitoring data, then calculate the monitoring data using the updated MATLAB algorithm to obtain an updated monitoring result, and finally manually report the updated monitoring result to the monitoring platform. Therefore, in order to avoid repeated operations of the user, after detecting that the target MATLAB algorithm is updated, the monitoring platform will re-create a target subdirectory corresponding to the monitoring data, and repeat the steps of S102-S103, so that the updated target MATLAB algorithm detects the artifact to be monitored according to the monitoring data to obtain an updated detection result.

[0111] In the embodiment, after the user completes the updating operation on the target MATLAB algorithm, the user can manually trigger the update of the detection result as needed. Specifically, the user can click the button of updating the historical data on the client to send an update instruction to the monitoring platform. The monitoring platform executes the step of creating the target subdirectory corresponding to the monitoring data in the shared directory in response to the update instruction, so that the updated target MATLAB algorithm detects the to-be-monitored cultural relics according to the monitoring data to obtain the updated detection result.

[0112] In the embodiment, by automatically triggering the automatic update of the detection result in the case of updating the target MATLAB algorithm, the updating efficiency of the detection result can be effectively improved without the need for the user to repeatedly perform the updating operation.

[0113] In a second aspect, referring to Figure 2 The cultural relic monitoring device 200 based on the shared directory provided in the embodiments of the present application is applied to a monitoring platform and includes:

[0114] The directory creation module 201 is configured to create a target subdirectory corresponding to the monitoring data in the shared directory in the case where the monitoring data uploaded by the user for the to-be-monitored cultural relics is received.

[0115] The cultural relic detection module 202 is configured to store the monitoring data in the target subdirectory, so that the MATLAB algorithm service scans the shared directory according to a first scanning period and, in the case where the target subdirectory is scanned, detects the to-be-monitored cultural relics according to the monitoring data by using the target MATLAB algorithm to obtain a detection result and stores the detection result in the target subdirectory.

[0116] The result reading module 203 is configured to scan the target subdirectory according to a second scanning period and, in the case where the target subdirectory is found to have the detection result, read and save the detection result and delete the target subdirectory.

[0117] In an embodiment of the present application, the cultural relic monitoring device 200 based on the shared directory further includes:

[0118] The label generation module is configured to generate a task category label of the target subdirectory based on the task category information uploaded by the user for the to-be-monitored cultural relics.

[0119] The algorithm determination module is configured to determine the target MATLAB algorithm in a preset MATLAB algorithm library based on the task category label, wherein different task category labels correspond to different MATLAB algorithms.

[0120] In an embodiment of the present application, the cultural relic detection module 202 includes:

[0121] a threshold value determining submodule, configured to determine threshold value data of the monitoring data based on the task category label;

[0122] a cultural relic detecting submodule, configured to detect the cultural relic to be monitored according to the monitoring data and the threshold value data by using a target MATLAB algorithm, to obtain a detection result.

[0123] In an embodiment of the present application, the monitoring data includes a thermal imaging picture and a temperature matrix file corresponding to the thermal imaging picture; and the threshold value determining submodule includes:

[0124] a temperature threshold value determining unit, configured to, in a case where the task category label represents that weathering identification is to be performed on the cultural relic to be monitored, determine a temperature threshold value file of the thermal imaging picture based on geographical position information and climate characteristics of the cultural relic to be monitored;

[0125] a threshold value data determining unit, configured to determine the temperature threshold value file as the threshold value data of the monitoring data.

[0126] In an embodiment of the present application, the cultural relic detecting submodule includes:

[0127] a grayscale conversion unit, configured to perform grayscale conversion on the thermal imaging picture, to obtain a grayscale image;

[0128] an area determining unit, configured to determine a total area of weathering regions of the grayscale image based on the temperature matrix file and the temperature threshold value file;

[0129] a detection result determining unit, configured to determine a weathering degree of the cultural relic to be monitored based on a region proportion of the total area of the weathering regions in the thermal imaging picture, and determine the weathering degree as the detection result.

[0130] In an embodiment of the present application, the area determining unit includes:

[0131] a temperature information determining subunit, configured to, for any pixel of the grayscale image, determine a current temperature of the pixel based on the temperature matrix file, and determine a temperature threshold value of the pixel based on the temperature threshold value file;

[0132] a weathering region determining subunit, configured to, in a case where the current temperature is less than the temperature threshold value, determine that the pixel is a weathering region;

[0133] an area determining subunit, configured to determine the total area of the weathering regions of the grayscale image based on a sum of areas of the weathering regions.

[0134] In an embodiment of the present application, the cultural relic monitoring device 200 based on the shared directory further includes:

[0135] The result updating module is used to execute the step of creating a target subdirectory corresponding to the monitoring data in the shared directory when an update of the target MATLAB algorithm is detected, so that the updated target MATLAB algorithm can detect the monitored cultural relics according to the monitoring data to obtain updated detection results.

[0136] It should be noted that the specific implementation of the cultural relics monitoring device 200 based on the shared directory in the embodiment of the present application refers to the specific implementation of the cultural relics monitoring method based on the shared directory proposed in the first aspect of the embodiment of the present application, and will not be repeated here.

[0137] On the third aspect, based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium on which an executable program is stored. When the executable program is executed by a processor, the cultural relics monitoring method based on a shared directory proposed in the first aspect of the present application is implemented.

[0138] It should be noted that the specific implementation of the computer-readable storage medium in the embodiment of the present application refers to the specific implementation of the cultural relics monitoring method based on the shared directory proposed in the first aspect of the aforementioned embodiment of the present application, and will not be repeated here.

[0139] Fourthly, refer to Figure 3 Based on the same inventive concept, an embodiment of the present application provides an electronic device 300, including:

[0140] Memory 301, for storing executable programs;

[0141] Processor 302;

[0142] When the executable program is executed by the processor 302 , the cultural relics monitoring method based on the shared directory proposed in the first aspect of the present application is implemented.

[0143] It should be noted that the specific implementation of the electronic device 300 in the embodiment of the present application refers to the specific implementation of the cultural relics monitoring method based on the shared directory proposed in the first aspect of the embodiment of the present application, and will not be repeated here.

[0144] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, apparatus, or computer program products. Thus, embodiments of the present invention may take the form of a fully hardware embodiment, a fully software embodiment, or an embodiment combining software and hardware. Furthermore, embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0145] The embodiments of the present application are described with reference to the flowchart illustrations and / or block diagrams of the methods, terminal devices (systems) and computer program products according to the embodiments of the present application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal devices to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal devices, create means for implementing the functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams.

[0146] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal devices to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams.

[0147] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal devices, such that a series of operational steps are carried out on the computer or other programmable terminal devices to produce a computer implemented process so that the instructions executed on the computer or other programmable terminal devices provide steps for implementing the functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams.

[0148] Although preferred embodiments of the present application have been described, those skilled in the art will be able to make additional modifications and variations to the embodiments without departing from the scope of the present application. Accordingly, the appended claims are intended to encompass all such modifications and variations as falling within the scope of the embodiments of the present application.

[0149] Finally, it is to be understood that the phraseology or terminology such as "first" and "second" etc. used herein is merely intended to differentiate one entity or operation from another entity or operation, without necessarily requiring or implying any actual such relationship or order between such entities or operations. Moreover, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.

[0150] The above provides a detailed description of the shared directory-based cultural relic monitoring method, device, storage medium and electronic equipment provided by the present application. The principles and implementation modes of the present application are described by applying specific examples. The above example is only used to help understand the method and core idea of the present application. Meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation mode and application range will be changed. In summary, the content of the specification should not be understood as a limitation of the present application.

Claims

1. A method for monitoring cultural property based on a shared directory, characterized by, The method is applied to a monitoring platform, and the method comprises the following steps: In the case that monitoring data uploaded by a user for an artifact to be monitored is received, a target subdirectory corresponding to the monitoring data is created in a shared directory, the monitoring data comprising a thermal imaging picture and a temperature matrix file corresponding to the thermal imaging picture; The monitoring data is stored in the target subdirectory, so that a MATLAB algorithm service scans the shared directory according to a first scanning period, and in the case that the target subdirectory is scanned, a target MATLAB algorithm is used to detect the artifact to be monitored according to the monitoring data, to obtain a detection result, and the detection result is stored in the target subdirectory, the detection result being a weathering degree of the artifact to be monitored; The target subdirectory is scanned according to a second scanning period, and in the case that the detection result exists in the target subdirectory, the detection result is read and saved, and the target subdirectory is deleted; In the case that the target MATLAB algorithm is detected to be updated, the step of creating the target subdirectory corresponding to the monitoring data in the shared directory is performed, so that the updated target MATLAB algorithm detects the artifact to be monitored according to the monitoring data to obtain an updated detection result; The method further comprises the following steps: Based on task category information uploaded by the user for the artifact to be monitored, a task category label of the target subdirectory is generated, the task category information at least comprising weathering degree identification, structure stability identification, and surface integrity identification; Based on the task category label, the target MATLAB algorithm is determined in a preset MATLAB algorithm library, wherein different task category labels correspond to different MATLAB algorithms.

2. The shared directory-based artifact monitoring method of claim 1, wherein, Detecting the artifact to be monitored according to the monitoring data by using the target MATLAB algorithm to obtain a detection result comprises the following steps: Based on the task category label, threshold data of the monitoring data is determined; The artifact to be monitored is detected according to the monitoring data and the threshold data by using the target MATLAB algorithm to obtain a detection result.

3. The shared directory based artifact monitoring method of claim 2, wherein, The monitoring data comprises a thermal imaging picture and a temperature matrix file corresponding to the thermal imaging picture; Based on the task category label, threshold data of the monitoring data is determined, comprising the following steps: In the case that the task category label represents weathering identification of the artifact to be monitored, a temperature threshold file of the thermal imaging picture is determined based on geographical position information and climate characteristics of the artifact to be monitored; The temperature threshold file is determined as the threshold data of the monitoring data.

4. The shared directory based artifact monitoring method of claim 3, wherein, Detecting the artifact to be monitored according to the monitoring data and the threshold data to obtain a detection result comprises the following steps: The thermal imaging picture is subjected to gray scale conversion to obtain a gray scale picture; Based on the temperature matrix file and the temperature threshold file, a total area of a weathering region of the gray scale picture is determined; Based on a region proportion of the total area of the weathering region in the thermal imaging picture, a weathering degree of the artifact to be monitored is determined, and the weathering degree is determined as the detection result.

5. The shared directory based artifact monitoring method of claim 4, wherein, Determining a total area of weathered regions of the grayscale image based on the temperature matrix file and the temperature threshold file, comprising: For any pixel of the grayscale image, determining a current temperature of the pixel based on the temperature matrix file, and determining a temperature threshold of the pixel based on the temperature threshold file; In a case where the current temperature is less than the temperature threshold, determining that the pixel is a weathered region; Determining a total area of weathered regions of the grayscale image based on a sum of areas of the weathered regions.

6. An artifact monitoring device based on a shared directory, characterized by, The device is applied to a monitoring platform, and the device comprises: A catalog creation module configured to, in a case where monitoring data uploaded by a user for an artifact to be monitored is received, create a target subcatalog corresponding to the monitoring data in a shared catalog, the monitoring data comprising a thermal imaging picture and a temperature matrix file corresponding to the thermal imaging picture; An artifact detection module configured to store the monitoring data to the target subcatalog, so that a MATLAB algorithm service scans the shared catalog according to a first scanning period, and in a case where the target subcatalog is scanned, detects the artifact to be monitored according to the monitoring data by using a target MATLAB algorithm to obtain a detection result, and stores the detection result to the target subcatalog, the detection result being a weathering degree of the artifact to be monitored; A result reading module configured to scan the target subcatalog according to a second scanning period, and in a case where the target subcatalog is scanned to exist the detection result, read and save the detection result, and delete the target subcatalog; A result updating module configured to, in a case where it is detected that the target MATLAB algorithm is updated, perform the step of creating the target subcatalog corresponding to the monitoring data in the shared catalog, so that the updated target MATLAB algorithm detects the artifact to be monitored according to the monitoring data to obtain an updated detection result. The device further comprises: A label generation module configured to generate a task category label of the target subcatalog based on task category information uploaded by the user for the artifact to be monitored, the task category information at least comprising weathering degree identification, structure stability identification, and surface integrity identification; An algorithm determination module configured to determine the target MATLAB algorithm in a preset MATLAB algorithm library based on the task category label, wherein different task category labels correspond to different MATLAB algorithms.

7. A computer readable storage medium having stored thereon an executable program, characterized in that, The executable program, when executed by a processor, implements the artifact monitoring method based on the shared catalog according to any one of claims 1-5.

8. An electronic device, comprising: Comprise: A memory configured to store an executable program; A processor; When the executable program is executed by the processor, the artifact monitoring method based on the shared catalog according to any one of claims 1-5 is implemented.

Citation Information

Patent Citations

  • Monitoring data updating and processing integrated system and method based on Revit and Matlab

    CN106126789A

  • APP memory data classified storage method, classified storage system and server

    CN118733303A

  • Stone cultural relic surface deterioration degree evaluation method based on thermal infrared imaging

    CN119510504A