CN109086451A - A kind of picture storage and retrieval method and apparatus - Google Patents
A kind of picture storage and retrieval method and apparatus Download PDFInfo
- Publication number
- CN109086451A CN109086451A CN201810975516.6A CN201810975516A CN109086451A CN 109086451 A CN109086451 A CN 109086451A CN 201810975516 A CN201810975516 A CN 201810975516A CN 109086451 A CN109086451 A CN 109086451A
- Authority
- CN
- China
- Prior art keywords
- picture
- information
- database
- storage
- picture file
- 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
Links
Abstract
Include: the pictorial information for receiving and uploading the invention discloses a kind of picture storage and retrieval method and apparatus, and extracts picture file information and image attribute information from pictorial information;Picture file information is stored in first database, and image attribute information is stored in the second database in a manner of associated with picture file information;While retrieving image attribute information from the second database, picture file information associated with image attribute information is called from first database, and picture file information is presented.Picture storage and retrieval method and apparatus proposed by the present invention can carry out storage and retrieval for different pictures or different types of picture, improve the processing and response speed of picture retrieval.
Description
Technical field
The present invention relates to database fields, more specifically, particularly relating to a kind of picture storage and retrieval method and apparatus.
Background technique
With the popularity of the internet, the information in all types of web site contents and application system, which is shown, all be unable to do without picture number
According to production, office, life etc. are many-sided all closely bound up with image data.Consequent is the memory space that picture occupies
Increasing, the quantity of picture is also more and more, thus pictorial information of the quick-searching to needs in mass picture data
Become inefficiency.In face of the processing of extensive unstructured image data, traditional relevant database (such as MySQL,
Oracle, Sqlserver) it becomes difficult to be competent at.
At present there are mainly two types of the storage mode of picture in the database, one is pictures itself directly in binary form
In the database, this mode is suitble to storage when picture file is smaller, image data is less for storage, is not suitable for a large amount of pictures
Storage;Another kind is that picture file is stored on disk, and what is stored in database is the path where picture, and this mode can deposit
Store up larger picture file, but the transmission in image data, storage, calculating and in terms of processing speed it is slower,
And fault-tolerance and scalability are poor.
Asking for quick-searching is difficult in face of a large amount of image data storages for relevant database traditional in the prior art
Topic, there has been no effective solution schemes at present.
Summary of the invention
In view of this, the purpose of the embodiment of the present invention is to propose a kind of picture storage and retrieval method and apparatus, it can
Storage and retrieval is carried out for different pictures or different types of picture, improves the processing and response speed of picture retrieval.
Based on above-mentioned purpose, the one side of the embodiment of the present invention provides a kind of picture storage and retrieval method, is applied to
Server, comprising the following steps:
The pictorial information uploaded is received, and extracts picture file information and image attribute information from pictorial information;
Picture file information is stored in first database, and by image attribute information with related to picture file information
The mode of connection is stored in the second database;
While retrieving image attribute information from the second database, calling and picture attribute from first database
The associated picture file information of information, and picture file information is presented.
In some embodiments, it receives and uploads to receive the pictorial information of C/S model and/or B/S mode and uploading;Picture
Attribute information is stored in the transmission filename of picture file information and/or is stored in the figure uploaded together with picture file information
In piece attribute information storage file.
In some embodiments, first database is HBase database, and the second database is Elasticsearch number
According to library;Image attribute information is stored in Elasticsearch database in the form of key-value pair.
In some embodiments, picture file information generates unique storage file name, picture category in HBase database
Property information and picture file information be associated using the storage file name of picture file information as mark.
In some embodiments, picture file information associated with image attribute information is called, for according to picture text
The storage file name of part information is retrieved in HBase database and reads the picture file information with storage file name.
In some embodiments, server compatibility when receiving the pictorial information uploaded is extending transversely;First database
With the compatible dynamic capacity-expanding of node of the second database.
The another aspect of the embodiment of the present invention additionally provides a kind of picture storage and retrieval device, comprising:
Picture uploading unit for receiving the pictorial information uploaded, and extracts picture file information from pictorial information
And image attribute information;
Picture file storage unit, for picture file information to be stored in first database;
Picture attribute storage unit, for image attribute information to be stored in a manner of associated with picture file information
In second database;
Picture retrieval unit, for while retrieving image attribute information from the second database, from the first data
Picture file information associated with image attribute information is called in library, and picture file information is presented;
Picture storage and retrieval device has used the above method.
The another aspect of the embodiment of the present invention additionally provides a kind of computer equipment, including memory, at least one processing
Device and it is stored in the computer program that can be run on the memory and on the processor, described in the processor executes
Above-mentioned method is executed when program.
The another aspect of the embodiment of the present invention additionally provides a kind of computer readable storage medium, described computer-readable
Storage medium is stored with computer program, and the computer program executes above-mentioned method when being executed by processor.
The another aspect of the embodiment of the present invention additionally provides a kind of computer program product, the computer program product
Including the calculation procedure being stored on computer readable storage medium, the calculation procedure includes instruction, when described instruction is counted
When calculation machine executes, the computer is made to execute the above method.
The present invention has following advantageous effects: picture storage and retrieval method provided in an embodiment of the present invention and dress
It sets, by using receiving the pictorial information uploaded and extracting picture file information and image attribute information, picture file is believed
Breath is stored in first database, and image attribute information is stored in the second number in a manner of associated with picture file information
According in library, picture file information associated with image attribute information is called from first database and picture file information is presented
Technical solution, storage and retrieval can be carried out for different pictures or different types of picture, improve the processing of picture retrieval
With response speed.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the flow diagram of the embodiment of picture storage and retrieval method provided by the invention;
Fig. 2 is the module diagram of the embodiment of picture storage and retrieval device provided by the invention;
Fig. 3 is one embodiment of the computer equipment provided by the invention for executing the picture storage and retrieval method
Hardware structural diagram.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, and reference
The embodiment of the present invention is further described in attached drawing.
It should be noted that all statements for using " first " and " second " are for differentiation two in the embodiment of the present invention
The non-equal entity of a same names or non-equal parameter, it is seen that " first " " second " only for the convenience of statement, does not answer
It is interpreted as the restriction to the embodiment of the present invention, subsequent embodiment no longer illustrates this one by one.
Based on above-mentioned purpose, the first aspect of the embodiment of the present invention, proposing one kind can for different pictures or not
The picture of same type carries out the embodiment of the method for storage and retrieval.Shown in fig. 1 is picture storage and inspection provided by the invention
The flow diagram of the embodiment of Suo Fangfa.
The picture storage and retrieval method is optionally applied to server, comprising the following steps:
Step S101 receives the pictorial information of upload, and picture file information and picture category are extracted from pictorial information
Property information;
Picture file information is stored in first database by step S103, and by image attribute information with literary with picture
The associated mode of part information is stored in the second database;
Step S105 is called from first database while retrieving image attribute information from the second database
Picture file information associated with image attribute information, and picture file information is presented.
In some embodiments, it receives and uploads to receive the pictorial information of C/S model and/or B/S mode and uploading;Picture
Attribute information is stored in the transmission filename of picture file information and/or is stored in the figure uploaded together with picture file information
In piece attribute information storage file.
When using B/S mode uploading pictures, by browser in specified URI (uniform resource identifier) uploading pictures
File.General default carries the information such as IP address, the address Mac, uplink time, the picture name of uploading pictures equipment, is uploading
The addable picture attribute information of the page, such as picture name, picture classification, picture content information.It can choose Transmission Control Protocol transmission
Picture realizes the fault-tolerance and rollback mechanism when uploading.When using C/S model uploading pictures, need to install and picture reception service
The matched local client software of device configures after receiving server ip address, can batch uploading pictures data, generally default
Carry the information such as IP address, the address Mac, uplink time, the picture name of uploading pictures equipment.Can equally page addition uploaded
Image attribute information.
In a preferred embodiment, image attribute information is stored in the form of picture file title, if customized input
Content exceeds picture file title max number of characters, can also be with newly-generated text document, and this document title is consistent with picture header,
Its content is the attribute data other than picture header.There is the picture file of additional attribute file, will be marked in picture header
Know, so that picture is easier to parse.
Correspondingly, picture storage software is disposed simultaneously on the server, to the pictorial information received, first analysis diagram
The title of piece file.If not additional picture attribute file, title is directly parsed, if it exists additional picture attribute text
Part parses after then extracting property file content.
In some embodiments, first database is HBase database, and the second database is Elasticsearch number
According to library;Image attribute information is stored in Elasticsearch database in the form of key-value pair.In some embodiments,
Picture file information generates unique storage file name in HBase database, and image attribute information is with picture file information to scheme
The storage file name of piece the file information is associated as mark.
After being parsed to picture attribute, image attribute information is stored in Elasticsearch in the form of JSON, it will
The MD5 value of picture storage file name is also used as image attribute information to be stored in Elasticsearch;Picture file is solved
After analysis, picture file is stored into HBase in binary form, wherein the RowKey of HBase is picture file header conversions
MD5 value afterwards.Here, calculating the MD5 value of picture header as storage file name, and as image attribute information
RowKey, MD5 value are stored in two databases as image attribute information with being associated with for picture file information simultaneously.
In some embodiments, picture file information associated with image attribute information is called, for according to picture text
The storage file name of part information is retrieved in HBase database and reads the picture file information with storage file name.
Full-text search can be carried out, by inputting fuzzy matching of any keyword realization to image attribute information.Retrieval
To after picture concerned file, picture file is further obtained by the association of MD5 value and is shown.The image attribute information of storage is being opened up
Showing or transmitting can be adapted to, and facilitate displaying or processing when replacing or modifying former attribute information.It is also based on picture retrieval
Function realizes the multilevel retrieval of picture, by analytic functions such as different dimensions statistics and convergences.
In some embodiments, server compatibility when receiving the pictorial information uploaded is extending transversely;First database
With the compatible dynamic capacity-expanding of node of the second database.
Server end is being received by performances utilization rates such as the CPU, memory, network connection of monitoring server, if correlation
Energy index reaches threshold value, can increase reception server node newly;Elasticsearch database and HBase database can be with
Dynamic expansion is realized according to picture storage condition and recall precision, and has more copies to guarantee not losing for picture file.It is horizontal
To extension and dynamic capacity-expanding bring distributed storage can be realized load balancing, dynamic capacity-expanding, more copies backup, allow using
Person's secure storage and rapidly retrieving picture data.
From above-described embodiment as can be seen that picture storage and retrieval method provided in an embodiment of the present invention, by using connecing
It receives the pictorial information uploaded and extracts picture file information and image attribute information, picture file information is stored in the first number
According in library, and image attribute information is stored in the second database in a manner of associated with picture file information, from first
Picture file information associated with image attribute information is called in database and the technical solution of picture file information, energy is presented
Storage and retrieval enough is carried out for different pictures or different types of picture, improves the processing and response speed of picture retrieval.
It is important to note that each step in each embodiment of above-mentioned picture storage and retrieval method can be with
It intersects, replace, increase, delete, therefore, these reasonable permutation and combination transformation are also answered in picture storage and retrieval method
When belonging to the scope of protection of the present invention, and protection scope of the present invention should not be confined on the embodiment.
Based on above-mentioned purpose, the second aspect of the embodiment of the present invention, proposing one kind can for different pictures or not
The picture of same type carries out the embodiment of the device of storage and retrieval.Fig. 2 shows be picture provided by the invention storage and inspection
The structural schematic diagram of the embodiment of rope device.
As shown in Fig. 2, picture storage and retrieval device includes:
Picture uploading unit 21 for receiving the pictorial information uploaded, and extracts picture file letter from pictorial information
Breath and image attribute information.
Picture can be defaulted when uploading carries certain image attribute information.Alternatively, it is also possible to volume customized when uploading
Collect image attribute information.In embodiments of the present invention, image attribute information is preferably stored in picture file title;If picture category
Property information it is excessive, be more than that file title can accommodate, then another generation text document stores the image attribute information.
The upload of B/S and C/S both of which can be used in image attribute information, can upload in batches;When upper transmission terminal is more
Or uploading pictures quantity it is larger when, can with picture extending transversely receive server to realize load balancing.
Picture file storage unit 22, for picture file information to be stored in first database.
By picture file storage into HBase database, and using picture file title as unique identification by
The picture file in pictorial information and HBase in Elasticsearch is associated.HBase database node can dynamically expand
Exhibition.
Picture attribute storage unit 23, for storing image attribute information in a manner of associated with picture file information
In the second database.
Picture file or picture attribute file that may be present are parsed, obtain image attribute information, and with key
The form of value pair is stored into the library Elasticsearch.It can refer to image data amount size, time or classification and establish storage rope
Draw.Elasticsearch database node dynamic extending.
Picture retrieval unit 24, for being counted from first while retrieving image attribute information from the second database
According to calling picture file information associated with image attribute information in library, and picture file information is presented.
The image attribute information being stored in Elasticsearch is retrieved, support full-text search and is sieved by attribute
The difference retrieval mode such as Selected Inspection rope.Meanwhile associated picture file is obtained in HBase according to the picture header being retrieved and is believed
Breath, quickly checks picture.
Picture storage and retrieval device has used above-mentioned picture storage and retrieval method.
Picture storage and retrieval device provided in an embodiment of the present invention, by using the pictorial information and extraction for receiving upload
Picture file information is stored in first database, and picture attribute is believed by picture file information and image attribute information out
Breath is stored in the second database in a manner of associated with picture file information, calling and picture attribute from first database
The associated picture file information of information and the technical solution that picture file information is presented can be directed to different pictures or inhomogeneity
The picture of type carries out storage and retrieval, improves the processing and response speed of picture retrieval.
It stores and examines it is important to note that the embodiment of above-mentioned picture storage and retrieval device uses the picture
The embodiment of Suo Fangfa illustrates the course of work of each module, and those skilled in the art can be it is readily conceivable that by these
Module application is into the other embodiments of the picture storage and retrieval method.Certainly, due to the picture storage and retrieval side
Each step in method embodiment can be intersected, replaces, increases, be deleted, therefore, these reasonable permutation and combination transformation
Should also be as belonging to the scope of protection of the present invention in the picture storage and retrieval device, and should not be by protection model of the invention
It encloses and is confined on the embodiment.
Based on above-mentioned purpose, in terms of the third of the embodiment of the present invention, proposes and a kind of execute the picture storage and inspection
One embodiment of the computer equipment of Suo Fangfa.
The computer equipment for executing the picture storage and retrieval method include memory, at least one processor with
And the computer program that can be run on a memory and on a processor is stored, processor executes above-mentioned any one when executing program
Kind method.
As shown in figure 3, for one of the computer equipment provided by the invention for executing the picture storage and retrieval method
The hardware structural diagram of embodiment.
It include a processor 301 and one in the computer equipment by taking computer equipment as shown in Figure 3 as an example
Memory 302, and can also include: input unit 303 and output device 304.
Processor 301, memory 302, input unit 303 and output device 304 can pass through bus or other modes
It connects, in Fig. 3 for being connected by bus.
Memory 302 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey
Sequence, non-volatile computer executable program and module, such as the picture storage and retrieval method in the embodiment of the present application
Corresponding program instruction/module.Processor 301 passes through the non-volatile software program run storage in the memory 302, instruction
And module realizes the picture of above method embodiment thereby executing the various function application and data processing of server
Storage and retrieval method.
Memory 302 may include storing program area and storage data area, wherein storing program area can store operation system
Application program required for system, at least one function;Storage data area can store the use according to picture storage and retrieval device
The data etc. created.In addition, memory 302 may include high-speed random access memory, it can also include non-volatile deposit
Reservoir, for example, at least a disk memory, flush memory device or other non-volatile solid state memory parts.In some implementations
In example, optional memory 302 includes the memory remotely located relative to processor 301, these remote memories can pass through
It is connected to the network to local module.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, moves and lead to
Letter net and combinations thereof.
Input unit 303 can receive the number or character information of input, and generate and picture storage and retrieval device
User setting and the related key signals input of function control.Output device 304 may include that display screen etc. shows equipment.
Corresponding program instruction/the module of one or more of picture storage and retrieval methods is stored in the memory
In 302, when being executed by the processor 301, the picture storage and retrieval method in above-mentioned any means embodiment is executed.
Any one embodiment of the computer equipment for executing the picture storage and retrieval method, can achieve with
The identical or similar effect of corresponding aforementioned any means embodiment.
Based on above-mentioned purpose, the 4th aspect of the embodiment of the present invention proposes a kind of computer readable storage medium, institute
Stating computer-readable recording medium storage has computer executable instructions, which can be performed above-mentioned any side
The picture storage and retrieval in picture storage and retrieval method and the above-mentioned any device/system embodiment of realization in method embodiment
Device/system.The embodiment of the computer readable storage medium can achieve corresponding aforementioned any means and dress
Set/identical or similar the effect of system embodiment.
Based on above-mentioned purpose, the 5th aspect of the embodiment of the present invention proposes a kind of computer program product, the calculating
Machine program product includes the calculation procedure being stored on computer readable storage medium, which includes instruction, when this
When instruction is computer-executed, the computer is made to execute picture storage and retrieval method and reality in above-mentioned any means embodiment
Picture storage and retrieval device/system in existing above-mentioned any device/system embodiment.The implementation of the computer program product
Example, can achieve the corresponding aforementioned any means effect identical or similar with device/system embodiment.
Finally, it should be noted that those of ordinary skill in the art will appreciate that realizing the whole in above-described embodiment method
Or part process, related hardware can be instructed to complete by computer program, the program can be stored in a computer
In read/write memory medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, described
Storage medium can be magnetic disk, CD, read-only memory (ROM) or random access memory (RAM) etc..The computer journey
The embodiment of sequence can achieve the identical or similar effect of corresponding aforementioned any means embodiment.
In addition, typically, it can be various electric terminal equipments, example that the embodiment of the present invention, which discloses described device, equipment etc.,
Such as mobile phone, personal digital assistant (PDA), tablet computer (PAD), smart television, are also possible to large-scale terminal device, such as service
Device etc., therefore protection scope disclosed by the embodiments of the present invention should not limit as certain certain types of device, equipment.The present invention is real
Apply example disclose the client can be applied to the combining form of electronic hardware, computer software or both it is above-mentioned any
In a kind of electric terminal equipment.
In addition, disclosed method is also implemented as the computer program executed by CPU according to embodiments of the present invention, it should
Computer program may be stored in a computer readable storage medium.When the computer program is executed by CPU, the present invention is executed
The above-mentioned function of being limited in method disclosed in embodiment.
In addition, above method step and system unit also can use controller and for storing so that controller is real
The computer readable storage medium of the computer program of existing above-mentioned steps or Elementary Function is realized.
In addition, it should be appreciated that computer readable storage medium (for example, memory) as described herein can be it is volatile
Property memory or nonvolatile memory, or may include both volatile memory and nonvolatile memory.As example
And not restrictive, nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable to son
ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access
Memory (RAM), the RAM can serve as external cache.As an example and not restrictive, RAM can be with more
Kind form obtains, such as synchronous random access memory (DRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate SDRAM
(DDR SDRAM), enhancing SDRAM (ESDRAM), synchronization link DRAM (SLDRAM) and directly Rambus RAM (DRRAM).
The storage equipment of disclosed aspect is intended to the memory of including but not limited to these and other suitable type.
Those skilled in the art will also understand is that, various illustrative logical blocks, mould in conjunction with described in disclosure herein
Block, circuit and algorithm steps may be implemented as the combination of electronic hardware, computer software or both.It is hard in order to clearly demonstrate
This interchangeability of part and software, with regard to various exemplary components, square, module, circuit and step function to its into
General description is gone.This function is implemented as software and is also implemented as hardware depending on concrete application and application
To the design constraint of whole system.Those skilled in the art can realize described in various ways for every kind of concrete application
Function, but this realization decision should not be interpreted as causing a departure from range disclosed by the embodiments of the present invention.
Various illustrative logical blocks, module and circuit, which can use, in conjunction with described in disclosure herein is designed to
The following component of function described here is executed to realize or execute: general processor, digital signal processor (DSP), dedicated collection
At circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, divide
Any combination of vertical hardware component or these components.General processor can be microprocessor, but alternatively, processing
Device can be any conventional processors, controller, microcontroller or state machine.Processor also may be implemented as calculating equipment
Combination, for example, the combination of DSP and microprocessor, multi-microprocessor, one or more microprocessors combination DSP and/or any
Other this configurations.
The step of method in conjunction with described in disclosure herein or algorithm, can be directly contained in hardware, be held by processor
In capable software module or in combination of the two.Software module may reside within RAM memory, flash memory, ROM storage
Device, eprom memory, eeprom memory, register, hard disk, removable disk, CD-ROM or known in the art it is any its
In the storage medium of its form.Illustrative storage medium is coupled to processor, enables a processor to from the storage medium
Information is written to the storage medium in middle reading information.In an alternative, the storage medium can be with processor collection
At together.Pocessor and storage media may reside in ASIC.ASIC may reside in user terminal.It is replaced at one
In scheme, it is resident in the user terminal that pocessor and storage media can be used as discrete assembly.
In one or more exemplary designs, the function can be real in hardware, software, firmware or any combination thereof
It is existing.If realized in software, can be stored in using the function as one or more instruction or code computer-readable
It is transmitted on medium or by computer-readable medium.Computer-readable medium includes computer storage media and communication media,
The communication media includes any medium for helping for computer program to be transmitted to another position from a position.Storage medium
It can be any usable medium that can be accessed by a general purpose or special purpose computer.As an example and not restrictive, the computer
Readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disc memory apparatus, disk storage equipment or other magnetic
Property storage equipment, or can be used for carry or storage form be instruct or data structure required program code and can
Any other medium accessed by general or specialized computer or general or specialized processor.In addition, any connection is ok
It is properly termed as computer-readable medium.For example, if using coaxial cable, optical fiber cable, twisted pair, digital subscriber line
(DSL) or such as wireless technology of infrared ray, radio and microwave to send software from website, server or other remote sources,
Then above-mentioned coaxial cable, optical fiber cable, twisted pair, DSL or such as wireless technology of infrared ray, radio and microwave are included in
The definition of medium.As used herein, disk and CD include compact disk (CD), laser disk, CD, digital versatile disc
(DVD), floppy disk, Blu-ray disc, wherein disk usually magnetically reproduce data, and CD using laser optics reproduce data.On
The combination for stating content should also be as being included in the range of computer-readable medium.
It is exemplary embodiment disclosed by the invention above, it should be noted that in the sheet limited without departing substantially from claim
Under the premise of inventive embodiments scope of disclosure, it may be many modifications and modify.According to open embodiment described herein
The function of claim to a method, step and/or movement be not required to the execution of any particular order.In addition, although the present invention is implemented
Element disclosed in example can be described or be required in the form of individual, but be unless explicitly limited odd number, it is understood that be multiple.
It should be understood that it is used in the present context, unless the context clearly supports exceptions, singular " one
It is a " it is intended to also include plural form.It is to be further understood that "and/or" used herein refers to including one or one
Any and all possible combinations of a above project listed in association.
It is for illustration only that the embodiments of the present invention disclose embodiment sequence number, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
It should be understood by those ordinary skilled in the art that: the discussion of any of the above embodiment is exemplary only, not
It is intended to imply that range disclosed by the embodiments of the present invention (including claim) is limited to these examples;In the think of of the embodiment of the present invention
Under road, it can also be combined between the technical characteristic in above embodiments or different embodiments, and exist as described above
Many other variations of the different aspect of the embodiment of the present invention, for simplicity, they are not provided in details.Therefore, all at this
Within the spirit and principle of inventive embodiments, any omission, modification, equivalent replacement, improvement for being made etc. should be included in this hair
Within the protection scope of bright embodiment.
Claims (10)
1. a kind of picture storage and retrieval method, which is characterized in that be applied to server, comprising the following steps:
The pictorial information uploaded is received, and extracts picture file information and image attribute information from the pictorial information;
The picture file information is stored in first database, and by the image attribute information with the picture file
The associated mode of information is stored in the second database;
While retrieving the image attribute information from second database, from the first database call with
The associated picture file information of image attribute information, and the picture file information is presented.
2. the method according to claim 1, wherein uploading to be uploaded with C/S model and/or B/S mode;It is described
Image attribute information is stored in the transmission filename of the picture file information and/or is stored in the picture file information
In the image attribute information storage file uploaded together.
3. the method according to claim 1, wherein the first database be HBase database, described second
Database is Elasticsearch database;The image attribute information is stored in described in the form of key-value pair
In Elasticsearch database.
4. according to the method described in claim 3, it is characterized in that, the picture file information is raw in the HBase database
At unique storage file name, the image attribute information and the picture file information are described in the picture file information
Storage file name is associated as mark.
5. according to the method described in claim 4, it is characterized in that, calling the figure associated with the image attribute information
Piece the file information, to retrieve and reading in the HBase database according to the storage file name of the picture file information
Take the picture file information with the storage file name.
6. method described in any one of -5 according to claim 1, which is characterized in that the server is receiving the figure uploaded
Compatibility is extending transversely when piece information;The node of the first database and second database is compatible with dynamic capacity-expanding.
7. a kind of picture storage and retrieval device characterized by comprising
Picture uploading unit for receiving the pictorial information uploaded, and extracts picture file information from the pictorial information
And image attribute information;
Picture file storage unit, for the picture file information to be stored in first database;
Picture attribute storage unit, for depositing the image attribute information in a manner of associated with the picture file information
Storage is in the second database;
Picture retrieval unit, for while retrieving the image attribute information from second database, from described
The picture file information associated with the image attribute information is called in first database, and the picture file is presented
Information;
Wherein, described device uses method as claimed in any one of claims 1 to 6.
8. a kind of computer equipment, including memory, at least one processor and it is stored on the memory and can be in institute
State the computer program run on processor, which is characterized in that the processor executes such as claim when executing described program
Method described in 1-6 any one.
9. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In perform claim requires method described in 1-6 any one when the computer program is executed by processor.
10. a kind of computer program product, which is characterized in that the computer program product includes being stored in computer-readable deposit
Calculation procedure on storage media, the calculation procedure include instruction, when described instruction is computer-executed, make the computer
Perform claim requires method described in 1-6 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810975516.6A CN109086451A (en) | 2018-08-24 | 2018-08-24 | A kind of picture storage and retrieval method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810975516.6A CN109086451A (en) | 2018-08-24 | 2018-08-24 | A kind of picture storage and retrieval method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109086451A true CN109086451A (en) | 2018-12-25 |
Family
ID=64794583
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810975516.6A Pending CN109086451A (en) | 2018-08-24 | 2018-08-24 | A kind of picture storage and retrieval method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109086451A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857898A (en) * | 2019-02-20 | 2019-06-07 | 成都嗨翻屋科技有限公司 | A kind of method and system of mass digital audio-frequency fingerprint storage and retrieval |
CN110888839A (en) * | 2019-11-29 | 2020-03-17 | 厦门安胜网络科技有限公司 | Data storage and data search method and device |
CN113094526A (en) * | 2021-04-23 | 2021-07-09 | 深圳壹账通创配科技有限公司 | Picture batch uploading and displaying method and device, computer equipment and storage medium |
CN113222703A (en) * | 2021-05-20 | 2021-08-06 | 青岛海信智慧生活科技股份有限公司 | Method and device for uploading commodity pictures in batches |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102024037A (en) * | 2010-11-30 | 2011-04-20 | 厦门雅迅网络股份有限公司 | Retrieval method of massive image data of website operation system |
CN104834688A (en) * | 2015-04-20 | 2015-08-12 | 北京奇艺世纪科技有限公司 | Secondary index establishment method and device |
CN106682073A (en) * | 2016-11-14 | 2017-05-17 | 上海轻维软件有限公司 | HBase fuzzy retrieval system based on Elastic Search |
CN106844374A (en) * | 2015-12-04 | 2017-06-13 | 北京四维图新科技股份有限公司 | A kind of storage, the method and device of retrieval photo |
-
2018
- 2018-08-24 CN CN201810975516.6A patent/CN109086451A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102024037A (en) * | 2010-11-30 | 2011-04-20 | 厦门雅迅网络股份有限公司 | Retrieval method of massive image data of website operation system |
CN104834688A (en) * | 2015-04-20 | 2015-08-12 | 北京奇艺世纪科技有限公司 | Secondary index establishment method and device |
CN106844374A (en) * | 2015-12-04 | 2017-06-13 | 北京四维图新科技股份有限公司 | A kind of storage, the method and device of retrieval photo |
CN106682073A (en) * | 2016-11-14 | 2017-05-17 | 上海轻维软件有限公司 | HBase fuzzy retrieval system based on Elastic Search |
Non-Patent Citations (1)
Title |
---|
宣明: "《企业级海量数据搜索引擎核心技术实现与优化》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857898A (en) * | 2019-02-20 | 2019-06-07 | 成都嗨翻屋科技有限公司 | A kind of method and system of mass digital audio-frequency fingerprint storage and retrieval |
CN110888839A (en) * | 2019-11-29 | 2020-03-17 | 厦门安胜网络科技有限公司 | Data storage and data search method and device |
CN113094526A (en) * | 2021-04-23 | 2021-07-09 | 深圳壹账通创配科技有限公司 | Picture batch uploading and displaying method and device, computer equipment and storage medium |
CN113222703A (en) * | 2021-05-20 | 2021-08-06 | 青岛海信智慧生活科技股份有限公司 | Method and device for uploading commodity pictures in batches |
CN113222703B (en) * | 2021-05-20 | 2023-04-07 | 青岛海信智慧生活科技股份有限公司 | Method and device for uploading commodity pictures in batches |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109086451A (en) | A kind of picture storage and retrieval method and apparatus | |
CN100591078C (en) | A website buffering method and device | |
CN105760405A (en) | Methods and devices for obtaining network resource for loading web page and method and device for caching network resource | |
CN101354721B (en) | Server,data processing device and method thereof | |
JP2019527442A (en) | System and method for identifying matching content | |
US20160364373A1 (en) | Method and apparatus for extracting webpage information | |
CN106339469A (en) | Method and device for recommending data | |
CN107423387A (en) | The method and apparatus of table is divided in a kind of point storehouse based on middleware | |
US11630647B2 (en) | Method and system for configuring processes of software applications using activity fragments | |
KR20170049380A (en) | Tag processing method and device | |
CN104301384A (en) | Data acquisition method, device and system | |
CN107391478A (en) | A kind of online document edit methods and device | |
CN110490781A (en) | It is a kind of based on the PPT of cloud platform for lecture system and method | |
CN108388461A (en) | A kind of screen picture intercept method and device for firmware | |
CN106210032A (en) | The method and device reported based on terminal data batch | |
CN109525622A (en) | The generation method of fragment resource ID, resource sharing method, device and electronic equipment | |
CN107408055A (en) | code cache system | |
CN108509504A (en) | The online method for previewing of document, device, equipment, client and storage medium | |
CN104090878A (en) | Multimedia checking method, terminal, server and system | |
CN108319606A (en) | The construction method and device of specialized database | |
CN110427343A (en) | A kind of method of deployment file, computer equipment and readable storage medium storing program for executing | |
CN107357808B (en) | Data management method, device and equipment | |
Li et al. | Characterizing service providers traffic of mobile internet services in cellular data network | |
CN111338811A (en) | User writing behavior analysis method, server, terminal, system and electronic equipment | |
Lu et al. | Research on Cassandra data compaction strategies for time-series data |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181225 |
|
RJ01 | Rejection of invention patent application after publication |