CN113905268A - Black edge removing method for screen projection display of mobile terminal - Google Patents

Black edge removing method for screen projection display of mobile terminal Download PDF

Info

Publication number
CN113905268A
CN113905268A CN202111144881.0A CN202111144881A CN113905268A CN 113905268 A CN113905268 A CN 113905268A CN 202111144881 A CN202111144881 A CN 202111144881A CN 113905268 A CN113905268 A CN 113905268A
Authority
CN
China
Prior art keywords
screen
image
black
point
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111144881.0A
Other languages
Chinese (zh)
Inventor
蒋智斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN202111144881.0A priority Critical patent/CN113905268A/en
Publication of CN113905268A publication Critical patent/CN113905268A/en
Pending legal-status Critical Current

Links

Images

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/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • H04N21/43637Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
    • 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/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a method for removing black edges of screen projection display of a mobile terminal, which comprises the following steps: the large-screen equipment obtains data cache, resolution and rotation angle of a screen projection image pushed by the current mobile terminal; sampling and comparing two central axes of the central point of the screen projection image point by point; calculating a cutting effective area; displaying the effective image on the whole screen; according to the characteristics of the screen projection image of the mobile phone, pixel values of points at two axis positions are sampled point by point, then comparison calculation is carried out, the size of a black edge of the screen projection image is determined, effective display contents are selected and then appropriately amplified and rotated, the effect of displaying the effective contents of the screen projection image to the maximum is achieved, and the visual experience of a user is improved.

Description

Black edge removing method for screen projection display of mobile terminal
Technical Field
The invention relates to the technical field of audio and video, in particular to a method for removing black edges of screen projection display of a mobile terminal.
Background
The mobile phone screen projection is that the content in the mobile phone is synchronously mapped to large-screen display equipment such as televisions, PCs and the like in the same local area network through a wireless network, the content of the whole screen of the mobile phone can be copied to the large screen, including a control status bar menu on the mobile phone, and all operations on the mobile phone can be displayed on the large screen. The method is widely applied to various scenes such as conferences, games, audio and video playing, picture browsing and the like. The wireless screen projection is mainly realized by AirPlay, Miracast, DNLA and the like. In recent years, with the development of mobile phone software and the enhancement of mobile phone processing capability, various daily application frequencies on mobile phones have surpassed those of electronic products such as PCs and televisions, and mobile phones are one of the most widely used electronic products. The mobile phone screen projection application can make up for a short board with a small mobile phone screen to a great extent, and the display effect of the mobile phone screen projection content is directly related to the experience and evaluation of a user on a product. The screen projection display effect is improved, and the user visual experience is improved to become one of the core requirements of consumer electronics and household appliances.
Most smart phones in the market at present support a screen projection function, and users can project screens to large-screen equipment to improve the watching effect in application occasions such as opening videos, pictures and documents. However, the resolution of the mobile phone and the resolution of media contents such as videos, pictures, documents and the like may be different, and different mobile phone brands and screen projection software have different processing modes for the mobile phone screen contents when the mobile phone screen is intercepted, the contents are processed and sent to the large-screen device. Therefore, in some occasions, each frame of image projected by the mobile phone is not necessarily exactly complete media display content, and some images have upper and lower black edges. For such an image with upper and lower black borders, if the large-screen device directly displays the image without processing, the content of the mobile phone displayed on the large screen has the black borders, which affects the viewing effect of the user. Therefore, the problem can be solved by performing calculation analysis on the display image data transmitted by the mobile phone and displaying the effective display content on the screen after removing the black edge.
Disclosure of Invention
In order to solve the problems in the prior art, the invention aims to provide a method for removing black edges of screen projection display of a mobile terminal, and the method improves the visual experience of a user.
In order to achieve the purpose, the invention adopts the technical scheme that: a black edge removing method for screen projection display of a mobile terminal comprises the following steps:
step 1, large-screen equipment obtains data cache, resolution and rotation angle of a screen projection image pushed by a current mobile terminal;
step 2, sampling and comparing two central axes of the central point of the screen projection image point by point: after the resolution of the screen projection image is obtained, determining the width and the height of the screen projection image through the resolution, sampling point by point from outside to inside to obtain pixel values of four points of two central axes of a central point of the image, then moving one coordinate inwards longitudinally or inwards transversely each time, comparing the pixel values of a left sampling point, a right sampling point, an upper sampling point, a lower sampling point and a black sampling point after the pixel values of four points are obtained for n times, if the pixel values of the two points on the upper side n and the lower side n are not equal to the pixel values of black and the previous time is equal to each other, considering the size of the upper frame and the lower frame of black as n, and if the pixel values of the two points on the left side m and the right side m are different from the pixel values of black and the previous time is equal to each other, considering the size of the left frame and the right frame of black as m, and sampling and comparing point by point until the width of the upper frame and the lower frame are determined as n and the width of the left frame and the right frame as m;
step 3, calculating a cutting effective area: calculating four point coordinates of an effective rectangular display area of the image with the black frame removed according to the width n of the upper and lower black frames and the width m of the left and right black frames obtained in the step 2 and the image resolution pushed by the mobile terminal;
and 4, displaying the effective image on the whole screen: the four coordinate points of the effective cutting area are used as parameters, the effective area which is finally displayed is set through the system display setting interface, the maximum resolution supported by the current screen is obtained through the system interface, and the effective area of the image is displayed on the screen in a full screen mode through carrying out proper scaling through the system display interface in combination with the rotation angle of the image, so that the effect of removing the black edges in the display is achieved.
As a further improvement of the present invention, the step 1 specifically comprises the following steps:
when a user operates the mobile terminal to start to project a screen to large-screen equipment, the large-screen equipment end acquires image data and parameters through a data interface; in an android large-screen equipment system, bitmap data of an image projected by a mobile terminal application screen is obtained through textview displayed by the current screen, and the resolution and the rotation angle of the image are obtained through a broadcast control interface.
As a further improvement of the present invention, the mobile terminal is a smart phone, and the large-screen device is a television.
The invention has the beneficial effects that:
according to the characteristics of the screen projection image of the mobile phone, the pixel values of the points at the positions of the two central axes are sampled point by point from outside to inside, then the comparison calculation is carried out, the size of the black edge of the screen projection image is determined, then the effective display content can be selected and then the effective display content is properly amplified and rotated, the effect of displaying the effective content of the screen projection image to the maximum extent is achieved, and the visual experience of a user is improved.
Drawings
Fig. 1 is a flow chart of embodiment 2 of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Example 1
A black edge removing method for screen projection display of a mobile terminal comprises the following steps:
A) obtaining data cache, resolution and rotation angle of a screen projection image pushed by the current mobile phone:
when a user operates a mobile phone to start to project a screen to a large-screen device (such as a television), a large-screen device end needs to acquire image data and parameters through a data interface. In an android television system, bitmap data of an image projected by a mobile phone application screen can be obtained through textview displayed by the current screen, and parameters such as resolution, rotation angle and the like of the image can be obtained through a broadcast control interface.
B) Sampling and comparing two central axes of the central point of the screen projection image point by point:
because the image displayed on the television can only be rectangular, after the resolution of the screen projection image is obtained, the width and the height of the screen projection image can be determined through the resolution, and then the pixel values of four points of two central axes of the central point of the image are obtained through point-by-point sampling from outside to inside. If the image resolution is 1920 x 1080, then the upper left coordinate of the image is (0, 0) and the lower right coordinate is (1920,1080). The center point coordinate of the image is (960,540) and the x, y coordinates of the two central axes are x 960 and y 540, respectively. The four outermost points of the initial sampling are, respectively, positive upper 0(960,0), positive left 0(0,540), positive right 0(1920,540), positive lower 0(960,1080), the second sampling point is shifted inward by one coordinate longitudinally or laterally on the basis of the last sampling point, respectively, positive upper 1(960,0+1), positive left 1(0+1,540), positive right 1 (1920-one 1,540), positive lower 1(960,1080-1), so that the four points of the n +1 th sampling are, respectively, positive left n (n,540), positive right n (1920-n,540), positive upper n (960, n), and positive lower n (960,1080-n). After the pixel values of four points are obtained n times, the pixel values of the left and right and upper and lower sampling points need to be compared. According to the characteristics of up-down and left-right symmetry of a screen projected image of a mobile phone, if pixel values of two points, namely the upper n point and the lower n point, are not equal to the pixel values of black and are equal for the last time, the size of a black upper frame and the size of a black lower frame are considered to be n, and if the pixel values of two points, namely the left m point and the right m point, are different from the pixel values of black and are equal for the last time, the size of a left frame and the size of a right frame of the black frame are considered to be m. And sampling and comparing point by point until the widths of the upper black frame and the lower black frame are determined to be n and the widths of the left black frame and the right black frame are determined to be m.
C) Calculating a cutting effective area:
through the width n of the upper and lower black frames obtained in the last step and the width m of the left and right black frames obtained in the last step, in combination with the image resolution pushed by the mobile phone, the coordinates of four points of the effective rectangular display area of the image without the black frames can be calculated, for example, when the image resolution is 1920 × 1080, the upper left corner coordinate of the effective rectangular display area of the image is (m, n), the upper right corner coordinate is (1920-m, n), the lower left corner coordinate is (m, 1080-n), and the lower right corner coordinate is (1920-m, 1080-n).
D) Displaying the effective image on the whole screen:
the four coordinate points of the effective cutting area are used as parameters, the effective area which is finally displayed is set through the system display setting interface, the maximum resolution supported by the current screen is obtained through the system interface, and proper scaling can be carried out through the system display interface by combining the rotation angle of the image, so that the effective area of the image can be displayed on the screen in a full screen mode, and the effect of removing the black edges in the display is achieved.
Example 2
As shown in fig. 1, a method for removing black borders in screen projection display of a mobile terminal includes:
step 1: the television acquires parameters such as data cache, resolution (Xmax, Ymax), rotation angle and the like of a screen projection image pushed by a current mobile phone through a display interface;
step 2: sampling pixel value data of four points of two central axes with the coordinate x being Xmax/2 and the coordinate y being Ymax/2 point by point from outside to inside, wherein if the image resolution is 1920 × 1080, the four points sampled at the n +1 th time are respectively positive left n (n,540), positive right n (1920-n,540), positive top (960, n) and positive bottom 1(960,1080-n);
and step 3: comparing the pixel values of the left sampling point, the right sampling point, the upper sampling point and the lower sampling point respectively through the pixel value data of the four points obtained in the last step, and judging whether non-black pixels exist or not; if the pixel values are all black pixels, n is n +1, executing the step 2, and continuously acquiring pixel value data of four more inner points; if the non-black pixel exists, entering the step 4;
and 4, step 4: the n value of the first time from the black pixel to the non-black pixel is the width of the black frame, and the widths of the black upper frame, the black lower frame, the black left frame and the black right frame are obtained through step-by-step sampling;
and 5: and calculating the coordinates of four points of the effective rectangular display area of the image without the black frame by combining the resolution of the image pushed by the mobile phone. Setting the coordinates of the four points of the obtained effective rectangular display area as a cut effective display area;
step 6: calling a system display setting interface to zoom the image by combining the maximum resolution supported by the current screen and the rotation angle of the pushed image, so that the effective image in the black frame can be displayed on the whole screen;
and 7: and starting to display the image after the black frame is removed.
The above-mentioned embodiments only express the specific embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention.

Claims (3)

1. A black edge removing method for screen projection display of a mobile terminal is characterized by comprising the following steps:
step 1, large-screen equipment obtains data cache, resolution and rotation angle of a screen projection image pushed by a current mobile terminal;
step 2, sampling and comparing two central axes of the central point of the screen projection image point by point: after the resolution of the screen projection image is obtained, determining the width and the height of the screen projection image through the resolution, sampling point by point from outside to inside to obtain pixel values of four points of two central axes of a central point of the image, then moving one coordinate inwards longitudinally or inwards transversely each time, comparing the pixel values of a left sampling point, a right sampling point, an upper sampling point, a lower sampling point and a black sampling point after the pixel values of four points are obtained for n times, if the pixel values of the two points on the upper side n and the lower side n are not equal to the pixel values of black and the previous time is equal to each other, considering the size of the upper frame and the lower frame of black as n, and if the pixel values of the two points on the left side m and the right side m are different from the pixel values of black and the previous time is equal to each other, considering the size of the left frame and the right frame of black as m, and sampling and comparing point by point until the width of the upper frame and the lower frame are determined as n and the width of the left frame and the right frame as m;
step 3, calculating a cutting effective area: calculating four point coordinates of an effective rectangular display area of the image with the black frame removed according to the width n of the upper and lower black frames and the width m of the left and right black frames obtained in the step 2 and the image resolution pushed by the mobile terminal;
and 4, displaying the effective image on the whole screen: the four coordinate points of the effective cutting area are used as parameters, the effective area which is finally displayed is set through the system display setting interface, the maximum resolution supported by the current screen is obtained through the system interface, and the effective area of the image is displayed on the screen in a full screen mode through carrying out proper scaling through the system display interface in combination with the rotation angle of the image, so that the effect of removing the black edges in the display is achieved.
2. The method for removing the black border of the screen projection display of the mobile terminal as claimed in claim 1, wherein the step 1 is as follows:
when a user operates the mobile terminal to start to project a screen to large-screen equipment, the large-screen equipment end acquires image data and parameters through a data interface; in an android large-screen equipment system, bitmap data of an image projected by a mobile terminal application screen is obtained through textview displayed by the current screen, and the resolution and the rotation angle of the image are obtained through a broadcast control interface.
3. The method for removing the black border of the screen projection display of the mobile terminal as claimed in claim 1 or 2, wherein the mobile terminal is a smart phone and the large screen device is a television.
CN202111144881.0A 2021-09-28 2021-09-28 Black edge removing method for screen projection display of mobile terminal Pending CN113905268A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111144881.0A CN113905268A (en) 2021-09-28 2021-09-28 Black edge removing method for screen projection display of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111144881.0A CN113905268A (en) 2021-09-28 2021-09-28 Black edge removing method for screen projection display of mobile terminal

Publications (1)

Publication Number Publication Date
CN113905268A true CN113905268A (en) 2022-01-07

Family

ID=79189032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111144881.0A Pending CN113905268A (en) 2021-09-28 2021-09-28 Black edge removing method for screen projection display of mobile terminal

Country Status (1)

Country Link
CN (1) CN113905268A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114463358A (en) * 2022-01-30 2022-05-10 深圳创维-Rgb电子有限公司 Screen projection display method and device, electronic equipment and readable storage medium
CN114463359A (en) * 2022-01-30 2022-05-10 深圳创维-Rgb电子有限公司 Screen projection display method and device, electronic equipment and readable storage medium
WO2024012345A1 (en) * 2022-07-14 2024-01-18 华为技术有限公司 Mirroring picture processing method and related apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130083078A1 (en) * 2010-08-24 2013-04-04 Tencent Technology (Shenzhen) Company Limited Method and Apparatus for Presenting a Video Screen
CN103369205A (en) * 2012-03-26 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and video image processing method
CN110267073A (en) * 2019-07-24 2019-09-20 深圳市颍创科技有限公司 A kind of throwing screen picture, which show and throws, shields picture spinning solution
CN110765384A (en) * 2019-10-21 2020-02-07 珠海格力电器股份有限公司 Resolution adaptation method of client, storage medium and terminal
CN112667184A (en) * 2021-01-28 2021-04-16 青岛海信传媒网络技术有限公司 Display device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130083078A1 (en) * 2010-08-24 2013-04-04 Tencent Technology (Shenzhen) Company Limited Method and Apparatus for Presenting a Video Screen
CN103369205A (en) * 2012-03-26 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and video image processing method
CN110267073A (en) * 2019-07-24 2019-09-20 深圳市颍创科技有限公司 A kind of throwing screen picture, which show and throws, shields picture spinning solution
CN110765384A (en) * 2019-10-21 2020-02-07 珠海格力电器股份有限公司 Resolution adaptation method of client, storage medium and terminal
CN112667184A (en) * 2021-01-28 2021-04-16 青岛海信传媒网络技术有限公司 Display device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114463358A (en) * 2022-01-30 2022-05-10 深圳创维-Rgb电子有限公司 Screen projection display method and device, electronic equipment and readable storage medium
CN114463359A (en) * 2022-01-30 2022-05-10 深圳创维-Rgb电子有限公司 Screen projection display method and device, electronic equipment and readable storage medium
WO2023142370A1 (en) * 2022-01-30 2023-08-03 深圳创维-Rgb电子有限公司 Screen mirroring display method and apparatus, and electronic device and readable storage medium
WO2024012345A1 (en) * 2022-07-14 2024-01-18 华为技术有限公司 Mirroring picture processing method and related apparatus

Similar Documents

Publication Publication Date Title
CN113905268A (en) Black edge removing method for screen projection display of mobile terminal
WO2017211250A1 (en) Image overlay display method and system
CN108924621B (en) Display methods, device and television set, storage medium
CN113206964B (en) Screen projection data display processing method and device, terminal equipment and storage medium
CN110446110B (en) Video playing method, video playing device and storage medium
WO2017107450A1 (en) Method and device for switching video display window
US9756282B2 (en) Method and apparatus for processing a video signal for display
CN110262765B (en) Full-screen display method of upright image, related equipment and system
CN106803984B (en) Method and device compatible with VR and television functions
CN106561044B (en) Processing method and system for black edge of vertical screen video on android system
WO2014030405A1 (en) Display device, display method, television receiver, and display control device
US11662971B2 (en) Display apparatus and cast method
CN106792084B (en) Television signal display parameter adjusting method and device and television signal display method
US20170161875A1 (en) Video resolution method and apparatus
CN112616078A (en) Screen projection processing method and device, electronic equipment and storage medium
WO2022227974A1 (en) Subtitle processing method, apparatus and device and storage medium
CN113010135B (en) Data processing method and device, display terminal and storage medium
WO2019020112A1 (en) Terminal display method, terminal and computer-readable storage medium
JP2019149785A (en) Video conversion device and program
CN106604105B (en) Calculate the method and device of HBBTV application image size
CN112911362B (en) Video picture moving and scaling method and device, electronic equipment and readable storage medium
KR102606288B1 (en) A display apparatus and a method for operating the display apparatus
JP2014071163A (en) Program, display device and television receiver
JP2003339031A (en) Television receiver
WO2016004697A1 (en) Method and apparatus for displaying video with caption information

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220107