Image intelligent storage method, system, device and storage medium
By storing image data and URL data in different databases respectively and storing the overall database index in the intelligent storage disk, the problem of low data retrieval efficiency in NVR is solved, and fast retrieval and data integrity are guaranteed.
Patent Information
- Application Number
- CN202110736984.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-30
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2041-06-30
AI Technical Summary
In the existing network video surveillance system, when network video recorders (NVRs) process large amounts of video data, data retrieval efficiency is low and the retrieval time is long.
Quick retrieval is achieved by storing image data and URL data in different databases respectively and storing the overall database index in the intelligent storage disk.
It improves the retrieval efficiency of image data and shortens the retrieval time. Even if a certain smart storage disk fails, it will not destroy the integrity of the overall database data.
Smart Images

Figure CN113297403B_ABST
Abstract
Description
Background Art
[0002] The Network Video Recorder (NVR) is the storage and forwarding part of the network video surveillance system. The NVR can work with the IP camera to complete the video recording, storage and forwarding functions. With the development of the network video surveillance system, the amount of data that the NVR has to process is getting larger and larger, and the data retrieval is becoming more and more complicated. When performing data retrieval based on a large amount of stored data, it often takes a long time to retrieve and the retrieval efficiency is very low. Summary of the invention
[0003] In response to the problems in the prior art, the purpose of the present invention is to provide an intelligent image storage method, system, device and storage medium, which stores image data and URL data in different databases respectively, and stores the overall database index in an intelligent storage disk, which is conducive to subsequent rapid retrieval of images.
[0004] The embodiment of the present invention provides an image intelligent storage method, comprising the following steps:
[0005] Acquire data to be stored, wherein the data to be stored includes image data to be stored and corresponding image structured information data;
[0006] The image data to be stored is stored in a target smart storage disk corresponding to a target image database as stored image data, and the URL data of the stored image data is obtained. The target smart storage disk stores the index of the corresponding image database;
[0007] Determine a target URL database corresponding to the target image database, store the URL data of the stored image data and the corresponding image structured information data in a target smart storage disk corresponding to the target URL database as stored URL data, and the stored image data and the corresponding stored URL data are located in the same target smart storage disk, and the target smart storage disk also stores an index of the corresponding URL database;
[0008] Update the index of the image database and the index of the URL database stored in all the smart storage disks corresponding to the target image database and the target URL database.
[0009] The present invention uses the image intelligent storage method to first obtain the image data to be stored, store the image data, then store the image structured information data and URL data, and update the database index in all corresponding intelligent storage disks. By storing the image data and URL data in different databases respectively, and storing the overall database index in the intelligent storage disk, it is convenient for subsequent rapid retrieval of images, and even if a certain intelligent storage disk fails, the integrity of the overall database data will not be destroyed.
[0010] In some embodiments, the step of obtaining the data to be stored comprises the following steps:
[0011] receiving first uploaded data from an image source, wherein the first uploaded data includes image data to be stored;
[0012] The image data to be stored is processed using a preset intelligent algorithm to obtain corresponding image structured information data.
[0013] In some embodiments, storing the image data to be stored in a smart storage disk corresponding to a target image database includes the following steps:
[0014] Adding the image data to be stored into a data cache queue;
[0015] Determine whether the cached amount of image data in the data cache queue is greater than a preset amount threshold or the time interval from the last cache entry is greater than a preset time threshold;
[0016] If yes, the image data to be stored in the data cache queue is stored in a smart storage disk corresponding to a target image database.
[0017] In some embodiments, storing the image data to be stored in a smart storage disk corresponding to a target image database includes the following steps:
[0018] Selecting a URL database for storing the previous URL data, and determining whether the amount of data stored in the URL database is less than a preset data amount threshold;
[0019] If yes, then select the URL database of the previous URL data storage as the target URL database of this URL data storage, and the image database corresponding to the target URL database as the target image database of this image data storage;
[0020] If not, another URL database whose stored data volume is less than the preset data volume threshold is selected as the target URL database for this URL data storage, and the image database corresponding to the target URL database is used as the target image database for this image data storage.
[0021] In some embodiments, each of the smart storage disks also stores a data upload time range of the corresponding image database and URL database, and the method further includes the following steps:
[0022] receiving an image retrieval request, wherein the image retrieval request includes a retrieval time range and an image retrieval condition;
[0023] According to the search time range and the data upload time range of each of the databases, selecting a candidate URL database within the search time range;
[0024] Select the candidate URL database with the latest number of preset retrieval libraries in the image upload time range as the retrieval URL database.
[0025] An image search is performed in the search URL database according to the image search condition.
[0026] In some embodiments, each of the smart storage disks also stores an image data upload identification bit of a corresponding image database and URL database;
[0027] The method further comprises the steps of:
[0028] Selecting an image database and a URL database whose image data upload flag is not completed as a database to be uploaded, and using the image data and image URL data in the database to be uploaded as second upload data;
[0029] Uploading the second uploaded data to the backend server;
[0030] The image data upload flags corresponding to the image database and URL database that have completed uploading are set as completed uploading.
[0031] In some embodiments, each of the smart storage disks also stores corresponding device information, and the method further includes the following steps:
[0032] Retrieve whether the device information stored in the smart storage disk is consistent with the device information of the device connected to the smart storage disk;
[0033] If they are inconsistent, it will prompt that the current smart storage disk is connected to an incorrect device, and the storage data in the current smart storage disk will not be used as the data of the corresponding image database and URL database.
[0034] In some embodiments, each of the smart storage disks also stores the data upload time range of the corresponding image database and URL database, and stores the image data to be stored in a target smart storage disk corresponding to a target image database as stored image data, including the following steps:
[0035] Determine whether there is currently an unfilled smart storage disk.
[0036] If yes, then selecting a not-full smart storage disk as a target smart storage disk, and storing the image data to be stored in the new target smart storage disk;
[0037] If there is no other unfilled smart storage disk, the data in the image database with the earliest data upload time range is deleted, and the data in the URL database corresponding to the image database is deleted.
[0038] The embodiment of the present invention further provides an image intelligent storage system, which is applied to the image intelligent storage method, and the system includes:
[0039] An image acquisition module, used to acquire data to be stored, wherein the data to be stored includes image data to be stored and corresponding image structured information data;
[0040] An image storage module, used to store the image data to be stored in a target intelligent storage disk corresponding to a target image database as stored image data, and obtain URL data of the stored image data, wherein the target intelligent storage disk stores an index of the corresponding image database;
[0041] A URL storage module is used to store the URL data of the stored image data and the corresponding image structured information data in a target smart storage disk corresponding to a target URL database as stored URL data, and the stored image data and the corresponding stored URL data are located in the same target smart storage disk, and the target smart storage disk also stores the index of the corresponding URL database;
[0042] The index updating module is used to update the index of the image database and the index of the URL database stored in all the intelligent storage disks corresponding to the target image database and the target URL database.
[0043] The present invention uses the image intelligent storage system to first obtain the image data to be stored, store the image data, then store the image structured information data and URL data, and update the database index in all corresponding intelligent storage disks. By storing the image data and URL data in different databases respectively, and storing the overall database index in the intelligent storage disk, it is convenient for subsequent rapid retrieval of images, and even if a certain intelligent storage disk fails, the integrity of the overall database data will not be destroyed.
[0044] The embodiment of the present invention further provides an image intelligent storage device, comprising:
[0045] processor;
[0046] a memory storing executable instructions of the processor;
[0047] Wherein, the processor is configured to perform the steps of the image intelligent storage method by executing the executable instructions.
[0048] By adopting the image intelligent storage device provided by the present invention, the processor executes the image intelligent storage method when executing the executable instructions, thereby obtaining the beneficial effects of the above-mentioned image intelligent storage method.
[0049] An embodiment of the present invention further provides a computer-readable storage medium for storing a program, wherein the program implements the steps of the image intelligent storage method when executed by a processor.
[0050] By adopting the computer-readable storage medium provided by the present invention, the program stored therein implements the steps of the image intelligent storage method when being executed, thereby obtaining the beneficial effects of the above-mentioned image intelligent storage method. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Other features, objectives and advantages of the present invention will become more apparent from a reading of the detailed description of non-limiting embodiments made with reference to the following accompanying drawings.
[0052] Figure 1 is a flow chart of an image intelligent storage method according to an embodiment of the present invention;
[0053] Figure 2 is a schematic diagram of the storage structure of a smart storage disk according to an embodiment of the present invention;
[0054] Figure 3 It is a schematic diagram of the structure of the overall index of a database according to an embodiment of the present invention;
[0055] Figure 4 is a schematic diagram of a storage structure of an image database according to an embodiment of the present invention;
[0056] Figure 5 It is a schematic diagram of the storage structure of the URL database of one embodiment of the present invention;
[0057] Figure 6 is a schematic diagram of an image intelligent storage system according to an embodiment of the present invention;
[0058] Figure 7 is a structural diagram of an image intelligent storage device according to an embodiment of the present invention;
[0059] Figure 8 It is a schematic diagram of the structure of a computer storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION
[0060] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that the present invention will be comprehensive and complete and fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar structures, and thus their repeated description will be omitted.
[0061] like Figure 1 As shown, in one embodiment, the present invention provides an image intelligent storage method for image intelligent storage at an NVR end, comprising the following steps:
[0062] S100: Acquire data to be stored, where the data to be stored includes image data to be stored and corresponding image structured information data.
[0063] 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 obtaining URL data of the stored image data.
[0064] The target intelligent storage disk stores the 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.
[0065] S300: Determine a target URL database corresponding to the target image database, and store the URL data of the stored image data and the corresponding image structured information data in a target smart storage disk corresponding to the target URL database as stored URL data.
[0066] 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 the index of the corresponding URL database.
[0067] S400: updating the index of the image database and the index of the URL database stored in all the smart storage disks corresponding to the target image database and the target URL database.
[0068] The present invention uses the image intelligent storage method to first obtain the image data to be stored through step S100, store the image data through step S200, store the image structured information data and URL data through step S300, and update the database indexes in all corresponding intelligent storage disks through step S400. By storing the image data and URL data in different databases respectively, and storing the overall database index in the intelligent storage disk, it is convenient for subsequent rapid retrieval of the image, and even if a certain intelligent storage disk fails, the integrity of the overall database data will not be destroyed.
[0069] In this embodiment, the step S100: obtaining the data to be stored, includes the following steps:
[0070] receiving first upload data from an image source, wherein the first upload data includes image data to be stored; the image source may be a network camera, that is, the network camera collects image data and uploads it to the NVR as the first upload data through a view library protocol;
[0071] The image data to be stored is processed using a preset intelligent algorithm to obtain corresponding image structured information data. The intelligent algorithm here is, for example, face feature extraction, vehicle feature extraction, face recognition, vehicle recognition, face comparison, vehicle comparison, etc., which can be implemented using a trained machine learning model stored in the NVR end.
[0072] like Figure 2 As shown in FIG. 1 , it is a schematic diagram of the storage structure of the smart storage disk in this embodiment. Figure 3 As shown in FIG. 1 , it is a schematic diagram of the structure of the overall index of the database in this embodiment. Figure 4 As shown in FIG. 1 , it is a schematic diagram of the storage structure of the image database in this embodiment. Figure 5 The figure is a schematic diagram of the storage structure of the URL database of this embodiment. Figure 2 to Figure 5 The storage structure shown is only an example, and the present invention is not limited thereto.
[0073] In this embodiment, the NVR end may be deployed with multiple image databases and multiple URL databases, and there is a one-to-one correspondence between the image database and the URL database, that is, the image URL data and image structured information data stored in the URL database correspond to the image data in the corresponding image database. An image database and the corresponding URL database may correspond to multiple smart storage disks, that is, each smart storage disk stores part of the data in the image database and part of the data in the URL database, and the image data and URL data stored in the smart storage disk correspond to each other, and the image data and URL data of an image will not be stored in two different smart storage disks.
[0074] like Figure 2 As shown, the smart storage disk stores a database overall index, image database data, URL database data, a smart disk identifier, and device information. The device information here refers to the information of the device to which the smart storage disk is connected, and the device information may be, for example, the device mac information. The database overall index includes the index of all data in the image database corresponding to the smart storage disk and the index of all data in the URL database. Therefore, even if the image data of other smart storage disks corresponding to the same image database is updated, the database overall index in the smart storage disk must also be updated accordingly.
[0075] like Figure 3 As shown, the database overall index also includes image and log upload flags and image upload time range. The image upload time range may include upload start time and upload end time.
[0076] like Figure 4 As shown, the image database may include a primary key, image data, and image data length. Figure 5 As shown, the URL database includes face structured information and image database index value and corresponding database primary key, car structured information and image database index value and corresponding database primary key, log structured information and image database index value and corresponding database primary key, manual structured information and image database index value and corresponding database primary key, and log upload status table. Here, the image database index value is the image URL data, face structured information refers to face structured information obtained by face recognition, car structured information refers to vehicle recognition result information, log structured information refers to the structured information of the result image of face or vehicle comparison (such as black and white list comparison), and manual structured information refers to the structured information of the intelligent analysis of manually captured images. Since each recognized face or vehicle needs to be uploaded to the view library (GA / T 1400.1-2017 Public Security Video Image Information Application System), the failed upload needs to be re-uploaded, so it is necessary to record the upload status of an image, that is, to record uploadinfo (upload information) through the log upload status table.
[0077] In this embodiment, the step S200: storing the image data to be stored in a smart storage disk corresponding to a target image database includes the following steps:
[0078] Adding the image data to be stored into a data cache queue;
[0079] Determine whether the cached amount of image data in the data cache queue is greater than a preset amount threshold or the time interval from the last cache entry is greater than a preset time threshold;
[0080] If yes, the image data to be stored in the data cache queue is stored in a smart storage disk corresponding to a target image database.
[0081] Therefore, when storing the image data to be stored, the present invention does not acquire and store the data at any time, but first establishes a data cache queue, sets a quantity threshold and a time threshold for the data cache queue, and when any threshold is reached, the data in the cache queue is stored in the database. This avoids real-time writing to the smart storage disk and reduces the burden of the overall NVR storage. Different categories of images (for example, vehicles and face images belong to different categories) can establish different data cache queues without affecting each other. And each data cache queue can correspond to a database table.
[0082] After storing the data to be stored, an index can be created for the database table in the URL database for the conditions that are frequently searched, thereby speeding up the search. The present invention can also realize log storage and retrieval, and the log can be stored in the URL database. The log retrieval can be connected to the ctrlib control library to retrieve the control library information. Because some control libraries (such as the base library for storing faces) contain user privacy information, this database uses an encrypted database. When the face is compared, a log record will be generated regardless of success or failure. If it fails, only the current captured image and structured information will be recorded. If it succeeds, more data links that are successfully compared in the control library will be added. Then, when searching for logs, the control library must be linked. If the control library is encrypted, an encrypted link is required. Furthermore, in order to further improve the speed of log retrieval, the control library key value can be generated for the commonly used log retrieval conditions in advance, and the log retrieval can be performed directly according to the control library key value during log retrieval.
[0083] The database of the present invention can use Sqlite (version 3.7 or above), and adopts wal mode, supports multi-threaded read operations, and is non-blocking. When the wal mode is turned on, two more files, wal-shm, will be generated. When reading data, wal is preferred, which is more suitable for situations where image data is frequently stored and retrieved (for example, when the cache is in short supply).
[0084] In practical applications, when a database stores a large amount of data, it will cause great trouble to the management and retrieval of subsequent database data. Therefore, the present invention splits the data in the database according to the upload time sequence, that is, it ensures that the amount of data stored in a database does not exceed the preset data amount threshold, and the upload time of the data stored in the database is continuous, thereby achieving the purpose of time paging.
[0085] Specifically, the step S200: storing the image data to be stored in a smart storage disk corresponding to a target image database includes the following steps:
[0086] Select the URL database where the URL data was stored last time, and determine whether the amount of data stored in the URL database is less than a preset data amount threshold; the value of the preset data amount threshold can be set as needed, for example, the data amount threshold of each URL database can be set to 1GB. When the data amount of a URL database reaches 1GB, it switches to the next URL database, and correspondingly, the image data is also stored in the image database corresponding to the next URL database;
[0087] If yes, then select the URL database of the previous URL data storage as the target URL database of this URL data storage, and the image database corresponding to the target URL database as the target image database of this image data storage;
[0088] If not, another URL database whose stored data volume is less than the preset data volume threshold is selected as the target URL database for this URL data storage, and the image database corresponding to the target URL database is used as the target image database for this image data storage.
[0089] In this embodiment, when the user searches for images, he may set a large time search range, such as from January of last year to January of this year. Such a search will generate a large amount of data, the search time will be very slow, and the search results will be very large, which will put a heavy burden on the search engine. Therefore, in this embodiment, when the user sets a large time range that may involve queries of multiple databases, the number of database queries can be limited. Figure 3 As shown, each of the smart storage disks also stores the data upload time range of the corresponding image database and URL database. Specifically, the image smart storage method also includes the following steps:
[0090] An image search request is received, wherein the image search request includes a search time range and an image search condition, wherein the image search condition includes, for example, an IPC identifier, an image category, and information about a person corresponding to the image;
[0091] According to the search time range and the data upload time range of each of the databases, selecting a candidate URL database within the search time range;
[0092] Select the candidate URL database with the latest image upload time range and the preset search library number as the search URL database. For example, set the preset search library number to 2. Then select the two URL databases with the latest upload time from all the candidate URL databases for search. After obtaining the search results, the user can adjust the search time range and then obtain the search results within other time ranges;
[0093] An image search is performed in the search URL database according to the image search condition.
[0094] In this embodiment, the data at the NVR end can be further uploaded to the backend server. Figure 3 As shown, each of the smart storage disks also stores the image data upload identification bits of the corresponding image database and URL database, which are used to identify whether the database data has been uploaded to the background server.
[0095] Specifically, the image intelligent storage method also includes the following steps:
[0096] Selecting an image database and a URL database whose image data upload flag is not completed as a database to be uploaded, and using the image data and image URL data in the database to be uploaded as second upload data;
[0097] Uploading the second uploaded data to the backend server;
[0098] The image data upload flags corresponding to the image database and URL database that have completed uploading are set as completed uploading.
[0099] Furthermore, the image intelligent storage method of the present invention also includes uploading logs. Therefore, the upload flag can be an image or log upload flag. When an image database, a URL database, and the corresponding logs are all uploaded successfully, the upload flag in the overall database index will be updated. When querying the database that has not been uploaded, the database that has been fully uploaded will be directly filtered to avoid the select count() query operation each time.
[0100] In this embodiment, if Figure 2 As shown, each of the smart storage disks also stores corresponding device information. Specifically, the image smart storage method also includes the following steps:
[0101] Retrieve whether the device information stored in the smart storage disk is consistent with the device information of the device connected to the smart storage disk;
[0102] If they are inconsistent, it will prompt that the current smart storage disk is connected to an incorrect device, and the storage data in the current smart storage disk will not be used as the data of the corresponding image database and URL database.
[0103] Therefore, the present invention realizes a one-way correspondence between the smart storage disk and the device, that is, one smart storage disk is fixedly corresponding to one device. The device here is a server device on the NVR side. This is to prevent the smart storage disk from being plugged in and out of other devices for use, resulting in data verification errors. When there are multiple smart storage disks corresponding to one device, the total indexes of the multiple smart storage disks will be inconsistent, resulting in data confusion. Therefore, in this embodiment, when it is identified that the smart storage disk is not the device, the data of the smart storage disk will not be used as the standard, and the user will be prompted.
[0104] In this embodiment, each of the smart storage disks also stores the data upload time range of the corresponding image database and URL database. The step S200: storing the image data to be stored in a target smart storage disk corresponding to a target image database as stored image data includes the following steps:
[0105] Determine whether the current target intelligent storage is full;
[0106] If not, the new data to be stored is stored in the current target intelligent storage;
[0107] If the current target smart storage is full, determine whether there is a smart storage disk that is not full;
[0108] If it exists, selecting a not-full smart storage disk as the target smart storage disk, and storing the image data to be stored in the new target smart storage disk;
[0109] If there are no other unfilled smart storage disks, the data upload time range in the overall index of the database in all smart disks is read, the data in the image database with the earliest data upload time range is deleted, and the data in the URL database corresponding to the image database is deleted, thereby achieving full data coverage. Deleting the data in the image database and the data in the URL database corresponding to the image database here can be deleting the data in one smart storage disk, such as deleting the data in the smart storage disk with the earliest data upload time range, or deleting the data in all smart storage disks corresponding to the database.
[0110] like Figure 6 As shown, an embodiment of the present invention further provides an image intelligent storage system, which is applied to the image intelligent storage method, and the system includes:
[0111] The image acquisition module M100 is used to acquire data to be stored, wherein the data to be stored includes image data to be stored and corresponding image structured information data;
[0112] The image storage module M200 is used to store the image data to be stored in a target smart storage disk corresponding to a target image database as stored image data, and obtain URL data of the stored image data, wherein the target smart storage disk stores an index of the corresponding image database;
[0113] The URL storage module M300 is used to store the URL data of the stored image data and the corresponding image structured information data in a target smart storage disk corresponding to a target URL database as stored URL data, and the stored image data and the corresponding stored URL data are located in the same target smart storage disk, and the target smart storage disk also stores the index of the corresponding URL database;
[0114] The index updating module M400 is used to update the index of the image database and the index of the URL database stored in all the smart storage disks corresponding to the target image database and the target URL database.
[0115] The present invention uses the image intelligent storage system to first obtain the image data to be stored through the image acquisition module M100, store the image data through the image storage module M200, store the image structured information data and URL data through the URL storage module M300, and update the database indexes in all corresponding intelligent storage disks through the index update module M400. By storing the image data and URL data in different databases respectively, and storing the overall database index in the intelligent storage disk, it is convenient for subsequent rapid retrieval of images, and even if a certain intelligent storage disk fails, the integrity of the overall database data will not be destroyed.
[0116] In the image intelligent storage system of the present invention, the functions of each module can be implemented by using the specific implementation methods of each step in the image intelligent storage method, which will not be described in detail here.
[0117] An embodiment of the present invention also provides an image intelligent storage device, comprising a processor; a memory, in which executable instructions of the processor are stored; wherein the processor is configured to perform the steps of the image intelligent storage method by executing the executable instructions.
[0118] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".
[0119] Refer to the following Figure 7The electronic device 600 according to this embodiment of the present invention is described. Figure 7 The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0120] like Figure 7 As shown, the electronic device 600 is in the form of a general 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 connecting different system components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.
[0121] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 executes the steps according to various exemplary embodiments of the present invention described in the electronic prescription circulation processing method section of this specification. For example, the processing unit 610 can execute the following steps: Figure 1 Follow the steps shown in .
[0122] The storage unit 620 may include a readable medium in the form of a volatile storage unit, 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 .
[0123] The storage 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 may include the implementation of a network environment.
[0124] Bus 630 may represent 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.
[0125] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also 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 a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, 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.
[0126] By adopting the image intelligent storage device provided by the present invention, the processor executes the image intelligent storage method when executing the executable instructions, thereby obtaining the beneficial effects of the above-mentioned image intelligent storage method.
[0127] The embodiment of the present invention also provides a computer-readable storage medium for storing a program, which implements the steps of the image intelligent storage method when executed by a processor. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of various exemplary embodiments of the present invention described in the above-mentioned electronic prescription circulation processing method section of this specification.
[0128] refer to Figure 8 As shown, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0129] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0130] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0131] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or cluster. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type 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., via the Internet using an Internet service provider).
[0132] By adopting the computer-readable storage medium provided by the present invention, the program stored therein implements the steps of the image intelligent storage method when being executed, thereby obtaining the beneficial effects of the above-mentioned image intelligent storage method.
[0133] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. An intelligent image storage method, characterized in that: The steps include: Acquire data to be stored, wherein the data to be stored includes image data to be stored and corresponding image structured information data; The image data to be stored is stored in a target smart storage disk corresponding to a target image database as stored image data, and the URL data of the stored image data is obtained. The target smart storage disk stores the index of the corresponding image database; Determine a target URL database corresponding to the target image database, store the URL data of the stored image data and the corresponding image structured information data in a target smart storage disk corresponding to the target URL database as stored URL data, and the stored image data and the corresponding stored URL data are located in the same target smart storage disk, and the target smart storage disk also stores an index of the corresponding URL database; Update the index of the image database and the index of the URL database stored in all the smart storage disks corresponding to the target image database and the target URL database, wherein one image database and the corresponding URL database correspond to multiple smart storage disks, and the smart storage disks store a database overall index, image database data and URL database data, and the database overall index includes an index of all data in the image database and an index of all data in the URL database corresponding to the smart storage disk.
2. The image intelligent storage method according to claim 1, characterized in that: The step of obtaining the data to be stored comprises the following steps: receiving first uploaded data from an image source, wherein the first uploaded data includes image data to be stored; The image data to be stored is processed using a preset intelligent algorithm to obtain corresponding image structured information data.
3. The image intelligent storage method according to claim 1, characterized in that: Storing the image data to be stored in a smart storage disk corresponding to a target image database comprises the following steps: Adding the image data to be stored into a data cache queue; Determine whether the cached amount of image data in the data cache queue is greater than a preset amount threshold or the time interval from the last cache entry is greater than a preset time threshold; If yes, the image data to be stored in the data cache queue is stored in a smart storage disk corresponding to a target image database.
4. The image intelligent storage method according to claim 1, characterized in that: Storing the image data to be stored in a smart storage disk corresponding to a target image database comprises the following steps: Selecting a URL database for storing the previous URL data, and determining whether the amount of data stored in the URL database is less than a preset data amount threshold; If yes, then select the URL database of the previous URL data storage as the target URL database of this URL data storage, and the image database corresponding to the target URL database as the target image database of this image data storage; If not, another URL database whose stored data volume is less than the preset data volume threshold is selected as the target URL database for this URL data storage, and the image database corresponding to the target URL database is used as the target image database for this image data storage.
5. The image intelligent storage method according to claim 1, characterized in that: Each of the smart storage disks also stores a corresponding data upload time range of the image database and the URL database. The method further includes the following steps: receiving an image retrieval request, wherein the image retrieval request includes a retrieval time range and an image retrieval condition; According to the search time range and the data upload time range of each of the databases, selecting a candidate URL database within the search time range; Selecting the candidate URL database with the latest number of preset search libraries in the image upload time range as the search URL database; An image search is performed in the search URL database according to the image search condition.
6. The image intelligent storage method according to claim 1, characterized in that: Each of the smart storage disks also stores image data upload 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 whose image data upload flag is not completed as a database to be uploaded, and using the image data and image URL data in the database to be uploaded as second upload data; Uploading the second uploaded data to the backend server; The image data upload flags corresponding to the image database and URL database that have completed uploading are set as completed uploading.
7. The image intelligent storage method according to claim 1, characterized in that: Each of the smart storage disks also stores corresponding device information, and the method further includes the following steps: Retrieve whether the device information stored in the smart storage disk is consistent with the device information of the device connected to the smart storage disk; If they are inconsistent, it will prompt that the current smart storage disk is connected to an incorrect device, and the storage data in the current smart storage disk will not be used as the data of the corresponding image database and URL database.
8. The image intelligent storage method according to claim 1, characterized in that: Each of the smart storage disks also stores the data upload time range of the corresponding image database and URL database, and stores the image data to be stored in a target smart storage disk corresponding to a target image database as stored image data, including the following steps: Determine whether there is currently an unfilled smart storage disk. If yes, then selecting a not-full smart storage disk as a target smart storage disk, and storing the image data to be stored in the new target smart storage disk; If there is no other unfilled smart storage disk, the data in the image database with the earliest data upload time range is deleted, and the data in the URL database corresponding to the image database is deleted.
9. An intelligent image storage system, characterized in that: The image intelligent storage method applied to any one of claims 1 to 8, wherein the system comprises: An image acquisition module, used to acquire data to be stored, wherein the data to be stored includes image data to be stored and corresponding image structured information data; An image storage module, used to store the image data to be stored in a target smart storage disk corresponding to a target image database as stored image data, and obtain URL data of the stored image data, wherein the target smart storage disk stores an index of the corresponding image database; A URL storage module is used to store the URL data of the stored image data and the corresponding image structured information data in a target smart storage disk corresponding to a target URL database as stored URL data, and the stored image data and the corresponding stored URL data are located in the same target smart storage disk, and the target smart storage disk also stores the index of the corresponding URL database; An index update module is used to update the index of the image database and the index of the URL database stored in all smart storage disks corresponding to the target image database and the target URL database, wherein the smart storage disk stores a database overall index, image database data and URL database data, and the database overall index includes the index of all data in the image database and the index of all data in the URL database corresponding to the smart storage disk.
10. An intelligent image storage device, characterized in that: include: processor; a memory storing executable instructions of the processor; The processor is configured to execute the steps of the image intelligent storage method according to any one of claims 1 to 8 by executing the executable instructions.
11. A computer-readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the steps of the image intelligent storage method described in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
File system control method based on rapid video data storage
CN102760136A
Ultrasound image transmission method and ultrasound image transmission system
CN103037204A
Image storage method, device, equipment and storage medium
CN111666432A