CN113297403A - Intelligent image storage method, system, equipment and storage medium - Google Patents

Intelligent image storage method, system, equipment and storage medium Download PDF

Info

Publication number
CN113297403A
CN113297403A CN202110736984.XA CN202110736984A CN113297403A CN 113297403 A CN113297403 A CN 113297403A CN 202110736984 A CN202110736984 A CN 202110736984A CN 113297403 A CN113297403 A CN 113297403A
Authority
CN
China
Prior art keywords
image
data
stored
database
url
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110736984.XA
Other languages
Chinese (zh)
Inventor
周建云
岳世崇
严海全
陈卫东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Keda Technology Co Ltd
Original Assignee
Suzhou Keda Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Keda Technology Co Ltd filed Critical Suzhou Keda Technology Co Ltd
Priority to CN202110736984.XA priority Critical patent/CN113297403A/en
Publication of CN113297403A publication Critical patent/CN113297403A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Abstract

The invention provides an intelligent image storage method, a system, equipment and a storage medium, wherein the method comprises the following steps: acquiring data to be stored, wherein the data to be stored comprises image data to be stored and corresponding image structured information data; storing image data to be stored in a target intelligent storage disk corresponding to a target image database, and acquiring URL data of the stored image data, wherein the target intelligent storage disk stores an index of the corresponding image database; storing URL data of the stored image data and corresponding image structural information data in a target intelligent storage disc corresponding to a target URL database; and updating indexes of the image databases and the indexes of the URL databases stored in all the intelligent storage disks corresponding to the target image database and the target URL database. By adopting the invention, the image data and the URL data are respectively stored in different databases, and the database overall index is stored in the intelligent storage disk, which is beneficial to the subsequent rapid retrieval of the image.

Description

Intelligent image storage method, system, equipment and storage medium
Technical Field
The invention relates to the technical field of data processing, in particular to an intelligent image storage method, system, equipment and storage medium.
Background
A Network Video Recorder (NVR) is a store-and-forward department of a Network Video monitoring system, and the NVR can cooperate with an internet protocol CAMERA (IP CAMERA) to complete Video recording, storing and forwarding functions. With the development of network video monitoring systems, the amount of data to be processed by NVR is larger and more complex, and the retrieval of the data is also more and more complex. When data retrieval is performed on the basis of a large amount of stored data, a long retrieval time is often required, and retrieval efficiency is low.
Disclosure of Invention
The invention aims to provide an image intelligent storage method, system, equipment and storage medium, wherein image data and URL data are respectively stored in different databases, and overall database indexes are stored in an intelligent storage disc, so that the image intelligent storage method, system, equipment and storage medium are beneficial to subsequent quick retrieval of images.
The embodiment of the invention provides an intelligent image storage method, which comprises the following steps:
acquiring data to be stored, wherein the data to be stored comprises image data to be stored and corresponding image structured information data;
storing the image data to be stored in a target intelligent storage disk corresponding to a target image database, taking the image data as stored image data, and acquiring URL (uniform resource locator) data of the stored image data, wherein the target intelligent storage disk stores an index of the corresponding image database;
determining a target URL database corresponding to the target image database, storing URL data of the stored image data and corresponding image structural information data in a target intelligent storage disc corresponding to the target URL database as stored URL data, wherein the stored image data and the corresponding stored URL data are located in the same target intelligent storage disc, and the target intelligent storage disc also stores an index of the corresponding URL database;
and updating indexes of the image databases and indexes of the URL databases stored in all the intelligent storage disks corresponding to the target image database and the target URL database.
According to the image intelligent storage method, firstly, image data to be stored is obtained, the image data is stored, then image structural information data and URL data are stored, and database indexes in all corresponding intelligent storage disks are updated. Through saving image data and URL data in different databases respectively to save database global index in intelligent memory disc, be favorable to follow-up carry out quick retrieval to the image, even a certain intelligent memory disc breaks down, also can not destroy the integrality of whole database data.
In some embodiments, the obtaining the data to be stored includes the following steps:
receiving first uploading data from an image source, wherein the first uploading data comprises image data to be stored;
and processing the image data to be stored by adopting a preset intelligent algorithm to obtain corresponding image structured information data.
In some embodiments, storing the image data to be stored in an intelligent storage disk corresponding to a target image database includes the following steps:
adding the image data to be stored into a data buffer queue;
judging whether the image data caching quantity in the data caching queue is larger than a preset quantity threshold or whether the time interval from the previous caching storage is larger than a preset time threshold;
and if so, storing the image data to be stored in the data cache queue in an intelligent storage disc corresponding to a target image database.
In some embodiments, storing the image data to be stored in an intelligent storage disk corresponding to a target image database includes the following steps:
selecting a URL database stored with URL data at the previous time, and judging whether the stored data amount in the URL database is smaller than a preset data amount threshold value or not;
if so, selecting the URL database stored by the URL data at the previous time as a target URL database stored by the URL data at the current time, and taking the image database corresponding to the target URL database as a target image database stored by the image data at the current time;
if not, selecting another URL database with the stored data volume smaller than the preset data volume threshold value as a target URL database for the current URL data storage, and taking an image database corresponding to the target URL database as a target image database for the current image data storage.
In some embodiments, each of the smart storage disks further stores a data uploading time range of the corresponding image database and URL database, and the method further includes the following steps:
receiving an image retrieval request, wherein the image retrieval request comprises a retrieval time range and image retrieval conditions;
selecting an alternative URL database positioned in the retrieval time range according to the retrieval time range and the data uploading time range of each database;
and selecting an alternative URL database with the preset number of search libraries in the latest image uploading time range as a search URL database.
And carrying out image retrieval in the retrieval URL database according to the image retrieval conditions.
In some embodiments, each of the smart storage disks further stores an image data upload identification bit of the corresponding image database and URL database;
the method further comprises the steps of:
selecting an image database and a URL database with image data uploading identification positions of unfinished uploading as databases to be uploaded, and taking image data and image URL data in the databases to be uploaded as second uploading data;
uploading the second uploading data to a background server;
and setting the uploading identification bit of the image database and the image data corresponding to the URL database which are uploaded to be the uploading completed.
In some embodiments, each of the smart storage disks further stores corresponding device information, and the method further includes the following steps:
retrieving whether the equipment information stored in the intelligent storage disk is consistent with the equipment information of the equipment connected with the intelligent storage disk;
and if the current intelligent storage disk is inconsistent with the URL database, prompting that the current intelligent storage disk connecting equipment is in error, and not adopting the storage data in the current intelligent storage disk as the data of the corresponding image database and the URL database.
In some embodiments, each of the intelligent storage disks further stores a data uploading time range of the corresponding image database and the corresponding URL database, and stores the image data to be stored in a target intelligent storage disk corresponding to a target image database as stored image data, including the following steps:
judging whether the intelligent storage disk which is not full currently exists or not,
if yes, selecting an intelligent storage disk which is not fully stored as a target intelligent storage disk, and storing the image data to be stored in the new target intelligent storage disk;
and if no other intelligent storage disk which is not full is available, deleting the data in the image database with the earliest data uploading time range, and deleting the data in the URL database corresponding to the image database.
The embodiment of the invention also provides an intelligent image storage system, which is applied to the intelligent image storage method, and the system comprises:
the image acquisition module is used for acquiring data to be stored, wherein the data to be stored comprises image data to be stored and corresponding image structural information data;
the image storage module is used for storing the image data to be stored in a target intelligent storage disc corresponding to a target image database, acquiring URL (uniform resource locator) data of the stored image data as the stored image data, and the target intelligent storage disc stores an index of the corresponding image database;
the URL storage module is used for storing URL data of the stored image data and corresponding image structural information data into a target intelligent storage disc corresponding to a target URL database to serve as the stored URL data, the stored image data and the corresponding stored URL data are located in the same target intelligent storage disc, and indexes of the corresponding URL database are stored in the target intelligent storage disc;
and the index updating module is used for updating the indexes of the image databases and the indexes of the URL databases stored in all the intelligent storage disks corresponding to the target image database and the target URL database.
According to the image intelligent storage system, firstly, image data to be stored is obtained, the image data is stored, then, image structural information data and URL data are stored, and database indexes in all corresponding intelligent storage disks are updated. Through saving image data and URL data in different databases respectively to save database global index in intelligent memory disc, be favorable to follow-up carry out quick retrieval to the image, even a certain intelligent memory disc breaks down, also can not destroy the integrality of whole database data.
An embodiment of the present invention further provides an image intelligent storage device, including:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the image smart storage method via execution of the executable instructions.
By adopting the intelligent image storage device provided by the invention, the processor executes the intelligent image storage method when executing the executable instruction, so that the beneficial effect of the intelligent image storage method can be obtained.
The embodiment of the invention also provides a computer readable storage medium for storing a program, and the program realizes the steps of the intelligent image storage method when being executed by a processor.
By adopting the computer-readable storage medium provided by the invention, the stored program realizes the steps of the intelligent image storage method when being executed, thereby the beneficial effects of the intelligent image storage method can be obtained.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, with reference to the accompanying drawings.
FIG. 1 is a flow chart of a method for intelligent storage of images according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a storage structure of an intelligent storage disk according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating the structure of the database index according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a storage structure of an image database according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a storage structure of a URL database according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an intelligent image storage system according to an embodiment of the invention;
FIG. 7 is a schematic structural diagram of an image smart storage device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a computer storage medium according to an embodiment of the present invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and thus their repetitive description will be omitted.
As shown in fig. 1, in an embodiment, the present invention provides an intelligent image storage method for intelligent image storage at an NVR end, including the following steps:
s100: and acquiring data to be stored, wherein the data to be stored comprises image data to be stored and corresponding image structural information data.
S200: and storing the image data to be stored in a target intelligent storage disc corresponding to a target image database to serve as the stored image data, and acquiring URL data of the stored image data.
And the target intelligent storage disk stores an index of the corresponding image database. The URL data is the URL of the image data in the target image database, and the specified image can be obtained in the corresponding image database according to the URL data.
S300: and determining a target URL database corresponding to the target image database, and storing the URL data of the stored image data and the corresponding image structural information data in a target intelligent storage disc corresponding to the target URL database as the stored URL data.
The stored image data and the corresponding stored URL data are located in the same target intelligent storage disk, and the target intelligent storage disk also stores an index of the corresponding URL database.
S400: and updating indexes of the image databases and indexes of the URL databases stored in all the intelligent storage disks corresponding to the target image database and the target URL database.
According to the image intelligent storage method, firstly, image data to be stored is acquired through the step S100, the image data is stored through the step S200, image structural information data and URL data are stored through the step S300, and database indexes in all corresponding intelligent storage disks are updated through the step S400. Through saving image data and URL data in different databases respectively to save database global index in intelligent memory disc, be favorable to follow-up carry out quick retrieval to the image, even a certain intelligent memory disc breaks down, also can not destroy the integrality of whole database data.
In this embodiment, the step S100: acquiring data to be stored, comprising the following steps:
receiving first uploading data from an image source, wherein the first uploading data comprises image data to be stored; the image source can be a network camera, namely the network camera acquires image data and uploads the image data as first uploading data to the NVR through the view library protocol;
and processing the image data to be stored by adopting a preset intelligent algorithm to obtain corresponding image structured information data. Here, the intelligent algorithm is, for example, face feature extraction, vehicle feature extraction, face recognition, vehicle recognition, face comparison, vehicle comparison, and the like, and may be implemented by using a trained machine learning model stored in the NVR.
Fig. 2 is a schematic diagram of a storage structure of the intelligent storage disk in this embodiment. Fig. 3 is a schematic structural diagram of the database global index in this embodiment. Fig. 4 is a schematic diagram of a storage structure of the image database in this embodiment. Fig. 5 is a schematic diagram of a storage structure of the URL database according to this embodiment. The memory structures shown in fig. 2-5 are merely examples, and the present invention is not limited thereto.
In this embodiment, the NVR end may be deployed with a plurality of image databases and a plurality of URL databases, and there is a one-to-one correspondence relationship between the image databases and the URL databases, that is, image URL data and image structural information data stored in the URL databases correspond to image data in the corresponding image databases. One image database and the corresponding URL database can correspond to a plurality of intelligent storage disks, namely, each intelligent storage disk stores partial data in the image database and partial data in the URL database, the image data and the URL data stored in the intelligent storage disks correspond to each other, and the situation that the image data and the URL data of one image are stored in two different intelligent storage disks does not occur.
As shown in fig. 2, the smart storage disk stores a database global index, image database data, URL database data, smart disk identification, and device information. Here, the device information is information of a device to which the smart storage disk is connected, and the device information may be, for example, device mac information. The database total index comprises indexes of all data in an image database corresponding to the intelligent storage disk and indexes of all data in a URL database. Therefore, even if the image data of other intelligent storage disks corresponding to the same image database is updated, the database overall index in the intelligent storage disk is updated accordingly.
As shown in fig. 3, the database global index further includes an upload identification bit and an image upload time range of images and logs. The image upload time range may include an upload start time and an upload end time.
As shown in fig. 4, the image database may include a primary key, image data, and an image data length. As shown in fig. 5, the URL database includes face structured information, image database index value, corresponding database primary key, car structured information, image database index value, corresponding database primary key, log structured information, image database index value, corresponding database primary key, manual structured information, image database index value, corresponding database primary key, and log uploading status table. The image database index value is image URL data, face structured information refers to face recognition face structured information, car structured information refers to vehicle recognition result information, log structured information refers to structured information of a face or vehicle comparison (such as black and white list comparison) result picture, and manual structured information refers to structured information of intelligent analysis of a manually-captured picture. Since each recognized face or vehicle needs to upload a view library (GA/T1400.1-2017 police video image information application system), and the uploading is needed when the uploading fails, a picture uploading state needs to be recorded, that is, uploading information is recorded through a log uploading state table.
In this embodiment, the step S200: storing the image data to be stored in an intelligent storage disk corresponding to a target image database, comprising the following steps:
adding the image data to be stored into a data buffer queue;
judging whether the image data caching quantity in the data caching queue is larger than a preset quantity threshold or whether the time interval from the previous caching storage is larger than a preset time threshold;
and if so, storing the image data to be stored in the data cache queue in an intelligent storage disc corresponding to a target image database.
Therefore, when the image data to be stored is stored, the data is not acquired at any time and is stored at any time, but a data buffer queue is firstly established, the data buffer queue sets a quantity threshold and a time threshold, and when any threshold is reached, the data in the buffer queue is stored in the database. Therefore, real-time writing into the intelligent storage disk is avoided, and the burden of overall NVR storage is relieved. Different data buffer queues can be established for different types of images (such as different types of vehicle and face images) without mutual influence. And each data cache queue may correspond to a database table.
After the data to be stored is stored, indexes can be created for the database tables according to the conditions frequently required by searching in the URL database, and the searching speed is accelerated. The invention can also realize log storage and retrieval, and the log can be stored in the URL database. The log retrieval can be connected with a ctrl ib deployment and control library to perform deployment and control library information retrieval. Because a part of the deployment and control library (such as a bottom library for storing human faces) contains user privacy information, the database adopts an encryption database, when the human faces are compared, a log record is generated regardless of success and failure, only the current snapshot picture and the structural information are recorded if the face comparison fails, if the face comparison succeeds, the data link in the deployment and control library is added, the deployment and control library is linked during log retrieval, and if the deployment and control library is encrypted, the link is encrypted. Further, in order to further increase the speed of log retrieval, a deployment library key value may be generated in advance for a common log retrieval condition, and the log retrieval may be performed directly according to the deployment library key value during the log retrieval.
The database of the invention can adopt Sqlite (more than 3.7 versions) and adopt wal mode, and support multithreading read operation and is not blocked. The wal mode is opened to generate wal-shm two files, data is preferentially acquired from wal when being read, and the method is suitable for the situation that picture data is stored and retrieved frequently (for example, the situation that the cache supply is short of the demand).
In practical applications, when the amount of one database is large, the management and retrieval of subsequent database data are troublesome. Therefore, the data of the databases are split through the uploading time sequence, that is, the data quantity stored in one database does not exceed the preset data quantity threshold, and the uploading time of the data stored in the database is continuous, so that the purpose of time paging is achieved.
Specifically, the step S200: storing the image data to be stored in an intelligent storage disk corresponding to a target image database, comprising the following steps:
selecting a URL database stored with URL data at the previous time, and judging whether the stored data amount in the URL database is smaller than a preset data amount threshold value or not; the numerical value of the preset data volume threshold value can be set as required, for example, the data volume threshold value of each URL database can be set to be 1GB, when the data storage volume of one URL database reaches 1GB, the next URL database is switched to, and correspondingly, the image data is also stored in the image database corresponding to the next URL database;
if so, selecting the URL database stored by the URL data at the previous time as a target URL database stored by the URL data at the current time, and taking the image database corresponding to the target URL database as a target image database stored by the image data at the current time;
if not, selecting another URL database with the stored data volume smaller than the preset data volume threshold value as a target URL database for the current URL data storage, and taking an image database corresponding to the target URL database as a target image database for the current image data storage.
In this embodiment, when the user performs image retrieval, a large time retrieval range may be set, for example, from last month to last month of the year, so that retrieval may generate a very large amount of data, retrieval time may be slow, retrieval results may be many, and the burden of retrieval on the retrieval engine may be heavy. Thus, in this embodiment, the number of database queries may be limited when a user sets a large time frame that may involve multiple database queries. As shown in fig. 3, each of the smart storage disks further stores a data uploading time range of the corresponding image database and the corresponding URL database. Specifically, the intelligent image storage method further comprises the following steps:
receiving an image retrieval request, wherein the image retrieval request comprises a retrieval time range and image retrieval conditions, and the image retrieval conditions comprise IPC identifications, image categories, personnel information corresponding to images and the like;
selecting an alternative URL database positioned in the retrieval time range according to the retrieval time range and the data uploading time range of each database;
and selecting an alternative URL database with the preset number of search libraries in the latest image uploading time range as a search URL database. For example, the number of the predetermined search repositories is set to 2. The two URL databases with the latest uploading time are selected from all the alternative URL databases for retrieval. After obtaining the retrieval result, the user can adjust the retrieval time range and then obtain the retrieval results in other time ranges;
and carrying out image retrieval in the retrieval URL database according to the image retrieval conditions.
In this embodiment, the data of the NVR terminal may be further uploaded to a background server. As shown in fig. 3, each of the intelligent storage disks further stores an image data uploading flag of the corresponding image database and URL database, which is used to identify whether the database data has been uploaded to the background server.
Specifically, the intelligent image storage method further comprises the following steps:
selecting an image database and a URL database with image data uploading identification positions of unfinished uploading as databases to be uploaded, and taking image data and image URL data in the databases to be uploaded as second uploading data;
uploading the second uploading data to a background server;
and setting the uploading identification bit of the image database and the image data corresponding to the URL database which are uploaded to be the uploading completed.
Furthermore, the intelligent image storage method further comprises the uploading of logs. Therefore, the uploading identification bit can be an image and log uploading identification bit. When an image database, a URL database and corresponding logs are uploaded successfully, the uploading identification bit in the database overall index is updated, the database which is not uploaded is directly filtered when the database which is not uploaded is queried, and the select count () query operation is avoided each time.
In this embodiment, as shown in fig. 2, each of the smart storage disks further stores corresponding device information. Specifically, the intelligent image storage method further comprises the following steps:
retrieving whether the equipment information stored in the intelligent storage disk is consistent with the equipment information of the equipment connected with the intelligent storage disk;
and if the current intelligent storage disk is inconsistent with the URL database, prompting that the current intelligent storage disk connecting equipment is in error, and not adopting the storage data in the current intelligent storage disk as the data of the corresponding image database and the URL database.
Therefore, the invention realizes the unidirectional corresponding relation between the intelligent storage disks and the equipment, namely, one intelligent storage disk fixedly corresponds to one equipment. Here, the device is a server device on the NVR side. So as to prevent the intelligent storage disk from being plugged into other equipment for use, and data verification is wrong. When a plurality of intelligent storage disks correspond to one device, the total indexes of the intelligent storage disks are inconsistent, and data disorder is caused. Therefore, in this embodiment, when the intelligent storage disk is not identified, the intelligent storage disk data is not taken as the standard, and the user is prompted.
In this embodiment, each of the smart storage disks further stores a data uploading time range of the corresponding image database and the corresponding URL database. The step S200: storing the image data to be stored in a target intelligent storage disk corresponding to a target image database as stored image data, and comprising the following steps:
judging whether the current target intelligent memory is full;
if not, storing the new data to be stored in the current target intelligent memory;
if the current target intelligent memory is full, judging whether an intelligent memory disk which is not full currently exists;
if the image data to be stored exists in the target intelligent storage disk, selecting an intelligent storage disk which is not fully stored as the target intelligent storage disk, and storing the image data to be stored in the new target intelligent storage disk;
and if no other intelligent storage disks which are not fully stored exist, reading the data uploading time ranges in the database overall indexes in all the intelligent disks, deleting the data in the image database with the earliest data uploading time range, and deleting the data in the URL database corresponding to the image database, thereby realizing the data full coverage. Here, deleting the data in the image database and the data in the URL database corresponding to the image database may be deleting the data in one intelligent storage disk, for example, deleting the data of the intelligent storage disk with the earliest data uploading time range, or deleting the data of all the intelligent storage disks corresponding to the database.
As shown in fig. 6, an embodiment of the present invention further provides an intelligent image storage system, which is applied to the intelligent image storage method, and the system includes:
the image acquisition module M100 is configured to acquire data to be stored, where the data to be stored includes image data to be stored and corresponding image structured information data;
the image storage module M200 is configured to store the image data to be stored in a target intelligent storage disk corresponding to a target image database, as stored image data, obtain URL data of the stored image data, where the target intelligent storage disk stores an index of the corresponding image database;
the URL storage module M300 is configured to store the URL data of the stored image data and the corresponding image structural information data in a target intelligent storage disk corresponding to a target URL database as stored URL data, where the stored image data and the corresponding stored URL data are located in the same target intelligent storage disk, and the target intelligent storage disk further stores an index of the corresponding URL database;
and an index updating module M400, configured to update indexes of the image databases and indexes of the URL databases stored in all the intelligent storage disks corresponding to the target image database and the target URL database.
According to the image intelligent storage system, firstly, image data to be stored is acquired through the image acquisition module M100, image data storage is carried out through the image storage module M200, image structural information data and URL data are stored through the URL storage module M300, and database indexes in all corresponding intelligent storage disks are updated through the index updating module M400. Through saving image data and URL data in different databases respectively to save database global index in intelligent memory disc, be favorable to follow-up carry out quick retrieval to the image, even a certain intelligent memory disc breaks down, also can not destroy the integrality of whole database data.
In the image intelligent storage system of the present invention, the functions of each module can be implemented by adopting the specific implementation manner of each step in the image intelligent storage method, which is not described herein again.
The embodiment of the invention also provides an image intelligent storage device, which comprises a processor; a memory having stored therein executable instructions of the processor; wherein the processor is configured to perform the steps of the image smart storage method via execution of the executable instructions.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 7. The electronic device 600 shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 7, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 that connects the various system components (including the storage unit 620 and the processing unit 610), a display unit 640, and the like.
Wherein the storage unit stores program code executable by the processing unit 610 to cause the processing unit 610 to perform steps according to various exemplary embodiments of the present invention described in the above-mentioned electronic prescription flow processing method section of the present specification. For example, the processing unit 610 may perform the steps as shown in fig. 1.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
By adopting the intelligent image storage device provided by the invention, the processor executes the intelligent image storage method when executing the executable instruction, so that the beneficial effect of the intelligent image storage method can be obtained.
The embodiment of the invention also provides a computer readable storage medium for storing a program, and the program realizes the steps of the intelligent image storage method when being executed by a processor. In some possible embodiments, aspects of the present invention may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above-mentioned electronic prescription flow processing method section of this specification, when the program product is run on the terminal device.
Referring to fig. 8, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or cluster. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
By adopting the computer-readable storage medium provided by the invention, the stored program realizes the steps of the intelligent image storage method when being executed, thereby the beneficial effects of the intelligent image storage method can be obtained.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (11)

1. An intelligent image storage method is characterized by comprising the following steps:
acquiring data to be stored, wherein the data to be stored comprises image data to be stored and corresponding image structured information data;
storing the image data to be stored in a target intelligent storage disk corresponding to a target image database, taking the image data as stored image data, and acquiring URL (uniform resource locator) data of the stored image data, wherein the target intelligent storage disk stores an index of the corresponding image database;
determining a target URL database corresponding to the target image database, storing URL data of the stored image data and corresponding image structural information data in a target intelligent storage disc corresponding to the target URL database as stored URL data, wherein the stored image data and the corresponding stored URL data are located in the same target intelligent storage disc, and the target intelligent storage disc also stores an index of the corresponding URL database;
and updating indexes of the image databases and indexes of the URL databases stored in all the intelligent storage disks corresponding to the target image database and the target URL database.
2. The intelligent image storage method according to claim 1, wherein the step of acquiring the data to be stored comprises the following steps:
receiving first uploading data from an image source, wherein the first uploading data comprises image data to be stored;
and processing the image data to be stored by adopting a preset intelligent algorithm to obtain corresponding image structured information data.
3. The method for intelligently storing the image according to claim 1, wherein the step of storing the image data to be stored in an intelligent storage disk corresponding to a target image database comprises the following steps:
adding the image data to be stored into a data buffer queue;
judging whether the image data caching quantity in the data caching queue is larger than a preset quantity threshold or whether the time interval from the previous caching storage is larger than a preset time threshold;
and if so, storing the image data to be stored in the data cache queue in an intelligent storage disc corresponding to a target image database.
4. The method for intelligently storing the image according to claim 1, wherein the step of storing the image data to be stored in an intelligent storage disk corresponding to a target image database comprises the following steps:
selecting a URL database stored with URL data at the previous time, and judging whether the stored data amount in the URL database is smaller than a preset data amount threshold value or not;
if so, selecting the URL database stored by the URL data at the previous time as a target URL database stored by the URL data at the current time, and taking the image database corresponding to the target URL database as a target image database stored by the image data at the current time;
if not, selecting another URL database with the stored data volume smaller than the preset data volume threshold value as a target URL database for the current URL data storage, and taking an image database corresponding to the target URL database as a target image database for the current image data storage.
5. The method for intelligently storing the images according to claim 1, wherein each intelligent storage disk further stores the data uploading time ranges of the corresponding image database and the corresponding URL database, and the method further comprises the following steps:
receiving an image retrieval request, wherein the image retrieval request comprises a retrieval time range and image retrieval conditions;
selecting an alternative URL database positioned in the retrieval time range according to the retrieval time range and the data uploading time range of each database;
and selecting an alternative URL database with the preset number of search libraries in the latest image uploading time range as a search URL database.
And carrying out image retrieval in the retrieval URL database according to the image retrieval conditions.
6. The intelligent image storage method according to claim 1, wherein each intelligent storage disk further stores image data uploading identification bits of the corresponding image database and URL database;
the method further comprises the steps of:
selecting an image database and a URL database with image data uploading identification positions of unfinished uploading as databases to be uploaded, and taking image data and image URL data in the databases to be uploaded as second uploading data;
uploading the second uploading data to a background server;
and setting the uploading identification bit of the image database and the image data corresponding to the URL database which are uploaded to be the uploading completed.
7. The intelligent image storage method according to claim 1, wherein each intelligent storage disk further stores corresponding device information, and the method further comprises the following steps:
retrieving whether the equipment information stored in the intelligent storage disk is consistent with the equipment information of the equipment connected with the intelligent storage disk;
and if the current intelligent storage disk is inconsistent with the URL database, prompting that the current intelligent storage disk connecting equipment is in error, and not adopting the storage data in the current intelligent storage disk as the data of the corresponding image database and the URL database.
8. The method for intelligently storing the images according to claim 1, wherein each intelligent storage disk further stores the corresponding image database and the data uploading time range of the URL database, and the image data to be stored is stored in a target intelligent storage disk corresponding to a target image database as the stored image data, comprising the following steps:
judging whether the intelligent storage disk which is not full currently exists or not,
if yes, selecting an intelligent storage disk which is not fully stored as a target intelligent storage disk, and storing the image data to be stored in the new target intelligent storage disk;
and if no other intelligent storage disk which is not full is available, deleting the data in the image database with the earliest data uploading time range, and deleting the data in the URL database corresponding to the image database.
9. An intelligent image storage system, which is applied to the intelligent image storage method of any one of claims 1 to 8, the system comprising:
the image acquisition module is used for acquiring data to be stored, wherein the data to be stored comprises image data to be stored and corresponding image structural information data;
the image storage module is used for storing the image data to be stored in a target intelligent storage disc corresponding to a target image database, acquiring URL (uniform resource locator) data of the stored image data as the stored image data, and the target intelligent storage disc stores an index of the corresponding image database;
the URL storage module is used for storing URL data of the stored image data and corresponding image structural information data into a target intelligent storage disc corresponding to a target URL database to serve as the stored URL data, the stored image data and the corresponding stored URL data are located in the same target intelligent storage disc, and indexes of the corresponding URL database are stored in the target intelligent storage disc;
and the index updating module is used for updating the indexes of the image databases and the indexes of the URL databases stored in all the intelligent storage disks corresponding to the target image database and the target URL database.
10. An intelligent image storage device, comprising:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the image smart storage method of any one of claims 1 to 8 via execution of the executable instructions.
11. A computer-readable storage medium storing a program, wherein the program, when executed by a processor, implements the steps of the image smart storage method according to any one of claims 1 to 8.
CN202110736984.XA 2021-06-30 2021-06-30 Intelligent image storage method, system, equipment and storage medium Pending CN113297403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110736984.XA CN113297403A (en) 2021-06-30 2021-06-30 Intelligent image storage method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110736984.XA CN113297403A (en) 2021-06-30 2021-06-30 Intelligent image storage method, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113297403A true CN113297403A (en) 2021-08-24

Family

ID=77329937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110736984.XA Pending CN113297403A (en) 2021-06-30 2021-06-30 Intelligent image storage method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113297403A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114090550A (en) * 2022-01-19 2022-02-25 成都博恩思医学机器人有限公司 Robot database construction method and system, electronic device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114090550A (en) * 2022-01-19 2022-02-25 成都博恩思医学机器人有限公司 Robot database construction method and system, electronic device and storage medium
CN114090550B (en) * 2022-01-19 2022-11-29 成都博恩思医学机器人有限公司 Robot database construction method and system, electronic device and storage medium

Similar Documents

Publication Publication Date Title
US9449074B1 (en) Determining and extracting changed data from a data source
US7292961B2 (en) Capturing session activity as in-memory snapshots using a time-based sampling technique within a database for performance tuning and problem diagnosis
US10705767B2 (en) Optimizing user satisfaction when training a cognitive hierarchical storage-management system
US20160085469A1 (en) Storage system
US8938430B2 (en) Intelligent data archiving
US20120023145A1 (en) Policy-based computer file management based on content-based analytics
US11204935B2 (en) Similarity analyses in analytics workflows
JP2012113706A (en) Computer-implemented method, computer program, and data processing system for optimizing database query
US10855750B2 (en) Centralized management of webservice resources in an enterprise
US20180260463A1 (en) Computer system and method of assigning processing
CN113297403A (en) Intelligent image storage method, system, equipment and storage medium
CN110990346A (en) File data processing method, device, equipment and storage medium based on block chain
CN110716804A (en) Method and device for automatically deleting useless resources, storage medium and electronic equipment
CN111104375A (en) Authority rule editing method, system, equipment and storage medium
CN114153394A (en) Data storage management method, device and equipment
KR101666440B1 (en) Data processing method in In-memory Database System based on Circle-Queue
JP2019144872A (en) System having computation model for machine learning, and machine learning method
US11962874B2 (en) Systems and methods for generating, analyzing, and storing data snippets
US20220369001A1 (en) Systems and methods for generating, analyzing, and storing data snippets
US9135253B2 (en) Simulating accesses for archived content
CN112328272A (en) Algorithm upgrading method, device, equipment and storage medium
US20220075769A1 (en) Logfile collection and consolidation
US9122637B1 (en) Systems and methods for enhancing electronic discovery searches
US20210342300A1 (en) Determining a relevant file save location
US11775497B2 (en) Computer-readable recording medium storing information processing program for generating partial data lineage, method of generating partial data lineage, and information processing device for generating partial data lineage

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination