CN1731834A - Method for processing TV subtitling words - Google Patents

Method for processing TV subtitling words Download PDF

Info

Publication number
CN1731834A
CN1731834A CN 200510088800 CN200510088800A CN1731834A CN 1731834 A CN1731834 A CN 1731834A CN 200510088800 CN200510088800 CN 200510088800 CN 200510088800 A CN200510088800 A CN 200510088800A CN 1731834 A CN1731834 A CN 1731834A
Authority
CN
China
Prior art keywords
subtitling
point
words
profile
expansion
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
CN 200510088800
Other languages
Chinese (zh)
Other versions
CN100377578C (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.)
Peking University
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University
Beijing Founder Electronics 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 Peking University, Beijing Founder Electronics Co Ltd filed Critical Peking University
Priority to CNB2005100888004A priority Critical patent/CN100377578C/en
Publication of CN1731834A publication Critical patent/CN1731834A/en
Application granted granted Critical
Publication of CN100377578C publication Critical patent/CN100377578C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Image Generation (AREA)

Abstract

The invention relates to a method for processing TV subtitling words, belonging to a video middle subtitling processing field. In the prior technology, the subtitling system is applied widely in the video field. The edge treatment of the subtitling adopts a 2D image treating method and introduces a plurality of filters at the edge of the image that it obtains an anti-aliasing and anti-dithering image so as to obtain a reliable and clear image. The invention realizes the 2D subtitling treatment and a 3D subtitling treatment and keeps the expanding and contracting curve of the words consistent with the original outline and realizes a specific effect of the words.

Description

A kind of processing method of TV subtitling words
Technical field
The present invention relates to captions process field in the video, be specifically related to a kind of processing method of TV subtitling words.
Background technology
Caption system is widely used at video field, also is the pith of using video technique.Because the resolution of TV is lower, is shown as interlacing scan, for obtaining to stablize distinct image, TV subtitling often need carry out special processings such as anti-aliasing and anti-dithering process.By the display device that dot matrix constitutes, image is displayed on the rounded coordinate, and continuity is destroyed, and straightway is shown as stair-stepping a plurality of short line segment, and anti-aliasing technology is used to eliminate this situation.Anti-dither technique can be avoided the flickering jitter phenomenon of line segment that causes because of interlacing scan, this processing of TV subtitling is more than other high-resolution, progressive scanned display device such as computer CRT (Cathode Ray Tube, cathode ray tube) complexity handled in the captions of equipment, can keep the clear profile of former literal through the TV subtitling of these processing.At present, the edge treated of captions all adopts the two dimensional image processing method, introduces various filters in edge of image, can obtain the image of anti-aliasing and anti-shake, and these methods have obtained very successful effect, are widely used in the television program designing.But the CULTURAL PROGRAMME that becomes increasingly abundant proposes higher requirement to captions quality and form, and three-dimensional literal will appear in the TV programme more continually, and existing technology also the method for not finding effectively to handle three-dimensional literal in the TV subtitling.
Summary of the invention
At the defective that exists in the prior art, the processing method that the purpose of this invention is to provide a kind of TV subtitling words, this method can obtain the expansion and the shrinkage curve of literal by calculating, guarantee that result of calculation and original text character wheel exterior feature are consistent, thereby realize the clear demonstration of three-dimensional literal in the TV subtitling; Simultaneously, this method can also realize the effect process of two-dimentional captions, and can make hardware-acceleratedly, reduces amount of calculation, has guaranteed real-time.
For reaching above purpose, the technical solution used in the present invention is: a kind of processing method of TV subtitling words may further comprise the steps:
(1) from character library, obtains the outline data of TV subtitling words, curve data interpolation wherein, consequently straight line array;
(2) calculate the offset linear of text profile in the TV subtitling, offset linear is corresponding to the straightway on the former profile, the expansion of literal or shrink profile and seal, and with former profile not at grade;
(3) set up the expanding noodles and the contraction front of literal, use can reach the texture of anti-aliasing and anti-shake effect and fill expanding noodles and contraction front.
Further, have better effect for making the present invention, in the step (1), obtain the outline data of TV subtitling words from character library, be meant from the font of outline font and obtain outline data, it is crossing that the font in the described character library is that profile does not have.
Further, have better effect, in the step (1), from character library, obtain the outline data of TV subtitling words, and when curve data was converted to the straight line array, the size of straightway was determined by model accuracy after the interpolation for making the present invention.
Further, have better effect for making the present invention, level and smooth for making the turning in the step (2) if angle is greater than 180 degree between the adjacent vector, adopt following two kinds of methods to increase the control point, specific as follows:
(1) length of intersection point of two vectors of distance is to expand and contract by distance on the angular bisector between two vectors this o'clock;
Or (2) this some control point that is curve, on the angular bisector between two vectors, the length of the intersection point of two vectors of distance is to expand and contract by distance.Article one, the starting point of the terminal point of skew line, control point and second skew line constitutes the profile of describing expansion or shrinkage curve.
Further again, for making the present invention have better effect, when angle increases the control point greater than 180 degree between the adjacent vector, if the distance of this control point and calculated expansion point or constriction point is in the model accuracy scope, then merge this control point to expansion point or constriction point, can reduce the quantity that constitutes contoured surface like this, and image is more level and smooth; Do not need to calculate for the straight line that constitutes by coincide point.
Further, have better effect, in the step (2),,, utilize the Z-direction skew, make and divide invisible away from the hand-deliver fork of profile with the intersection of the face of generation if angle is less than 180 degree between the adjacent vector for making the present invention; All points that newly calculate are increased the Z coordinate data, make expansion line, shrinkage front and original text character wheel exterior feature have different Z coordinate.
Further, have better effect for making the present invention, in the step (3), set up the expanding noodles and the contraction front of literal, concrete grammar is as follows:
(1) with the straightway on the former profile and the expansion point that calculates of straightway or constriction point 4 formation face thus.
(2) for the situation of inserting point is arranged, by on the profile a bit with insert curve and constitute face.
Effect of the present invention is: adopt method of the present invention to handle TV subtitling, not only can realize the effect process of two-dimentional captions, and can realize the processing of three-dimensional captions, the expansion that obtains by calculating and the face of contraction, can be used as anti-aliasing and anti-dithering process, it is more clear that TV subtitling ground shows; This method has kept the corresponding relation of former profile point and expansion or constriction point simultaneously, makes things convenient for the later stage to play up operation; And memory consumption reduces; Can realize hardware-acceleratedly, provide the basis for handling in real time; Special effects does not rely on special hardware, and has increased the special effects kind.
Description of drawings
Fig. 1 is the flow chart of the method for the invention;
Fig. 2 is an extension cord schematic diagram of asking straight line;
Fig. 3 be when adjacent vector when the angle of direction of advance is spent less than 180, form cross facet, eliminate the cross facet schematic diagram with the Z buffering area;
Fig. 4 be when adjacent vector when the angle of direction of advance is spent greater than 180, need to add the control point, make the level and smooth schematic diagram in turning.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments.
At first, the literal outside, angle inboard and two vectors are done to give a definition: the text profile outside is an expansion direction, and the inboard is a shrinkage direction.If the outline of literal is counterclockwise, then the left side along direction of advance is the outside, is inboard along the right side of direction of advance; Otherwise, be the outside along the right side of direction of advance, be inboard along the left side of direction of advance.Expanding noodles and contraction front general designation epitaxial surface.Article two, the angle of vector is meant from the second vector in the counterclockwise direction angle article one vector.
In Fig. 2, Fig. 3 and Fig. 4, slightly black solid line is represented text profile, the direction of advance of arrow points text profile, and slightly black dotted line is represented the skew of contour vector; With the dotted line of profile straight line parallel be the expansion line of literal, the dotted line of fifth wheel profile and expansion line is the normal on the profile point.
As shown in Figure 1, a kind of processing method of TV subtitling words may further comprise the steps:
(1) obtain the outline data of TV subtitling words from character library, curve data interpolation wherein, the result is the straight line array.Obtain the outline data of TV subtitling words from character library, be meant from the font of outline font and obtain outline data, it is crossing to require font in this character library to be that profile does not have.From character library, obtain the outline data of TV subtitling words, need be converted to straight line to curve, according to the size of straightway after the model accuracy decision interpolation of expectation.
(2) Fig. 2 supposes all among Fig. 3 and Fig. 4 that the character library profile is a clockwise direction, and calculates the outside, and inboard computational methods similarly.
Calculate the offset linear of text profile in the TV subtitling, offset linear is corresponding to the straightway on the former profile, the expansion of literal or shrink profile and seal, and with former profile not at grade.If angle the situation that adjacent epitaxial surface does not have intersection promptly occurs greater than 180 degree between the adjacent vector, increase the control point, make the turning level and smooth; If angle is less than 180 degree between the adjacent vector, promptly epitaxial surface has intersection, utilizes the Z-direction skew, keeps the intersection information of relevant face; All points that newly calculate are increased the Z coordinate data, make expansion line, shrinkage front and original text character wheel exterior feature have different Z coordinate;
Calculate the method for offset linear:, calculate side-play amount with normal direction along the direction that text profile advances; Each bar straight line of describing profile is calculated two offset points, expansion line and shrinkage front that these 2 definite straight lines are exactly this straight line; End point to profile adopts following method to calculate:
The processing of particular point:
The profile of literal varies, and adjacent two straight lines are pressed vector calculate angle, in two kinds of situation:
The first, as shown in Figure 4,, make the turning level and smooth if angle increases the control point greater than 180 degree with suitable method between adjacent two vectors.The following two kinds of methods of the concrete employing of described suitable method:
1) length of intersection point of two vectors of distance is to expand and contract by distance on the angular bisector between two vectors this o'clock;
Or 2) this some control point that is curve, on the angular bisector between two vectors, the length of the intersection point of two vectors of distance is to expand and the twice of contract by distance.Article one, the starting point of the terminal point of skew line, this control point and second skew line constitutes the profile of describing expansion or shrinkage curve.
Optimization method:, can reduce the quantity that constitutes contoured surface like this, and image is more level and smooth in permissible range if two control point distances of a. can merge.
B. do not need to calculate for the straight line that constitutes by coincide point.
The second, as shown in Figure 3, if angle is less than 180 degree between adjacent two vectors, with the intersection of the face of generation, handle (3) directly set by step.
(3) set up the expanding noodles and the contraction front of literal, use can reach the texture of anti-aliasing and anti-shake effect and fill expanding noodles and contraction front.
Specifically comprise following method:
1) with the straightway on the former profile and the expansion point that calculates of line segment or constriction point 4 formation face thus.
2) for the situation of inserting point is arranged, by on the profile a bit with insert line segment 3 constitute face.
The crossing processing of epitaxial surface: the extension profile that calculates by method of the present invention will produce a large amount of intersections inevitably, between expanding noodles and the expanding noodles, all have crossing situation between expanding noodles and the former figure.If calculate these crosspoints and judge that available point will increase amount of calculation greatly.In the present embodiment, the way of taking the Z buffering area is eliminated invisible point when graphing, extension point and former profile point are separated on Z-direction, utilizes the Z buffering area to judge cross section.
Method of the present invention is not limited to the embodiment described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other execution mode, belongs to technological innovation scope of the present invention equally.

Claims (8)

1. the processing method of a TV subtitling words may further comprise the steps:
(1) from character library, obtains the outline data of TV subtitling words, curve data interpolation wherein, consequently straight line array;
(2) calculate the offset linear of text profile in the TV subtitling, offset linear is corresponding to the straightway on the former profile, the expansion of literal or shrink profile and seal, and with former profile not at grade;
(3) set up the expanding noodles and the contraction front of literal, use can reach the texture of anti-aliasing and anti-shake effect and fill expanding noodles and contraction front.
2. the processing method of a kind of TV subtitling words as claimed in claim 1, it is characterized in that: in the step (1), obtain the outline data of TV subtitling words from character library, be meant from the font of outline font and obtain outline data, it is crossing that the font in the described character library is that profile does not have.
3. the processing method of a kind of TV subtitling words as claimed in claim 2, it is characterized in that: in the step (1), from character library, obtain the outline data of TV subtitling words, and when curve data was converted to the straight line array, the size of straightway was determined by model accuracy after the interpolation.
4. the processing method of a kind of TV subtitling words as claimed in claim 1 is characterized in that: level and smooth for making the turning in the step (2) if angle is greater than 180 degree between the adjacent vector, and adopt following two kinds of methods to increase the control point, specific as follows:
1) length of intersection point of two vectors of distance expands and contract by distance exactly on the angular bisector between two vectors this o'clock;
Or 2) this some control point that is curve, on the angular bisector between two vectors, the length of the intersection point of two vectors of distance is expansion and contract by distance, and the starting point of the terminal point of article one skew line, control point and second skew line constitutes the profile of describing expansion or shrinkage curve.
5. the processing method of a kind of TV subtitling words as claimed in claim 4, it is characterized in that: when angle increases the control point greater than 180 degree between the adjacent vector, if the distance of this control point and calculated expansion point or constriction point in the model accuracy scope, then merges this control point to expansion point or constriction point.
6. the processing method of a kind of TV subtitling words as claimed in claim 4 is characterized in that: when angle increases the control point greater than 180 degree between the adjacent vector, do not need to calculate for the straight line that is made of coincide point.
7. the processing method of a kind of TV subtitling words as claimed in claim 1 is characterized in that: in the step (2), if angle is less than 180 degree between the adjacent vector, with the intersection of the face of generation, utilize the Z-direction skew, make and divide invisible away from the hand-deliver fork of profile; All points that newly calculate are increased the Z coordinate data, make expansion line, shrinkage front and original text character wheel exterior feature have different Z coordinate.
8. the processing method of a kind of TV subtitling words as claimed in claim 1, it is characterized in that: in the step (3), set up the expanding noodles and the contraction front of literal, concrete grammar is as follows:
(1) with the straightway on the former profile and the expansion point that calculates of straightway or constriction point 4 formation face thus;
(2) for the situation of inserting point is arranged, by on the profile a bit with insert curve and constitute face.
CNB2005100888004A 2005-08-02 2005-08-02 Method for processing TV subtitling words Expired - Fee Related CN100377578C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100888004A CN100377578C (en) 2005-08-02 2005-08-02 Method for processing TV subtitling words

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100888004A CN100377578C (en) 2005-08-02 2005-08-02 Method for processing TV subtitling words

Publications (2)

Publication Number Publication Date
CN1731834A true CN1731834A (en) 2006-02-08
CN100377578C CN100377578C (en) 2008-03-26

Family

ID=35964120

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100888004A Expired - Fee Related CN100377578C (en) 2005-08-02 2005-08-02 Method for processing TV subtitling words

Country Status (1)

Country Link
CN (1) CN100377578C (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102419B (en) * 2007-07-10 2010-06-09 北京大学 A method for caption area of positioning video
CN101964915A (en) * 2009-07-23 2011-02-02 索尼公司 The method and the program of receiving equipment, communication system, combination captions and stereo-picture
CN102084659A (en) * 2009-05-12 2011-06-01 索尼公司 Data structure, recording medium, reproducing device, reproducing method, program, and program storage medium
CN102123315A (en) * 2010-12-30 2011-07-13 广州市聚晖电子科技有限公司 High-definition display method
CN102177725A (en) * 2009-08-18 2011-09-07 索尼公司 Reproducing device, reproducing method, data structure, recording medium, recording device, recording method, and program
CN102483858A (en) * 2009-08-17 2012-05-30 三星电子株式会社 Method and apparatus for processing signal for three-dimensional reproduction of additional data
CN101616269B (en) * 2008-06-27 2012-11-28 新奥特(北京)视频技术有限公司 Method for generating shadow caption based on structure of characters
CN102917176A (en) * 2011-08-05 2013-02-06 北大方正集团有限公司 Three-dimensional stereoscopic parallax subtitle generating method
CN101764947B (en) * 2008-11-04 2013-05-01 新奥特(北京)视频技术有限公司 Method for bordering inner edge and outer edge to polygon of vector outline of subtitle object
CN101616274B (en) * 2008-06-27 2013-09-18 新奥特(北京)视频技术有限公司 Device for generating shadow captions by texture coordinates

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05127647A (en) * 1991-11-01 1993-05-25 Hitachi Ltd Character generation device
CN1033110C (en) * 1992-09-01 1996-10-23 寅市和男 Input and output device of characters, logomarks, illustrations and input and output method of same
US5461703A (en) * 1992-10-13 1995-10-24 Hewlett-Packard Company Pixel image edge enhancement method and system
CN1038161C (en) * 1993-12-28 1998-04-22 张贻明 Enlargement of characters by sample function curves
CN1147823C (en) * 1999-07-06 2004-04-28 无敌科技(西安)有限公司 Triangular vector approximating method of digitalized character contour
JP3791259B2 (en) * 1999-10-07 2006-06-28 セイコーエプソン株式会社 Outline smoothing processing method

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102419B (en) * 2007-07-10 2010-06-09 北京大学 A method for caption area of positioning video
CN101616274B (en) * 2008-06-27 2013-09-18 新奥特(北京)视频技术有限公司 Device for generating shadow captions by texture coordinates
CN101616269B (en) * 2008-06-27 2012-11-28 新奥特(北京)视频技术有限公司 Method for generating shadow caption based on structure of characters
CN101764947B (en) * 2008-11-04 2013-05-01 新奥特(北京)视频技术有限公司 Method for bordering inner edge and outer edge to polygon of vector outline of subtitle object
CN102625123A (en) * 2009-05-12 2012-08-01 索尼公司 Playing device
CN102084659A (en) * 2009-05-12 2011-06-01 索尼公司 Data structure, recording medium, reproducing device, reproducing method, program, and program storage medium
CN102625123B (en) * 2009-05-12 2015-01-07 索尼公司 Playing device
CN101964915A (en) * 2009-07-23 2011-02-02 索尼公司 The method and the program of receiving equipment, communication system, combination captions and stereo-picture
CN102483858A (en) * 2009-08-17 2012-05-30 三星电子株式会社 Method and apparatus for processing signal for three-dimensional reproduction of additional data
CN102611905A (en) * 2009-08-18 2012-07-25 索尼公司 Reproducing apparatus and reproducing method, data structure, recording medium, recording apparatus and recording method, and program
CN102177725A (en) * 2009-08-18 2011-09-07 索尼公司 Reproducing device, reproducing method, data structure, recording medium, recording device, recording method, and program
CN103024412A (en) * 2009-08-18 2013-04-03 索尼公司 Reproducing apparatus reproducing method, recording apparatus and recording method
CN102177725B (en) * 2009-08-18 2014-03-12 索尼公司 Reproducing device, reproducing method, recording device and recording method
CN103024412B (en) * 2009-08-18 2015-10-28 索尼公司 Reproducer and reproducting method and recording equipment and recording method
CN102123315A (en) * 2010-12-30 2011-07-13 广州市聚晖电子科技有限公司 High-definition display method
CN102917176A (en) * 2011-08-05 2013-02-06 北大方正集团有限公司 Three-dimensional stereoscopic parallax subtitle generating method
CN102917176B (en) * 2011-08-05 2015-08-26 新奥特(北京)视频技术有限公司 A kind of production method of three-dimensional stereoscopic parallax subtitle

Also Published As

Publication number Publication date
CN100377578C (en) 2008-03-26

Similar Documents

Publication Publication Date Title
CN1731834A (en) Method for processing TV subtitling words
Wu Adaptive split-and-merge segmentation based on piecewise least-square approximation
CN106875437B (en) RGBD three-dimensional reconstruction-oriented key frame extraction method
CN111223053A (en) Data enhancement method based on depth image
JP7209044B2 (en) Key logo recognition method, device, equipment, storage medium, and program for video
CN103024421B (en) Method for synthesizing virtual viewpoints in free viewpoint television
CN101841730A (en) Real-time stereoscopic vision implementation method based on FPGA
US6771261B2 (en) Error metric for mesh simplification processing
CN106558033A (en) Binary Images Processing method based on morphological dilations erosion algorithm
CN1181691C (en) Vidio motion estimation method
CN110163894B (en) Sub-pixel level target tracking method based on feature matching
CN101772803A (en) Image signal processing device
CN108416729B (en) Device and method for realizing anti-aliasing of line segment in GPU
CN112634127B (en) Unsupervised stereo image redirection method
CN109087326A (en) Otsu algorithm based on local auto-adaptive
Berger et al. QuickSRNet: Plain Single-Image Super-Resolution Architecture for Faster Inference on Mobile Platforms
JP4481343B2 (en) Method and apparatus for enabling generation of FM grid points at high speed
CN1123928A (en) Apparatus and method for producing a three-dimensional display on a vided display
CN101365133B (en) DCT domain interposing and rounding error compensation process
CN101268623B (en) Method and device for creating shape variable blocks
CN115086665A (en) Error code masking method, device, system, storage medium and computer equipment
CN1741618A (en) A fast sub-picture element movement estimating method
CN111783979A (en) Image similarity detection hardware accelerator VLSI structure based on SSIM algorithm
CN1139041C (en) Method and apparatus for half pixel SAD generation
CN114519764A (en) Three-dimensional model construction method and device and computer readable storage medium

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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20060208

Assignee: China Digital Video (Beijing) Limited

Assignor: Beijing Beida Founder Electronics Co., Ltd.|Peking University

Contract record no.: 2013990000782

Denomination of invention: Method for processing TV subtitling words

Granted publication date: 20080326

License type: Exclusive License

Record date: 20131122

LICC Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080326

Termination date: 20190802