CN102110112A - Image sequence batch processing method and device - Google Patents

Image sequence batch processing method and device Download PDF

Info

Publication number
CN102110112A
CN102110112A CN2009102442212A CN200910244221A CN102110112A CN 102110112 A CN102110112 A CN 102110112A CN 2009102442212 A CN2009102442212 A CN 2009102442212A CN 200910244221 A CN200910244221 A CN 200910244221A CN 102110112 A CN102110112 A CN 102110112A
Authority
CN
China
Prior art keywords
file
image
processing
image file
image sequence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2009102442212A
Other languages
Chinese (zh)
Inventor
谈琴芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN2009102442212A priority Critical patent/CN102110112A/en
Publication of CN102110112A publication Critical patent/CN102110112A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention provides an image sequence batch processing method and device. The method comprises the following steps: screening files under the current path according to a preset rule to obtain an image sequence file name list; storing a plurality of similar files that need to be processed currently in the path; setting the processing requirement of a single image; sequentially reading each file in the list according to the processing requirement of the single image; and processing the files correspondingly so as to rapidly process image files in batches. Therefore, the method can save a great amount of time and space resources.

Description

A kind of method and apparatus of image sequence batch processing
Technical field
The present invention relates to picture and text packing technique field, particularly relate to a kind of method and apparatus of image sequence batch processing.
Background technology
Along with development of multimedia technology, the purposes of this available resources of image more and more widely, the kind of the image resource that people touch in the daily life is also more and more, not only comprise TV programme, film and television play, and also all can relate in the activity such as video monitoring, civilian advertisement, wedding celebration video recording.
Need under many circumstances a collection of image file is handled, but when opening work, the especially image file that need carry out repetition one by one and reaching thousands of up to ten thousand, this situation has more been aggravated workload, and the processing that is easy to make the mistake.Need carry out functions such as simple cutting or convergent-divergent to some onesize image files in some engineering application scenarios, more existing softwares have the function of batch processing such as photoshop, but need carry out the macros definition, and the macros definition itself is exactly the thing of a trouble, and also be to open All Files successively to handle when searching image file, cause confusion sometimes, often just wasted a lot of times in the macros structure.
Therefore, need the urgent technical matters that solves of those skilled in the art to be exactly at present: how can propose a kind of method and apparatus in the image batch processing with innovating, have problems to solve in the prior art, increase work efficiency when effectively reducing workload.
Summary of the invention
Technical matters to be solved by this invention provides a kind of method and apparatus of image sequence batch processing, finishes the processing of image file in enormous quantities fast, effectively saves time and space resources.
In order to address the above problem, the invention discloses a kind of method of image sequence batch processing, described method comprises:
According to preset rules, file under the current path is screened, obtain the image sequence file list of file names; Store the current a plurality of similar image file that needs processing under the described path;
Set the processing requirements of single image file;
According to the processing requirements of single image file, read each image file in the tabulation in regular turn, it is carried out identical processing.
Preferably, described method is screened file under the current path according to preset rules, obtains also to comprise before the image sequence file list of file names:
Filename according to the image file that needs to handle is set rule.
Preferably, described according to preset rules, file under the current path is screened, obtain the image sequence file list of file names and comprise following substep:
According to the rule of setting file under the current path is screened, obtain legal image file;
The filename of the image file that obtained is deposited with the form of formation, obtained the image sequence file list of file names.
Preferably, described rule acquiescence is nonnumeric part unanimity in the image file name.
Preferably, described processing requirements comprises cutting, convergent-divergent, format conversion, gray scale, color range, the processing requirements of saturation degree aspect.
The present invention also provides a kind of device of image sequence batch processing, and described device comprises:
Filename tabulation acquisition module is used for according to preset rules, and file under the current path is screened, and obtains the image sequence file list of file names; Store the current a plurality of similar image file that needs processing under the described path;
First setting module is used to set the processing requirements of single image file;
Processing module is used for the processing requirements according to the single image file, reads each image file in the tabulation in regular turn, and it is carried out identical processing.
Preferably, described device also comprises:
Second setting module is used for the filename setting rule according to the image file of needs processing.
Preferably, described filename tabulation acquisition module comprises following submodule:
First obtains submodule, is used for according to the rule of setting file under the current path being screened, and obtains legal image file;
Second obtains submodule, and the filename that is used for the image file that will be obtained is deposited with the form of formation, obtains the image sequence file list of file names.
Compared with prior art, the present invention has the following advantages:
The present invention passes through according to preset rules, file under the current path is screened, obtain the image sequence file list of file names, store the current a plurality of same class file that needs processing under the described path, set the processing requirements of single image, according to the processing requirements of single image, read each file in the tabulation in regular turn, it is carried out identical processing, finished the processing of image file in enormous quantities fast, saved a large amount of time and space resources.
Description of drawings
Fig. 1 is the method flow diagram of the embodiment of the invention one described a kind of image sequence batch processing;
Fig. 2 is the structure drawing of device of the embodiment of the invention two described a kind of image sequence batch processings.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Continuous development along with video and multimedia technology, picture and text are packaged in the captions Applications in Fabrication more and more widely, it is also more and more higher to make effect of requirement, usually need large quantities of similar image files to be carried out same processing according to the broadcast state of picture and text packing, if can find a kind of method fast and effectively to help through the work of treatment of similar image file in enormous quantities, will save a large amount of time in the picture and text packing so, improve treatment effeciency.
Therefore, the inventor herein has creatively proposed one of core idea of the embodiment of the invention, a kind of method and apparatus of image sequence batch processing promptly is provided,, file under the current path is screened by according to preset rules, obtain the image sequence file list of file names, store the current a plurality of same class file that needs processing under the described path, set the processing requirements of single image, according to the processing requirements of single image, read each file in the tabulation in regular turn, it is carried out identical processing.
Embodiment one:
With reference to Fig. 1, show the method flow diagram of a kind of image sequence batch processing of the present invention, described method specifically comprises:
S101 according to preset rules, screens file under the current path, obtains the image sequence file list of file names; Store the current a plurality of similar image file that needs processing under the described path;
Wherein, described image file can be bmp, gif, png, tga, jpg, psd, ico, multiple form such as gif is being stored related image file in the picture and text packing under the described current path, may be the image file of one or more forms in the described multiple form.
Here suppose that form with image file related in the current picture and text packing is that the image file of bmp and png form is that example is specifically described, storing racing car 000.bmp under the current path, racing car 001.bmp, racing car 002.bmp, racing car 003.bmp...... is up to the image file and the basketball 000.png of 1,000 bmp forms of racing car 999.bmp, basketball 001.png, basketball 002.png, basketball 003.png...... is up to the image file of 100 png forms of basketball 099.png, in addition, also may store other any form under the current path certainly, the file of any classification.Need the racing car image file of bmp form is handled in the broadcast state of current picture and text packing, here being treated to that hypothesis is carried out is reduced into 1/2 of original image with image, need to prove that processing involved in the practical application comprises cutting, convergent-divergent, format conversion and color range, brightness, contrast, form and aspect, saturation degree, many-sided processing such as monochromatic gradual change.
Preferably, described method, is screened file under the current path according to preset rules at S101, obtains also to comprise before the image sequence file list of file names:
S100 sets rule according to the filename of the image file that needs to handle.
Preferably, described rule acquiescence is nonnumeric part unanimity in the image file name.
Therefore be introduced by above-mentioned example, current need the processing the racing car image file of bmp form needs to set corresponding rule, adopts that nonnumeric part is consistent to be set, and the rule that sets is: " racing car _ * .bmp ".Need to prove that can set other rules in actual the use, identical such as image file size, perhaps creation-time belongs to certain time period, or extension name unanimity or the like various ways, be the same based on core concept, narrate no longer one by one here.
Preferably, described method S101 screens file under the current path according to preset rules, obtains the image sequence file list of file names and comprises following substep:
S1 screens file under the current path according to the rule of setting, and obtains legal image file;
The same example by being supposed is introduced, with the rule that sets the file under the current path is screened, can get access to the image that meets described rule like this, specific in the example be meet rule " racing car _ * .bmp " from racing car 000.bmp, racing car 001.bmp, racing car 002.bmp, racing car 003.bmp...... is up to 1,000 image files of racing car 999.bmp, need to prove, the rule that sets in practical application relates to the pathname of image file, the suffix name, filename, when primary filename and file sequence number name, may use pathname in the concrete screening, suffix name and primary filename go screening to obtain legal image file successively.
S2 deposits the filename of the image file that obtained with the form of formation, obtain the image sequence file list of file names.
By setting rule, according to the rule that sets the file under the current path is screened, acquire legal image file, and the filename of the image file that obtained deposited with the form of tabulation, obtain the image sequence file list of file names, specific in the example from racing car 000.bmp, racing car 001.bmp, racing car 002.bmp, racing car 003.bmp...... distinguishes corresponding sequence number up to each image file of racing car 999.bmp, as corresponding respectively sequence number is from 000 to 999, deposited the filename of image file in actual the depositing, for succinctly being convenient to use in the image sequence file list of file names can also be main depositing with the sequence number, also promptly represents pairing image file with sequence number.
S102, the processing requirements of setting single image file;
Be introduced according to the processing in the example, set the processing requirements of single image file, wherein, any one in described single can correspondingly the use from 000 to 999 these thousand image files.
Preferably, described processing requirements comprises the processing requirements of cutting, convergent-divergent, format conversion, gray scale, color range, saturation degree aspect.
Concrete, carry out cutting as edge with image file, perhaps a kind of image file of form is converted to the image file of another kind of form according to demand or gray scale, color range, the saturation degree of image file are regulated or the like.In the present embodiment, being treated to of carrying out is reduced into 1/2 of original image with image, and what therefore corresponding processing requirements was just set image is scaled 1/2 of original image.
S103 according to the processing requirements of single image file, reads each image file in the tabulation in regular turn, and it is carried out identical processing.
By the processing requirements of single image file is set, can be according to the processing requirements that sets, in regular turn each image file in the resulting image sequence file tabulation is carried out identical processing, thereby finish the batch processing of image file fast, saved a large amount of time, also avoid each image file all will open and read the phenomenon that takies a large amount of spaces, saved a large amount of time and space resources.
Embodiment two:
With reference to Fig. 2, show the structure drawing of device of a kind of image sequence batch processing of the present invention, described device specifically comprises:
Filename tabulation acquisition module A1 is used for according to preset rules, and file under the current path is screened, and obtains the image sequence file list of file names; Store the current a plurality of similar image file that needs processing under the described path;
The first setting module A2 is used to set the processing requirements of single image file;
Processing module A3 is used for the processing requirements according to the single image file, reads each image file in the tabulation in regular turn, and it is carried out identical processing.
Preferably, described device also comprises:
The second setting module A4, the image file name that is used for handling according to needs is set rule.
Preferably, described filename tabulation acquisition module A1 comprises following submodule:
First obtains submodule A11, is used for according to the rule of setting file under the current path being screened, and obtains legal image file;
Second obtains submodule A12, and the filename that is used for the image file that will be obtained is deposited with the form of formation, obtains the image sequence file list of file names.
In the present embodiment, tabulate acquisition module A1 according to preset rules by filename, file under the current path is screened, obtain the image sequence file list of file names, store the current a plurality of similar image file that needs processing under the described path, first setting module is set the processing requirements at single image file in the tabulation, processing module A3 is according to the processing requirements of single image file, read each image file in the tabulation in regular turn, it is carried out identical processing, thereby finished the batch processing of image file fast, saved the time, improved work efficiency.
Need to prove that the core concept of the method and apparatus of a kind of image sequence batch processing of the present invention can also be applied in the mass disposal of other mass file.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For device embodiment, because it is similar substantially to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
More than the method and apparatus of a kind of image sequence batch processing provided by the present invention is described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (8)

1. the method for an image sequence batch processing is characterized in that, described method comprises:
According to preset rules, file under the current path is screened, obtain the image sequence file list of file names; Store the current a plurality of similar image file that needs processing under the described path;
Set the processing requirements of single image file;
According to the processing requirements of single image file, read each image file in the tabulation in regular turn, it is carried out identical processing.
2. method according to claim 1 is characterized in that, described method is screened file under the current path according to preset rules, obtains also to comprise before the image sequence file list of file names:
Filename according to the image file that needs to handle is set rule.
3. method according to claim 2 is characterized in that, and is described according to preset rules, and file under the current path is screened, and obtains the image sequence file list of file names and comprises following substep:
According to the rule of setting file under the current path is screened, obtain legal image file;
The filename of the image file that obtained is deposited with the form of formation, obtained the image sequence file list of file names.
4. method according to claim 3 is characterized in that:
What described rule was given tacit consent to is nonnumeric part unanimity in the image file name.
5. method according to claim 1 is characterized in that:
Described processing requirements comprises cutting, convergent-divergent, format conversion, gray scale, color range, the processing requirements of saturation degree aspect.
6. the device of an image sequence batch processing is characterized in that, described device comprises:
Filename tabulation acquisition module is used for according to preset rules, and file under the current path is screened, and obtains the image sequence file list of file names; Store the current a plurality of similar image file that needs processing under the described path;
First setting module is used to set the processing requirements of single image file;
Processing module is used for the processing requirements according to the single image file, reads each image file in the tabulation in regular turn, and it is carried out identical processing.
7. device according to claim 6 is characterized in that, described device also comprises:
Second setting module is used for the filename setting rule according to the image file of needs processing.
8. device according to claim 7 is characterized in that, described filename tabulation acquisition module comprises following submodule:
First obtains submodule, is used for according to the rule of setting file under the current path being screened, and obtains legal image file;
Second obtains submodule, and the filename that is used for the image file that will be obtained is deposited with the form of formation, obtains the image sequence file list of file names.
CN2009102442212A 2009-12-28 2009-12-28 Image sequence batch processing method and device Pending CN102110112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102442212A CN102110112A (en) 2009-12-28 2009-12-28 Image sequence batch processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102442212A CN102110112A (en) 2009-12-28 2009-12-28 Image sequence batch processing method and device

Publications (1)

Publication Number Publication Date
CN102110112A true CN102110112A (en) 2011-06-29

Family

ID=44174275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102442212A Pending CN102110112A (en) 2009-12-28 2009-12-28 Image sequence batch processing method and device

Country Status (1)

Country Link
CN (1) CN102110112A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419762A (en) * 2011-09-29 2012-04-18 河北省电力建设调整试验所 Method for loading scales for batches of metallographic digital photos
WO2013075592A1 (en) * 2011-11-21 2013-05-30 Tencent Technology (Shenzhen) Company Limited Method and system for image processing
CN103235797A (en) * 2013-04-09 2013-08-07 四三九九网络股份有限公司 Image size batch processing method and device
CN103377071A (en) * 2012-04-20 2013-10-30 宇龙计算机通信科技(深圳)有限公司 Data batch delete method and system
CN103530120A (en) * 2013-10-12 2014-01-22 深圳市中兴移动通信有限公司 Method and device for processing visualized objects
CN104346506A (en) * 2013-07-31 2015-02-11 Ge医疗系统环球技术有限公司 Processing and outputting method and device for medical images
CN105704396A (en) * 2014-11-24 2016-06-22 中兴通讯股份有限公司 Picture processing method and device
CN105893449A (en) * 2015-12-31 2016-08-24 乐视移动智能信息技术(北京)有限公司 Batch processing method and device for pictures
CN107330859A (en) * 2017-06-30 2017-11-07 广东欧珀移动通信有限公司 A kind of image processing method, device, storage medium and terminal
CN111223064A (en) * 2020-01-13 2020-06-02 广东医科大学 Image batch automatic enhancement and archiving method, device, equipment and storage medium

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419762A (en) * 2011-09-29 2012-04-18 河北省电力建设调整试验所 Method for loading scales for batches of metallographic digital photos
WO2013075592A1 (en) * 2011-11-21 2013-05-30 Tencent Technology (Shenzhen) Company Limited Method and system for image processing
US9047682B2 (en) 2011-11-21 2015-06-02 Tencent Technology (Shenzhen) Company Limited Method and system for image processing
CN103377071B (en) * 2012-04-20 2017-12-15 宇龙计算机通信科技(深圳)有限公司 A kind of batch data delet method and system
CN103377071A (en) * 2012-04-20 2013-10-30 宇龙计算机通信科技(深圳)有限公司 Data batch delete method and system
CN103235797A (en) * 2013-04-09 2013-08-07 四三九九网络股份有限公司 Image size batch processing method and device
CN103235797B (en) * 2013-04-09 2015-12-23 四三九九网络股份有限公司 A kind of method and apparatus of batch processing picture size
CN104346506A (en) * 2013-07-31 2015-02-11 Ge医疗系统环球技术有限公司 Processing and outputting method and device for medical images
CN104346506B (en) * 2013-07-31 2018-11-30 Ge医疗系统环球技术有限公司 The method and device that a kind of pair of medical image image is handled and exported
CN103530120A (en) * 2013-10-12 2014-01-22 深圳市中兴移动通信有限公司 Method and device for processing visualized objects
CN105704396A (en) * 2014-11-24 2016-06-22 中兴通讯股份有限公司 Picture processing method and device
CN105893449A (en) * 2015-12-31 2016-08-24 乐视移动智能信息技术(北京)有限公司 Batch processing method and device for pictures
CN107330859A (en) * 2017-06-30 2017-11-07 广东欧珀移动通信有限公司 A kind of image processing method, device, storage medium and terminal
CN107330859B (en) * 2017-06-30 2021-06-15 Oppo广东移动通信有限公司 Image processing method and device, storage medium and terminal
CN111223064A (en) * 2020-01-13 2020-06-02 广东医科大学 Image batch automatic enhancement and archiving method, device, equipment and storage medium
CN111223064B (en) * 2020-01-13 2023-05-23 广东医科大学 Image batch automation enhancement and archiving method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102110112A (en) Image sequence batch processing method and device
CA2605187C (en) Media timeline sorting
KR20130018701A (en) Multi-axis navigation
CN101465953A (en) Method for displaying picture and system for browsing digital television picture as well as television set-top box
CN113642673B (en) Image generation method, device, equipment and storage medium
CN102289484A (en) Method for scanning multimedia files of storage equipment based on android system
WO2002021822A3 (en) Methods and apparatus for streaming dicom images through data element sources and sinks
CN105573967A (en) Multi-format file online browsing method and system
CN105701165A (en) Browser mode switching method and switching device
US7941739B1 (en) Timeline source
CN108133000A (en) A kind of metadata storing method, device and server
CN102111573B (en) Image-text packaging system with image sequence batch processing
US7934159B1 (en) Media timeline
CN103049547A (en) iOS (iphone operation system) page processing method based on IDF (interactive document format)
CN112559642A (en) Data classification storage method and device and related products
US9503489B2 (en) Streaming data on data processes
CN101882300A (en) Method and device for stretching picture
CN104102728A (en) News list display method and device
EP2490137B1 (en) Apparatus and Method for Managing Content Data in Portable Terminal
CN103399752A (en) Mobile phone application chain reaction system and method based on Internet service
US20080313605A1 (en) Development framework for automated data throughput optimization
KR101965563B1 (en) Method and apparatus editing electronic documents
CN112579149A (en) Generation method, device, equipment and storage medium of model training program mirror image
CN105282594A (en) Method for replacing smart television wallpaper
CN102123252A (en) Method and device for realizing follow-up associated broadcast in graphic packaging application

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110629