Multi-functional intelligent pole image file management method, system, computer and medium

By acquiring, storing and managing image files on an edge server and sending data to the main server for centralized storage and searching, the problems of high storage load and slow search speed in the prior art are solved, and efficient image file management and distributed storage are realized.

CN114547353BActive Publication Date: 2025-05-27FOSHAN HUAQUAN ELECTRICAL LIGHTING CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210032711.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-12
Publication Date
2025-05-27
Estimated Expiration
2042-01-12

AI Technical Summary

Technical Problem

Existing image file management has problems such as excessive storage load and slow search speed.

Method used

The image is obtained through the camera at the edge server, and the file name is generated using the time function and the edge server's ID, and the image is saved in the database specified subdirectory of the edge server, and classified by date. The data of the edge server is sent to the main server, and the main server generates image files and stores them. The client obtains the image file address through the main server to browse or modify the image.

Benefits of technology

It realizes distributed storage of image files, reduces the storage load and search complexity of the main server, and improves search speed and system availability, scalability and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114547353B_ABST
    Figure CN114547353B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for managing image files of a multi-functional intelligent pole, including: acquiring images through a camera at an edge server; generating a file name of the image through a time function and the ID of the edge server; saving the image to a specified sub-directory in the database of the edge server, and classifying the sub-directories by date; sending the data of each edge server to a main server and generating an image file for storage; sending a request to browse images through a client to access the image files of the main server; searching for the paths and addresses of the corresponding edge servers to obtain the addresses of the image files; finding the image files according to the addresses of the image files and browsing and setting through the client. The present invention also discloses a multi-functional intelligent pole image file management system, a computer device and a medium. By adopting the present invention, the problems of too high storage load and slow search speed existing in the management of existing image files can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of document management, and particularly to a multifunctional intelligent pole image file management method, system, computer, and medium. Background Art

[0002] Under the new smart city planning, video image and picture processing is an essential technical core. Through the pictures and video files captured by cameras, the smart city system can perform flow analysis of people and vehicles to better cooperate with urban management and planning. With this technological innovation, a large number of video and image files will be generated. An effective and reasonable solution for managing image files is particularly important in the smart city system. However, the existing management of image files has the disadvantages of high storage load and slow search speed. Summary of the Invention

[0003] The technical problem to be solved by the present invention is to provide a multifunctional intelligent pole image file management method, system, computer, and medium, which can solve the problems of high storage load and slow search speed existing in the existing management of image files.

[0004] To solve the above technical problem, the present invention provides a multifunctional intelligent pole image file management method, including: acquiring an image through a camera at an edge server; generating a file name of the image through a time function and the ID of the edge server; saving the image to a specified subdirectory in the database of the edge server and classifying the subdirectory by date; sending the data of each edge server to a main server and generating an image file for storage, wherein the data sent by each edge server to the main server includes the path and address data of the edge server; sending a request to browse an image through a client to access the address information of the image file of the main server; searching for the path and address of the corresponding edge server through the feedback of the main server to obtain the address of the image file; finding the image file according to the address of the image file and sending the image file to the client for the user to browse or modify.

[0005] Preferably, the step of acquiring an image through a camera at an edge server specifically includes: capturing an image through the camera at the edge server; calculating a preset execution strategy through the edge server to determine whether the image constitutes an event; when the determination is yes, then continue with the next image storage step; when the determination is no, then there is no need to save the image.

[0006] Preferably, the step of searching for the paths and addresses of the corresponding edge servers to obtain the address of the image file specifically includes: searching for the paths and addresses of the corresponding edge servers to obtain the URL address of the image; dividing the URL address into "main server URL path" R, "edge server path" E, "storage sub-directory of the image under the edge server" S, and "image name" N.

[0007] Preferably, the step of finding the image file according to the address of the image file and sending the image file to the client for the user to view or modify specifically includes: searching for the JSON file of the main server according to R and obtaining the corresponding edge server path E; searching for the sub-directory S under this edge server according to E and obtaining the file N in the S directory; returning the data to the client for the user to view or modify the image file in the R / E / S / N directory.

[0008] The present invention also provides a multi-functional intelligent pole image file management system, including an image acquisition module, an edge server, a main server, and a client: the image acquisition module is arranged at each edge server and is used to acquire images; the edge server is used to generate the file name of the image through a time function and the ID of the edge server, and is also used to save the image to a specified sub-directory in the database of the edge server and classify the sub-directory by date, and is used to send the data of each edge server to the main server, wherein the data sent by each edge server to the main server includes the path and address data of the edge server; the main server is used to receive the data of each edge server and generate and store the image file, and is used to search for the paths and addresses of the corresponding edge servers to obtain the address of the image file, and is also used to find the image file according to the address of the image file and send the image file to the client; the client is used to send a request to view the image to access the image file of the main server, and is used to receive, view, or modify the image file.

[0009] Preferably, the image acquisition module is used to capture images; the edge server is used to calculate a preset execution strategy to judge whether the image constitutes an event. When the judgment is yes, the next step of image storage is continued. When the judgment is no, the image does not need to be saved.

[0010] Preferably, the main server is used to search for the paths and addresses of the corresponding edge servers to obtain the URL address of the image, and is also used to divide the URL address into "main server URL according to path" R, "edge server path" E, "storage sub-directory of the image under the edge server" S, and "image name" N.

[0011] Preferably, the main server is used to search for the JSON file of the main server according to R to obtain the corresponding edge server path E, to search for the subdirectory S under this edge server according to E, to obtain the file N under the S directory, and to return the data to the client for the user to browse or modify the image file under the R / E / S / N directory.

[0012] The present invention also provides a computer device, including a memory, a processor, and computer instructions stored on the memory and executable on the processor. When the processor executes the instructions, the steps of the above method are implemented.

[0013] The present invention also provides a medium, which stores computer instructions. When the computer instructions are executed by a processor, the steps of the above method are implemented.

[0014] The beneficial effects of implementing the present invention are as follows:

[0015] A large amount of computing consumed in the process of searching in the edge server is skipped, and the storage space of images in the main server is greatly reduced. Instead of storing all image files from the edge server in a centralized storage format, the image file information provided by the edge server is stored, thereby greatly reducing the storage space of the main server and quickly locating the position of the required image.

[0016] In the present invention, an image is obtained through a camera at the edge server; a file name of the image is generated through a time function and the ID of the edge server; the image is saved to a subdirectory specified in the database of the edge server, and the subdirectories are classified by date; the data of each edge server is sent to the main server, and an image file is generated for storage; a request to browse an image is sent through a client to access the image file of the main server; the path and address of the corresponding edge server are searched to obtain the address of the image file; the image file is found according to the address of the image file, and the image file is sent to the client for the user to browse or modify. By adopting the present invention, the problems of too high storage load and slow search speed existing in the management of existing image files can be solved; pictures can be stored distributively under the edge server, and the edge server can achieve load balancing, avoiding a single-point load, and having high availability, scalability, and extensibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a flowchart of a method for managing image files of a multifunctional intelligent pole provided by the present invention;

[0018] Figure 2 is a flowchart of a method for obtaining an image provided by the present invention;

[0019] Figure 3It is the logical schematic diagram of the generation of the image file provided by the present invention until it is recorded in the main server;

[0020] Figure 4 It is the flowchart of the method for obtaining the address of the image file provided by the present invention;

[0021] Figure 5 It is the flowchart of the method for searching the image file provided by the present invention;

[0022] Figure 6 It is the logical schematic diagram of the process for the client to request to browse or modify the image provided by the present invention;

[0023] Figure 7 It is the schematic diagram of the algorithm of the image JSON file recorded in the cloud server through NOSQL provided by the present invention;

[0024] Figure 8 It is the database entity relationship model provided by the present invention;

[0025] Figure 9 It is the principle block diagram of the multi-functional smart pole image file management system provided by the present invention;

[0026] Figure 10 It is the implementation structure schematic diagram of the multi-functional smart pole image file management system provided by the present invention. Detailed implementation manners

[0027] To make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. It is hereby declared that the orientation terms such as up, down, left, right, front, back, inside and outside that appear or will appear in the text of the present invention are only based on the accompanying drawings of the present invention, and they do not specifically limit the present invention.

[0028] As Figure 1 shown, the present invention provides a multi-functional smart pole image file management method, including:

[0029] S101, obtaining an image through a camera at the edge server;

[0030] S102, generating a file name of the image through a time function and the ID of the edge server;

[0031] S103, saving the image to a specified sub-directory in the database of the edge server, and classifying the sub-directories by date;

[0032] S104, sending the data of each edge server to the main server and generating an image file for storage;

[0033] S105, send a request to browse an image through the client to access the image file of the main server;

[0034] S106, search for the paths and addresses of the corresponding edge servers to obtain the address of the image file;

[0035] S107, find the image file according to the address of the image file, and send the image file to the client for the user to browse or modify.

[0036] It should be noted that under the new smart city planning, video image and picture processing is an essential technical core. Through the pictures and video files captured by cameras, the smart city system can conduct flow analysis of people and vehicles, thus better coordinating the management and planning of the city. Under this technological innovation, a large number of video and image files will be generated. An effective and reasonable image file management solution is particularly important in the smart city system. Traditional image file management systems are generally based on a single storage device, and their meta-file data formats are relatively single and simple. Generally, the storage and search tools of traditional image file management systems build indexes based on meta-files or search meta-files through traversal. Obviously, when the number of files reaches a certain magnitude, the time and computational cost spent are huge. Moreover, the reading and calculation of pictures under the image processing of the smart city system are fast, and in the calculation process of machine learning, reading the metadata files requires traversing all image meta-files, which will make the time cost required for generating results more expensive. It can be foreseen that traditional image file management systems build indexes on the system metadata of files (such as access and modification dates), however, in the management of smart cities, users are more interested in information such as the content of pictures and the shooting time, and these data cannot be added by traditional file systems.

[0037] The present invention obtains an image through a camera at an edge server; generates a file name for the image through a time function and the ID of the edge server; saves the image to a sub-directory specified by the database of the edge server and classifies the sub-directories by date; sends the data of each edge server to the main server and generates an image file for storage, wherein the data sent by each edge server to the main server includes the path and address data of the edge server; sends a request to browse the image through a client to access the image file of the main server; searches for the path and address of the corresponding edge server to obtain the address of the image file; finds the image file according to the address of the image file, and sends the image file to the client for the user to browse or modify. By adopting the present invention, the problems of excessive storage load and slow search speed existing in the management of existing image files can be solved; pictures can be distributed and stored under the edge server, and the edge server can achieve load balancing, avoiding a single load, and having high availability, scalability and extensibility.

[0038] Specifically, the entire multi-functional smart pole system mainly consists of a cloud server side and an edge server side. The cloud server side includes a Web server for managing and responding to requests and information browsing of clients, and a database server for mainly storing and managing data submitted by edge servers. The edge server side consists of multiple edge servers. Each individual edge server may be distributed in different geographical locations. Therefore, each individual edge server has a picture server to manage image data and uploads the main data to the database server of the main server. The client receives the page and automatically downloads and displays the corresponding pictures from different picture servers according to the picture URL path in the page. The database server belongs to a data management system of the main server. The data is recorded in the picture server of the edge server and is saved in JSON format by being forwarded to the database server of the cloud server.

[0039] As Figure 2 shown, the step of obtaining an image through a camera at an edge server specifically includes;

[0040] S201, capturing an image through the camera at the edge server;

[0041] S202, calculating a preset execution policy by the edge server;

[0042] S203, determining whether the image constitutes an event;

[0043] S204, when the determination is yes, then continue with the next image storage step;

[0044] S205, when the determination is no, then there is no need to save the image.

[0045] It should be noted that in this embodiment, an image is captured by a camera at the edge server; the edge server calculates a preset execution policy to determine whether the image constitutes an event; when the determination is yes, the next image storage step is continued; when the determination is no, the image does not need to be saved. Through this embodiment, unnecessary image storage of the edge server can be reduced, thereby improving the storage capacity of the edge server. Among them, the preset execution policy is: when a moving picture appears in the camera (such as a car or a person, etc., other moving objects), the picture is default recorded and saved.

[0046] Specifically, as Figure 3 shown, it is the process of an image file from generation to recording into the main server json file.

[0047] As Figure 4 shown, the steps of searching for the path and address of the corresponding edge server to obtain the address of the image file specifically include:

[0048] S301, search for the path and address of the corresponding edge server to obtain the URL address of the image;

[0049] S302, divide the URL address into "main server URL path" R, "edge server path" E, "storage subdirectory of the image under the edge server" S, and "image name" N.

[0050] It should be noted that in this embodiment, search for the path and address of the corresponding edge server to obtain the URL address of the image; divide the URL address into "main server URL according to path" R, "edge server path" E, "storage subdirectory of the image under the edge server" S, and "image name" N.

[0051] It should be noted that in this embodiment, the URL path of the main server is stored in the JSON of the cloud server. The cloud server does not store the image data itself, but the paths of different edge servers where the image data is located. Therefore, the retrieval of the image is the retrieval of the image path. The purpose is to avoid the retrieval difficulty caused by the large amount of data in the cloud server. Thus, it provides an index for accurately searching for the corresponding image file and improves the accuracy of the search.

[0052] As Figure 5 shown, the steps of finding the image file according to the address of the image file and sending the image file to the client for the user to view or modify specifically include:

[0053] S401, search the JSON file of the main server according to R and obtain the corresponding edge server path E;

[0054] S402. Search for subdirectory S under this edge server according to E, and obtain file N under directory S;

[0055] S403. Return the data to the client for the user to view or modify the image files under the R / E / S / N directory.

[0056] It should be noted that in this embodiment, search for the JSON file of the main server according to R, and obtain the corresponding edge server path E; search for subdirectory S under this edge server according to E, and obtain file N under directory S; return the data to the client for the user to view or modify the image files under the R / E / S / N directory. It should be noted that in this embodiment, in order to avoid the retrieval difficulties caused by the overlap and repeated use of paths, the edge server path E can distinguish servers in different regions; the storage subdirectory S of images under the edge server can distinguish different directories under the same edge server (such as the face image directory, vehicle / license plate image directory); the image name can distinguish individual images under the same S directory, and this directory is the final directory. Therefore, the image name can be generated by the time function, such as "Face_2019_02_02_13_18_06", which means the picture obtained at 1:18:06 PM on February 2, 2019. Thus, the corresponding image file can be quickly and accurately browsed according to the precise path and directory, improving the search speed and reducing the probability of errors.

[0057] Specifically, as Figure 6 shown, it is the process for the client to request to view / modify an image.

[0058] As Figure 7 shown, what is displayed is the image JSON file recorded in the cloud server through NOSQL. This file contains the information of each edge server and the image status under its directory. The image saved on a certain edge server can be quickly searched through the JSON file of the cloud server.

[0059] As Figure 8 shown, the status of the data in the edge server records information such as the ID, name, and image storage path of the edge server. There will be multiple records of picture information under each edge server, so they are in a one-to-many relationship. The database server of the cloud server needs to timely master the status and information of all picture servers. Therefore, the information of the picture servers needs to be recorded in the cloud server.

[0060] As Figures 9 - 10As shown in the figure, the present invention also provides a multifunctional intelligent pole image file management system 100, including an image acquisition module 1, an edge server 2, a main server 3, and a client 4: The image acquisition module 1 is provided at each edge server and is used to acquire images; The edge server 2 is used to generate the file name of the image through a time function and the ID of the edge server, and is also used to save the image to a specified subdirectory in the database of the edge server and classify the subdirectories by date, and is used to send the data of each edge server to the main server. Among them, the data sent by each edge server to the main server includes the path and address data of the edge server; The main server 3 is used to receive the data of each edge server and generate image files for storage, and is used to search for the paths and addresses of the corresponding edge servers to obtain the addresses of the image files, and is also used to find the image files according to the addresses of the image files and send the image files to the client; The client 4 is used to send a request to browse images to access the image files of the main server, and is used to receive, browse, or modify the image files.

[0061] It should be noted that under the new smart city planning, video image and picture processing is an essential technical core. Through the pictures and video files captured by cameras, the smart city system can conduct flow analysis of people and vehicles to better cooperate with urban management and planning. Under this technological innovation, a large number of video and image files will be generated. An effective and reasonable image file management solution is particularly important in the smart city system. Traditional image file management systems are generally based on a single storage device, and their meta-file data formats are relatively single and simple. Generally, the storage and search tools of traditional image file management systems are based on meta-files to establish indexes, or search meta-files through traversal. Obviously, when this management method reaches an order of magnitude of files, the time and computational effort spent are huge. Moreover, in the image processing of the smart city system, the reading and calculation of pictures are fast, and in the calculation process of machine learning, the reading of metadata files requires traversing all image meta-files, which will make the time cost required for generating results more expensive. It can be foreseen that traditional image file management systems establish indexes on the system metadata of files (such as access and modification dates). However, in the management of smart cities, users are more interested in information such as the content of pictures and the shooting time, and these data cannot be added by traditional file systems.

[0062] In the present invention, an image acquisition module 1 is provided at each edge server to acquire images; an edge server 2 generates a file name for the image through a time function and the ID of the edge server, saves the image to a subdirectory specified in the database of the edge server, classifies the subdirectories by date, and sends the data of each edge server to the main server; a main server 3 receives the data of each edge server, generates an image file for storage, searches for the paths and addresses of the corresponding edge servers to obtain the address of the image file, and also finds the image file according to the address of the image file and sends the image file to the client; a client 4 sends a request to browse the image to access the image file of the main server, and receives, browses or modifies the image file. By adopting the present invention, the problems of excessive storage load and slow search speed existing in the management of existing image files can be solved; pictures can be distributed and stored under edge servers, and the edge servers can achieve load balancing, avoiding a single-type load, and having high availability, scalability and expandability.

[0063] Specifically, the entire multi-functional smart pole system mainly consists of a cloud server side and an edge server side. The cloud server side includes a Web server to manage and respond to requests from clients and browse information, and a database server is mainly used to store and manage data submitted by edge servers. The edge server side consists of multiple edge servers. Each individual edge server may be distributed in different geographical locations. Therefore, each individual edge server has a picture server to manage image data and upload the main data to the database server of the main server. The client receives the page and automatically downloads and displays the corresponding pictures from different picture servers according to the picture URL paths in the page. The database server belongs to a data management system of the main server. The data is recorded in the picture server of the edge server and saved in JSON format by being forwarded to the database server of the cloud server.

[0064] Preferably, the image acquisition module is used to capture images; the edge server is used to calculate a preset execution policy to determine whether the image constitutes an event. When the determination is yes, the next image storage step is continued. When the determination is no, the image does not need to be saved.

[0065] It should be noted that in this embodiment, images are captured by a camera at the edge server; a preset execution policy is calculated by the edge server to determine whether the image constitutes an event; when the determination is yes, the next image storage step is continued; when the determination is no, the image does not need to be saved. By this embodiment, unnecessary image storage of the edge server can be reduced, thereby improving the storage capacity of the edge server.

[0066] Further, the main server is used to search for the paths and addresses of the corresponding edge servers to obtain the URL address of the image, and is also used to divide the URL address into "main server URL according to path" R, "edge server path" E, "storage sub-directory of the image under the edge server" S, and "image name" N.

[0067] It should be noted that in this embodiment, the paths and addresses of the corresponding edge servers are searched to obtain the URL address of the image; the URL address is divided into "main server URL according to path" R, "edge server path" E, "storage sub-directory of the image under the edge server" S, and "image name" N. Thereby, an index is provided for accurately searching for the corresponding image file, improving the accuracy of the search.

[0068] Preferably, the main server is used to search for the JSON file of the main server according to R and obtain the corresponding edge server path E, is used to search for the sub-directory S under this edge server according to E, is used to obtain the file N under the S directory, and is also used to return data to the client for the user to browse or modify the image files in the R / E / S / N directories.

[0069] It should be noted that in this embodiment, the JSON file of the main server is searched according to R, and the corresponding edge server path E is obtained; the sub-directory S under this edge server is searched according to E, and the file N under the S directory is obtained; data is returned to the client for the user to browse or modify the image files in the R / E / S / N directories. Thereby, the corresponding image file can be quickly and accurately browsed according to the accurate path and directory, improving the search speed and reducing the probability of errors.

[0070] As Figure 7 shown, the displayed is the image JSON file recorded in the cloud server through NOSQL. This file contains the information of each edge server and the image status in its directory. The image saved in a certain edge server can be quickly searched through the JSON file of the cloud server. As Figure 8 shown, the status of the data in the edge server records the information such as the ID, name, and image storage path of the edge server. There will be multiple records of picture information under each edge server, so they are in a one-to-many relationship. The database server of the cloud server needs to timely master the status and information of all picture servers, so the information of the picture servers needs to be recorded in the cloud server.

[0071] The present invention also provides a computer device, including a memory, a processor, and computer instructions stored on the memory and executable on the processor. When the processor executes the instructions, the steps of the above method are implemented.

[0072] The present invention also provides a medium storing computer instructions, which, when executed by a processor, implement the steps of the above method.

[0073] In summary, for the present invention, an image is acquired by a camera at an edge server; a file name of the image is generated by a time function and the ID of the edge server; the image is saved to a sub-directory specified in the database of the edge server and the sub-directories are classified by date; data of each edge server is sent to a main server and an image file is generated for storage; a request to browse an image is sent through a client to access the image file of the main server; the path and address of the corresponding edge server are searched to obtain the address of the image file; the image file is found according to the address of the image file and the image file is sent to the client for the user to browse or modify. Additionally, an image is acquired through the image acquisition module 1 provided at each edge server; the file name of the image is generated by the edge server 2 through a time function and the ID of the edge server, and the image is also saved to a sub-directory specified in the database of the edge server and the sub-directories are classified by date, and data of each edge server is sent to the main server; the main server 3 receives data of each edge server and generates an image file for storage, searches the path and address of the corresponding edge server to obtain the address of the image file, and also finds the image file according to the address of the image file and sends the image file to the client; the client 4 sends a request to browse an image to access the image file of the main server and receives, browses or modifies the image file. By adopting the present invention, the problems of excessive storage load and slow search speed existing in the management of existing image files can be solved; pictures can be stored distributively under edge servers, and the edge servers can achieve load balancing, avoiding a single-point load, and having high availability, scalability and extensibility. An image is captured by a camera at the edge server; a preset execution policy is calculated by the edge server to determine whether the image constitutes an event; when the determination is yes, the next image storage step is continued; when the determination is no, the image does not need to be saved. Through this embodiment, unnecessary image storage of the edge server can be reduced, thereby improving the storage capacity of the edge server. The path and address of the corresponding edge server are searched to obtain the URL address of the image; the URL address is divided into "main server URL according to path" R, "edge server path" E, "storage sub-directory of the image under the edge server" S, and "image name" N. Thereby, an index is provided for accurately searching the corresponding image file, improving the accuracy of the search. The JSON file of the main server is searched according to R and the corresponding edge server path E is obtained; the sub-directory S under this edge server is searched according to E and the file N under the S directory is obtained; the data is returned to the client for the user to browse or modify the image file in the R / E / S / N directory. Thereby, the corresponding image file can be quickly and accurately browsed according to the accurate path and directory, improving the search speed and reducing the probability of errors.

[0074] The above are the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and refinements can be made, and these improvements and refinements are also regarded as the protection scope of the present invention.

Claims

1. A method for managing image files of a multi-functional intelligent pole, characterized in that, it includes: Obtaining images through a camera at the edge server; Generating a file name for the image through a time function and the ID of the edge server; Saving the image to a specified sub-directory in the database of the edge server and classifying the sub-directories by date; Sending the data of each edge server to the main server and generating image files for storage, wherein the data sent from each edge server to the main server includes the path and address data of the edge server; Sending a request to browse images through the client to access the address information of the image files on the main server; Searching for the path and address of the corresponding edge server through the feedback of the main server to obtain the address of the image file; Finding the image file according to the address of the image file and sending the image to the client for the user to browse or modify.

2. The method for managing image files of a multi-functional intelligent pole according to claim 1, characterized in that, The step of obtaining images through a camera at the edge server specifically includes: Capturing images through the camera at the edge server; Calculating a preset execution policy through the edge server to determine whether the image constitutes an event; When the judgment is yes, then continue with the next step of image storage; When the judgment is no, then there is no need to save the image.

3. The method for managing image files of a multi-functional intelligent pole according to claim 1, characterized in that, The step of searching for the path and address of the corresponding edge server to obtain the address of the image file specifically includes: Searching for the path and address of the corresponding edge server to obtain the URL address of the image; Dividing the URL address into "main server URL path" R, "edge server path E", "storage sub-directory of the image under the edge server" S, and "image name" N.

4. The method for managing image files of a multi-functional intelligent pole according to claim 3, characterized in that, The step of finding the image file according to the address of the image file and sending the image file to the client for the user to browse or modify specifically includes: Searching for the JSON file of the main server according to R and obtaining the corresponding edge server path E; Searching for the sub-directory S under this edge server according to E and obtaining the file N in the S directory; Returning the data to the client for the user to browse or modify the image file in the R / E / S / N directory.

5. A multi-functional intelligent pole image file management system, characterized in that, it includes an image acquisition module, an edge server, a main server, and a client: The image acquisition module is arranged at each edge server and is used to acquire images; The edge server is used to generate the file name of the image through a time function and the ID of the edge server, and is also used to save the image to a specified sub-directory in the database of the edge server and classify the sub-directories by date, and is used to send the data of each edge server to the main server, wherein the data sent from each edge server to the main server includes the path and address data of the edge server; The master server is used to receive data from each edge server, generate image files for storage, search for the paths and addresses of the corresponding edge servers to obtain the addresses of the image files, and find the image files according to the addresses of the image files and send the image files to the client; The client is used to send a request to browse images to access the image files of the master server, and is used to receive, browse or modify the image files.

6. The multifunctional smart pole image file management system according to claim 5, characterized in that, The image acquisition module is used to capture images; The edge server is used to calculate a preset execution policy to determine whether the image constitutes an event. When the determination is yes, the next image storage step is continued. When the determination is no, the image does not need to be saved.

7. The multifunctional smart pole image file management system according to claim 5, characterized in that, The master server is used to search for the paths and addresses of the corresponding edge servers to obtain the URL addresses of the images, and is also used to divide the URL addresses into "master server URL path" R, "edge server path" E, "storage subdirectory of the image under the edge server" S, and "image name" N.

8. The multifunctional smart pole image file management system according to claim 7, characterized in that, The master server is used to search the JSON file of the master server according to R to obtain the corresponding edge server path E, search the subdirectory S under this edge server according to E, obtain the file N in the S directory, and return data to the client for the user to browse or modify the image files in the R / E / S / N directories.

9. A computer device, including a memory, a processor, and computer instructions stored on the memory and executable on the processor, characterized in that, When the processor executes the instructions, the steps of the method according to any one of claims 1-4 are implemented.

10. A medium, which stores computer instructions, characterized in that, When the computer instructions are executed by the processor, the steps of the method according to any one of claims 1-4 are implemented.

Citation Information

Patent Citations

  • User icon optimal display method and system

    CN108874472A

  • Image data management method and system using network

    US20030014430A1