CN110351605A - Method for processing caption and device - Google Patents

Method for processing caption and device Download PDF

Info

Publication number
CN110351605A
CN110351605A CN201910755712.7A CN201910755712A CN110351605A CN 110351605 A CN110351605 A CN 110351605A CN 201910755712 A CN201910755712 A CN 201910755712A CN 110351605 A CN110351605 A CN 110351605A
Authority
CN
China
Prior art keywords
subtitle
target
size
terminal
scaling
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
CN201910755712.7A
Other languages
Chinese (zh)
Other versions
CN110351605B (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.)
Vidaa Netherlands International Holdings BV
Original Assignee
Haixin Electronic Technology (shenzhen) 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 Haixin Electronic Technology (shenzhen) Co Ltd filed Critical Haixin Electronic Technology (shenzhen) Co Ltd
Priority to CN201910755712.7A priority Critical patent/CN110351605B/en
Publication of CN110351605A publication Critical patent/CN110351605A/en
Application granted granted Critical
Publication of CN110351605B publication Critical patent/CN110351605B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/278Subtitling

Abstract

The present invention relates to a kind of method for processing caption and devices, belong to field of display technology.The described method includes: obtaining subtitle size threshold;Whether the size of subtitle in a first direction after judging scaling is less than the subtitle size threshold, and the first direction is either direction;When the size of subtitle in a first direction after the scaling is less than the subtitle size threshold, forbid showing the subtitle.The invention avoids terminals because showing that invalid subtitle generates the wasting of resources.

Description

Method for processing caption and device
Technical field
The present invention relates to field of display technology, in particular to a kind of method for processing caption and device.
Background technique
With the development of science and technology, supporting the terminal of caption function more prevalent, which refers to: terminal is being adopted During playing video with video window, the size of subtitle with the proportional variation of size of the video window function.For example, When video window maximizes (that is to say full screen display), the size of subtitle can also be amplified to the subtitle accordingly and can show Full-size.When video window reduces (wicket is shown), the size of subtitle can also be contracted to accordingly the subtitle can With the minimum dimension of display.
But when video window is contracted to certain size, since the size of subtitle in the video of its broadcasting accordingly reduces, Accordingly, it is possible to cause user that can not identify the subtitle, to generate invalid subtitle, terminal is ultimately caused because showing the invalid subtitle Generate the wasting of resources.
Summary of the invention
The present invention provides a kind of method for processing caption and devices, can solve terminal because showing that the invalid subtitle generates money Source waste.The technical solution is as follows:
In a first aspect, providing a kind of method for processing caption, it is applied to terminal, which comprises
Obtain subtitle size threshold;
Whether the size of subtitle in a first direction after judging scaling is less than the subtitle size threshold, the first party To for either direction;
When the size of subtitle in a first direction after the scaling is less than the subtitle size threshold, forbid showing institute State subtitle.
Second aspect provides a kind of captions process device, is applied to terminal, the captions process device includes for holding The modules of any method for processing caption of the above-mentioned first aspect of row.
The third aspect provides a kind of captions process device, comprising:
Processor;
For storing the memory of the executable instruction of the processor;
Wherein, the processor is when running the executable instruction, and it is any described to can be realized above-mentioned first aspect Method for processing caption.
Fourth aspect provides a kind of readable storage medium storing program for executing, instruction is stored in the readable storage medium storing program for executing;
When described instruction is run on processing component, so that the above-mentioned first aspect of processing component execution is any described Method for processing caption.
Technical solution provided by the invention can include the following benefits:
Method for processing caption and device provided in an embodiment of the present invention, can be by the subtitle after judgement scaling in first party Whether upward size is less than subtitle size threshold, so that the size of subtitle in a first direction after scaling is less than subtitle ruler When very little threshold value, forbid showing subtitle.Therefore, when video window is contracted to certain size, the subtitle after leading to scaling is in first party It, can be by forbidding showing the wasting of resources that subtitle generates to avoid terminal because showing invalid subtitle when upward undersized.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited Invention.
Detailed description of the invention
In order to illustrate more clearly of the embodiment of the present invention, attached drawing needed in embodiment description will be made below Simply introduce, it should be apparent that, drawings in the following description are only some embodiments of the invention, common for this field For technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the schematic diagram at interface where video window in a kind of display area of terminal;
Fig. 2 is the schematic diagram at interface where video window in the display area of another terminal;
Fig. 3 is a kind of flow diagram of method for processing caption provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another method for processing caption provided in an embodiment of the present invention;
Fig. 5 is a kind of flow diagram for obtaining subtitle size threshold provided in an embodiment of the present invention;
Fig. 6 is the interface schematic diagram that a kind of user provided in an embodiment of the present invention inputs target eyesight data;
Fig. 7 is the interface schematic diagram that a kind of user provided in an embodiment of the present invention inputs target viewing distance;
Fig. 8 is a kind of schematic illustration for calculating viewing coefficient provided in an embodiment of the present invention;
Fig. 9 is a kind of block diagram of captions process device provided in an embodiment of the present invention;
Figure 10 is a kind of block diagram for obtaining module provided in an embodiment of the present invention;
Figure 11 is the block diagram of another captions process device provided in an embodiment of the present invention;
Figure 12 is a kind of structural representation of captions process device provided in an embodiment of the present invention.
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
TV or set-top box of digital video broadcasting (Digital Video Broadcasting, the DVB) standard of support etc. Terminal usually all supports subtitle (subtitle) function.Pass through electronic program guides (Electronic Program in user Guide, EPG) or the video window of other application when playing video, the size of subtitle can be according to the video window in video window The position and size that middle video is currently shown carry out equal proportion scaling.As shown in Figure 1, (that is to say in the display area of terminal 01 The display area of the display screen of terminal 01) in, when video window A is maximized and (be that is to say that video window A is displayed in full screen) When, the size of subtitle S can also be amplified to the full-size that subtitle S can be shown accordingly.As shown in Fig. 2, with Fig. 1 phase In the display area of same terminal 01, when video window A is contracted to one jiao of the display area of the terminal 01, subtitle S's Size also reduces accordingly.
But when video window is contracted to certain size, the size of subtitle accordingly reduces in the video of broadcasting, because This, may cause it is undersized due to the subtitle so that user can not identify the subtitle, to generate invalid subtitle, finally Cause terminal because showing that the invalid subtitle generates the wasting of resources.
It, can be with referring to FIG. 3, it illustrates a kind of flow diagram of method for processing caption provided in an embodiment of the present invention It solves the above problems to a certain extent.The method for processing caption can be applied to terminal, may include steps of.
Step 101 obtains subtitle size threshold.
Step 102 judges whether the size of the subtitle after scaling in a first direction is less than subtitle size threshold, first party To for either direction.
When step 103, the size of subtitle after scaling in a first direction are less than subtitle size threshold, forbid showing word Curtain.
It, can be by the subtitle after judgement scaling the in conclusion method for processing caption provided in an embodiment of the present invention Whether the size on one direction is less than subtitle size threshold, so that the size of subtitle in a first direction after scaling is less than word When curtain size threshold, forbid showing subtitle.Therefore, when video window is contracted to certain size, subtitle after leading to scaling is the It, can be by forbidding showing subtitle to avoid terminal because showing resource wave that invalid subtitle generates when undersized on one direction Take.
Referring to FIG. 4, it illustrates another method for processing caption provided in an embodiment of the present invention.As shown in figure 4, the word Curtain processing method can be applied to terminal, may include steps of.
Step 201 obtains subtitle size threshold.
The subtitle size threshold can reflect user under its eyesight and certain distance, human eye when watching collection of objects, Clarity is greater than or equal to the minimum length of the object of clarity threshold in a second direction in collection of objects.Exemplary, this Two directions can be either direction.When second direction is gravity direction, which be may be considered in a spacing From place, the row for the subtitle that user can see is high (recommend_height).Wherein, which can be end The data for directly inputting user are held to store, in this way so that the terminal can directly acquire the subtitle size threshold. Alternatively, the subtitle size threshold is also possible to what terminal was determined by specific calculation.
Step 202 determines corresponding first number of pixels of subtitle size threshold.
Wherein, the product of size of the subtitle size threshold equal to the pixel of the first number of pixels and terminal in a first direction. It that is to say the ratio between the size of first number of pixels in a first direction for the pixel of subtitle size threshold and terminal.The first party To can be either direction.For example, the first direction can be the line direction or column direction of pixel in terminal.
Optionally, the size of the pixel of terminal in a first direction can according to the size of the terminal in a first direction and The resolution ratio of the terminal determines.It is exemplary, it is assumed that 4K (a kind of resolution standard) TV that terminal is 70 cun.It is shown in the terminal The width in region is 1550.6mm (millimeter), and height is 872.2mm, and resolution ratio is 4096 × 2160.And assume that first direction is The column direction (that is to say, the first direction be terminal height direction) of pixel in terminal, then the terminal is in a first direction Size be 872.2mm, then the size of the pixel of the terminal in a first direction be 872.2 ÷, 2160 ≈ 0.4038mm.? In a kind of situation, subtitle size threshold is 6.09mm, then corresponding first number of pixels of subtitle size threshold is 6.09 ÷ 0.4038≈15.In a second situation, subtitle size threshold is 12.18mm, then corresponding first pixel of subtitle size threshold Number is 12.18 ÷, 0.4038 ≈ 30.
Step 203 obtains corresponding second number of pixels of size of subtitle in a first direction after scaling.
Wherein, the size of the subtitle after the scaling in a first direction is equal to the pixel of the second number of pixels and terminal the The product of size on one direction.It that is to say that second number of pixels is the size and terminal of subtitle in a first direction after scaling Pixel the ratio between size in a first direction.
Continue by taking the example in above-mentioned steps 202 as an example, it is assumed that in the first scenario, the subtitle after scaling is in first party Upward size is 5.6532mm, then the second number of pixels is 5.6532 ÷ 0.4038=14.In the latter case, after scaling Subtitle size in a first direction be 11.7102mm, then the second number of pixels is 11.7102 ÷ 0.4038=29.
It should be noted that when using the number of pixel in the terminal to measure the size of subtitle in a first direction, Terminal can also directly acquire obtained second number of pixels of metering, without by the subtitle after scaling in a first direction Size is calculated.Reduce the calculation amount of terminal in this way.
Step 204, according to the first number of pixels and the second number of pixels, subtitle after judging scaling is in a first direction Whether size is less than subtitle size threshold.If the size of subtitle in a first direction after scaling is less than subtitle size threshold, Execute step 205;If the size of subtitle in a first direction after scaling is greater than or equal to subtitle size threshold, then follow the steps 206。
Terminal can compare the first number of pixels and the second number of pixels.When second number of pixels is less than the first pixel When number, the size of subtitle in a first direction after determining the scaling is less than subtitle size threshold.When second number of pixels is big When the first number of pixels, the size of subtitle in a first direction after determining the scaling is greater than or equal to subtitle size Threshold value.It is exemplary, continue by taking the example in above-mentioned steps 203 as an example.In the first scenario, since the second number of pixels is 14 Less than the first number of pixels 15, accordingly, it is determined that the size of subtitle in a first direction after scaling is less than subtitle size threshold.? Under second situation, since the second number of pixels is 29 less than the first number of pixels 30, accordingly, it is determined that the subtitle after scaling is the Size on one direction is less than subtitle size threshold.
Step 205 forbids showing subtitle.
If the size of subtitle in a first direction after scaling is less than subtitle size threshold, the ruler of the subtitle after the scaling Very little too small, user can not identify the subtitle.It therefore, can be by forbidding showing the subtitle, to avoid terminal because showing invalidation word The wasting of resources that curtain generates.
Subtitle after step 206, display scaling.
If the size of subtitle in a first direction after scaling is greater than or equal to subtitle size threshold, user can be identified Subtitle after the scaling can normally show the subtitle after the scaling at this time, normally provide caption function for user.
It should be noted that above-mentioned steps 202 to step 204 is that terminal judges the subtitle after scaling in a first direction Whether size is less than a kind of implementation of subtitle size threshold.Terminal can also use other modes in the embodiment of the present invention, Whether the subtitle size in a first direction after judging scaling is less than subtitle size threshold, so that subtitle after scaling is the Size on one direction can execute step 205 when being less than subtitle size threshold.Subtitle after scaling is in a first direction Size can execute step 206 when being greater than or equal to subtitle size threshold.Such as: the subtitle after judgement scaling is in a first direction Size whether to be less than the mode of subtitle size threshold can be the mode that directly compares.The mode directly compared refers to directly Connect the size and subtitle size threshold of the subtitle after comparing scaling in a first direction.When terminal is using the method that directly compares, Then without executing above-mentioned steps 202 to step 204, it is directly based upon the comparison result directly compared, executes step 205 or step 206。
In conclusion method for processing caption provided in an embodiment of the present invention, in the eyesight data and sight for considering user It, can be by judging whether the size of the subtitle after scaling in a first direction is less than subtitle ruler in the case where seeing the factors such as distance Very little threshold value when so that the size of subtitle in a first direction after scaling being less than subtitle size threshold, forbids showing subtitle.Cause This when subtitle after leading to scaling in a first direction undersized, can pass through when video window is contracted to certain size Forbid showing the wasting of resources that subtitle generates to avoid terminal because showing invalid subtitle.Further, by forbidding showing subtitle It also avoids the invalid subtitle to block video, improves user experience, enhance viewing effect.
In the embodiment of the present invention, when above-mentioned subtitle size threshold needs terminal to be calculated, as shown in figure 5, above-mentioned step The process of acquisition subtitle size threshold may include: in rapid 201
Step 2011 receives target eyesight data and target viewing distance.
The target eyesight data can be the eyesight data of the user of terminal.The target viewing distance can be the people of user Eye to terminal distance.Wherein, target eyesight data can be the form of five member records, then the value model of the target eyesight data Enclosing can be [4.0,5.3].Alternatively, target eyesight data are also possible to the form of decimal record, then the target eyesight data Value range can be [0.1,2.0].
In embodiments of the present invention, terminal can directly receive user input target eyesight data and target viewing away from From.Alternatively, terminal can be by carrying out eyesight testing to user, thus according to the eyesight testing as a result, obtaining target eyesight Data and target viewing distance.
It is exemplary, as shown in fig. 6, it illustrates users in a kind of terminal provided in an embodiment of the present invention to input target eyesight The interface schematic diagram of data.The interface Z1 of target eyesight data in Fig. 6 may include eyesight (vision) printed words and multiple views The corresponding selection key X of force data and screen scroll J, multiple eyesight data can reflect the different eyesights of human eye respectively.With It family can also be in the interface Z1 of the target eyesight data shown by terminal, by selecting multiple eyesight data in step 2011 Corresponding selection key X, to input the eyesight data of the user.When there is no the view of user in the interface Z1 of current goal eyesight data When force data, user can find hiding eyesight data by pulling screen scroll J.The target eyesight number of terminal default According to can be 5.0 (that is to say 1.0).
Wherein, can only have the mark of the eyesight data of the form using five member records on selection key X.Alternatively, can also Only to have the mark of the eyesight data of the form using decimal record.Alternatively, can also have simultaneously using five member records and The mark of the eyesight data of the form of decimal record.When selection key X has the shape using five member records and decimal record simultaneously When the mark of the eyesight data of formula, which can satisfy different user and practises to the record of various forms of eyesight data It is used, improve the experience of user.
It is again exemplary, it is seen as shown in fig. 7, inputting target it illustrates user in a kind of terminal provided in an embodiment of the present invention See the interface schematic diagram of distance.The interface Z2 of target viewing distance may include the input frame Y of target viewing distance in Fig. 7, with And the corresponding prompt information of input frame Y " visual range (viewing distance) " of target viewing distance.Target viewing It may include the first input bit being arranged successively, decimal point, the second input bit and target viewing distance in the input frame Y of distance Unit (for example, m).Understandable to be, user can also be in the target viewing distance shown by terminal in step 2011 Interface Z2 input frame Y in input the target viewing distance of the user, which can be decimal.Wherein, eventually The target viewing distance of end default can be the farthest viewing distance stored in the terminal.
Step 2012, in the corresponding relationship of eyesight data and viewing coefficient, the corresponding target of inquiry target eyesight data Watch coefficient.
Wherein, eyesight data and eyesight are positively correlated, and negatively correlated with viewing coefficient.
Optionally, the corresponding viewing coefficient of eyesight data in corresponding relationship can be with are as follows: human eye is reflected in eyesight data Eyesight under when watching collection of objects, clarity is greater than or equal to the object of clarity threshold in a second direction in collection of objects Minimum length.The unit of the viewing coefficient can be mm.Wherein, which may include: and is greater than at a distance from human eye The object of distance threshold.Exemplary, which may include: that (sighting target can be E for multiple sighting targets in logarithmic visual acuity chart Word shape).Distance threshold can be 0.5m, 1m or 2m.
Since subsequent needs according to the viewing coefficient determine subtitle size threshold, second direction needs and above-mentioned the One direction is consistent.Exemplary, when first direction is the line direction of pixel in terminal, second direction is horizontal direction.Or Person, when first direction is the column direction of pixel in terminal, second direction is gravity direction.
Further alternative, terminal can store the subtitle tune that record has eyesight data and watches the corresponding relationship of coefficient Whole table.The terminal can inquire the corresponding target of target eyesight data in the subtitle adjustment table for recording the corresponding relationship Watch coefficient.
It is exemplary, it is assumed that collection of objects is the sighting target of multiple E word shapes in logarithmic visual acuity chart, and second direction is gravity Direction.Correspondingly, the minimum length of object in a second direction can be the minimum constructive height of object.Above-mentioned subtitle adjustment table can be with As described in Table 1.
Table 1
Eyesight data Watch coefficient
4.0 14.54
4.1 11.55
4.2 9.18
4.3 7.29
4.4 5.79
4.5 4.6
4.6 3.65
4.7 2.9
4.8 2.3
4.9 1.83
5.0 1.45
5.1 1.16
5.2 0.92
5.3 0.73
As shown in table 1, when eyesight data are 4.0, the corresponding viewing coefficient of the eyesight data can be 14.54.Eyesight number According to being 4.1, the corresponding viewing coefficient of the eyesight data can be 11.55.When eyesight data are 4.2, the eyesight data are corresponding Watching coefficient can be 9.18.
It should be noted that eyesight data can use the form of five member records, or the form using decimal record.That , which also can recorde the eyesight data using two kinds of forms.Above-mentioned table 1 only has with subtitle adjustment table record It is illustrated using the eyesight data instance of the form of five member records.
As shown in figure 8, it illustrates a kind of schematic illustrations for calculating viewing coefficient provided in an embodiment of the present invention.In object In the case that the clarity of body is above-mentioned clarity threshold, the minimum length of object in a second direction and above-mentioned distance threshold at Direct ratio.And object and human eye in the case where collection of objects includes multiple sighting targets in logarithmic visual acuity chart, in the collection of objects Distance when being usually 5m, it is clear in the collection of objects when human eye watches collection of objects under the eyesight that eyesight data are reflected It is sighting target side length (due to logarithmic visual acuity chart that degree, which is greater than or equal to the minimum length of the object of clarity threshold in a second direction, In, the length and width of sighting target are generally equal, and therefore, the minimum length of object in a second direction is properly termed as sighting target side length).Cause This, when distance threshold is 1m, viewing coefficient is usually sighting target side length and the ratio between 5.It is exemplary, it is assumed that sighting target side length is 7.27mm, when distance threshold is 1m, which is 1.45mm.
Optionally, which also may include the sighting target side length.Exemplary, as shown in table 2, table 2 is with eyesight number It is illustrated according to the eyesight data instance of the form of eyesight data and the decimal record for the form for including five member records.
Table 2
Eyesight data Sighting target side length Watch coefficient
4.0(0.1) 72.72 14.54
4.1(0.12) 57.76 11.55
4.2(0.15) 45.88 9.18
4.3(0.2) 36.45 7.29
4.4(0.25) 28.95 5.79
4.5(0.3) 23.00 4.6
4.6(0.4) 18.27 3.65
4.7(0.5) 14.51 2.9
4.8(0.6) 11.53 2.3
4.9(0.8) 9.16 1.83
5.0(1.0) 7.27 1.45
5.1(1.2) 5.78 1.16
5.2(1.5) 4.59 0.92
5.3(2.0) 3.64 0.73
As shown in table 2, when eyesight data are 4.0 (0.1), the corresponding sighting target side length of the eyesight data is 72.12, corresponding Watching coefficient can be 14.54.When eyesight data are 4.1 (0.12), the corresponding sighting target side length of the eyesight data is 57.76, right The viewing coefficient answered can be 11.55.When eyesight data are 4.2 (0.15), the corresponding sighting target side length of the eyesight data is 45.88, corresponding viewing coefficient can be 9.18.
Step 2013 watches coefficient and target viewing distance according to target, determines subtitle size threshold.
Wherein, which watches coefficient with target and target viewing distance is positively correlated.
Optionally, coefficient and target viewing distance are watched according to target, determines that the process of subtitle size threshold may include: Coefficient, target viewing distance and target formula are watched according to target, determines subtitle size threshold.Wherein, target formula can wrap It includes:L indicate subtitle size threshold, x indicate target viewing away from
From a indicates that distance threshold, W indicate that target watches coefficient.Exemplary, distance threshold a is usually 1m, and the target is public Formula can be L=x × W.As a=1, the target formula can simplify, to simplify terminal calculating process, reduce resource and disappear Consumption.
It is exemplary, it is assumed that distance threshold a=1m.In one case, it is assumed that target viewing distance x is 4.2m, target view Force data is 5.0.According to above-mentioned table 1 or table 2 it is found that viewing coefficient W is 1.45mm.Subtitle size threshold L=4.2 × 1.45= 6.09mm.In another case, it is assumed that target viewing distance x is 4.2m, and target eyesight data are 4.7.According to above-mentioned table 1 or Table 2 is it is found that viewing coefficient W is 2.9mm.Subtitle size threshold L=4.2 × 2.9=12.18mm.
It should be noted that the sequencing of method for processing caption step provided in an embodiment of the present invention can carry out suitably Adjustment, step according to circumstances can also accordingly be increased and decreased, anyone skilled in the art the invention discloses Technical scope in, the method that can readily occur in variation should be covered by the protection scope of the present invention, therefore no longer superfluous It states.
Referring to FIG. 9, it illustrates the embodiment of the present invention to provide a kind of block diagram of captions process device.Subtitle processing dress It sets and is applied to terminal, captions process device 100 includes:
Module 110 is obtained, for obtaining subtitle size threshold.
Judgment module 120, for judging whether the size of the subtitle after scaling in a first direction is less than subtitle size threshold Value, first direction is either direction.
Display module 130 when being less than subtitle size threshold for the size of subtitle after scaling in a first direction, is prohibited Only show subtitle.
Optionally, as shown in Figure 10, module 110 is obtained, comprising:
Receiving submodule 1101, for receiving target eyesight data and target viewing distance, target eyesight data are terminal User eyesight data, target viewing distance be user human eye to terminal distance.
Submodule 1102 is inquired, for inquiring target eyesight data in the corresponding relationship of eyesight data and viewing coefficient Corresponding target watches coefficient, wherein eyesight data and eyesight are positively correlated, and negatively correlated with viewing coefficient.
It determines submodule 1103, for watching coefficient and target viewing distance according to target, determines subtitle size threshold, word Curtain size threshold watches coefficient with target and target viewing distance is positively correlated.
Optionally, the corresponding viewing coefficient of eyesight data in corresponding relationship are as follows: the view that human eye is reflected in eyesight data When watching collection of objects under power, clarity is greater than or equal to the object of clarity threshold in a second direction most in collection of objects Small length.Wherein, collection of objects includes: the object for being greater than or equal to distance threshold at a distance from human eye.First direction is terminal The line direction of middle pixel, and second direction is horizontal direction;Alternatively, column direction of the first direction for pixel in terminal, and second Direction is gravity direction.
Optionally, it determines submodule 1103, is also used to:
Coefficient, target viewing distance and target formula are watched according to target, determines subtitle size threshold.Wherein, target is public Formula includes:L indicates subtitle size threshold, and x indicates that target viewing distance, a indicate that distance threshold, W indicate target Watch coefficient.
Optionally, as shown in figure 11, captions process device 100 further include:
First determining module 140, for determining corresponding first number of pixels of subtitle size threshold, subtitle size threshold etc. In the product of the size of the pixel of the first number of pixels and terminal in a first direction.
Second determining module 150, for obtaining corresponding second pixel of size of the subtitle after scaling in a first direction Number, the size of subtitle in a first direction after scaling are equal to the pixel of the second number of pixels and terminal in a first direction The product of size.
Judgment module 120, is also used to: according to the first number of pixels and the second number of pixels, the subtitle after judging scaling exists Whether the size on first direction is less than subtitle size threshold.When the second number of pixels is less than the first number of pixels, contracting is determined The size of subtitle in a first direction after putting is less than subtitle size threshold.When the second number of pixels is greater than or equal to the first pixel When number, the size of subtitle in a first direction after determining scaling is greater than or equal to subtitle size threshold.
Optionally, first direction is the line direction or column direction of pixel in terminal.
Optionally, collection of objects includes: multiple sighting targets in logarithmic visual acuity chart.
Optionally, submodule 1102 is inquired, is also used to: in the subtitle adjustment table for recording corresponding relationship, inquiring mesh It marks the corresponding target of eyesight data and watches coefficient.
In conclusion captions process device provided in an embodiment of the present invention, in the eyesight data and sight for considering user It, can be by judging whether the size of the subtitle after scaling in a first direction is less than subtitle ruler in the case where seeing the factors such as distance Very little threshold value when so that the size of subtitle in a first direction after scaling being less than subtitle size threshold, forbids showing subtitle.Cause This when subtitle after leading to scaling in a first direction undersized, can pass through when video window is contracted to certain size Forbid showing the wasting of resources that subtitle generates to avoid terminal because showing invalid subtitle.Further, by forbidding showing subtitle It also avoids the invalid subtitle to block video, improves user experience, enhance viewing effect.
The embodiment of the invention provides a kind of captions process devices, and as shown in figure 12, which includes: Processor 201;The memory 202 of executable instruction for storage processor 201.Wherein, processor 201 is executable in operation When instruction, any method for processing caption provided in an embodiment of the present invention can be realized.
The embodiment of the invention provides a kind of readable storage medium storing program for executing, instruction is stored in the readable storage medium storing program for executing.Work as instruction When being run on processing component, so that processing component executes any method for processing caption provided in an embodiment of the present invention.
The embodiment of the invention also provides a kind of computer program products comprising instruction, when computer program product is being counted When being run on calculation machine, so that computer executes method for processing caption provided in an embodiment of the present invention.
In the present invention, term " first " and " second " are used for description purposes only, and are not understood to indicate or imply phase To importance.Term " multiple " refers to two or more, unless otherwise restricted clearly.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.The present invention is directed to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are wanted by right It asks and points out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (10)

1. a kind of method for processing caption, which is characterized in that be applied to terminal, which comprises
Obtain subtitle size threshold;
Whether the size of subtitle in a first direction after judging scaling is less than the subtitle size threshold, and the first direction is Either direction;
When the size of subtitle in a first direction after the scaling is less than the subtitle size threshold, forbid showing the word Curtain.
2. the method according to claim 1, wherein the acquisition subtitle size threshold, comprising:
Target eyesight data and target viewing distance are received, the target eyesight data are the eyesight number of the user of the terminal According to the distance of the human eye that, the target viewing distance is the user to the terminal;
In the corresponding relationship of eyesight data and viewing coefficient, the corresponding target viewing coefficient of the target eyesight data is inquired, Wherein, eyesight data and eyesight are positively correlated, and negatively correlated with viewing coefficient;
Coefficient and the target viewing distance are watched according to the target, determines the subtitle size threshold, the subtitle size Threshold value watches coefficient with the target and the target viewing distance is positively correlated.
3. according to the method described in claim 2, it is characterized in that, the corresponding viewing of eyesight data in the corresponding relationship is Number are as follows:
When human eye watches collection of objects under the eyesight that the eyesight data are reflected, in the collection of objects clarity be greater than or Equal to the object minimum length in a second direction of clarity threshold;
Wherein, the collection of objects includes: the object for being greater than or equal to distance threshold at a distance from the human eye;
The first direction is the line direction of pixel in the terminal, and the second direction is horizontal direction;Alternatively, described One direction is the column direction of pixel in the terminal, and the second direction is gravity direction.
4. according to the method described in claim 3, it is characterized in that, according to the target watch coefficient and the target viewing away from From determining the subtitle size threshold, comprising:
Coefficient, the target viewing distance and target formula are watched according to the target, determines the subtitle size threshold;
Wherein, the target formula includes:L indicates the subtitle size threshold, x indicate the target viewing away from From a indicates that the distance threshold, W indicate that the target watches coefficient.
5. method according to any one of claims 1 to 4, which is characterized in that the method also includes:
Determine that corresponding first number of pixels of the subtitle size threshold, the subtitle size threshold are equal to first pixel The product of the size of several and the terminal pixel in said first direction;
Corresponding second number of pixels of the size of subtitle in a first direction after obtaining the scaling, the subtitle after the scaling Size of the size in a first direction equal to the pixel of second number of pixels and the terminal in said first direction Product;
It is described to judge whether the size of the subtitle after scaling in a first direction is less than the subtitle size threshold, comprising:
The size of subtitle in a first direction according to first number of pixels and second number of pixels, after judging scaling Whether the subtitle size threshold is less than;
When second number of pixels is less than first number of pixels, the subtitle after determining the scaling is in a first direction Size be less than the subtitle size threshold;
When second number of pixels is greater than or equal to first number of pixels, the subtitle after determining the scaling is first Size on direction is greater than or equal to the subtitle size threshold.
6. the method according to claim 3 or 4, which is characterized in that the collection of objects includes: more in logarithmic visual acuity chart A sighting target.
7. the method according to claim 1, wherein the corresponding relationship in eyesight data and viewing coefficient In, inquire the corresponding target viewing coefficient of the target eyesight data, comprising:
In the subtitle adjustment table for recording the corresponding relationship, the target eyesight data corresponding target viewing system is inquired Number.
8. a kind of captions process device, which is characterized in that be applied to terminal, the captions process device includes being used for perform claim It is required that the modules of 1 to 7 any method for processing caption.
9. a kind of captions process device characterized by comprising
Processor;
For storing the memory of the executable instruction of the processor;
Wherein, the processor can be realized any subtitle of claim 1 to 7 when running the executable instruction Processing method.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with instruction in the readable storage medium storing program for executing;
When described instruction is run on processing component, so that the processing component perform claim requires 1 to 7 any word Curtain processing method.
CN201910755712.7A 2019-08-15 2019-08-15 Subtitle processing method and device Active CN110351605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910755712.7A CN110351605B (en) 2019-08-15 2019-08-15 Subtitle processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910755712.7A CN110351605B (en) 2019-08-15 2019-08-15 Subtitle processing method and device

Publications (2)

Publication Number Publication Date
CN110351605A true CN110351605A (en) 2019-10-18
CN110351605B CN110351605B (en) 2021-05-25

Family

ID=68185194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910755712.7A Active CN110351605B (en) 2019-08-15 2019-08-15 Subtitle processing method and device

Country Status (1)

Country Link
CN (1) CN110351605B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021248671A1 (en) * 2020-06-12 2021-12-16 海信视像科技股份有限公司 Display device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071562A (en) * 2006-05-12 2007-11-14 上海乐金广电电子有限公司 Caption size regulating method for karaoke audio device
CN102111601A (en) * 2009-12-23 2011-06-29 大猩猩科技股份有限公司 Content-based adaptive multimedia processing system and method
JP2011182008A (en) * 2010-02-26 2011-09-15 Oki Electric Industry Co Ltd Subtitle synthesizer
CN103853318A (en) * 2012-11-30 2014-06-11 晨星软件研发(深圳)有限公司 User interface generating device and relevant method
CN106331828A (en) * 2016-08-19 2017-01-11 暴风集团股份有限公司 Method and system for adjusting subtitle according to picture
CN107736032A (en) * 2015-06-30 2018-02-23 索尼公司 Reception device, method of reseptance, transmitting device and transmission method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071562A (en) * 2006-05-12 2007-11-14 上海乐金广电电子有限公司 Caption size regulating method for karaoke audio device
CN102111601A (en) * 2009-12-23 2011-06-29 大猩猩科技股份有限公司 Content-based adaptive multimedia processing system and method
JP2011182008A (en) * 2010-02-26 2011-09-15 Oki Electric Industry Co Ltd Subtitle synthesizer
CN103853318A (en) * 2012-11-30 2014-06-11 晨星软件研发(深圳)有限公司 User interface generating device and relevant method
CN107736032A (en) * 2015-06-30 2018-02-23 索尼公司 Reception device, method of reseptance, transmitting device and transmission method
CN106331828A (en) * 2016-08-19 2017-01-11 暴风集团股份有限公司 Method and system for adjusting subtitle according to picture

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021248671A1 (en) * 2020-06-12 2021-12-16 海信视像科技股份有限公司 Display device
CN113807375A (en) * 2020-06-12 2021-12-17 海信视像科技股份有限公司 Display device

Also Published As

Publication number Publication date
CN110351605B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
US6456262B1 (en) Microdisplay with eye gaze detection
CN106464959B (en) Semiconductor integrated circuit and the display device and control method for having the semiconductor integrated circuit
KR101850101B1 (en) Method for providing advertising using eye-gaze
US20110262001A1 (en) Viewpoint detector based on skin color area and face area
WO2013057882A1 (en) Display control device, integrated circuit, display control method and program
WO2017211250A1 (en) Image overlay display method and system
CN107621932B (en) Local amplification method and device for display image
CN103428428A (en) Image capture device and image capture method
KR101971815B1 (en) Measurement method and terminal
US20140143691A1 (en) User interface generating apparatus and associated method
KR20130088493A (en) Method for providing user interface and video receving apparatus thereof
CN109313797B (en) Image display method and terminal
US20190027118A1 (en) Terminal device and display method
WO2014030405A1 (en) Display device, display method, television receiver, and display control device
JP5325181B2 (en) Content display control method, content display control device, and content display system
CN107248145B (en) Image distortion correction method, processing device and viewing device
CN110351605A (en) Method for processing caption and device
CN110139154B (en) Display equipment control method, device and system
US10733706B2 (en) Mobile device, and image processing method for mobile device
WO2017102389A1 (en) Display of interactive television applications
US20070018999A1 (en) Auto-centering of main image
CN117636767A (en) Image display method, system, terminal and storage medium of high beam imaging learning machine
CN105323577B (en) Multi-view image shows equipment and its parallax estimation method
CN106921879A (en) The based reminding method and system of a kind of intelligent television viewing distance
US9449369B2 (en) Image processing apparatus and control method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221021

Address after: 83 Intekte Street, Devon, Netherlands

Patentee after: VIDAA (Netherlands) International Holdings Ltd.

Address before: 518000 Hisense Electronic Technology (Shenzhen) Co., Ltd., 9th floor, Hisense south building, 1777 Chuangye Road, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: HISENSE ELECTRONIC TECHNOLOGY (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right