Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Firstly, it is necessary to explanation, the method and mobile terminal for checking picture provided in an embodiment of the present invention, it can be
It is performed or applies under the running environment of mobile terminal, the mobile terminal, including but not limited to smart mobile phone, flat board, notes
This grade mobile portable intellectual computing device, further, the mobile terminal possess camera function, network function or
Person's image processing function.
Fig. 1 shows the flow of realizing of the method for checking picture of one embodiment of the invention, and methods described is applied to move
Dynamic terminal, details are as follows:
S101, creates the first field and the second field in the attribute information of the first picture, and first field is used for table
Show that, with the presence or absence of the second picture related to the picture material of first picture, second field is used to record described second
The storage address of picture.
Mobile terminal can be triggered to the preservation of picture operation under specified operating conditions, the specific operation condition include but
It is not limited to:After camera shooting obtains picture, gets picture from network or carry out image procossing to original image
To a new picture.When the preservation operation to picture is triggered, compared to existing picture storing process, the present invention is implemented
Example needs to the addition of two fields in the attribute information for generating when picture is preserved:
First field mentioned above, it is used to indicate whether in the presence of related to the picture material of the current picture for preserving
Picture, more specifically, what it was used for expression is mobile terminal locally with the presence or absence of the picture material with the current picture for preserving
Related picture.In implementation process, the field can use boolean (BOOL) type variable, the isLink of such as Boolean type.Cloth
The value of your type variable only has very (true) and vacation (false), therefore, on ordinary meaning, when the first field is written as " true "
When, it represents that mobile terminal locally has the picture related to the picture material of the current picture for preserving;When the first field is write
When entering " false ", it represents mobile terminal locally in the absence of the picture related to the picture material of the current picture for preserving.
Second field mentioned above, it is used to, when the first field is " true ", record the storage address of second picture.
In implementation process, the field can be using the List of assembly type<String>, and with the picture material of the current picture for preserving
When related picture number is more than 1, the field can the storage address of a pair these pictures in the form of a list recorded.
In embodiments of the present invention, the picture material of two pictures is related, at least including following two situations:
Situation one:The related picture of two picture materials is obtained by image procossing.
For example, using the first picture as original image, carrying out image procossing, second picture is obtained, then the first picture and
The content of two pictures is related, therefore, it is necessary to re-execute once preservation action to the first picture after image procossing is completed,
Refresh its corresponding attribute information, write the first mark (" true " of such as Boolean type) in its first field, and its
The storage address of second picture is write in two fields.
Again for example, the first picture is that second picture is carried out into the picture that is obtained after image procossing, then the first picture and the
The content of two pictures is also related, therefore, after image procossing is completed, it is necessary in its first field during the first picture of preservation
The mark of write-in first (" true " of such as Boolean type), and the storage address of second picture is write in its second field.
Image processing operations mentioned above include but is not limited to zoom in and out picture, cut, deform, mixing colours, adding
Filter or splicing etc. are operated, therefore before and after image processing process, the picture material in picture can't occur substantial change.
Situation two:Operated by continuous shooting and obtain the related picture of two picture materials.
For example, perform continuous shooting by the camera applications of mobile terminal operating, it was continuously shot within one second time and obtains five
Picture, then the picture material of this five pictures is substantially similar, therefore, when this five pictures is preserved, it is necessary to exist respectively
The mark of write-in first (" true " of such as Boolean type) in first field of each of which pictures, and write in its second field
Enter the storage address of second picture.
S102, is receiving on first picture when checking instruction, to first word of first picture
Duan Jinhang content detections.
When complete picture preserve after, when mobile terminal receive on picture when checking instruction, to the picture
Before being shown, content detection can be carried out to the first field in the image attribute information, to detect first field first
Middle write-in is the first mark (such as Boolean type " true ") or the second mark (" false " of such as Boolean type).If inspection
Measure that write in the first field in the image attribute information is the first mark, then directly photograph album check interface in show
The picture.
S103, if what is write in detecting first field of first picture is the first mark, checks interface
The link of middle display first picture and storage address of the display on the second picture.
If what is write in the first field in detecting the image attribute information is the first mark, then except in photograph album
Check in interface and show the picture, while also needing to show link in interface is checked that the address pointed in the link is and this
The storage address of the related picture (second picture) of the picture material of picture (the first picture).During display, if detecting
To the click commands of the link, then checking for photograph album shows second picture in interface, meanwhile, chain is displayed that in interface is checked
Connect, now, the address pointed in the link is the storage address of the first picture.
Further, if what is write in the first field in detecting the image attribute information is the first mark, then remove
Photograph album check interface in show the picture and link outside, display and picture (first figure also in this checks interface
Piece) the related picture (second picture) of picture material thumbnail, to help user can with preview to currently displaying figure
Other related in picture material pictures of piece, to view the picture material of these association pictures simultaneously.
In implementation process, the above-mentioned foreground that is linked at can be encapsulated as a button control, when detecting on the button
During the click commands of control, the second field of current display picture is read, get storage address list therein, accessed one by one
Storage address in the list, to generate the thumbnail of the picture related to the picture material of the picture, and is simultaneously displayed on and looks into
See in interface.
Further, as one embodiment of the present of invention, in the running of mobile terminal, in addition it is also necessary to picture
Attribute information safeguard in real time and updated.As shown in Fig. 2 on the basis of Fig. 1 correspondence embodiments, methods described is also wrapped
Include:
S104, detects whether the second picture is deleted.
S105, if the second picture is deleted, second is replaced with by corresponding first mark of first picture
Mark.
In embodiments of the present invention, the second of the first picture can by way of periodically or manually triggering, be accessed
Storage address in field, if discovery cannot read picture in corresponding storage address, shows first picture correspondence
Second picture be deleted, then at this time, it may be necessary to by first the first field of picture first mark replace with the second mark, with
Expression has not currently existed the picture related to the picture material of the first picture.Additionally, in this case, to the of the first picture
Content in two fields, can empty treatment, it is also possible to preset characters be write in each byte of the second field, for table
No longer be stored with the storage address of picture in bright second field.
The corresponding embodiments of Fig. 2 can be carried out safeguarding in real time to the attribute information of picture and updated, to ensure that user is looking into
When seeing picture, accurate related information can be got, the efficiency that picture is checked is ensured with this.It should be noted that Fig. 2 pairs
The embodiment answered is directed to the situation that the second picture quantity related to the picture material of the first picture is 1, works as second picture
When quantity is more than 1, if wherein one second picture is deleted, corresponding first field of the first picture still maintains the first mark
Know, and the storage address of the second picture is deleted in corresponding second field of the first picture, retain depositing for other second pictures
Storage address, only when all second pictures are deleted, could identify first in corresponding first field of the first picture
Replace with the second mark.
The method for checking picture mentioned above is further described below by way of an example and accompanying drawing:
Picture A is previously stored with mobile terminal, user will scheme using the third party's image processing software in mobile terminal
Piece A obtains picture B after cutting, and for picture A adds filter, obtains picture C, in doing so, the storage of picture A
Position is " .../camera/A.png ", and the storage location of picture B is " .../picture beautification/B.jpg ", and the storage location of picture C is
" .../picture beautification/C.jpg ", at this time, it may be necessary to carry out following write operations to the attribute field of picture A, B and C:
For picture A, its isLink value (i.e. the first field) is set to true, and in its List<String>(i.e.
Two fields) two storage address of middle addition:" .../picture beautification/B.jpg " (storage address of picture B) and " ... the beautification of/picture/
C.jpg " (storage address of picture C);
For picture B, its isLink value (i.e. the first field) is set to true, and in its List<String>(i.e.
Two fields) one storage address of middle addition:" .../camera/A.png " (storage address of picture A);
For picture C:Its isLink value (i.e. the first field) is set to true, and in its List<String>(i.e.
Two fields) one storage address of middle addition:" .../camera/A.png " (storage address of picture A).
When user needs to check picture A in photograph album, the isLink values that backstage reads picture A are true, then looking into
See in interface and show picture A, as shown in figure 3, in addition to picture A, the He of thumbnail 31 of picture B is also shown on interface is checked
Button 32, and picture C thumbnail 33 and button 34.Under the dispaly state, if user clicks on button 33, such as Fig. 4 institutes
Show, the thumbnail of picture B amplifies display, and checks on interface the thumbnail 41 and button 42 for showing picture A, and picture C
Thumbnail 43 and button 44.
Above example is only one of the embodiment of the present invention and implements example, is not intended to limit the present invention embodiment
Scheme is realized.
Illustrated by such scheme and example describes to can be seen that the side for checking picture that the embodiment of the present invention is provided
Method, can simultaneously embody the correlation circumstance of other pictures related to the picture material of picture during the display of picture,
User is contributed to more efficiently to view other pictures related to currently displaying picture, and to this there is provided more convenient
Picture access mode, improve operating efficiency when picture is checked.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodiment
Execution sequence should determine that the implementation process without tackling the embodiment of the present invention constitutes any limit with its function and internal logic
It is fixed.
In addition, the picture of the present embodiment first, second picture refer to a certain picture, the first field, the second field refer to a certain
Field, " first, second " is only herein the convenience stated and refer to, and for difference different terminals, is not meant in this hair
Corresponding first picture, second picture or the first field, the second field are necessarily had in bright specific implementation.
Corresponding to the method for checking picture described in foregoing embodiments, Fig. 5 shows the movement of one embodiment of the invention
The structured flowchart of terminal, for convenience of description, illustrate only part related to the present embodiment.
Reference picture 5, the mobile terminal includes:
Creating unit 51, creates the first field and the second field, first field in the attribute information of the first picture
For indicating whether there is the second picture related to the picture material of first picture, second field is used to record institute
State the storage address of second picture;
First detection unit 52, is receiving on first picture when checking instruction, to first picture
First field carries out content detection;
Display unit 53, if what is write in detecting first field of first picture is the first mark, is looking into
See in interface and show the link of the storage address of first picture and display on the second picture.
On the basis of Fig. 5, alternatively, the display unit 53 also includes:
It is described check interface in show the thumbnail of the second picture.
Alternatively, it is described mobile whole if what is write in first field of first picture is first mark
End also includes:
Graphics processing unit, for carrying out image procossing to first picture, obtains the second picture;
Or, for carrying out image procossing to the second picture, obtain first picture.
Alternatively, it is described mobile whole if what is write in first field of first picture is first mark
End also includes:
Continuous shooting unit, multiple figures comprising first picture and the second picture are obtained for being operated by continuous shooting
Piece.
Alternatively, the mobile terminal also includes:
Second detection unit, detects whether the second picture is deleted;
Replacement unit, if the second picture is deleted, corresponding first mark of first picture is replaced with
Second mark.
Above mobile terminal can realize each process that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 4, to keep away
Exempt to repeat, repeat no more here.
It is the block diagram of the mobile terminal of another embodiment of the present invention referring to Fig. 6.Mobile terminal 600 shown in Fig. 6 is wrapped
Include:At least one processor 601, memory 602, at least one network interface 604 and other users interface 603.Mobile terminal
Each component in 600 is coupled by bus system 605.It is understood that bus system 605 be used for realize these components it
Between connection communication.Bus system 605 in addition to including data/address bus, also including power bus, controlling bus and status signal
Bus.But for the sake of for clear explanation, various buses are all designated as bus system 605 in figure 6.
Wherein, user interface 603 can include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside height
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 602 of system and method described herein be intended to including but not limited to these and it is any its
It is adapted to the memory of type.
In some embodiments, memory 602 stores following element, can perform module or data structure, or
Person their subset, or their superset:Operating system 6021 and application program 6022.
Wherein, operating system 6021, comprising various system programs, such as ccf layer, core library layer, driving layer etc. are used for
Realize various basic businesses and process hardware based task.Application program 6022, comprising various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 6022.
In embodiments of the present invention, by the program for calling memory 602 to store or instruction, specifically, can be application
In program 6022 store program or instruction, processor 701 be used for created in the attribute information of the first picture the first field and
Second field, first field be used for indicate whether exist the second picture related to the picture material of first picture,
Second field is used to record the storage address of the second picture;Receiving instruction is checked on first picture
When, first field to first picture carries out content detection;If detecting first word of first picture
What is write in section is the first mark, and first picture and display depositing on the second picture are shown in interface is checked
Store up the link of address.
The method that the embodiments of the present invention are disclosed can apply in processor 601, or be realized by processor 601.
Processor 601 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each
Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 601 or software form.Above-mentioned treatment
Device 601 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic,
Discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to embodiment of the present invention institute
The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor
And software module combination performs completion.Software module may be located at random access memory, and flash memory, read-only storage may be programmed read-only
In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at
Memory 602, processor 601 reads the information in memory 602, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realized for software, can be realized by performing the module (such as process, function etc.) of function described herein herein
Described technology.Software code is storable in memory and by computing device.Memory can within a processor or
Realize processor outside.
Alternatively, the processor 601 is additionally operable to:If being write in detecting first field of first picture
It is the first mark, shows the thumbnail of the second picture.
Alternatively, as another embodiment, processor 601 is additionally operable to:If first field of first picture
Middle write-in is first mark, before the first field and the second field are created in the attribute information of the first picture, to institute
Stating the first picture carries out image procossing, obtains the second picture;Or, image procossing is carried out to the second picture, obtain
First picture.
Alternatively, as another embodiment, processor 601 is additionally operable to:If first field of first picture
Middle write-in is first mark, before the first field and the second field are created in the attribute information of the first picture, is passed through
Continuous shooting operation obtains the plurality of pictures comprising first picture and the second picture.
Alternatively, as another embodiment, processor 601 is additionally operable to:If detecting first picture described
What is write in first field is the first mark, shows first picture and display on described the in interface is checked
After the link of the storage address of two pictures, detect whether the second picture is deleted;If the second picture is deleted, will
First picture corresponding described first is identified and replaces with the second mark.
Above-mentioned mobile terminal 600 can realize each process of mobile terminal realization in previous embodiment, to avoid repeating,
Here repeat no more.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Unit and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application
The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be by other
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only
A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces
Connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme
's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes
Medium.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, on the premise of principle of the present invention is not departed from, some improvements and modifications can also be made, these improvements and modifications
Should be regarded as protection scope of the present invention.