CN115981563A - Method and system for storing traffic image information - Google Patents

Method and system for storing traffic image information Download PDF

Info

Publication number
CN115981563A
CN115981563A CN202211717442.9A CN202211717442A CN115981563A CN 115981563 A CN115981563 A CN 115981563A CN 202211717442 A CN202211717442 A CN 202211717442A CN 115981563 A CN115981563 A CN 115981563A
Authority
CN
China
Prior art keywords
image file
traffic image
metadata information
object storage
traffic
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
CN202211717442.9A
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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN202211717442.9A priority Critical patent/CN115981563A/en
Publication of CN115981563A publication Critical patent/CN115981563A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a system for storing traffic image information, wherein the method comprises the following steps: acquiring a traffic image file to be stored; analyzing the traffic image file to be stored, acquiring metadata information corresponding to the traffic image file to be stored, and generating a unique index identifier corresponding to the traffic image file to be stored based on the metadata information; establishing an incidence relation between the metadata information and the unique index identification, and storing the metadata information and the unique index identification into a preset database; and calling an API (application programming interface) of object storage, and storing the traffic image file into an object storage system based on the metadata information. The invention can conveniently update, classify, store and delete mass image data, and is convenient for subsequent maintenance and expansion; the functions of storing, updating, deleting and inquiring traffic images can be provided through the java API, the method is suitable for being used in multi-user high-concurrency scenes, and the java API interface is provided, so that the method is convenient to integrate and dock with various applications.

Description

Method and system for storing traffic image information
Technical Field
The present invention relates to the field of data storage technologies, and in particular, to a method and a system for storing traffic image information.
Background
Through the development of urban traffic informatization construction for many years, a large amount of data resources are accumulated, including various data such as public security checkpoint data, electronic police data, adaptive monitoring data, traffic flow detection data, traffic information publishing and the like, wherein unstructured data (pictures, videos and the like) are rapidly increased. The existing modes for storing traffic image files have respective disadvantages, wherein the mode comprises a disk array storage mode, data are cut into a plurality of sections and stored on each hard disk respectively, and the defects are that the actual capacity of the usable hard disk is smaller, only the capacity of the smallest hard disk in two hard disks is required, and the quick reading and analysis at any time are inconvenient. The existing data distributed storage mainly comprises HDFS and the like, the HDFS can store unstructured large file data and provide small file merging storage, and the data distributed storage is suitable for write-in at one time and is not suitable for operations such as multi-user write-in and modification.
In view of the problems of the related art of the method for accessing and analyzing traffic image files, no effective solution has been proposed. Therefore, a storage method for traffic image information of big data is required.
Disclosure of Invention
The invention provides a method and a system for storing traffic image information, which aim to solve the problem of how to store the traffic image information.
In order to solve the above problems, according to an aspect of the present invention, there is provided a method of storing traffic image information, the method including:
acquiring a traffic image file to be stored;
analyzing the traffic image file to be stored, acquiring metadata information corresponding to the traffic image file to be stored, and generating a unique index identifier corresponding to the traffic image file to be stored based on the metadata information;
establishing an incidence relation between the metadata information and the unique index identification, and storing the metadata information and the unique index identification into a preset database;
and calling the AP I stored by the object, and storing the traffic image file into an object storage system based on the metadata information.
Preferably, the acquiring the traffic image file to be stored comprises:
reading or receiving traffic video and/or image information acquired by a camera, and carrying out format processing on the traffic video and/or image information according to a preset format to obtain a traffic image file to be stored.
Preferably, the metadata information includes: license plate number, time, monitoring equipment ID and area identification; the preset database includes: a Hbase database; the object storage system is as follows: an ozone object storage system or an OSS object storage system.
Preferably, the invoking the AP I stored by the object to store the traffic image file in the object storage system based on the metadata information includes:
calling an AP I stored by an object, automatically dividing a directory according to the region and date information in the metadata information and storing the directory according to at least two levels of directories so as to store the traffic image file into an object storage system; wherein the two-level directory comprises: the first level directory is the area number and the second level directory is the date.
Preferably, wherein the method further comprises:
and carrying out condition query, acquiring metadata information and a unique index identifier corresponding to the required traffic image file from the preset database, and acquiring the required traffic image file from the object storage system based on the metadata information and the unique index identifier corresponding to the required traffic image file.
According to another aspect of the present invention, there is provided a storage system for traffic image information, the system comprising:
the data acquisition unit is used for acquiring a traffic image file to be stored;
the index identification determining unit is used for analyzing the traffic image file to be stored, acquiring metadata information corresponding to the traffic image file to be stored, and generating a unique index identification corresponding to the traffic image file to be stored based on the metadata information;
the information storage unit is used for establishing an incidence relation between the metadata information and the unique index identifier and storing the metadata information and the unique index identifier into a preset database;
and the file storage unit is used for calling an API (application programming interface) for storing the object and storing the traffic image file into an object storage system based on the metadata information.
Preferably, the data acquiring unit acquires a traffic image file to be stored, and includes:
reading or receiving traffic video and/or image information acquired by a camera, and carrying out format processing on the traffic video and/or image information according to a preset format to obtain a traffic image file to be stored.
Preferably, the metadata information includes: license plate number, time, monitoring equipment ID and area identification; the preset database includes: a Hbase database; the object storage system is as follows: an ozone object storage system or an OSS object storage system.
Preferably, the file storage unit calls an API of object storage, and stores the traffic image file in an object storage system based on the metadata information, including:
calling an API (application programming interface) of object storage, automatically dividing the directory according to the region and date information in the metadata information and storing the directory according to at least two levels of directories so as to store the traffic image file into an object storage system; wherein the two-level directory comprises: the first level directory is the area number, and the second level directory is the date.
Preferably, wherein the system further comprises:
and the query unit is used for carrying out condition query, acquiring metadata information and a unique index identifier corresponding to the required traffic image file from the preset database, and acquiring the required traffic image file from the object storage system based on the metadata information and the unique index identifier corresponding to the required traffic image file.
The invention provides a method and a system for storing traffic image information, wherein the method comprises the following steps: acquiring a traffic image file to be stored; analyzing the traffic image file to be stored, acquiring metadata information corresponding to the traffic image file to be stored, and generating a unique index identifier corresponding to the traffic image file to be stored based on the metadata information; establishing an incidence relation between the metadata information and the unique index identification, and storing the metadata information and the unique index identification into a preset database; and calling an API (application programming interface) of object storage, and storing the traffic image file into an object storage system based on the metadata information. The method of the invention can facilitate the update, classified storage and deletion of the mass image data, and facilitate the subsequent maintenance and expansion; the functions of storing, updating, deleting and inquiring traffic images can be provided through the java API, the method is suitable for being used in a multi-user high-concurrency scene, and the java API interface is provided, so that the method is convenient to integrate and dock with various applications.
Drawings
A more complete understanding of exemplary embodiments of the present invention may be had by reference to the following drawings in which:
fig. 1 is a flowchart illustrating a method 100 for storing traffic image information according to an embodiment of the invention;
FIG. 2 is a flow chart of traffic image information storage according to an embodiment of the invention;
fig. 3 is a schematic structural diagram of a storage system 300 for traffic image information according to an embodiment of the invention.
Detailed Description
Example embodiments of the present invention will now be described with reference to the accompanying drawings, however, the invention may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, which are provided for a complete and complete disclosure of the invention and to fully convey the scope of the invention to those skilled in the art. The terms used in the exemplary embodiments shown in the drawings are not intended to limit the present invention. In the drawings, the same units/elements are denoted by the same reference numerals.
Unless otherwise defined, terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Further, it will be understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense.
Fig. 1 is a flowchart illustrating a method 100 for storing traffic image information according to an embodiment of the invention. As shown in fig. 1, the storage method for traffic image information according to the embodiment of the present invention can facilitate update, classified storage, and deletion of a large amount of image data, and facilitate subsequent maintenance and expansion; the functions of storing, updating, deleting and inquiring traffic images can be provided through the java API, the method is suitable for being used in a multi-user high-concurrency scene, and the java API interface is provided, so that the method is convenient to integrate and dock with various applications. The method 100 for storing traffic image information provided by the embodiment of the invention starts from step 101, and obtains a traffic image file to be stored in step 101.
Preferably, the acquiring the traffic image file to be stored comprises:
reading or receiving traffic video and/or image information acquired by a camera, and carrying out format processing on the traffic video and/or image information according to a preset format to obtain a traffic image file to be stored.
With reference to fig. 2, the invention reads or receives traffic video and image information collected by a camera, performs format processing on the traffic video and/or image information according to a preset format to obtain a traffic image file to be stored, and then sends the traffic image file to be stored to a video image analysis module for analysis.
In step 102, the traffic image file to be stored is analyzed, metadata information corresponding to the traffic image file to be stored is acquired, and a unique index identifier corresponding to the traffic image file to be stored is generated based on the metadata information.
In step 103, an association relationship between the metadata information and the unique index identifier is established, and the metadata information and the unique index identifier are stored in a preset database.
Preferably, the metadata information includes: license plate number, time, monitoring equipment ID and area identification; the preset database includes: hbase database; the object storage system is as follows: an ozone object storage system or an OSS object storage system.
In the invention, the acquired traffic image file to be stored is analyzed to obtain the metadata information corresponding to the traffic image file, and the unique index identifier corresponding to the traffic image file is generated based on the metadata information. The metadata information includes license plate number, time, monitoring device id, area identification, and the like. And then establishing an association relation between the metadata information and the unique index identifier, and calling the AP I of the HBase to store the metadata information and the unique index identifier of the traffic image file into an Hbase database.
In step 104, an API of the object storage is called, and the traffic image file is stored in the object storage system based on the metadata information.
Preferably, the invoking the AP I stored by the object to store the traffic image file in the object storage system based on the metadata information includes:
calling an AP I stored by an object, automatically dividing a directory according to the region and date information in the metadata information and storing the directory according to at least two levels of directories so as to store the traffic image file into an object storage system; wherein the two-level directory comprises: the first level directory is the area number, and the second level directory is the date.
In the invention, the API of the object storage is called to store the corresponding traffic image file into the object storage system. The invention uses an ozone object storage system, and can also use other object storage systems such as OSS. In the object storage system, at least two levels of directories are created, the first level directory being a region number and the second level directory being a date.
Preferably, wherein the method further comprises:
and performing condition query, acquiring metadata information and a unique index identifier corresponding to the required traffic image file from the preset database, and acquiring the required traffic image file from the object storage system based on the metadata information and the unique index identifier corresponding to the required traffic image file.
In the invention, the traffic image file can be added, deleted, modified and checked. Specifically, calling an add-delete-modify-search Java AP I module, inquiring HBase by a Java API interface, acquiring metadata information and a unique index identifier of the traffic image file, acquiring a required traffic image file from an object storage system according to the metadata information and the unique index identifier of the traffic image file, and modifying and deleting the image file according to the provided API interface.
The invention relates to a traffic image file access method based on HBase and object storage, which stores the metadata information of a traffic image file into HBase, stores a corresponding traffic image file into an object storage system, acquires the metadata information and the unique identifier of the traffic image file by inquiring the HBase, and directly acquires the corresponding traffic image file from the object storage according to the metadata information and the unique index identifier of the traffic image file so as to perform the functions of storing, updating, deleting and inquiring traffic images.
Fig. 3 is a schematic structural diagram of a storage system 300 for traffic image information according to an embodiment of the invention. As shown in fig. 3, a storage system 300 for traffic image information according to an embodiment of the present invention includes: a data acquisition unit 301, an index identification determination unit 302, an information storage unit 303, and a file storage unit 304.
Preferably, the data acquiring unit 301 is configured to acquire a traffic image file to be stored.
Preferably, the data acquiring unit 301 acquires a traffic image file to be stored, including:
reading or receiving traffic video and/or image information acquired by a camera, and carrying out format processing on the traffic video and/or image information according to a preset format to obtain a traffic image file to be stored.
Preferably, the index identifier determining unit 302 is configured to parse the traffic image file to be stored, acquire metadata information corresponding to the traffic image file to be stored, and generate a unique index identifier corresponding to the traffic image file to be stored based on the metadata information.
Preferably, the information storage unit 303 is configured to establish an association relationship between the metadata information and the unique index identifier, and store the metadata information and the unique index identifier in a preset database.
Preferably, the metadata information includes: license plate number, time, monitoring equipment ID and area identification; the preset database includes: a Hbase database; the object storage system is as follows: an ozone object storage system or an OSS object storage system.
Preferably, the file storage unit 304 is configured to call an API of object storage, and store the traffic image file in an object storage system based on the metadata information.
Preferably, the file storage unit calls an API of object storage, and stores the traffic image file in an object storage system based on the metadata information, including:
calling an API (application programming interface) of object storage, automatically dividing the directory according to the region and date information in the metadata information and storing the directory according to at least two levels of directories so as to store the traffic image file into an object storage system; wherein the two-level directory comprises: the first level directory is the area number, and the second level directory is the date.
Preferably, wherein the system further comprises:
and the query unit is used for carrying out condition query, acquiring metadata information and a unique index identifier corresponding to the required traffic image file from the preset database, and acquiring the required traffic image file from the object storage system based on the metadata information and the unique index identifier corresponding to the required traffic image file.
The storage system 300 for traffic image information according to an embodiment of the present invention corresponds to the storage method 100 for traffic image information according to another embodiment of the present invention, and is not described herein again.
The invention has been described with reference to a few embodiments. However, other embodiments of the invention than the one disclosed above are equally possible within the scope of the invention, as would be apparent to a person skilled in the art from the appended patent claims.
Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to "a/an/the [ device, component, etc ]" are to be interpreted openly as referring to at least one instance of said device, component, etc., unless explicitly stated otherwise. The steps of any method disclosed herein do not have to be performed in the exact order disclosed, unless explicitly stated.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.

Claims (10)

1. A method for storing traffic image information, the method comprising:
acquiring a traffic image file to be stored;
analyzing the traffic image file to be stored, acquiring metadata information corresponding to the traffic image file to be stored, and generating a unique index identifier corresponding to the traffic image file to be stored based on the metadata information;
establishing an incidence relation between the metadata information and the unique index identification, and storing the metadata information and the unique index identification into a preset database;
and calling an API (application programming interface) of object storage, and storing the traffic image file into an object storage system based on the metadata information.
2. The method of claim 1, wherein the obtaining the traffic image file to be stored comprises:
reading or receiving traffic video and/or image information acquired by a camera, and carrying out format processing on the traffic video and/or image information according to a preset format to obtain a traffic image file to be stored.
3. The method of claim 1, wherein the metadata information comprises: license plate number, time, monitoring equipment ID and area identification; the preset database includes: a Hbase database; the object storage system is as follows: an ozone object storage system or an OSS object storage system.
4. The method of claim 1, wherein the invoking the object store API to store the traffic image file in the object store system based on the metadata information comprises:
calling an API (application programming interface) of object storage, automatically dividing the directory according to the region and date information in the metadata information and storing the directory according to at least two levels of directories so as to store the traffic image file into an object storage system; wherein the two-level directory comprises: the first level directory is the area number and the second level directory is the date.
5. The method of claim 1, further comprising:
and carrying out condition query, acquiring metadata information and a unique index identifier corresponding to the required traffic image file from the preset database, and acquiring the required traffic image file from the object storage system based on the metadata information and the unique index identifier corresponding to the required traffic image file.
6. A system for storing traffic image information, the system comprising:
the data acquisition unit is used for acquiring a traffic image file to be stored;
the index identification determining unit is used for analyzing the traffic image file to be stored, acquiring metadata information corresponding to the traffic image file to be stored, and generating a unique index identification corresponding to the traffic image file to be stored based on the metadata information;
the information storage unit is used for establishing an incidence relation between the metadata information and the unique index identifier and storing the metadata information and the unique index identifier into a preset database;
and the file storage unit is used for calling an API (application programming interface) for object storage and storing the traffic image file into an object storage system based on the metadata information.
7. The system of claim 6, wherein the data obtaining unit obtains the traffic image file to be stored, and comprises:
reading or receiving traffic video and/or image information acquired by a camera, and carrying out format processing on the traffic video and/or image information according to a preset format to obtain a traffic image file to be stored.
8. The system of claim 6, wherein the metadata information comprises: license plate number, time, monitoring equipment ID and area identification; the preset database includes: a Hbase database; the object storage system is as follows: an ozone object storage system or an OSS object storage system.
9. The system of claim 6, wherein the file storage unit, calling an API of object storage, storing the traffic image file in an object storage system based on the metadata information, comprises:
calling an API (application programming interface) of object storage, automatically dividing the directory according to the region and date information in the metadata information and storing the directory according to at least two levels of directories so as to store the traffic image file into an object storage system; wherein the two-level directory comprises: the first level directory is the area number, and the second level directory is the date.
10. The system of claim 6, further comprising:
and the query unit is used for carrying out condition query, acquiring metadata information and a unique index identifier corresponding to the required traffic image file from the preset database, and acquiring the required traffic image file from the object storage system based on the metadata information and the unique index identifier corresponding to the required traffic image file.
CN202211717442.9A 2022-12-29 2022-12-29 Method and system for storing traffic image information Pending CN115981563A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211717442.9A CN115981563A (en) 2022-12-29 2022-12-29 Method and system for storing traffic image information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211717442.9A CN115981563A (en) 2022-12-29 2022-12-29 Method and system for storing traffic image information

Publications (1)

Publication Number Publication Date
CN115981563A true CN115981563A (en) 2023-04-18

Family

ID=85971968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211717442.9A Pending CN115981563A (en) 2022-12-29 2022-12-29 Method and system for storing traffic image information

Country Status (1)

Country Link
CN (1) CN115981563A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116954518A (en) * 2023-08-09 2023-10-27 翼存(上海)智能科技有限公司 Data processing method and device, electronic equipment and storage medium
CN117591625A (en) * 2024-01-18 2024-02-23 之江实验室 Data storage method and device, storage medium and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116954518A (en) * 2023-08-09 2023-10-27 翼存(上海)智能科技有限公司 Data processing method and device, electronic equipment and storage medium
CN117591625A (en) * 2024-01-18 2024-02-23 之江实验室 Data storage method and device, storage medium and electronic equipment
CN117591625B (en) * 2024-01-18 2024-04-12 之江实验室 Data storage method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN115981563A (en) Method and system for storing traffic image information
CN107040578B (en) Data synchronization method, device and system
CN113138973B (en) Data management system and working method
CN111259275B (en) Data tracking method, device and storage medium
CN112799925A (en) Data acquisition method and device, electronic equipment and readable storage medium
CN106484580A (en) A kind of internal-memory detection method, apparatus and system
CN114168540A (en) File index information processing method and device, electronic equipment and storage medium
CN114780485A (en) Electronic archive management method, system, readable storage medium and equipment
KR20090014754A (en) System and method for managing and detecting duplicate moving picture files based on video contents
CN105912540A (en) Method and device for synchronizing file system
CN111026709A (en) Data processing method and device based on cluster access
CN105653674B (en) File management method and system of intelligent terminal
CN113722518A (en) Storage method, retrieval method, equipment and medium based on remote sensing image metadata
CN103092988A (en) Realizing method of directly managing mobile phone media resources on desktop
CN109753505B (en) Method and system for creating temporary storage unit in big data storage system
WO2023041050A1 (en) Document processing method, apparatus and device, and medium
CN114936269A (en) Document searching platform, searching method, device, electronic equipment and storage medium
CN114048171A (en) Image data storage method, device, medium and equipment
CN110209853B (en) Image searching method, device and equipment for vehicle
CN111427871B (en) Data processing method, device and equipment
CN112749133A (en) Case information management method, system, device and readable storage medium
CN112201047A (en) Suspected vehicle foothold analysis method and device based on Flink framework
EP4195068B1 (en) Storing and retrieving media recordings in an object store
CN114697322B (en) Data screening method based on cloud service processing
US20080008443A1 (en) Data management system and method

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