CN112466243A - Image processing method, device, storage medium and mobile terminal - Google Patents

Image processing method, device, storage medium and mobile terminal Download PDF

Info

Publication number
CN112466243A
CN112466243A CN202011340344.9A CN202011340344A CN112466243A CN 112466243 A CN112466243 A CN 112466243A CN 202011340344 A CN202011340344 A CN 202011340344A CN 112466243 A CN112466243 A CN 112466243A
Authority
CN
China
Prior art keywords
line
pixel
driving voltage
row
voltage values
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
CN202011340344.9A
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202011340344.9A priority Critical patent/CN112466243A/en
Publication of CN112466243A publication Critical patent/CN112466243A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • 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/2628Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/646Circuits for processing colour signals for image enhancement, e.g. vertical detail restoration, cross-colour elimination, contour correction, chrominance trapping filters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0407Resolution change, inclusive of the use of different resolutions for different screen areas

Abstract

The embodiment of the application provides an image processing method, an image processing device, a storage medium and a mobile terminal, wherein driving voltage values input by pixel units on the same row on a sampling frame are collected; comparing the driving voltage values input by the pixel units positioned in the same row on the sampling frame line by line; obtaining the position of the corresponding pixel row according to the comparison result of the driving voltage value; adjusting a display frame resolution based on the location of the pixel row. The full-screen playing of the video is realized, and the playing quality is improved.

Description

Image processing method, device, storage medium and mobile terminal
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to an image processing method and apparatus, a storage medium, and a mobile terminal.
Background
In the full screen era, users are more pursuing immersive experience, especially in video playing scenes. However, as there are many video playing formats, such as: AVI, WMV, MPEG, etc., the playback devices are also different, such as: computers, mobile phones, televisions and the like are easy to display video pictures on the whole screen due to mismatching of video playing formats and playing equipment, and playing quality is affected.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
The embodiment of the application provides an image processing method, an image processing device, a storage medium and a mobile terminal, wherein driving voltage values input by pixel units on the same row on a sampling frame are collected; comparing the driving voltage values input by the pixel units positioned in the same row on the sampling frame line by line; obtaining the position of the corresponding pixel row according to the comparison result of the driving voltage value; adjusting a display frame resolution based on the location of the pixel row. The full-screen playing of the video is realized, and the playing quality is improved.
The embodiment of the application provides an image processing method, which comprises the following steps:
collecting the driving voltage values input by the pixel units positioned in the same row on the sampling frame;
comparing the driving voltage values input by the pixel units positioned in the same row on the sampling frame line by line;
obtaining the position of the corresponding pixel row according to the comparison result of the driving voltage value;
adjusting a display frame resolution based on the location of the pixel row.
In some embodiments, the obtaining the position of the corresponding pixel row according to the comparison result of the driving voltage values includes:
and when the result of comparing the driving voltage line by line changes, acquiring the position of the corresponding pixel line.
In some embodiments, the obtaining the position of the corresponding pixel row when the result of comparing the driving voltages row by row changes includes:
when the results of comparing the driving voltage values line by line are different from the same, acquiring the positions of the pixel lines corresponding to different driving voltage values when the results are changed;
and when the results of comparing the driving voltage values line by line are different to the same, acquiring the positions of the pixel lines corresponding to different driving voltage values when the results are changed.
In some embodiments, said adjusting display frame resolution based on the location of said row of pixels comprises:
determining a target amplification rectangle based on the position of the pixel row;
and adjusting the resolution of the display frame according to the target amplification rectangle.
In some embodiments, the determining a target enlarged rectangle based on the location of the row of pixels comprises:
taking the distance between the positions of the corresponding pixel rows as the width of a target amplification rectangle;
and taking the length of the corresponding pixel row as the length of the target enlarged rectangle.
In some embodiments, the enlarging the width of the rectangle with the distance between the positions of the pixel rows to which the comparison is stopped as a target further includes:
the width of the target amplification rectangle is larger than a first set value.
In some embodiments, said adjusting display frame resolution based on the location of said row of pixels comprises:
determining a target amplification rectangle based on the position of the pixel row;
and carrying out scaling processing on the display frame according to the display scale of the screen.
An embodiment of the present application further provides an image processing apparatus, including:
the collecting module is used for collecting the driving voltage values input by the pixel units positioned on the same row on the sampling frame;
the comparison module is used for comparing the driving voltage values input by the pixel units positioned in the same row on the sampling frame line by line;
the acquisition module is used for acquiring the position of the corresponding pixel row according to the comparison result of the driving voltage value;
and the adjusting module is used for adjusting the resolution of the display frame based on the position of the pixel row.
An embodiment of the present application further provides a storage medium, where a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the steps in the image processing method.
The embodiment of the application also provides a mobile terminal, which comprises a processor and a memory, wherein the memory is stored with a computer program, and the processor is used for executing the steps in the image processing method by calling the computer program stored in the memory.
The method includes the steps that driving voltage values input by pixel units on the same row on a sampling frame are collected; comparing the driving voltage values input by the pixel units positioned in the same row on the sampling frame line by line; obtaining the position of the corresponding pixel row according to the comparison result of the driving voltage value; adjusting a display frame resolution based on the location of the pixel row.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic flowchart of an image processing method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
The embodiment of the application provides a video image processing method, which can be applied to a mobile terminal. The mobile terminal can be a smart phone, a tablet computer, a desktop computer, a smart watch and other devices.
Referring to fig. 1, fig. 1 is a schematic flow chart of an image processing method according to an embodiment of the present disclosure. The image processing method is applied to a mobile terminal, and the mobile terminal is provided with a screen, a camera and the like. The method may comprise the steps of:
step 101, collecting the driving voltage values input by the pixel units in the same row on the sampling frame.
And detecting that a user opens a full-screen playing video mode, and collecting the driving voltage values input by the pixel units in the same row on the sampling frame.
The sampling frame is a display picture of the whole screen corresponding to the video frame, that is, the video appears black, and the sampling frame picture includes the display picture and a black border. Correspondingly, the driving voltage values input by the pixel units in the same row on at least two sampling frames are collected.
Specifically, in the acquisition process, the driving voltage values input by the pixel units located in the same row on each frame of the sample may be grouped into an array.
In some embodiments, the driving voltage values input by the pixel units located in the same column on each frame of the sample can be correspondingly grouped into an array in the acquisition process.
In some embodiments, the pixel values of the pixel units in the same row on at least two sampling frames may be collected, and accordingly, the pixel values of the pixel units in the same row on each sampling frame may be grouped into an array in the collecting process.
In some embodiments, pixel values of pixel units in the same column on at least two sampling frames may be collected, and accordingly, pixel values of pixel units in the same column on each sampling frame may be grouped into an array during the collection.
And 102, comparing the driving voltage values input by the pixel units in the same row on the sampling frame row by row.
The pixel point driving voltage values of the pixel unit rows are same in one-to-one correspondence, and the pixel unit row driving voltage values are judged to be the same; and judging that the pixel point driving voltage values of the pixel unit rows are different.
Specifically, comparing an array formed by drive voltage values input by pixel units of each frame row by row and/or column by column; the arrays are the same, and the pixel unit row and/or pixel row driving voltage values are judged to be the same; and judging that the pixel unit rows and/or the pixel columns have different driving voltage values when the arrays are different.
Specifically, comparing an array formed by pixel values of pixel units of each frame row-by-row and/or column-by-column of samples; the arrays are the same, and the pixel values of the pixel unit rows and/or the pixel columns are judged to be the same; and judging that the pixel values of the pixel unit rows and/or the pixel columns are different when the arrays are different.
In some embodiments the way of row-wise and/or column-wise comparison of drive voltage values and/or pixel values at the same pixel row input over a sampling frame may be adapted to the way of scanning the scanning drive lines of the terminating display unit.
Specifically, the scanning drive lines of the terminal display unit may start scanning from both long sides of the screen at the same time, and the line-by-line comparison of the drive voltage values input at the same pixel row on the sampling frame may start comparison from both long sides of the screen at the same time.
Specifically, the scanning driving lines of the terminal display unit may start scanning from the long side of the screen, and the line-by-line comparison of the driving voltage values input at the same pixel row on the sampling frame may start the comparison from the long side of the screen.
Specifically, the scanning driving lines of the terminal display unit may be scanned from the central line parallel to the long side of the screen to both sides row by row, and the line-by-row comparison of the driving voltage values input at the same pixel row on the sampling frame may be performed from the central line parallel to the long side of the screen to both sides row by row.
And 103, acquiring the position of the corresponding pixel row according to the comparison result of the driving voltage values.
Specifically, when the result of comparing the driving voltages input by the pixel units located in the same row on at least two sampling frames line by line changes, the position of the corresponding pixel row is obtained.
Specifically, comparing the results of the driving voltage values input by the pixel units positioned in the same row on at least two sampling frames line by line from the same to different, and acquiring the initial positions of the pixel rows corresponding to the different driving voltage values when the results change; comparing and comparing the driving voltage values input by the pixel units positioned in the same row on at least two sampling frames line by line from different to the same, and acquiring the end positions of the pixel rows corresponding to different driving voltage values when the results change.
In some embodiments, the values of the driving voltages inputted to the pixel units located in line L1 in the two sampling frames are both 0, that is, the arrays of the driving voltage values in line L1 in the two sampling frames are [0000 … 0000] and [0000 … 0000], and accordingly, the driving voltage values in line L1 in the two sampling frames are the same; continuing to compare the next line until the values of the driving voltages input by the pixel units positioned in the Ln line on the two sampling frames are not equal to 0, and assuming that the arrays formed by the Ln lines on the two sampling frames are [0010 … 0100] and [0100 … 0000] respectively, correspondingly, the values of the driving voltages of the two sampling frames on the Ln line are different, and acquiring the position information of the Ln line pixel line as the initial line position of the target amplified rectangle; and continuously comparing the next line to obtain that the driving voltage values of the two sampling frames on the Ln to Lm lines are different until the driving voltage values input by the pixel units positioned on the Lm +1 line on one sampling frame are all 0, correspondingly, the array formed by the L1 lines on the two sampling frames is [0000 … 0000] and [0000 … 0000], correspondingly, the driving voltage values of the two sampling frames on the L (m +1) line are the same, and acquiring the Lm line pixel line position information as the end line position of the target amplification rectangle.
In some embodiments, the values of the driving voltages collected from the pixel units located in the a1 column of the two sampling frames are both 0, that is, the arrays of the driving voltage values on the a1 column of the two sampling frames are [0000 … 0000] and [0000 … 0000], and accordingly, the driving voltage values on the a1 column of the two sampling frames are the same; continuously comparing the next column until the values of the driving voltages input by the pixel units positioned in the Ax column on the two sampling frames are not equal to 0, and assuming that the arrays formed by the Ax columns on the two sampling frames are [0010 … 0100] and [0100 … 0000], respectively, and correspondingly, the values of the driving voltages on the Ax column of the two sampling frames are different, and acquiring the position information corresponding to the Ax column as the initial column position of the target amplification rectangle; and continuously comparing the next columns to obtain that the driving voltage values of the two sampling frames on the Ax column to the Ay column are different until the driving voltage values input by the pixel units positioned on the A (y +1) column on one sampling frame are all 0, correspondingly, the array formed by the A1 columns on the two sampling frames is [0000 … 0000] and [0000 … 0000], correspondingly, the driving voltage values of the two sampling frames on the A (y +1) column are the same, and the position information corresponding to the Ay column is obtained and is used as the end column position of the target amplification rectangle.
In some embodiments, the pixel values of the pixel units located in line L1 in the two sampling frames are both 0, that is, the driving voltage values in line L1 in the two sampling frames are set to [0000 … 0000] and [0000 … 0000], and accordingly, the pixel values in line L1 in the two sampling frames are the same; continuously comparing the next line until the pixel values input by the pixel units positioned in the Ln line on the two sampling frames are not equal to 0, and assuming that the arrays formed by the Ln lines on the two sampling frames are [0010 … 0100] and [0100 … 0000] respectively, correspondingly, the pixel values of the Ln lines on the two sampling frames are different, and acquiring the position information of the Ln line pixel line as the initial line position of the target amplification rectangle; and continuously comparing the next line to obtain that the pixel values of the two sampling frames on the Ln to Lm lines are different until the pixel values input by the pixel units positioned on the Lm +1 line on one sampling frame are 0, correspondingly, the pixel values of the L1 lines on the two sampling frames are the same, and the pixel values of the two sampling frames on the L (m +1) line are obtained as [0000 … 0000] and [0000 … 0000], and acquiring the Lm line pixel line position information as the end line position of the target amplification rectangle.
In some embodiments, the pixel values of the pixel units located in the a1 column of the two sampling frames are both 0, that is, the pixel values of the a1 column of the two sampling frames are formed into the arrays of [0000 … 0000] and [0000 … 0000], and accordingly, the pixel values of the a1 column of the two sampling frames are the same; continuously comparing the next column until the pixel values input by the pixel units positioned in the Ax column on the two sampling frames are not equal to 0, and assuming that the arrays formed by the Ax columns on the two sampling frames are [0010 … 0100] and [0100 … 0000] respectively, correspondingly, the pixel values of the Ax columns of the two sampling frames are different, and acquiring the position information corresponding to the Ax columns as the initial column position of the target amplification rectangle; comparing the next columns, obtaining that the pixel values of the two sampling frames on the Ax to Ay columns are different until the pixel values input by the pixel units positioned on the A (y +1) column on one sampling frame are all 0, correspondingly, the array formed by the A1 columns on the two sampling frames is [0000 … 0000] and [0000 … 0000], correspondingly, the pixel values of the two sampling frames on the A (y +1) column are the same, and acquiring the position information corresponding to the Ay column as the end column position of the target amplification rectangle.
In some embodiments, the comparison may be stopped after the start row position and the end row position of the target enlarged rectangle are obtained, and/or the start column position and the end column position of the target enlarged rectangle are obtained.
In some embodiments, the comparison may be continued after the start row position and the end row position of the target enlarged rectangle are obtained, and/or the start column position and the end column position of the target enlarged rectangle are obtained, until the comparison of all pixel rows and/or all pixel columns is completed, and the comparison is stopped.
In some embodiments, a starting row position of a target enlarged rectangle and/or a starting column position of the target enlarged rectangle may be obtained, where the corresponding scene is that only the upper end of the screen has a black edge, and a position corresponding to a last row of pixel rows of the screen is selected as an ending row position, and/or a position corresponding to a last column of pixel rows of the screen is selected as an ending column position
In some embodiments, an ending row position of a target enlarged rectangle and/or an ending column position of the target enlarged rectangle may be obtained, and a corresponding scene is that only a black edge appears at the lower end of the screen, a position corresponding to a first row of pixel rows of the screen is selected as a starting row position, and/or a position corresponding to a first column of pixel rows of the screen is selected as a starting column position.
In some embodiments, the ending line positions and/or the ending column positions of the target enlarged rectangles may be obtained, which correspond to a scenario that no black borders appear on two sides of the screen, multiple rows of black borders appear in the middle of the screen, and/or multiple columns of black borders appear in the middle of the screen, and full-screen play failure information may be sent.
And 104, adjusting the resolution of the display frame based on the position of the pixel line.
Taking the distance between the starting position and the ending position of the acquired pixel row as the width of the target amplification rectangle; and taking the acquired length of the pixel row as the length of the target enlarged rectangle.
And carrying out scaling processing on the display frame according to the display scale of the screen.
In some embodiments, a "full screen play" message is sent and/or a page window of a full screen play function switch is sent.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
In specific implementation, the present application is not limited by the execution sequence of each described step, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, in the embodiment of the present application, the driving voltage values input by the pixel units located in the same row on the sampling frame are collected; comparing the driving voltage values input by the pixel units positioned in the same row on the sampling frame line by line; when the results of comparing the driving voltage values line by line are different from the same, acquiring the initial positions of the pixel lines corresponding to different driving voltage values when the results are changed; when the results of comparing the driving voltage values line by line are different to the same, acquiring the end positions of the pixel lines corresponding to the different driving voltage values when the results are changed; obtaining the position of the corresponding pixel row according to the comparison result of the driving voltage value; adjusting a display frame resolution based on the location of the pixel row. The full-screen playing of the video is realized, and the playing quality is improved.
The embodiment of the application further provides an image processing device, wherein the image processing device can be integrated in a mobile terminal, and the mobile terminal can be a smart phone, a tablet computer, a desktop computer, a smart watch and other devices.
Referring to fig. 2, fig. 2 is a first structural schematic diagram of an image processing apparatus according to an embodiment of the present disclosure. The image processing apparatus 20 may include:
the collecting module 21 is configured to collect driving voltage values input by pixel units located in the same row on a sampling frame;
the comparison module 22 is used for comparing the driving voltage values input by the pixel units positioned in the same row on the sampling frame line by line;
the obtaining module 23 is configured to obtain the position of the corresponding pixel row according to the comparison result of the driving voltage values;
and an adjusting module 24, configured to adjust the resolution of the display frame based on the position of the pixel row.
In some embodiments, the collection module 21 is specifically configured to:
and detecting that a user opens a full-screen playing video mode, and collecting the driving voltage values input by the pixel units in the same row on the sampling frame.
The sampling frame is a display picture of the whole screen corresponding to the video frame, that is, the video appears black, and the sampling frame picture includes the display picture and a black border. Correspondingly, the driving voltage values input by the pixel units in the same row on at least two sampling frames are collected.
In some embodiments, the collection module 21 is specifically configured to:
in the collecting process, the driving voltage values input by the pixel units positioned on the same row on each frame of the sample can be combined into an array.
In some embodiments, the collection module 21 is specifically configured to:
in the acquisition process, the driving voltage values input by the pixel units positioned in the same column on each frame of sampling can be combined into an array.
In some embodiments, the collection module 21 is specifically configured to:
the pixel values of the pixel units in the same row on at least two sampling frames can be collected, and accordingly, the pixel values of the pixel units in the same row on each sampling frame can be combined into an array in the collecting process.
In some embodiments, the collection module 21 is specifically configured to:
the pixel values of the pixel units in the same column on at least two sampling frames can be collected, and accordingly, the pixel values of the pixel units in the same column on each sampling frame can be combined into an array in the collecting process.
In some embodiments, the comparing module 22 is specifically configured to:
pixel point driving voltage values of the pixel unit rows are the same in a one-to-one correspondence mode, and the pixel unit row driving voltage values are judged to be the same; and judging that the pixel point driving voltage values of the pixel unit rows are different.
In some embodiments, the comparing module 22 is specifically configured to:
comparing an array formed by drive voltage values input by each frame row-by-row and/or column-by-column pixel units; the arrays are the same, and the pixel unit row and/or pixel row driving voltage values are judged to be the same; and judging that the pixel unit rows and/or the pixel columns have different driving voltage values when the arrays are different.
In some embodiments, the comparing module 22 is specifically configured to:
comparing an array formed by pixel values of pixel units of each frame row by row and/or column by column of the sampling; the arrays are the same, and the pixel values of the pixel unit rows and/or the pixel columns are judged to be the same; and judging that the pixel values of the pixel unit rows and/or the pixel columns are different when the arrays are different.
In some embodiments, the comparing module 22 is specifically configured to:
the way of comparing the drive voltage values and/or pixel values at the same pixel row input on a sampling frame row by row and/or column by column may be adapted to the way of scanning the scanning drive lines of the terminating display unit.
In some embodiments, the comparing module 22 is specifically configured to:
the scanning drive lines of the terminal display unit may start scanning from both long sides of the screen at the same time, and the line-by-line comparison of the drive voltage values input at the same pixel row on the sampling frame may start comparison from both long sides of the screen at the same time.
In some embodiments, the comparing module 22 is specifically configured to:
the scanning drive lines of the terminal display unit can be scanned from one long side of the screen, and the line-by-line comparison of the drive voltage values input at the same pixel row on the sampling frame can also be compared from one long side of the screen.
In some embodiments, the comparing module 22 is specifically configured to:
the scanning drive lines of the terminal display unit may be scanned from the central line parallel to the long side of the screen to both sides line by line, and the line-by-line comparison of the drive voltage values input at the same pixel line on the sampling frame may be performed from the central line parallel to the long side of the screen to both sides line by line.
In some embodiments, the obtaining module 23 is specifically configured to:
and when the result of comparing the driving voltage input by the pixel units positioned on the same row on at least two sampling frames line by line changes, acquiring the position of the corresponding pixel row.
In some embodiments, the obtaining module 23 is specifically configured to:
comparing the results of the driving voltage values input by the pixel units positioned in the same row on at least two sampling frames line by line from the same to different, and acquiring the initial positions of the pixel rows corresponding to the different driving voltage values when the results change; comparing and comparing the driving voltage values input by the pixel units positioned in the same row on at least two sampling frames line by line from different to the same, and acquiring the end positions of the pixel rows corresponding to different driving voltage values when the results change.
In some embodiments, the obtaining module 23 is specifically configured to:
collecting the driving voltage values input by the pixel units positioned in the line L1 on the two sampling frames, wherein the driving voltage values are both 0, namely the array formed by the driving voltage values of the two sampling frames on the line L1 is [0000 … 0000] and [0000 … 0000], and correspondingly, the driving voltage values of the two sampling frames on the line L1 are the same; continuing to compare the next line until the values of the driving voltages input by the pixel units positioned in the Ln line on the two sampling frames are not equal to 0, and assuming that the arrays formed by the Ln lines on the two sampling frames are [0010 … 0100] and [0100 … 0000] respectively, correspondingly, the values of the driving voltages of the two sampling frames on the Ln line are different, and acquiring the position information of the Ln line pixel line as the initial line position of the target amplified rectangle; and continuously comparing the next line to obtain that the driving voltage values of the two sampling frames on the Ln to Lm lines are different until the driving voltage values input by the pixel units positioned on the Lm +1 line on one sampling frame are all 0, correspondingly, the array formed by the L1 lines on the two sampling frames is [0000 … 0000] and [0000 … 0000], correspondingly, the driving voltage values of the two sampling frames on the L (m +1) line are the same, and acquiring the Lm line pixel line position information as the end line position of the target amplification rectangle.
In some embodiments, the obtaining module 23 is specifically configured to:
collecting the driving voltage values input by the pixel units positioned at the A1 column on the two sampling frames, wherein the driving voltage values input by the pixel units positioned at the A1 column on the two sampling frames are both 0, namely the array of the driving voltage values of the A1 column on the two sampling frames is [0000 … 0000] and [0000 … 0000], and correspondingly, the driving voltage values of the A1 column on the two sampling frames are the same; continuously comparing the next column until the values of the driving voltages input by the pixel units positioned in the Ax column on the two sampling frames are not equal to 0, and assuming that the arrays formed by the Ax columns on the two sampling frames are [0010 … 0100] and [0100 … 0000], respectively, and correspondingly, the values of the driving voltages on the Ax column of the two sampling frames are different, and acquiring the position information corresponding to the Ax column as the initial column position of the target amplification rectangle; and continuously comparing the next columns to obtain that the driving voltage values of the two sampling frames on the Ax column to the Ay column are different until the driving voltage values input by the pixel units positioned on the A (y +1) column on one sampling frame are all 0, correspondingly, the array formed by the A1 columns on the two sampling frames is [0000 … 0000] and [0000 … 0000], correspondingly, the driving voltage values of the two sampling frames on the A (y +1) column are the same, and the position information corresponding to the Ay column is obtained and is used as the end column position of the target amplification rectangle.
In some embodiments, the obtaining module 23 is specifically configured to:
collecting pixel values of pixel units positioned on a line L1 on two sampling frames, wherein the pixel values are 0, namely, the array formed by driving voltage values on a line L1 of the two sampling frames is [0000 … 0000] and [0000 … 0000], and correspondingly, the pixel values on a line L1 of the two sampling frames are the same; continuously comparing the next line until the pixel values input by the pixel units positioned in the Ln line on the two sampling frames are not equal to 0, and assuming that the arrays formed by the Ln lines on the two sampling frames are [0010 … 0100] and [0100 … 0000] respectively, correspondingly, the pixel values of the Ln lines on the two sampling frames are different, and acquiring the position information of the Ln line pixel line as the initial line position of the target amplification rectangle; and continuously comparing the next line to obtain that the pixel values of the two sampling frames on the Ln to Lm lines are different until the pixel values input by the pixel units positioned on the Lm +1 line on one sampling frame are 0, correspondingly, the pixel values of the L1 lines on the two sampling frames are the same, and the pixel values of the two sampling frames on the L (m +1) line are obtained as [0000 … 0000] and [0000 … 0000], and acquiring the Lm line pixel line position information as the end line position of the target amplification rectangle.
In some embodiments, the obtaining module 23 is specifically configured to:
collecting pixel values of pixel units positioned at A1 column on two sampling frames, wherein the pixel values of pixel units positioned at A1 column on two sampling frames are 0, namely the pixel values of pixel units positioned at A1 column on two sampling frames are formed into arrays of [0000 … 0000] and [0000 … 0000], and correspondingly, the pixel values of pixel units positioned at A1 column on two sampling frames are the same; continuously comparing the next column until the pixel values input by the pixel units positioned in the Ax column on the two sampling frames are not equal to 0, and assuming that the arrays formed by the Ax columns on the two sampling frames are [0010 … 0100] and [0100 … 0000] respectively, correspondingly, the pixel values of the Ax columns of the two sampling frames are different, and acquiring the position information corresponding to the Ax columns as the initial column position of the target amplification rectangle; comparing the next columns, obtaining that the pixel values of the two sampling frames on the Ax to Ay columns are different until the pixel values input by the pixel units positioned on the A (y +1) column on one sampling frame are all 0, correspondingly, the array formed by the A1 columns on the two sampling frames is [0000 … 0000] and [0000 … 0000], correspondingly, the pixel values of the two sampling frames on the A (y +1) column are the same, and acquiring the position information corresponding to the Ay column as the end column position of the target amplification rectangle.
In some embodiments, the obtaining module 23 is specifically configured to:
the comparison may be stopped after the start row position and the end row position of the target enlarged rectangle are obtained and/or the start column position and the end column position of the target enlarged rectangle are obtained.
In some embodiments, the obtaining module 23 is specifically configured to:
and after the starting row position and the ending row position of the target enlarged rectangle are obtained and/or the starting column position and the ending column position of the target enlarged rectangle are/is obtained, the comparison can be continued until the comparison of all pixel rows and/or all pixel columns is completed, and the comparison is stopped.
In some embodiments, the obtaining module 23 is specifically configured to:
the starting line position of a target enlarged rectangle and/or the starting column position of the target enlarged rectangle can be obtained, the corresponding scene is that only the upper end of the screen has a black edge, the position corresponding to the last line of pixel rows of the screen is selected as the ending line position, and/or the position corresponding to the last column of pixel rows of the screen is selected as the ending column position
In some embodiments, the obtaining module 23 is specifically configured to:
the end row position of a target enlarged rectangle and/or the end column position of the target enlarged rectangle can be obtained, if only the lower end of the screen has a black edge, the position corresponding to the first row of the screen pixel row is selected as the start row position, and/or the position corresponding to the first column of the screen pixel row is selected as the start column position.
In some embodiments, the obtaining module 23 is specifically configured to:
the end line positions and/or end column positions of a plurality of target amplified rectangles can be obtained, the corresponding scenes are that no black edges appear on two sides of the screen, a plurality of lines of black edges appear in the middle of the screen, and/or a plurality of lines of black edges appear in the middle of the screen, and full-screen playing failure information can be sent.
In some embodiments, the determining module 24 is specifically configured to:
taking the distance between the starting position and the ending position of the acquired pixel row as the width of the target amplification rectangle; and taking the acquired length of the pixel row as the length of the target enlarged rectangle.
And carrying out scaling processing on the display frame according to the display scale of the screen.
As can be seen from the above, in the image processing apparatus 20 provided in the embodiment of the present application, the collecting module 21 is configured to collect the driving voltage values input by the pixel units located in the same row on the sampling frame; the comparison module 22 is used for comparing the driving voltage values input by the pixel units positioned in the same row on the sampling frame line by line; the obtaining module 23 is configured to obtain the position of the corresponding pixel row according to the comparison result of the driving voltage values; and an adjusting module 24, configured to adjust the resolution of the display frame based on the position of the pixel row.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application, where the mobile terminal may be used to implement the image processing method provided in the foregoing embodiment. The mobile terminal 1200 may be a smart phone or a tablet computer.
As shown in fig. 3, the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown), and a power supply 190. Those skilled in the art will appreciate that the mobile terminal 1200 configuration illustrated in fig. 3 is not intended to be limiting of the mobile terminal 1200 and may include more or less components than those illustrated, or some components in combination, or a different arrangement of components. Wherein:
the RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the image processing method in the above-described embodiments, and the processor 180 may execute various functional applications and data processing by operating the software programs and modules stored in the memory 120. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 120 may further include memory located remotely from processor 180, which may be connected to mobile terminal 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to the user and various graphic user interfaces of the mobile terminal 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual result on the display panel 141 according to the type of the touch event. The display unit 140 is a screen in the above embodiment.
The mobile terminal 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. As for other sensors such as a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 1200, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, which is processed by the processor 180 and then transmitted to, for example, another terminal via the RF circuit 110, or the audio data is obtained to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the mobile terminal 1200.
The mobile terminal 1200, which may assist the user in e-mail, web browsing, and streaming media access through the transmission module 170 (e.g., Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 3 illustrates the transmission module 170, it is understood that it does not belong to the essential constitution of the mobile terminal 1200, and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 180 is a control center of the mobile terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The mobile terminal 1200 also includes a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in the present embodiment, the display unit 140 of the mobile terminal 1200 is a touch screen display, and the mobile terminal 1200 further includes a memory 120 and one or more programs, wherein the one or more programs are stored in the memory 120, and the one or more programs configured to be executed by the one or more processors 180 include instructions for: collecting sampling frame data, and comparing the frame data to obtain difference data; acquiring position information of the difference data; the frame is subjected to stretching processing based on the position information.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the image processing method according to any of the above embodiments.
It should be noted that, for the image processing method described in this application, it can be understood by those skilled in the art that all or part of the process of implementing the image processing method described in this application may be implemented by controlling the relevant hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of a mobile terminal, and executed by at least one processor in the mobile terminal, and during the execution, the process of implementing the image processing method may include the process of the embodiment of the image processing method. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the image processing apparatus according to the embodiment of the present application, each functional module may be integrated into one processing chip, each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The image processing method, the image processing apparatus, the storage medium, and the mobile terminal provided in the embodiments of the present application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A video image processing method, comprising:
collecting the driving voltage values input by the pixel units positioned in the same row on the sampling frame;
comparing the driving voltage values input by the pixel units positioned in the same row on the sampling frame line by line;
obtaining the position of the corresponding pixel row according to the comparison result of the driving voltage value;
adjusting a display frame resolution based on the location of the pixel row.
2. The method of claim 1, wherein the obtaining the position of the corresponding pixel row according to the comparison result of the driving voltage values comprises:
and comparing the driving voltage line by line to obtain the position of the corresponding pixel line, wherein the result of comparing the driving voltage line by line changes.
3. The video image processing method of claim 2, wherein the obtaining the position of the corresponding pixel row when the result of comparing the driving voltages line by line changes comprises:
comparing the driving voltage values line by line from the same result to different results, and acquiring initial positions of pixel lines corresponding to different driving voltage values when the results change;
and comparing the driving voltage values line by line from different to the same, and acquiring the end positions of the pixel lines corresponding to different driving voltage values when the result changes.
4. The video image processing method of claim 1, wherein said adjusting a display frame resolution based on the location of the pixel row comprises:
determining a target amplification rectangle based on the position of the pixel row;
and adjusting the resolution of the display frame according to the target amplification rectangle.
5. The video image processing method of claim 4, wherein said determining a target enlarged rectangle based on the location of the pixel row comprises:
taking the distance between the positions of the corresponding pixel rows as the width of a target amplification rectangle;
and taking the length of the corresponding pixel row as the length of the target enlarged rectangle.
6. The video image processing method according to claim 5, wherein said enlarging the width of the rectangle with the distance between the positions of the pixel rows whose comparison is stopped as a target further comprises:
the width of the target amplification rectangle is larger than a first set value.
7. The video image processing method of claim 1, wherein said adjusting a display frame resolution based on the location of the pixel row comprises:
determining a target amplification rectangle based on the position of the pixel row;
and carrying out scaling processing on the display frame according to the display scale of the screen.
8. A video image processing apparatus characterized by comprising:
the collecting module is used for collecting the driving voltage values input by the pixel units positioned on the same row on the sampling frame;
the comparison module is used for comparing the driving voltage values input by the pixel units positioned in the same row on the sampling frame line by line;
the acquisition module is used for acquiring the position of the corresponding pixel row according to the comparison result of the driving voltage value;
and the adjusting module is used for adjusting the resolution of the display frame based on the position of the pixel row.
9. A storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the steps in the image processing method according to any one of claims 1 to 7.
10. A mobile terminal, characterized in that the mobile terminal comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to execute the steps in the image processing method according to any one of claims 1 to 7 by calling the computer program stored in the memory.
CN202011340344.9A 2020-11-25 2020-11-25 Image processing method, device, storage medium and mobile terminal Pending CN112466243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011340344.9A CN112466243A (en) 2020-11-25 2020-11-25 Image processing method, device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011340344.9A CN112466243A (en) 2020-11-25 2020-11-25 Image processing method, device, storage medium and mobile terminal

Publications (1)

Publication Number Publication Date
CN112466243A true CN112466243A (en) 2021-03-09

Family

ID=74808186

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011340344.9A Pending CN112466243A (en) 2020-11-25 2020-11-25 Image processing method, device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN112466243A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277381A (en) * 2008-04-15 2008-10-01 北京中星微电子有限公司 Method and apparatus for processing video image
CN102254544A (en) * 2011-07-12 2011-11-23 北京海尔集成电路设计有限公司 Method for automatically adjusting video signal proportion and television using same
CN103369205A (en) * 2012-03-26 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and video image processing method
CN103546715A (en) * 2013-10-30 2014-01-29 乐视致新电子科技(天津)有限公司 Method and device for adjusting proportion of picture of smart television
US20170330533A1 (en) * 2016-05-10 2017-11-16 Mediatek Singapore Pte. Ltd. Method for image displaying and electronic device thereof
US20180286355A1 (en) * 2015-09-30 2018-10-04 Lg Electronics Inc. Mobile terminal for controlling dynamic resolution and control method therefor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277381A (en) * 2008-04-15 2008-10-01 北京中星微电子有限公司 Method and apparatus for processing video image
CN102254544A (en) * 2011-07-12 2011-11-23 北京海尔集成电路设计有限公司 Method for automatically adjusting video signal proportion and television using same
CN103369205A (en) * 2012-03-26 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and video image processing method
CN103546715A (en) * 2013-10-30 2014-01-29 乐视致新电子科技(天津)有限公司 Method and device for adjusting proportion of picture of smart television
US20180286355A1 (en) * 2015-09-30 2018-10-04 Lg Electronics Inc. Mobile terminal for controlling dynamic resolution and control method therefor
US20170330533A1 (en) * 2016-05-10 2017-11-16 Mediatek Singapore Pte. Ltd. Method for image displaying and electronic device thereof

Similar Documents

Publication Publication Date Title
US11158033B2 (en) Method for image processing, electronic device, and non-transitory storage medium for improving contrast of image
CN108513070B (en) Image processing method, mobile terminal and computer readable storage medium
US9697622B2 (en) Interface adjustment method, apparatus, and terminal
CN107977144B (en) Screen capture processing method and mobile terminal
CN107977652B (en) Method for extracting screen display content and mobile terminal
CN106792120B (en) Video picture display method and device and terminal
CN109240577B (en) Screen capturing method and terminal
CN109121008B (en) Video preview method, device, terminal and storage medium
CN109151348B (en) Image processing method, electronic equipment and computer readable storage medium
CN111601139A (en) Information display method, electronic device, and storage medium
CN109068063B (en) Three-dimensional image data processing and displaying method and device and mobile terminal
CN108804628B (en) Picture display method and terminal
CN110868632B (en) Video processing method and device, storage medium and electronic equipment
US11887276B2 (en) Image processing method and display apparatus for adjusting format and resolution of input image in parallel and matrix manner
CN111966804A (en) Expression processing method, terminal and storage medium
CN109639981B (en) Image shooting method and mobile terminal
CN111131612B (en) Screen color temperature control method and device, storage medium and mobile terminal
CN113438400B (en) Image acquisition method, image acquisition device and electronic equipment
CN112466243A (en) Image processing method, device, storage medium and mobile terminal
CN110225251B (en) Video recording method and terminal
CN110933305B (en) Electronic equipment and focusing method
CN114140655A (en) Image classification method and device, storage medium and electronic equipment
CN112150357B (en) Image processing method and mobile terminal
CN109144368B (en) Picture conversion method and terminal
CN111787228A (en) Shooting method, shooting device, storage medium and mobile terminal

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