CN103369205A - Mobile terminal and video image processing method - Google Patents
Mobile terminal and video image processing method Download PDFInfo
- Publication number
- CN103369205A CN103369205A CN201210081917XA CN201210081917A CN103369205A CN 103369205 A CN103369205 A CN 103369205A CN 201210081917X A CN201210081917X A CN 201210081917XA CN 201210081917 A CN201210081917 A CN 201210081917A CN 103369205 A CN103369205 A CN 103369205A
- Authority
- CN
- China
- Prior art keywords
- black
- frame picture
- black surround
- rectangular area
- zone
- 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
Links
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
Abstract
The invention provides a mobile terminal which comprises a detection unit, a judgment unit, a black margin determining unit, and a processing unit. Four midpoints of the four sides of a frame picture are taken and pixel points in path directions are detected one by one in the path directions of all midpoints towards the center of gravity position of the frame picture. And the detection is stopped when a signal of stopping detection is received. The judgment unit is used for judging whether the pixel points are black or not, and if not, the signal of stopping detection is fed back to the detection unit. The black margin determining unit acquires the detection-stopped positions of the detection unit and the distances from the midpoints of all sides of the frame picture to the corresponding positions of stopping detection are taken as the widths of all rectangular areas corresponding to all the sides, and the lengths of the corresponding sides are taken as the lengths of the rectangular areas which are taken as black margins. The processing unit is used for removing the black margins of the frame picture according to the detected rectangular areas. The technical scheme of the invention can be used for effectively detecting the true black margins of a video, processing the black margins, and displaying as truly as possible according to a true picture of the video.
Description
Technical field
The present invention relates to communication technical field, in particular to portable terminal and method of video image processing.
Background technology
Existing video playback great majority are not all considered to remove video black surround (yet being film cropping) or the video black surround is made relevant treatment, a kind of in the present relevant treatment mode is the picture that the content regeneration black surround planted agent according to current raw video signal picture shows, with the displaying ratio of Letter box converting video signal the time, reach the effect of eliminating black surround.The picture frame of another kind of mode for from received video data, determining to detect; Get the view data of image given area, check line by line frame data, stop when junction that finding to exist non-complete black row and complete black row or when detecting the centre position of picture, judge that whether the given area is black surround, removes black surround again.
So-called black surround is that video proportionally can not be full of play area behind the convergent-divergent and causes the black surround that occurs in the first kind of way, and this mode uses the initial data in the video that advancing colour is filled in these zones so that when watching without any black surround.But this mode is not considered the black surround in the video original image, so the method may cause a certain opposite side black surround to disappear, still there is the problem of black surround in another opposite side, affects result of broadcast.
Black surround in the video original image although the second way is processed, but adopting, this mode lines by line scan, whether the some color value that checks this row all is black, stop when junction that finding to exist non-complete black row and complete black row or when detecting the centre position of picture, use the mean value of repeated detection as the size of final black surround.Obviously, employing is lined by line scan, so that this processing method efficient is lower.Secondly, generally in a video, the black surround size of every frame picture all is the same all the time, can not exist the black surround of a certain picture very large, and another picture black borders is very little, if the result who detects is like this, so just mean that more picture of black surround is likely the picture of night scene and so on, its black region is more, average and certainly do not meet truth this moment, cause easily testing result to lose efficacy, remove black surround after, the parts of images data of video may be lost or still be had a black surround that affects visual experience.
Therefore, need a kind of video image processing technology, can high efficiency detect the black surround of video and accurately remove, can obtain preferably video display effect.
Summary of the invention
Consider the above-mentioned background technology, a technical problem to be solved by this invention provides a kind of portable terminal, another technical problem to be solved by this invention provides a kind of method of video image processing, the true black surround that can high efficiency detects video, and black surround processed, show according to the video real picture as far as possible.
The invention provides a kind of portable terminal, comprise: detecting unit, mid point is got respectively on four limits at the frame picture, at the point midway on each limit on the path direction of the position of centre of gravity of described frame picture, detect one by one the pixel on the described path direction, and receiving when stopping detection signal, stop to detect; Judging unit is connected to described detecting unit, judges whether described pixel is black, if be not black, determines signal then to the described detection signal that stops of described detecting unit feedback, and to black surround determining unit feedback; Described black surround determining unit, be connected to described detecting unit and described judging unit, when receiving described feedback signal, obtain the detection position that stops of described detecting unit, with the point midway on every one side of described frame picture and stop accordingly distance between the detection position, as the width of the rectangular area corresponding with every one side, the length of corresponding edge is as the length of described rectangular area, and with described rectangular area as black surround; Processing unit according to detected described rectangular area, is removed the black surround in the described frame picture.
This technical scheme can be applied in the scene that has black surround in the inconsistent and video pictures of the displaying ratio of broadcasting pictures of video pictures ratio and display screen, begin to detect the black surround of frame picture from the mid point on four limits of frame picture, not black pixel point until detect, (may there be four black rectangle zones in the width that so can obtain the black surround of this frame picture, if the number of the detected black pixel point in both sides is different relatively, then get minimum value as the width of relative black surround), before playing this video, can from video, extract several frames, detect the black surround of every frame picture according to above-mentioned processing method, get minimum value as the final width of black surround, and remove all black surrounds of video with this final width.
Such detection method efficient is high, and detected black surround is more accurate, realistic result of broadcast.
In technique scheme, preferably, described detecting unit also be used for to adopt two minutes detection methods further to detect width and the length of described rectangular area black region, with described black region as described black surround.
Although begin to detect the detection method efficient of black pixel point number from four limit mid points of frame picture higher, but the pixel that can not guarantee every delegation or each row all is black pixel point, therefore, adopt two minutes detection methods further to revise above-mentioned testing result, to obtain more accurately black region.
In technique scheme, preferably, described detecting unit can comprise: mid point is chosen subelement, gets the mid point of the broadside of described rectangular area, the straight line at described mid point place is divided into two zones with described rectangular area, and described straight line is parallel with the long limit of described rectangular area; Subelement is determined in zone to be detected, go out pixel on the described straight line entirely when the black in described judgment unit judges, to be defined as near the zone of described position of centre of gravity zone to be detected, go out pixel on the described straight line entirely when the black in described judgment unit judges, will be defined as zone to be detected near the zone on the long limit of described rectangular area; Described mid point is chosen the mid point that subelement continues to get the broadside in described zone to be detected, described zone to be detected determines that subelement determines new zone to be detected, at the width in described new zone to be detected during less than or equal to the first set point, the point midway of the broadside in the zone to be detected that described black surround determining unit is will be described new arrives the distance of corresponding edge of described frame picture as the width of described black surround.
The above has described the concrete detection principle of two minutes detection methods, carries out detecting in two minutes for each rectangular area, as long as have the non-black pixel in delegation or in the row, will redefine so the boundary line of black region (black surround).
In technique scheme, preferably, described detecting unit also is used for the length direction at described black surround, detection of straight lines is chosen at interval with the second set point, described detection of straight lines is vertical with the corresponding edge of described frame picture, described judging unit is further judged the pixel that whether has non-black on the described detection of straight lines, if exist, then revises signal to described black surround determining unit feedback; Described black surround determining unit also is used for when receiving described modification signal, with the pixel of described non-black and the distance between the corresponding edge width as described black surround.
For each rectangular area, whether the black region that also needs further checking to adopt above-mentioned two minutes detection methods to determine is correct, perpendicular to the detection side of two minutes detection methods to direction on detect with the spacing distance of the second set point whether the pixel that the party makes progress all is black, if not, illustrate that detection is wrong, if so, then explanation detects correct.
Should be appreciated that this second set point is less, then accuracy of detection is more accurate.And can in video, extract many frame pictures out equally, detect in the manner described above the size of black surround, choose the minimum black zone as the final black surround of all videos.
In technique scheme, preferably, described judging unit also is used for judging whether the displaying ratio of described frame picture is consistent with the displaying ratio of display, if inconsistent, then to described detecting unit feedback enabling signal, to start described detecting unit; Described portable terminal also comprises: unit for scaling, be connected to the display of described portable terminal, and according to the displaying ratio of display the frame picture of removing black surround is carried out convergent-divergent and process.
Namely when the displaying ratio of the displaying ratio of frame picture and display is inconsistent, just adopt according to technical scheme of the present invention, the video after processing through black surround is carried out correspondingly convergent-divergent, to obtain optimal display result.
The present invention also provides a kind of method of video image processing, comprising: step 402, get respectively mid point on four limits of frame picture, and on the path direction of the position of centre of gravity of described frame picture, detect one by one the pixel on the described path direction at the point midway on each limit; Step 404, judge whether described pixel is black, if be not black, then stop to detect, with the point midway on every one side of described frame picture and stop accordingly distance between the detection position, as the width of the rectangular area corresponding with every one side, the length of corresponding edge is as the length of described rectangular area, and with described rectangular area as black surround; Step 406 according to detected described rectangular area, is removed the black surround in the described frame picture.
This technical scheme can be applied in the scene that has black surround in the inconsistent and video pictures of the displaying ratio of broadcasting pictures of video pictures ratio and display screen, begin to detect the black surround of frame picture from the mid point on four limits of frame picture, not black pixel point until detect, (may there be four black rectangle zones in the width that so can obtain the black surround of this frame picture, if the number of the detected black pixel point in both sides is different relatively, then get minimum value as the width of relative black surround), before playing this video, can from video, extract several frames, detect the black surround of every frame picture according to above-mentioned processing method, get minimum value as the final width of black surround, and remove all black surrounds of video with this final width.
Such detection method efficient is high, and detected black surround is more accurate, realistic result of broadcast.
In technique scheme, preferably, between described step 404 and described step 406, also comprise: adopt two minutes detection methods further to detect width and the length of black region in the described rectangular area, with described black region as described black surround.
Although begin to detect the detection method of black pixel point number from four limit mid points of frame picture, efficient is higher, but the pixel that can not guarantee every delegation or each row all is black pixel point, therefore, adopt two minutes detection methods further to revise above-mentioned testing result, to obtain more accurately black region.
In technique scheme, preferably, get the mid point of the broadside of described rectangular area, the straight line at described mid point place is divided into two zones with described rectangular area, and described straight line is parallel with the long limit of described rectangular area; When the pixel on judging described straight line is black entirely, to be defined as near the zone of described position of centre of gravity zone to be detected, pixel on judging described straight line will be defined as zone to be detected near the zone on the long limit of described rectangular area entirely when the black; Continue to get the mid point of the broadside in described zone to be detected, determine new zone to be detected, at the width in described new zone to be detected during less than or equal to the first set point, stop to detect, with the point midway of the broadside in described new zone to be detected to the distance of the corresponding edge of the described frame picture width as described black surround.
The above has described the concrete detection principle of two minutes detection methods, carries out detecting in two minutes for each rectangular area, as long as have the non-black pixel in delegation or in the row, will redefine so the boundary line of black region (black surround).
In technique scheme, preferably, on the length direction of described black surround, detection of straight lines is chosen at interval with the second set point, described detection of straight lines is vertical with the corresponding edge of described frame picture, judge the pixel that whether has non-black on the described detection of straight lines, if exist, then with the pixel of described non-black and the distance between the corresponding edge width as described black surround.
For each rectangular area, whether the black region that also needs further checking to adopt above-mentioned two minutes detection methods to determine is correct, perpendicular to the detection side of two minutes detection methods to direction on detect with the spacing distance of the second set point whether the pixel that the party makes progress all is black, if not, illustrate that detection is wrong, if so, then explanation detects correct.
Should be appreciated that this second set point is less, then accuracy of detection is more accurate.And can in video, extract many frame pictures out equally, detect in the manner described above the size of black surround, choose the minimum black zone as the final black surround of all videos.
In technique scheme, preferably, can also comprise before described step 402: whether the displaying ratio of judging described frame picture is consistent with the displaying ratio of display, if inconsistent, then enters described step 402; Can also comprise after described step 406: the displaying ratio according to display carries out the convergent-divergent processing to the frame picture of removing black surround.
Namely when the displaying ratio of the displaying ratio of frame picture and display is inconsistent, just adopt according to technical scheme of the present invention, the video after processing through black surround is carried out correspondingly convergent-divergent, to obtain optimal display result.
Description of drawings
Fig. 1 shows the according to an embodiment of the invention schematic diagram of portable terminal;
Fig. 2 shows according to an embodiment of the invention frame picture black borders zone detection schematic diagram;
Fig. 3 shows the black surround schematic diagram that adopts according to an embodiment of the invention two minutes detection method detection frame pictures;
Fig. 4 shows the according to an embodiment of the invention flow chart of method of video image processing;
Fig. 5 shows the according to an embodiment of the invention flow chart of method of video image processing;
Fig. 6 shows the according to an embodiment of the invention flow chart of black edge detection method.
Embodiment
In order more clearly to understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments the present invention is further described in detail.
Set forth in the following description a lot of details so that fully understand the present invention, still, the present invention can also adopt other to be different from other modes described here and implement, and therefore, the present invention is not limited to the restriction of following public specific embodiment.
Fig. 1 shows the according to an embodiment of the invention schematic diagram of portable terminal.
As shown in Figure 1, portable terminal 100 comprises according to an embodiment of the invention: detecting unit 102, mid point is got respectively on four limits at the frame picture, at the point midway on each limit on the path direction of the position of centre of gravity of frame picture, detect one by one the pixel on the path direction, and receiving when stopping detection signal, stop to detect; Judging unit 104 is connected to detecting unit 102, judges whether pixel is black, if be not black, then stop detection signal to anti-102 feedbacks of detecting unit, and determines signal to black surround determining unit 106 feedbacks; Black surround determining unit 106, be connected to detecting unit 102 and judging unit 104, when receiving feedback signal, obtain the detection position that stops of detecting unit 102, with the point midway on every one side of frame picture and stop accordingly distance between the detection position, as the width of the rectangular area corresponding with every one side, the length of corresponding edge is as the length of rectangular area, and with the rectangular area as black surround; Processing unit 108 according to detected rectangular area, is removed the black surround in the frame picture.
This technical scheme can be applied in the scene that has black surround in the inconsistent and video pictures of the displaying ratio of broadcasting pictures of video pictures ratio and display screen, begin to detect the black surround of frame picture from the mid point on four limits of frame picture, not black pixel point until detect, (may there be four black rectangle zones in the width that so can obtain the black surround of this frame picture, if the number of the detected black pixel point in both sides is different relatively, then get minimum value as the width of relative black surround), before playing this video, can from video, extract several frames, detect the black surround of every frame picture according to above-mentioned processing method, get minimum value as the final width of black surround, and remove all black surrounds of video with this final width.
As shown in Figure 2, get mid point from four limits of frame picture, two mid points on two mid points from the frame picture broadside, the long limit, to video hub position capture vegetarian refreshments, judge whether pixel is black pixel point (the RGB color component is 0), for the detection of each direction, if find that the non-black pixel is arranged, just stop to detect.Here for convenience, with reference to the coordinate system shown in the figure 2, suppose that the video upper left corner is initial point, level is the y positive axis to right, and vertical downward direction is the x positive axis, and the frame of video picture is long to be W, and wide is H.During detection respectively from point (H/2,0), (0, W/2), (H/2, W), (H, W/2) begin to detect, and supposes Nh0, Nw0, Nh1, Nw1 represent to detect on the correspondence direction number of continuous black color dots, and Nh, Nw represent respectively vertically, the number of black pixel point on the horizontal direction.Get so smaller value among Nh0 and the Nh1 this moment as the number Nh value of the black pixel point on the final vertical direction, equally, get smaller value among Nw0 and the Nw1 as the number Nw value of the black pixel point on the final horizontal direction.
Such detection method efficient is high, and detected black surround is more accurate, realistic result of broadcast.
In technique scheme, preferably, detecting unit 102 also be used for to adopt two minutes detection methods further to detect width and the length of rectangular area black region, with black region as black surround.
Although begin to detect the detection method efficient of black pixel point number from four limit mid points of frame picture higher, but the pixel that can not guarantee every delegation or each row all is black pixel point, therefore, adopt two minutes detection methods further to revise above-mentioned testing result, to obtain more accurately black region.
In technique scheme, preferably, detecting unit 102 can comprise: mid point is chosen subelement 1022, gets the mid point of the broadside of rectangular area, and the straight line at mid point place is divided into two zones with the rectangular area, and straight line is parallel with the long limit of rectangular area; Subelement 1024 is determined in zone to be detected, judge pixel on the straight line entirely when the black at judging unit 104, to be defined as near the zone of position of centre of gravity zone to be detected, go out pixel on the straight line entirely when the black in judgment unit judges, will be defined as zone to be detected near the zone on the long limit of rectangular area; Mid point is chosen the mid point that subelement 1022 continues to get the broadside in zone to be detected, subelement 1024 definite new zones to be detected are determined in zone to be detected, at the width in new zone to be detected during less than or equal to the first set point, black surround determining unit 106 with the point midway of the broadside in new zone to be detected to the distance of the corresponding edge of the frame picture width as black surround.
The above has described the concrete detection principle of two minutes detection methods, carries out detecting in two minutes for each rectangular area, as long as have the non-black pixel in delegation or in the row, will redefine so the boundary line of black region (black surround).
In technique scheme, preferably, detecting unit 102 also is used for the length direction at black surround, detection of straight lines is chosen at interval with the second set point, detection of straight lines is vertical with the corresponding edge of frame picture, judging unit 104 is further judged the pixel that whether has non-black on the detection of straight lines, if exist, then revises signal to black surround determining unit 106 feedbacks; Black surround determining unit 106 also is used for receiving when revising signal, with the pixel of non-black and the distance between the corresponding edge width as black surround.
For each rectangular area, whether the black region that also needs further checking to adopt above-mentioned two minutes detection methods to determine is correct, perpendicular to the detection side of two minutes detection methods to direction on detect with the spacing distance of the second set point whether the pixel that the party makes progress all is black, if not, illustrate that detection is wrong, if so, then explanation detects correct.
Should be appreciated that this second set point is less, then accuracy of detection is more accurate.And can in video, extract many frame pictures out equally, detect in the manner described above the size of black surround, choose the minimum black zone as the final black surround of all videos.
For the ease of understanding above-mentioned two minutes detection methods, the below please refer to Fig. 3.
Zone shown in Fig. 3 may be as in the rectangular area of black surround for what obtain among the embodiment corresponding with Fig. 2, and is the black surround on the long side direction of frame picture.
Preset first the first set point α and the second set point β, be illustrated respectively in the detection in two minutes, the fineness that rectangular area broadside, long frontier inspection are surveyed, because the similar performance of black surround in the frame of video picture, thereby basically identical for the detection method of each black surround, here with the upper left corner (0,0) in possible black surround zone and the lower right corner (Nh, the W) detection of giving an example.
Concrete grammar is as follows: on the x direction of principal axis, get zone [0, Nh] mid point Nhx=Nh/2, then detect that the x axial coordinate is all pixels of Nh/2 in this zone, if there is no non-black point, then surveyed area is adjusted into [Nh/2+1, Nh], get the mid point Nhx=(Nh/2+1+Nh)/2 of this adjustment region this moment, otherwise surveyed area is adjusted into [0, Nh/2-1], then get its mid point Nhx=(0+Nh/2-1)/2, then constantly recycle above-mentioned Rule of judgment, until the width of the surveyed area after adjusting the former is larger than the latter less than or equal to the first set point α or in the surveyed area after adjusting, the Nhx of this moment is the black surround height, and the length of this black surround is W.
For there is the non-black zonule in the black region that prevents from determining, also need to be along the y direction of principal axis, detect the color of the pixel on the x direction of principal axis according to the interval of the second set point β, detect point that a row number be Nhx from long limit one end starting point this moment, then the β distance of whenever being separated by just detects row, until arrive the other end on long limit.
What need say is that the detection principle of other three rectangular areas is consistent, also is to get mid point at the broadside of rectangular area to carry out detecting in two minutes, detects take the point that β gets as the interval on the broadside on long limit.
Can further prevent the non-black pixel like this, obtain real black surround.
In technique scheme, preferably, whether judging unit 104 is also consistent with the displaying ratio of display for the displaying ratio of judgment frame picture, if inconsistent, then to detecting unit feedback enabling signal, with start detection unit 102; Portable terminal 100 also comprises: unit for scaling 110, be connected to the display of portable terminal, and according to the displaying ratio of display the frame picture of removing black surround is carried out convergent-divergent and process.
Namely when the displaying ratio of the displaying ratio of frame picture and display is inconsistent, just adopt according to technical scheme of the present invention, the video after processing through black surround is carried out correspondingly convergent-divergent, to obtain optimal display result.
Fig. 4 shows the according to an embodiment of the invention flow chart of method of video image processing.
As shown in Figure 4, the method for video image processing of the embodiment of the invention comprises: step 402, get respectively mid point on four limits of frame picture, and on the path direction of the position of centre of gravity of frame picture, detect one by one the pixel on the path direction at the point midway on each limit; Step 404, judge whether pixel is black, if be not black, then stop to detect, with the point midway on every one side of frame picture and stop accordingly distance between the detection position, as the width of the rectangular area corresponding with every one side, the length of corresponding edge is as the length of rectangular area, and with the rectangular area as black surround; Step 406 according to detected rectangular area, is removed the black surround in the frame picture.
This technical scheme can be applied in the scene that has black surround in the inconsistent and video pictures of the displaying ratio of broadcasting pictures of video pictures ratio and display screen, begin to detect the black surround of frame picture from the mid point on four limits of frame picture, not black pixel point until detect, (may there be four black rectangle zones in the width that so can obtain the black surround of this frame picture, if the number of the detected black pixel point in both sides is different relatively, then get minimum value as the width of relative black surround), before playing this video, can from video, extract several frames, detect the black surround of every frame picture according to above-mentioned processing method, get minimum value as the final width of black surround, and remove all black surrounds of video with this final width.
Such detection method efficient is high, and detected black surround is more accurate, realistic result of broadcast.
In technique scheme, preferably, between step 404 and step 406, also comprise: adopt two minutes detection methods further to detect width and the length of black region in the rectangular area, with black region as black surround.
Although begin to detect the detection method of black pixel point number from four limit mid points of frame picture, efficient is higher, but the pixel that can not guarantee every delegation or each row all is black pixel point, therefore, adopt two minutes detection methods further to revise above-mentioned testing result, to obtain more accurately black region.
In technique scheme, preferably, get the mid point of the broadside of rectangular area, the straight line at mid point place is divided into two zones with the rectangular area, and straight line is parallel with the long limit of rectangular area; Pixel on judging straight line when the black, will be defined as near the zone of position of centre of gravity zone to be detected entirely, when the pixel on judging straight line is not black entirely, will be defined as zone to be detected near the zone on the long limit of rectangular area; Continue to get the mid point of the broadside in zone to be detected, determine new zone to be detected,, stop to detect during less than or equal to the first set point at the width in new zone to be detected, with the point midway of the broadside in new zone to be detected to the distance of the corresponding edge of the frame picture width as black surround.
The above has described the concrete detection principle of two minutes detection methods, carries out detecting in two minutes for each rectangular area, as long as have the non-black pixel in delegation or in the row, will redefine so the boundary line of black region (black surround).
In technique scheme, preferably, on the length direction of black surround, detection of straight lines is chosen at interval with the second set point, detection of straight lines is vertical with the corresponding edge of frame picture, judge the pixel that whether has non-black on the detection of straight lines, if exist, then with the pixel of non-black and the distance between the corresponding edge width as black surround.
For each rectangular area, whether the black region that also needs further checking to adopt above-mentioned two minutes detection methods to determine is correct, perpendicular to the detection side of two minutes detection methods to direction on detect with the spacing distance of the second set point whether the pixel that the party makes progress all is black, if not, illustrate that detection is wrong, if so, then explanation detects correct.
Should be appreciated that this second set point is less, then accuracy of detection is more accurate.And can in video, extract many frame pictures out equally, detect in the manner described above the size of black surround, choose the minimum black zone as the final black surround of all videos.
In technique scheme, preferably, can also comprise before step 402: whether the displaying ratio of judgment frame picture is consistent with the displaying ratio of display, if inconsistent, then enters step 402; Can also comprise after step 406: the displaying ratio according to display carries out the convergent-divergent processing to the frame picture of removing black surround.
Namely when the displaying ratio of the displaying ratio of frame picture and display is inconsistent, just adopt according to technical scheme of the present invention, the video after processing through black surround is carried out correspondingly convergent-divergent, to obtain optimal display result.
Further specify according to method of video image processing of the present invention below with reference to Fig. 5 and Fig. 6.
Video image processing technology is mainly used in the video pictures ratio and plays the situation that has black surround in the inconsistent and video of viewing area size according to an embodiment of the invention, application scenarios for example:
1. be that 480 * 800 mobile phone is when playing the frame picture size and being 1024 * 768 video (the black surround direction of this video with screen grow the limit consistent) when the user uses screen size, if carry out convergent-divergent according to video size, then broadcasting pictures can be stayed at screen broadside sky, also there is black surround on this height of video limit simultaneously, it is full frame that the effect that is shown to the user is exactly that video does not have, and similarly is that play in a certain zone in screen.
2. be that to play the frame picture size be that (the black surround direction is with to grow the limit consistent for 960 * 480 video for 480 * 800 mobile phone when the user uses screen size, and black surround is wide by 160) time, black surround can appear during broadcast, if it is wide by 160 that detect black surround this moment, then remove this black surround, video size just becomes 800 * 480 so, when adopting played in full screen, show that without any black surround visual effect is better on the screen.
If video has black surround, but the two ratio is the same, and this moment, black surround can not affect result of broadcast so, detects with regard to not needing to carry out black surround again, otherwise needs to detect.Related procedure please refer to Fig. 5:
In step 504, detect the black surround of video pictures, and remove.
In step 506, detect screen size.
In step 508, will carry out behind the equal proportion convergent-divergent to video pictures and carry out played in full screen according to screen size.
Wherein, the concrete detection method of black surround can be referring to Fig. 6.
As shown in Figure 6, in step 602, get respectively mid point from four limits of frame picture.
In step 604, detect corresponding black surround width to frame picture center position respectively from these four mid points.
In step 606, tentatively obtain possible black surround rectangular area.
In step 608, adopt two minutes detection methods to get mid point at the broadside of the black surround rectangular area that obtains and carry out detecting in two minutes.
In step 610, detect take the pixel that β gets on the broadside as the interval on the long limit in black rectangle zone, if do not find the pixel of non-black, then enter step 612, obtain exactly video black surround.If find the pixel of non-black, then the width take detected black number as final black surround redefines the black surround rectangular area.
Can from video, extract many frame pictures, with the final black surround rectangular area of black surround zone minimum in many frame pictures as video, just can remove the black surround in each frame of video, then obtain the actual size of video pictures, and then the screen size of the equipment such as detection of handset, carry out the video pictures after the equal proportion convergent-divergent is processed, may still can some stay the limit behind the convergent-divergent, then use black region to carry out completion.Although also have black surround this moment, can not there be the situation that black surround is not arranged around the video effective image when playing, and the subduing of black surround, the visual experience when making broadcast is better.
Technical scheme according to the present invention considers that the video black surround can have influence on result of broadcast, thereby first black surround is removed operation, then zoom to played in full screen according to screen size, avoid black surround to affect full frame effect, as far as possible according to the full screen display of video real picture, provide better visual effect to experience to the user simultaneously.With respect to the prior art scheme, according to technical scheme of the present invention to detect the efficient of black surround higher, can obtain accurately and reliably black surround, and the data of getting in the middle of the multi-frame video detect, effectively avoided the black surround zone of detection unstable, get the minimum black surround in detecting several times when removing black surround, avoided removing the possibility of the view data in the video, so that result of broadcast is better.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. a portable terminal is characterized in that, comprising:
Detecting unit is got respectively mid point on four limits of frame picture, on the path direction of the position of centre of gravity of described frame picture, detects one by one the pixel on the described path direction at the point midway on each limit, and stops to detect when stopping detection signal receiving;
Judging unit is connected to described detecting unit, judges whether described pixel is black, if be not black, determines signal then to the described detection signal that stops of described detecting unit feedback, and to black surround determining unit feedback;
Described black surround determining unit, be connected to described detecting unit and described judging unit, when receiving described feedback signal, obtain the detection position that stops of described detecting unit, with the point midway on every one side of described frame picture and stop accordingly distance between the detection position, as the width of the rectangular area corresponding with every one side, the length of corresponding edge is as the length of described rectangular area, and with described rectangular area as black surround;
Processing unit according to detected described rectangular area, is removed the black surround in the described frame picture.
2. portable terminal according to claim 1 is characterized in that, described detecting unit also be used for to adopt two minutes detection methods further to detect width and the length of described rectangular area black region, with described black region as described black surround.
3. portable terminal according to claim 2, it is characterized in that, described detecting unit comprises: mid point is chosen subelement, get the mid point of the broadside of described rectangular area, the straight line at described mid point place is divided into two zones with described rectangular area, and described straight line is parallel with the long limit of described rectangular area;
Subelement is determined in zone to be detected, go out pixel on the described straight line entirely when the black in described judgment unit judges, to be defined as near the zone of described position of centre of gravity zone to be detected, go out pixel on the described straight line entirely when the black in described judgment unit judges, will be defined as zone to be detected near the zone on the long limit of described rectangular area;
Described mid point is chosen the mid point that subelement continues to get the broadside in described zone to be detected, described zone to be detected determines that subelement determines new zone to be detected, at the width in described new zone to be detected during less than or equal to the first set point, the point midway of the broadside in the zone to be detected that described black surround determining unit is will be described new arrives the distance of corresponding edge of described frame picture as the width of described black surround.
4. portable terminal according to claim 3, it is characterized in that, described detecting unit also is used for the length direction at described black surround, detection of straight lines is chosen at interval with the second set point, described detection of straight lines is vertical with the corresponding edge of described frame picture, described judging unit is further judged the pixel that whether has non-black on the described detection of straight lines, if exist, then revises signal to described black surround determining unit feedback;
Described black surround determining unit also is used for when receiving described modification signal, with the pixel of described non-black and the distance between the corresponding edge width as described black surround.
5. each described portable terminal in 4 according to claim 1, it is characterized in that described judging unit also is used for judging whether the displaying ratio of described frame picture is consistent with the displaying ratio of display, if inconsistent, then to described detecting unit feedback enabling signal, to start described detecting unit;
Described portable terminal also comprises: unit for scaling, be connected to the display of described portable terminal, and according to the displaying ratio of display the frame picture of removing black surround is carried out convergent-divergent and process.
6. a method of video image processing is characterized in that, comprising:
Step 402 is got respectively mid point on four limits of frame picture, on the path direction of the position of centre of gravity of described frame picture, detects one by one the pixel on the described path direction at the point midway on each limit;
Step 404, judge whether described pixel is black, if be not black, then stop to detect, with the point midway on every one side of described frame picture and stop accordingly distance between the detection position, as the width of the rectangular area corresponding with every one side, the length of corresponding edge is as the length of described rectangular area, and with described rectangular area as black surround;
Step 406 according to detected described rectangular area, is removed the black surround in the described frame picture.
7. method of video image processing according to claim 6, it is characterized in that, between described step 404 and described step 406, also comprise: adopt two minutes detection methods further to detect width and the length of black region in the described rectangular area, with described black region as described black surround.
8. method of video image processing according to claim 7 is characterized in that, gets the mid point of the broadside of described rectangular area, and the straight line at described mid point place is divided into two zones with described rectangular area, and described straight line is parallel with the long limit of described rectangular area;
When the pixel on judging described straight line is black entirely, to be defined as near the zone of described position of centre of gravity zone to be detected, pixel on judging described straight line will be defined as zone to be detected near the zone on the long limit of described rectangular area entirely when the black;
Continue to get the mid point of the broadside in described zone to be detected, determine new zone to be detected, at the width in described new zone to be detected during less than or equal to the first set point, stop to detect, with the point midway of the broadside in described new zone to be detected to the distance of the corresponding edge of the described frame picture width as described black surround.
9. method of video image processing according to claim 8, it is characterized in that, on the length direction of described black surround, detection of straight lines is chosen at interval with the second set point, described detection of straight lines is vertical with the corresponding edge of described frame picture, judge the pixel that whether has non-black on the described detection of straight lines, if exist, then with the pixel of described non-black and the distance between the corresponding edge width as described black surround.
10. each described method of video image processing in 9 according to claim 6, it is characterized in that, also comprised before described step 402: whether the displaying ratio of judging described frame picture is consistent with the displaying ratio of display, if inconsistent, then enters described step 402;
Also comprise after described step 406: the displaying ratio according to display carries out the convergent-divergent processing to the frame picture of removing black surround.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210081917.XA CN103369205B (en) | 2012-03-26 | 2012-03-26 | Mobile terminal and method of video image processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210081917.XA CN103369205B (en) | 2012-03-26 | 2012-03-26 | Mobile terminal and method of video image processing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103369205A true CN103369205A (en) | 2013-10-23 |
CN103369205B CN103369205B (en) | 2016-11-16 |
Family
ID=49369670
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210081917.XA Active CN103369205B (en) | 2012-03-26 | 2012-03-26 | Mobile terminal and method of video image processing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103369205B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104361335A (en) * | 2014-11-03 | 2015-02-18 | 山西同方知网数字出版技术有限公司 | Method for automatically removing black edges of scanning images |
CN104915944A (en) * | 2014-03-14 | 2015-09-16 | 北京风行在线技术有限公司 | Method and device for determining black margin position information of video |
CN105573747A (en) * | 2015-12-10 | 2016-05-11 | 小米科技有限责任公司 | User interface test method and apparatus |
CN106231278A (en) * | 2016-08-08 | 2016-12-14 | 深圳Tcl数字技术有限公司 | Method for processing video frequency and television system |
WO2017113681A1 (en) * | 2015-12-28 | 2017-07-06 | 乐视控股(北京)有限公司 | Video image processing method and apparatus based on virtual reality technology |
CN110505512A (en) * | 2019-07-09 | 2019-11-26 | 咪咕视讯科技有限公司 | Full screen playing method, terminal equipment and computer readable storage medium |
CN112466243A (en) * | 2020-11-25 | 2021-03-09 | 惠州Tcl移动通信有限公司 | Image processing method, device, storage medium and mobile terminal |
CN113905268A (en) * | 2021-09-28 | 2022-01-07 | 四川长虹电器股份有限公司 | Black edge removing method for screen projection display of mobile terminal |
CN114995735A (en) * | 2022-04-22 | 2022-09-02 | 北京金山云网络技术有限公司 | Image display method, system, device, electronic equipment and readable storage medium |
CN115529480A (en) * | 2022-08-03 | 2022-12-27 | 青岛海尔智能家电科技有限公司 | Control method and device for television, television and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005203933A (en) * | 2004-01-14 | 2005-07-28 | Matsushita Electric Ind Co Ltd | Video-reproducing apparatus and video-reproducing method |
CN101087380A (en) * | 2006-06-08 | 2007-12-12 | 索尼株式会社 | Image signal processing apparatus, image display and image display method |
CN101277381A (en) * | 2008-04-15 | 2008-10-01 | 北京中星微电子有限公司 | Method and apparatus for processing video image |
CN101841643A (en) * | 2010-04-29 | 2010-09-22 | 深圳市茁壮网络股份有限公司 | Method and device for detecting black edge |
CN102111640A (en) * | 2010-11-30 | 2011-06-29 | 广东威创视讯科技股份有限公司 | Effective image area detection method and system |
CN102254544A (en) * | 2011-07-12 | 2011-11-23 | 北京海尔集成电路设计有限公司 | Method for automatically adjusting video signal proportion and television using same |
CN102377960A (en) * | 2010-08-24 | 2012-03-14 | 腾讯科技(深圳)有限公司 | Video picture displaying method and device |
-
2012
- 2012-03-26 CN CN201210081917.XA patent/CN103369205B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005203933A (en) * | 2004-01-14 | 2005-07-28 | Matsushita Electric Ind Co Ltd | Video-reproducing apparatus and video-reproducing method |
CN101087380A (en) * | 2006-06-08 | 2007-12-12 | 索尼株式会社 | Image signal processing apparatus, image display and image display method |
CN101277381A (en) * | 2008-04-15 | 2008-10-01 | 北京中星微电子有限公司 | Method and apparatus for processing video image |
CN101841643A (en) * | 2010-04-29 | 2010-09-22 | 深圳市茁壮网络股份有限公司 | Method and device for detecting black edge |
CN102377960A (en) * | 2010-08-24 | 2012-03-14 | 腾讯科技(深圳)有限公司 | Video picture displaying method and device |
CN102111640A (en) * | 2010-11-30 | 2011-06-29 | 广东威创视讯科技股份有限公司 | Effective image area detection method and system |
CN102254544A (en) * | 2011-07-12 | 2011-11-23 | 北京海尔集成电路设计有限公司 | Method for automatically adjusting video signal proportion and television using same |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104915944A (en) * | 2014-03-14 | 2015-09-16 | 北京风行在线技术有限公司 | Method and device for determining black margin position information of video |
CN104915944B (en) * | 2014-03-14 | 2018-08-07 | 北京风行在线技术有限公司 | A kind of method and apparatus for determining the black surround location information of video |
CN104361335A (en) * | 2014-11-03 | 2015-02-18 | 山西同方知网数字出版技术有限公司 | Method for automatically removing black edges of scanning images |
CN104361335B (en) * | 2014-11-03 | 2017-07-07 | 山西同方知网数字出版技术有限公司 | A kind of processing method that black surround is automatically removed based on scan image |
CN105573747B (en) * | 2015-12-10 | 2018-11-06 | 小米科技有限责任公司 | The test method and device of user interface |
CN105573747A (en) * | 2015-12-10 | 2016-05-11 | 小米科技有限责任公司 | User interface test method and apparatus |
WO2017113681A1 (en) * | 2015-12-28 | 2017-07-06 | 乐视控股(北京)有限公司 | Video image processing method and apparatus based on virtual reality technology |
CN106231278A (en) * | 2016-08-08 | 2016-12-14 | 深圳Tcl数字技术有限公司 | Method for processing video frequency and television system |
CN106231278B (en) * | 2016-08-08 | 2019-02-01 | 深圳Tcl数字技术有限公司 | Method for processing video frequency and television system |
CN110505512A (en) * | 2019-07-09 | 2019-11-26 | 咪咕视讯科技有限公司 | Full screen playing method, terminal equipment and computer readable storage medium |
CN112466243A (en) * | 2020-11-25 | 2021-03-09 | 惠州Tcl移动通信有限公司 | Image processing method, device, storage medium and mobile terminal |
CN113905268A (en) * | 2021-09-28 | 2022-01-07 | 四川长虹电器股份有限公司 | Black edge removing method for screen projection display of mobile terminal |
CN114995735A (en) * | 2022-04-22 | 2022-09-02 | 北京金山云网络技术有限公司 | Image display method, system, device, electronic equipment and readable storage medium |
CN115529480A (en) * | 2022-08-03 | 2022-12-27 | 青岛海尔智能家电科技有限公司 | Control method and device for television, television and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103369205B (en) | 2016-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103369205A (en) | Mobile terminal and video image processing method | |
CN105898186B (en) | Display methods and video conferencing system for video conference | |
EP2953369A1 (en) | Methods, apparatuses and computer programs for adapting content | |
US8817020B2 (en) | Image processing apparatus and image processing method thereof | |
US20200272399A1 (en) | Image processing method and apparatus | |
CN102724589B (en) | The processing unit of video data, the processing method of video data and display device | |
CN107371062B (en) | Method for automatically zooming video picture | |
US9118903B2 (en) | Device and method for 2D to 3D conversion | |
CN106954053A (en) | A kind of trapezoidal distortion correction method and system | |
CN102446272A (en) | Method and device for segmenting and recognizing station caption as well as television comprising device | |
CN104469178B (en) | A kind of image display method and electronic equipment | |
US20110242345A1 (en) | Method and apparatus for providing picture privacy in video | |
CN102254544B (en) | Method for automatically adjusting video signal proportion and television using same | |
CN105867870A (en) | Back-display method and device of spliced wall windows | |
CN113905268A (en) | Black edge removing method for screen projection display of mobile terminal | |
CN103780864B (en) | Video calling interface display method and device | |
CN102300104A (en) | 3D television and menu processing method thereof | |
CN103327262B (en) | A kind of method and system of Video segmentation | |
CN103713832A (en) | Display processing method and electronic devices | |
US10148934B2 (en) | Image process apparatus and image process method | |
CN104767985A (en) | Method of using region distribution analysis to automatically detect 3D image format | |
US8855444B2 (en) | Method for partitioning and processing a digital image | |
CN112911362B (en) | Video picture moving and scaling method and device, electronic equipment and readable storage medium | |
CN105228026B (en) | The more equipment display methods of teletext, apparatus and system | |
CN103686029A (en) | Video pixel opposite-angle interpolation method for large-screen and multi-projection system |
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 |