CN102567515A - Picture description information inserting and reading method and device - Google Patents

Picture description information inserting and reading method and device Download PDF

Info

Publication number
CN102567515A
CN102567515A CN2011104461450A CN201110446145A CN102567515A CN 102567515 A CN102567515 A CN 102567515A CN 2011104461450 A CN2011104461450 A CN 2011104461450A CN 201110446145 A CN201110446145 A CN 201110446145A CN 102567515 A CN102567515 A CN 102567515A
Authority
CN
China
Prior art keywords
picture
descriptor
description information
file
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.)
Granted
Application number
CN2011104461450A
Other languages
Chinese (zh)
Other versions
CN102567515B (en
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201110446145.0A priority Critical patent/CN102567515B/en
Publication of CN102567515A publication Critical patent/CN102567515A/en
Priority to PCT/CN2012/081477 priority patent/WO2013097488A1/en
Application granted granted Critical
Publication of CN102567515B publication Critical patent/CN102567515B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a picture description information inserting method and a picture description information inserting device, wherein the method comprises the following steps: respectively obtaining a picture file and picture description information in addition to the picture file, wherein the picture file comprises a picture content part and a descriptive part of the picture content part; and inserting the description information into the descriptive part. In addition, the invention also provides a picture description information reading method and a picture description information reading device, wherein the method comprises the following steps: obtaining the picture file including the description information, wherein the picture file comprises the picture content part and the descriptive part of the picture content part, and the description information is located in the descriptive part; and reading the description information from the descriptive part of the picture file. In such a way, the length of the added description information can be determined at will theoretically, and the speed of browsing pictures by users is not influenced, the settings dependent on picture names are not changed, and the file management difficulty and the waste of storage space and search time cannot be caused.

Description

Picture description information insertion, read method and device
Technical field
The present invention relates to electronic information technical field, particularly relate to a kind of picture description information insertion, read method and device.
Background technology
Along with the high speed development of memory device, picture miscellaneous has occupied the increasing space of memory device.The picture of magnanimity has caused the difficulty of user to the important information memory of picture, like related data of: time of picture shooting, place and captured personage or the like.Therefore, when obtaining picture, the user adds some descriptors to picture usually, like related data of: time of picture shooting, place and captured personage or the like, with convenient follow-up use.
First kind of method of adding picture description information that prior art provides promptly added descriptor mainly through revising picture name in picture name.But this method has significant disadvantages:
1. when descriptor is longer, can make picture name long and irregular, influence the user and browse the speed of consulting descriptor.
2. the length of picture name is certain, and generally in 35 characters, if descriptor surpasses 35 characters, the character that then exceeds part can't be imported.
3. the part setting of system depends on picture name; To cause setting to make a mistake if change picture name; As: it is wallpaper that certain width of cloth picture is set, if change the title of this picture, will cause the ordering of this picture in the wallpaper tabulation to change; System searches less than corresponding picture according to original picture name, thus the mistake of setting.
Second kind of method of adding picture description information that prior art provides mainly is outside picture file, to set up news file, in news file, adds picture description information, and makes news file and corresponding picture through names associate.But this method has significant disadvantages equally:
1. every width of cloth picture all must be set up a corresponding news file, and when picture number was a lot, the news file quantity of being set up also can be a lot, causes the waste of difficulty, storage space and the retrieval time of file management.
2. when the name changing of picture, need the title of corresponding change news file, otherwise will interrupt association between the two.
Summary of the invention
The technical matters that the present invention mainly solves provides a kind of picture description information insertion, read method and device, can effectively be reduced to picture and add the needed storage space of descriptor.
For solving the problems of the technologies described above; The technical scheme that the present invention adopts is: a kind of picture description information insertion method is provided; Comprise the steps: to obtain respectively the descriptor of the said picture outside picture file and the picture file; Wherein, said picture file comprises image content part and illustrative part thereof; Said descriptor is inserted into said illustrative part.
Wherein, the said descriptor step of obtaining the said picture outside picture file and the picture file respectively also comprises the steps: said descriptor is encoded before.
For solving the problems of the technologies described above; Another technical scheme that the present invention adopts is: a kind of picture description information read method is provided; Comprise the steps: to obtain the picture file that comprises descriptor; Wherein, said picture file comprises image content part and illustrative part thereof, and said descriptor is arranged in the illustrative part; From the illustrative part of said picture file, read descriptor.
Wherein, also comprise the steps: said descriptor is decoded after reading the descriptor step the said illustrative part from picture file.
For solving the problems of the technologies described above; Another technical scheme that the present invention adopts is: provide a kind of picture description information to insert device; Said device comprises: insert acquisition module; Be used for obtaining respectively the descriptor of the said picture outside picture file and the picture file, wherein, said picture file comprises image content part and illustrative part thereof; Insert module is used for said descriptor is inserted into said illustrative part.
Wherein, said device further comprises: coding module is used for said descriptor is encoded.
Wherein, said device further comprises: memory module is used for storing the picture file that comprises descriptor into file system.
Wherein, said device further comprises: editor module, be used for editor module, and be used to supply user's editing specification information.
For solving the problems of the technologies described above; Another technical scheme that the present invention adopts is: a kind of picture description information reading device is provided; Said device comprises: read acquisition module, be used to obtain the picture file that comprises descriptor, wherein; Said picture file comprises image content part and illustrative part thereof, and said descriptor is arranged in the illustrative part; Read module is used for reading descriptor from the illustrative part of said picture file.
Wherein, said device further comprises: decoder module is used for descriptor is decoded.
The invention has the beneficial effects as follows: the situation that is different from prior art; The present invention is through obtaining the descriptor of the said picture outside picture file and the picture file respectively; And descriptor is inserted in the illustrative part of picture file itself; The length of the descriptor that can arbitrarily determine in theory to be increased; And do not influence the speed of user's browsing pictures, do not change the setting that depends on picture name, can not cause the waste of difficulty, storage space and the retrieval time of file management, add descriptor thereby can make things convenient for the user to be embodied as picture.
Description of drawings
Fig. 1 is that picture description information of the present invention is inserted, the schematic block diagram of reading system one embodiment;
Fig. 2 is the process flow diagram of picture description information insertion method one embodiment of the present invention;
Fig. 3 is the process flow diagram of picture description information read method one embodiment of the present invention;
Fig. 4 is the structural representation that picture description information of the present invention is inserted device one embodiment;
Fig. 5 is the structural representation of picture description information reading device one embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is elaborated.
Consult Fig. 1, Fig. 1 is that picture description information of the present invention is inserted, the schematic block diagram of reading system one embodiment.In the present invention, picture description information insertion, reading system comprise process chip 100 and camera 200.Process chip 100 comprises editor module 101, coding module 102, inserts acquisition module 103, insert module 104, memory module 105, reads acquisition module 106, read module 107, decoder module 108 and display module 109.To combine Fig. 2 and Fig. 3 that the function of each ingredient of picture description information insertion, reading system is described below.
Consult Fig. 2 in the lump, Fig. 2 is the process flow diagram of picture description information insertion method one embodiment of the present invention.Present embodiment comprises the steps:
Step S201: descriptor is encoded.The descriptor of user through editor module 101 input character types, and be input in the coding module 102 and encode.In the present embodiment, the descriptor behind the coding is the set that hexadecimal byte is formed, and in other embodiment, the descriptor behind the coding also can be that other is the machine language set that machine is discerned.
Step S202: the descriptor of obtaining the picture outside picture file and the picture file respectively.Wherein, picture file comprises image content part and illustrative part thereof.Image content partly is meant the data of picture viewable portion.Illustrative has partly comprised all information of picture file, wide, high or the like like: picture.Insert acquisition module 103 and from coding module 102, obtain descriptor, and from camera 200, obtain picture file.In other embodiment, also can from memory device or from server, obtain picture file.
Step S203: descriptor is inserted into the illustrative part.Insert module 104 is inserted into the illustrative part with descriptor.
After above-mentioned step was accomplished, the picture file that memory module 105 will comprise descriptor stored in the file system.If the descriptor that need check picture can read descriptor through following method from file system, check after the decoding.
Consult Fig. 3 in the lump, Fig. 3 is the process flow diagram of picture description information read method one embodiment of the present invention.Present embodiment comprises the steps:
Step S301: obtain the picture file that comprises descriptor.Wherein, picture file comprises image content part and illustrative part thereof, and descriptor is arranged in the illustrative part.Image content partly is meant the data of picture viewable portion.Illustrative has partly comprised all information of picture, wide, high or the like like: picture.Read acquisition module 106 and from file system, read the picture file that comprises descriptor, wherein, descriptor is arranged in the illustrative part of picture file.
Step S302: from the illustrative part of picture file, read descriptor.Read module 107 reads the descriptor that belongs to the machine language set from the illustrative part of picture file.In the present embodiment, at this moment, descriptor is the set that hexadecimal byte is formed, and in other embodiment, descriptor also can be that other is the machine language set that machine is discerned.
Step S303: descriptor is decoded.The descriptor that decoder module 108 will belong to machine language set is decoded as and belongs to the human descriptor that exchanges the natural language set of using.
After above-mentioned step was accomplished, display module 109 showed descriptor and supplies the user to check on screen.
It should be noted that; After completion is inserted into picture file with descriptor for the first time; If the user need revise descriptor; Can will be stored in descriptor in the file system and read and decode through reading acquisition module 106, read module 107 and decoder module 108 equally; Edit, revise through 101 pairs of descriptors of editor module again, at last through coding module 102, insert acquisition module 103, insert module 104 is with amended descriptor coding and be inserted in the picture file.Concrete read, decode, coding and insertion process be all similar with said process, here with regard to one by one expansion give unnecessary details.
Be different from the situation of prior art; The present invention is through obtaining the descriptor of the said picture outside picture file and the picture file respectively; And descriptor is inserted in the illustrative part of picture file itself; The length of the descriptor that can arbitrarily determine in theory to be increased; And do not influence the speed of user's browsing pictures, do not change the setting that depends on picture name, can not cause the waste of difficulty, storage space and the retrieval time of file management, add descriptor thereby can make things convenient for the user to be embodied as picture.
Because wireless telecommunications system shot picture form is generally JPEG (joint image expert group now; Joint Photographic Experts Group) picture; The JPEG picture can be picture compression to very little; Thereby in reality, often be used, will combine the JPEG picture to describe descriptor below and insert, read process.
The illustrative of JPEG picture has partly comprised a plurality of sections, and each section all comprises four parts, segment identification, segment type, segment length and section content.Segment identification is hexadecimal 0xFF; Segment type is a hexadecimal byte, the different corresponding different segment types of section, as: 0xD8 representes file header, and 0xFE representes note.Segment length is hexadecimal two bytes, and length adds two bytes of segment length itself for the length of section content.In other embodiment, also can change the byte number of segment length, to adapt to the length of different contents.
The user is encoded to descriptor " 0x4A 0x46 0x49 0x46 0x00 0x01 0x02 0x01 0x00 0x60 0x00 0x60 0x00 0x00 " descriptor of totally 14 bytes through coding module 102.Insert acquisition module 103 and obtain the descriptor of being exported from coding module 102, and obtain picture file from camera 200.The spacer section that insert module 104 reads a segment type from picture file be 0xE1 is inserted into descriptor in the spacer section again, and the variation of section is as follows before and after inserting:
Figure BDA0000125590050000061
Afterwards, memory module 105 picture file that will comprise descriptor is saved in the file system.
Read acquisition module 106 and from file system, read the picture file that comprises descriptor; Read module 107 finds the section that segment type is 0xE1 from picture file; Find corresponding segment length then; According to segment length the whole bytes in the section content are read out, obtain descriptor " 0x4A 0x46 0x49 0x46 0x00 0x01 0x02 0x01 0x00 0x60 0x00 0x60 0x00 0x00 ".Then, send into the descriptor of decoding in the decoder module, and on screen, show through display module 109.
It should be noted that in other embodiment the illustrative of picture file part also can be the respective description property part of bitmap file head or other pictures of bitmap file.
Consult Fig. 4, Fig. 4 is the structural representation that picture description information of the present invention is inserted device one embodiment.Picture description information of the present invention is inserted device and is comprised editor module 401, coding module 402, insertion acquisition module 403, insert module 404, the memory module 405 that is linked in sequence.
Editor module 401 obtains the descriptor that belongs to the natural language set of user's input, and coding module 402 is encoded to descriptor the set that belongs to machine language.Insert acquisition module 403 and from coding module 402, obtain descriptor, and from camera, memory device or server, obtain picture file, wherein, picture file comprises image content part and illustrative part thereof.Insert module 404 is inserted into descriptor in the illustrative part of picture file, and will comprise that through memory module 405 picture file of descriptor is saved in the file system.
Consult Fig. 5, Fig. 5 is the structural representation of picture description information reading device one embodiment of the present invention.Picture description information reading device of the present invention comprise be linked in sequence read acquisition module 501, read module 502 and decoder module 503.
Read acquisition module 501 and from file system, read the picture file that comprises descriptor, and send in the read module 502.Read module 502 finds corresponding illustrative part, and from the illustrative part, reads the descriptor that belongs to the machine language set.Decoder module 503 is decoded into descriptor and belongs to the human set that exchanges the natural language that uses.
Be different from the situation of prior art; The present invention is through obtaining the descriptor of the said picture outside picture file and the picture file respectively; And descriptor is inserted in the illustrative part of picture file itself; The length of the descriptor that can arbitrarily determine in theory to be increased; And do not influence the speed of user's browsing pictures, do not change the setting that depends on picture name, can not cause the waste of difficulty, storage space and the retrieval time of file management, add descriptor thereby can make things convenient for the user to be embodied as picture.
The above is merely embodiments of the invention; Be not so limit claim of the present invention; Every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.

Claims (10)

1. a picture description information insertion method is characterized in that, comprises the steps:
Obtain the descriptor of the said picture outside picture file and the picture file respectively, wherein, said picture file comprises image content part and illustrative part thereof;
Said descriptor is inserted into said illustrative part.
2. method according to claim 1 is characterized in that, the said descriptor step of obtaining the said picture outside picture file and the picture file respectively also comprises the steps: before
Said descriptor is encoded.
3. a picture description information read method is characterized in that, comprises the steps:
Obtain the picture file that comprises descriptor, wherein, said picture file comprises image content part and illustrative part thereof, and said descriptor is arranged in the illustrative part;
From the illustrative part of said picture file, read descriptor.
4. method according to claim 3 is characterized in that, also comprises the steps: after reading the descriptor step the said illustrative part from picture file
Said descriptor is decoded.
5. a picture description information is inserted device, it is characterized in that said device comprises:
Insert acquisition module, be used for obtaining respectively the descriptor of the said picture outside picture file and the picture file, wherein, said picture file comprises image content part and illustrative part thereof;
Insert module is used for said descriptor is inserted into said illustrative part.
6. device according to claim 5 is characterized in that, said device further comprises:
Coding module is used for said descriptor is encoded.
7. device according to claim 5 is characterized in that, said device further comprises:
Memory module is used for storing the picture file that comprises descriptor into file system.
8. device according to claim 5 is characterized in that, said device further comprises:
Editor module is used to supply user's editing specification information.
9. a picture description information reading device is characterized in that, said device comprises:
Read acquisition module, be used to obtain the picture file that comprises descriptor, wherein, said picture file comprises image content part and illustrative part thereof, and said descriptor is arranged in the illustrative part;
Read module is used for reading descriptor from the illustrative part of said picture file.
10. device according to claim 9 is characterized in that, said device further comprises:
Decoder module is used for descriptor is decoded.
CN201110446145.0A 2011-12-27 2011-12-27 Picture description information inserting and reading method and device Active CN102567515B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110446145.0A CN102567515B (en) 2011-12-27 2011-12-27 Picture description information inserting and reading method and device
PCT/CN2012/081477 WO2013097488A1 (en) 2011-12-27 2012-09-17 Picture description information inserting and reading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110446145.0A CN102567515B (en) 2011-12-27 2011-12-27 Picture description information inserting and reading method and device

Publications (2)

Publication Number Publication Date
CN102567515A true CN102567515A (en) 2012-07-11
CN102567515B CN102567515B (en) 2014-11-05

Family

ID=46412914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110446145.0A Active CN102567515B (en) 2011-12-27 2011-12-27 Picture description information inserting and reading method and device

Country Status (2)

Country Link
CN (1) CN102567515B (en)
WO (1) WO2013097488A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067441A (en) * 2012-11-27 2013-04-24 北京小米科技有限责任公司 Method, device and equipment of picture sharing
WO2013097488A1 (en) * 2011-12-27 2013-07-04 惠州Tcl移动通信有限公司 Picture description information inserting and reading method and device
CN104156416A (en) * 2014-07-31 2014-11-19 百度在线网络技术(北京)有限公司 Method and device for writing and reading content information in image files
CN110516039A (en) * 2019-08-09 2019-11-29 济南浪潮数据技术有限公司 Method and device for retrieving information in user manual

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102087650A (en) * 2009-12-08 2011-06-08 北大方正集团有限公司 Method and device for displaying electronic document
CN102169589A (en) * 2010-02-26 2011-08-31 深圳富泰宏精密工业有限公司 Image processing system and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630416A (en) * 2008-07-17 2010-01-20 鸿富锦精密工业(深圳)有限公司 System and method for editing pictures
CN101901109A (en) * 2010-07-13 2010-12-01 深圳市同洲电子股份有限公司 Picture processing method, device and mobile terminal
CN102567515B (en) * 2011-12-27 2014-11-05 惠州Tcl移动通信有限公司 Picture description information inserting and reading method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102087650A (en) * 2009-12-08 2011-06-08 北大方正集团有限公司 Method and device for displaying electronic document
CN102169589A (en) * 2010-02-26 2011-08-31 深圳富泰宏精密工业有限公司 Image processing system and method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013097488A1 (en) * 2011-12-27 2013-07-04 惠州Tcl移动通信有限公司 Picture description information inserting and reading method and device
CN103067441A (en) * 2012-11-27 2013-04-24 北京小米科技有限责任公司 Method, device and equipment of picture sharing
CN103067441B (en) * 2012-11-27 2016-09-21 小米科技有限责任公司 Method, device and the equipment that a kind of picture is shared
CN104156416A (en) * 2014-07-31 2014-11-19 百度在线网络技术(北京)有限公司 Method and device for writing and reading content information in image files
CN104156416B (en) * 2014-07-31 2018-12-25 百度在线网络技术(北京)有限公司 The method, apparatus of content information and reading of content information is written in picture file
CN110516039A (en) * 2019-08-09 2019-11-29 济南浪潮数据技术有限公司 Method and device for retrieving information in user manual

Also Published As

Publication number Publication date
CN102567515B (en) 2014-11-05
WO2013097488A1 (en) 2013-07-04

Similar Documents

Publication Publication Date Title
CN104540000B (en) The generation method and terminal of a kind of dynamic thumbnail
Tesic Metadata practices for consumer photos
CN103650525B (en) Method, system and equipment for the extension of the trigger parameter table of interactive television
CN103902664B (en) Page image rendering method and information providing method and device
CN102567515A (en) Picture description information inserting and reading method and device
CN104426896A (en) Method and device for producing topic pages
CN104516892A (en) Distribution method, system and terminal of user generated content associated with rich media information
WO2009000141A1 (en) Representation method, system and device of layout file logical structure information
CN103425699A (en) Method, equipment and system for acquiring web pages
CN105825083A (en) Picture copyright protecting method and recognizing method and related method and system
CN114097249A (en) Method and apparatus for packaging panoramic images in a file
WO2014103123A1 (en) Device, method, and program for digest generation
CN103279262A (en) Method and device for extracting content from image
CN102065234A (en) Caption producing and broadcasting method and system based on distributive type caption processing system
CN102883232B (en) Method for adding watermarks in swf documents in batches and device thereof
CN102118643B (en) Network subtitle playing system and method
CN102100020A (en) Method and apparatus for providing rich media service
US20060092294A1 (en) Mobile terminal and operating method thereof
CN102855602B (en) Picture processing method and picture processing device
CN102103586A (en) Multi-language bidirectionally mixed-arranged caption edition system
CN104581381A (en) Auxiliary terminal video browsing positioning method and device
CN102186105B (en) Digital television program playing system, method and digital television receiving terminal
CN101521833B (en) Processing method and processing device of transport stream for test
CN102855255A (en) Content management and publish method and system
CN102955827A (en) Establishment method of wireless application protocol webpage, and editor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant