CN111367604A - Processing method and device for file display, storage medium and terminal - Google Patents

Processing method and device for file display, storage medium and terminal Download PDF

Info

Publication number
CN111367604A
CN111367604A CN202010128884.4A CN202010128884A CN111367604A CN 111367604 A CN111367604 A CN 111367604A CN 202010128884 A CN202010128884 A CN 202010128884A CN 111367604 A CN111367604 A CN 111367604A
Authority
CN
China
Prior art keywords
display
processed
brightness
area
definition
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
CN202010128884.4A
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.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN202010128884.4A priority Critical patent/CN111367604A/en
Publication of CN111367604A publication Critical patent/CN111367604A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The embodiment of the application discloses a file display processing method, a file display processing device, a storage medium and a terminal. The file display processing method comprises the following steps: when the file is detected to be displayed, acquiring a display picture of a current display screen; determining a plurality of areas to be processed according to the display picture; acquiring image display information of a region to be processed; determining a target processing area from a plurality of areas to be processed based on the image display information; and adjusting the brightness of the target processing area. According to the embodiment of the application, when the file is displayed at the terminal, the area needing brightness adjustment is determined according to the definition of each area of the display picture, the brightness adjustment is further carried out on the area, full-screen brightness adjustment is not needed, the quality of reading the file by a user is guaranteed, and meanwhile the power consumption of the terminal can be effectively reduced.

Description

Processing method and device for file display, storage medium and terminal
Technical Field
The application relates to the field of mobile terminal application, in particular to a file display processing method, a file display processing device, a storage medium and a terminal.
Background
At present, when a mobile terminal displays some information, the information can be displayed clearly by manually adjusting the display brightness or automatically adjusting the display brightness by a user.
In the prior art, when the mobile terminal displays information on the display screen, part of the displayed information is unclear, the brightness of the display screen can be adjusted, and the power consumption of the mobile terminal can be increased.
Disclosure of Invention
The embodiment of the application provides a file display processing method and device, a storage medium and a terminal, which can effectively reduce the power consumption of the terminal.
The embodiment of the application provides a file display processing method, which comprises the following steps:
when the file is detected to be displayed, acquiring a display picture of a current display screen;
determining a plurality of areas to be processed according to the display picture;
acquiring image display information of a region to be processed;
determining a target processing area from a plurality of areas to be processed based on the image display information;
and adjusting the brightness of the target processing area.
Correspondingly, an embodiment of the present application further provides a processing apparatus for file display, including:
the detection unit is used for acquiring a display picture of a current display screen when the file is detected to be displayed;
the first determining unit is used for determining a plurality of areas to be processed according to the display picture;
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring image display information of a region to be processed;
a second determination unit configured to determine a target processing region from a plurality of regions to be processed based on the image display information;
and the processing unit is used for adjusting the brightness of the target processing area.
Correspondingly, the embodiment of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the steps in the processing method for displaying a file as described above.
Correspondingly, the embodiment of the application also provides a terminal, which comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the processing method for displaying the file.
According to the embodiment of the application, when the file is displayed at the terminal, the area needing brightness adjustment is determined according to the definition of each area of the display picture, the brightness adjustment is further carried out on the area, full-screen brightness adjustment is not needed, the quality of reading the file by a user is guaranteed, and meanwhile the power consumption of the terminal can be effectively reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first file display processing method according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating a second file display processing method according to an embodiment of the present application.
Fig. 3 is a block diagram of a processing apparatus for displaying a document according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Based on the above problems, embodiments of the present application provide a method, an apparatus, a storage medium, and a terminal for processing file display, which can effectively reduce power consumption of the terminal. The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a file display processing method according to an embodiment of the present disclosure. The file display processing method can be applied to mobile terminals such as terminals, tablet computers, notebook computers, palm computers, Portable Media Players (PMPs), and fixed terminals such as desktop computers. The processing method of the document display is to adjust the brightness of the display screen locally, so the display screen can be a Light-Emitting Diode (LED) display screen. The specific flow of the processing method for file display may be as follows:
101. and when the file is detected to be displayed, acquiring a display picture of the current display screen.
Specifically, the file display instruction can be triggered through touch operation of a user, and the file selected by the user is displayed on the current display screen according to the file display instruction, so that the file display can be detected. The format of the file may be various, for example, the file may be a picture, a video, a document, and so on.
When the display screen is detected to display the file, a display picture of the current display screen can be acquired, and the current display picture can be represented as an image. For example, the display file may be a picture, and the display picture acquired by the current display screen may be a picture image; or the display file may be a video, the display picture acquired to the current display screen may be a certain frame of video image of the video, and so on.
102. And determining a plurality of areas to be processed according to the display picture.
Specifically, after the display screen is acquired, a plurality of regions to be processed may be obtained according to the display screen. The to-be-processed area may be a partial area of the display screen, and the to-be-processed area may be divided for the display screen according to different characteristics, for example, the characteristics may be a content type of the display screen, a content location of the display screen, and the like.
In some embodiments, the step of "determining a plurality of regions to be processed according to the display screen" may include the following processes:
acquiring the display content of the display picture;
and dividing the display picture according to the type of the display content to obtain a plurality of regions to be processed.
Specifically, the display content of the display screen is obtained, and the display content may include multiple types, for example, the type of the display content may be characters, patterns, colors, and the like. When the display screen is divided into regions, the display screen may be divided according to the type of the display content.
For example, the current display screen may be divided according to the type of the characters, that is, the area containing the characters is divided into a plurality of areas according to different display positions of the characters, and the area not containing the characters is divided into one area, that is, a plurality of areas to be processed may be obtained; or, the current display picture can be divided according to the pattern types, and different patterns displayed by the display picture are divided into a plurality of display areas to be processed; or the current display picture can be divided according to the color types, and the areas with different colors are divided into a plurality of areas to be processed.
103. And acquiring image display information of the area to be processed.
Specifically, display information of the image to be processed is obtained, and the display information may include definition. The definition refers to the definition of an image macroscopically seen by human eyes, and is the subjective feeling of people on a final image caused by the comprehensive result of the objective performance of a system and equipment, the subjective feeling of the definition can be quantitatively tested, namely the subjective feeling can be measured by the thickness of lines between black and white, and the definition is measured by a standard test method and a standard test chart, and the measured data of the definition has a definite unit, namely a television Line (TV Line).
In the display picture of the current display screen, the definition can be determined by the number of pixel points in the current display picture and the gray value of each pixel point. Refers to the color depth of points in a black and white image, generally ranging from 0 to 255, 255 for white and 0 for black. For black and white images, the R, G, B values are all equal, called gray scale values, and each pixel has a gray scale value, and for 8-bit gray scale images, the gray scale value ranges from 0 to 255. The color or gray level refers to the difference between brightness and darkness of pixels displayed in a black-and-white display, and is expressed as the difference between colors in a color display, and the more gray levels, the clearer and more vivid the image gradation. The grey scale level depends on the number of bits of the refreshed memory cells per pixel and the performance of the display itself.
Specifically, the image display information of the region to be processed is obtained, and the definition of the region to be processed may be represented by obtaining the number of the pixels in the region to be processed and the gray value of the pixels, for example, the pixel in the region to be processed may be 1 ten thousand pixels (pixels), and the gray value of the pixel may be 100.
104. A target processing region is determined from the plurality of regions to be processed based on the image display information.
Specifically, the target processing region is determined from the plurality of regions to be processed based on the image display information, and the region to be processed may be determined from the plurality of regions to be processed according to the obtained definition of each region to be processed.
In some embodiments, the step of "determining a target processing region from a plurality of regions to be processed based on the image display information" may include the following flow:
comparing the display definition of the area to be processed with a preset display definition;
and if the display definition is smaller than the preset display definition, taking the to-be-processed area corresponding to the display definition as a target processing area.
Specifically, the display definition of the region to be processed is compared with a preset display definition, and the preset display definition can be the optimal display definition of the current display picture.
And comparing the display definition value of each to-be-processed area with a preset definition value, and if the display definition value is smaller than the preset definition value, determining the to-be-processed area corresponding to the display definition value smaller than the preset definition value as a target processing area. The target processing area is an area which needs to be subjected to definition processing.
For example, the region to be processed may include a region 1, a region 2, a region 3, a region 4, and the like, the sharpness value may be represented by the number of pixels and the gray level value of the pixels, the pixel in the region 1 may be 2 ten thousand pixels, the gray level value of the pixels may be 200, the pixel in the region 2 may be 2 ten thousand pixels, the gray level value of the pixels may be 150, the pixel in the region 3 may be 3 ten thousand pixels, the gray level value of the pixels may be 200, the pixel in the region 4 may be 1 ten thousand pixels, the gray level value of the pixels may be 100, the preset sharpness may represent that the pixels are 2 ten thousand pixels, and the gray level value of the pixels may be 200, and then the region 2 may be determined by comparing the sharpness of the region to be processed with the preset sharpness, and the region 4 may be the target. The target processing area can be quickly determined by acquiring the display information, i.e. the definition, of each to-be-processed area.
In some embodiments, when the display definition of the to-be-processed area is greater than or equal to the preset display definition, in order to reduce the power consumption of the terminal, the definition processing may not be performed on the to-be-processed area. The following steps may also be included:
and if the display definition is greater than or equal to the preset display definition, keeping the current display brightness to display the to-be-processed area.
Specifically, when the display definition of the display area is obtained to be greater than or equal to the preset definition, that is, the pixel value of the to-be-processed area and the pixel gray value of the to-be-processed area are greater than or equal to the preset pixel value and the pixel gray value, the to-be-processed area can be determined to be the area with clear display, the brightness of the area does not need to be adjusted, and the display screen can continue to maintain the previous brightness to display the display area.
For example, in the region to be processed, the pixels in the region 1 may be 2 ten thousand pixels, the gray value of the pixel point may be 200, the preset pixels are 2 ten thousand pixels, and the gray value of the pixel point may be 200, so that the definition of the region 1 meets the preset definition, and the display screen light source corresponding to the region 1 may continue to maintain the current brightness to display the region 1, which may effectively reduce the power consumption of the terminal.
In some embodiments, in order to ensure display consistency of the current display screen and improve user experience, if the to-be-processed area may be determined based on a difference in definition between each to-be-processed area, the step "determining the target processing area from the plurality of to-be-processed areas based on the image display information" may further include the following steps:
acquiring a definition difference value between every two to-be-processed areas;
judging whether the definition difference value is less than or equal to a preset difference value or not;
and if not, taking the to-be-processed area with smaller definition in the two to-be-processed areas as a target processing area.
Specifically, a definition difference value between every two regions to be processed is obtained, the definition difference value is compared with a preset difference value, and whether the definition difference value is smaller than the preset difference value is judged. The preset difference value can be expressed as a display definition difference which can be accepted by a user between the two to-be-processed areas.
If the definition difference value of the two to-be-processed areas is larger than the preset difference value, the to-be-processed area with smaller definition in the two to-be-processed areas can be determined as the target processing area.
For example, the region to be processed may include a region 1 and a region 2, where pixels in the region 1 may be 2 thousand pixels, a gray level value of a pixel may be 200, pixels in the region 2 may be 2 thousand pixels, a gray level value of a pixel may be 150, a pixel difference value between the region 1 and the region 2 is 0, a gray level difference value of a pixel is 50, a preset pixel difference may be 5000 pixels, and a gray level difference value of a preset pixel may be 20, and then it may be determined that a difference value of sharpness between the region 1 and the region 2 is greater than a preset difference value, and then the region 2 may be determined as the target processing region.
105. And adjusting the brightness of the target processing area.
Specifically, after the target processing region is determined, the brightness adjustment may be performed on the target processing region. In adjusting the luminance of the target processing region, the luminance of the target processing region may be adjusted with reference to the luminance value of a region adjacent to the target processing region.
In some embodiments, the step of "adjusting brightness of the target processing region" may include the following steps:
acquiring brightness information of a to-be-processed area adjacent to the target processing area;
determining the target brightness according to the brightness information;
acquiring the display position of the target processing area on the display screen;
and adjusting the brightness of the display position to the target brightness.
Specifically, the brightness information of the to-be-processed area adjacent to the target processing area is obtained, and the brightness information may include a display screen light source brightness value. After the brightness information of the to-be-processed areas adjacent to the target processing area is acquired, the target brightness can be determined according to the brightness information of the to-be-processed areas, wherein the target brightness is the final display brightness of the target processing area.
For example, the to-be-processed area adjacent to the target processing area may be an area a, an area B, an area C, and the like, the display luminance of the area a may be 170Lux (Lux), the display luminance of the area B may be 200Lux, and the display luminance of the area C may be 190Lux, and then the luminance average value of the area a, the area B, and the area C may be taken, and the average value may be used as the target luminance, that is, the average value 186Lux may be used as the target luminance of the target processing area.
After the target brightness is determined, the display position of the target processing area on the display screen can be obtained, and the display positions of the target processing area on the display screens of different terminals are different because the display screens of different terminals are different in size. The display position may include position coordinates and a region size. The brightness of the display screen at the display position can be adjusted to the target brightness, after the brightness of the target processing area is adjusted, the definition of the target processing area can be increased, meanwhile, the brightness difference value between the target processing area and the adjacent area is reduced, and the display quality of the picture of the display screen can be effectively improved.
In some embodiments, the step of "adjusting the brightness of the display position to the target brightness" may include the following steps:
determining an electric pulse signal according to the display position;
driving a light source corresponding to the display position to emit light based on the electric pulse signal;
and adjusting the brightness of the display position to the target brightness according to the light.
Specifically, the electrical pulse signal is determined according to the display position, and the electrical pulse signal may include a signal width and a signal amplitude. And then, the light source corresponding to the display position can be driven to emit light through the electric pulse signal, a bright light environment can be generated according to the light, and the bright light environment can be used for enhancing the brightness of the display position of the display screen.
For example, the light is driven by the electric pulse signal to form a bright light environment, the electric pulse is controlled to drive the display position light source in a centralized manner, the driving time of the display position light source is far shorter than the light emitting time of the light source, and the light sources in other areas are isolated, so that the light sources in other areas cannot emit light when the display position area is driven by the electric pulse. The electric pulse signal width can be correspondingly set to be narrow, namely the electric pulse signal width t is less than 0.5us (microsecond), the electric pulse signal width is used for outputting a plurality of electric pulses quickly and driving the light group to diffuse to quickly form a bright light ray area, wherein the light group can be light output by more than 2 light sources and forms the bright light ray area by driving the light group to diffuse.
The amplitude of the electric pulse signal can be set to be wide and can be larger than 2.8V, the electric pulse signal drives the optical group to form a bright light environment through wide amplitude, if the electric pulse signal can be in a very short time, namely time t is less than 0.01us, a plurality of electric pulses are output to drive the optical group to form the bright light environment, the electric pulse signal needs to output a signal t with narrow width to be less than 0.5us, at the moment, the electric pulse signal can drive the optical group fast, the time for generating the bright light environment is reduced, and the power consumption of the mobile terminal can be reduced.
The embodiment of the application discloses a file display processing method, which comprises the following steps: when the file is detected to be displayed, acquiring a display picture of a current display screen; determining a plurality of areas to be processed according to the display picture; acquiring image display information of a region to be processed; determining a target processing area from a plurality of areas to be processed based on the image display information; and adjusting the brightness of the target processing area. According to the embodiment of the application, when the file is displayed at the terminal, the area needing brightness adjustment is determined according to the definition of each area of the display picture, the brightness adjustment is further carried out on the area, full-screen brightness adjustment is not needed, the quality of reading the file by a user is guaranteed, and meanwhile the power consumption of the terminal can be effectively reduced.
Referring to fig. 2, fig. 2 is a schematic flowchart of a processing method for displaying a second file according to an embodiment of the present application. The specific scene application of the processing method for file display may be as follows:
201. and the terminal determines a display file according to the touch operation of the user and displays the display file on a display screen.
Specifically, when a user views a file through the terminal, the terminal can be started, corresponding touch operation is executed on a terminal interface according to a terminal prompt, the file is determined to be displayed, and the displayed file can be the file viewed by the user. The display file can be a video file, and the terminal displays the display file on the display screen according to touch operation of a user.
When the terminal displays the display file on the display screen, the display file may be displayed according to an initial display attribute of the display file, where the display attribute may include multiple types, for example, the display attribute may include a format, and the like.
For example, the display file may be a video file, the display attribute of the video file, that is, the display format may be a standard definition, and when the terminal displays the video file, the display file is displayed on the display screen in the standard definition format.
202. And the terminal acquires a display interface of the display screen at preset time intervals.
Specifically, the terminal acquires the display interface of the display screen at preset time intervals, when the terminal displays the display file, the display interface can be changed in real time according to the content of the display file, so that the area of the display interface to be adjusted can be changed at different display interfaces, the display interface of the display screen can be acquired at the preset time intervals, the terminal can rapidly adjust each area of the display interface in real time, and the adjustment efficiency of the display interface is improved.
203. The terminal acquires display information of a display interface and divides a display picture into a plurality of areas to be processed according to the display information.
Specifically, the terminal may obtain display information of the display interface after obtaining the display interface, where the display information may refer to display contents included in the display interface, for example, the display contents may include characters, character images, and the like.
After the display information of the display interface is acquired, the display screen can be divided into a plurality of areas to be processed according to the display information. Specifically, the display information may be characters, character images, and the like, and the terminal may divide character modules in different areas of the display interface into a plurality of areas to be processed, divide the character images into a plurality of areas to be processed according to different character images, divide a blank area that does not include the display content into one area to be processed, and the like.
204. And the terminal acquires the brightness difference between the areas to be processed.
Specifically, the terminal obtains the brightness difference value between the regions to be processed, and the terminal can calculate the brightness difference value between every two regions to be processed to obtain the brightness difference value between the regions to be processed, so that the brightness difference of different regions of a display picture can be determined, and the display picture can be quickly adjusted according to the difference.
For example, the regions to be processed may include a region 6, a region 7, a region 8, and the like, and first, the luminance value of each region to be processed may be obtained, where the luminance value of the region 6 may be 100 lux, the luminance value of the region 7 may be 150 lux, and the luminance value of the region 8 may be 180 lux, and then it may be determined that the luminance difference between the region 6 and the region 7 is 50 lux, the luminance difference between the region 6 and the region 8 is 80 lux, and the luminance difference between the region 7 and the region 8 is 30 lux.
205. And the terminal judges whether the brightness difference value is larger than a preset difference value or not.
Specifically, after the brightness difference values between the regions to be processed are obtained, each brightness difference value may be compared with a preset difference value, and whether the brightness difference value is greater than the preset difference value is determined, so that the region to be brightness-adjusted may be determined.
For example, if the predetermined brightness difference may be 50 lux, the brightness difference between the region 6 and the region 7 may be 50 lux, the brightness difference between the region 6 and the region 8 may be 80 lux, and the brightness difference between the region 7 and the region 8 may be 30 lux, then it may be determined that the brightness difference between the region 6 and the region 8 is greater than the predetermined brightness difference, and then step 206 may be performed on the region 6 and the region 8.
For another example, the predetermined difference may be 50 lux, and if the brightness difference between the regions to be processed is less than 50 lux, step 208 may be executed.
206. And the terminal determines the area to be processed with lower brightness value as the target processing area.
Specifically, when the brightness difference between the determined area 6 and the determined area 8 is greater than the preset difference, the terminal determines the area to be processed with a lower brightness value in the area 6 and the area 8 as the target processing area, and the target processing area may be an area requiring brightness adjustment.
207. And the terminal adjusts the brightness of the target processing area.
Specifically, the terminal adjusts the brightness of the target processing area, the terminal may obtain the brightness value of the to-be-processed area adjacent to the target processing area, the target brightness is determined according to the brightness value of the adjacent to-be-processed area, the target brightness may be the final display brightness of the target processing area, and then the brightness of the target display area may be adjusted to the target brightness to complete brightness adjustment.
For example, the areas to be processed adjacent to the target processing area may be an area 7 and an area 8, the luminance value of the area 7 may be 150 lux, the luminance value of the area 7 may be 180 lux, the luminance average value of the area 7 and the area 8 is obtained, that is, the luminance average value is 165 lux, it may be determined that the target luminance is 165 lux, and then the light source of the display screen corresponding to the target processing area is adjusted to 165 lux, that is, the luminance adjustment of the display screen may be completed, so that the definition of the display screen is improved and the user experience is improved on the premise of ensuring the uniformity of the display screen.
208. And the terminal finishes the operation.
Specifically, when the brightness difference values between the areas to be processed are smaller than the preset difference value, the display picture does not need to be adjusted, the current display brightness of each area can ensure that a user does not have an impression when viewing files, and the power consumption of the terminal can be reduced.
The embodiment of the application discloses a file display processing method, which comprises the following steps: when the file is detected to be displayed, acquiring a display picture of a current display screen; determining a plurality of areas to be processed according to the display picture; acquiring image display information of a region to be processed; determining a target processing area from a plurality of areas to be processed based on the image display information; and adjusting the brightness of the target processing area. According to the embodiment of the application, when the file is displayed at the terminal, the area needing brightness adjustment is determined according to the definition of each area of the display picture, the brightness adjustment is further carried out on the area, full-screen brightness adjustment is not needed, the quality of reading the file by a user is guaranteed, and meanwhile the power consumption of the terminal can be effectively reduced.
In order to better implement the processing method for file display provided by the embodiment of the present application, the embodiment of the present application further provides a device based on the processing method for file display. The terms are the same as those in the processing method shown in the above document, and the details of the implementation can be referred to the description in the method embodiment.
Referring to fig. 3, fig. 3 is a block diagram of a first document display processing apparatus according to an embodiment of the present disclosure, which can be applied to a mobile terminal such as a terminal, a tablet computer, a notebook computer, a palm computer, a Portable Media Player (PMP), and a fixed terminal such as a desktop computer, and the apparatus includes:
the detection unit 301 is configured to, when it is detected that a file is displayed, obtain a display picture of a current display screen;
a first determining unit 302, configured to determine a plurality of regions to be processed according to the display screen;
an obtaining unit 303, configured to obtain image display information of a region to be processed;
a second determination unit 304 for determining a target processing region from the plurality of regions to be processed based on the image display information;
a processing unit 305, configured to perform brightness adjustment on the target processing area.
In some embodiments, the second processing unit 304 may include:
the comparison subunit is used for comparing the display definition of the region to be processed with a preset display definition;
and the first processing subunit is used for taking the to-be-processed area corresponding to the display definition as the target processing area if the display definition is smaller than the preset display definition.
In some embodiments, the second processing unit 304 may further include:
and the second processing subunit is used for keeping the current display brightness to display the to-be-processed area if the display definition is greater than or equal to the preset display definition.
In some embodiments, the second processing unit 304 may include:
the first acquisition subunit is used for acquiring the definition difference between every two to-be-processed areas;
the judging subunit is used for judging whether the definition difference value is less than or equal to a preset difference value;
and the third processing subunit is used for taking the region to be processed with lower definition in the two regions to be processed as the target processing region if the target processing region is not the target processing region.
In some embodiments, the processing unit 305 may include:
the second acquisition subunit is used for acquiring the brightness information of the to-be-processed area adjacent to the target processing area;
the determining subunit is used for determining the target brightness according to the brightness information;
the third acquisition subunit is used for acquiring the display position of the target processing area on the display screen;
and the adjusting subunit is used for adjusting the brightness of the display position to the target brightness.
In some embodiments, the conditioning subunit may be specifically configured to: determining an electric pulse signal according to the display position; driving a light source corresponding to the display position to emit light based on the electric pulse signal; and adjusting the brightness of the display position to the target brightness according to the light.
In some embodiments, the first determining unit 302 may include:
a fourth acquiring subunit, configured to acquire display content of the display screen;
and the dividing subunit is used for dividing the display picture according to the type of the display content to obtain a plurality of regions to be processed.
The embodiment of the application discloses a processing device for file display, which comprises: when the file is detected to be displayed, acquiring a display picture of a current display screen; determining a plurality of areas to be processed according to the display picture; acquiring image display information of a region to be processed; determining a target processing area from a plurality of areas to be processed based on the image display information; and adjusting the brightness of the target processing area. According to the embodiment of the application, when the file is displayed at the terminal, the area needing brightness adjustment is determined according to the definition of each area of the display picture, the brightness adjustment is further carried out on the area, full-screen brightness adjustment is not needed, the quality of reading the file by a user is guaranteed, and meanwhile the power consumption of the terminal can be effectively reduced.
The embodiment of the application also provides a terminal. As shown in fig. 4, the terminal may include a Radio Frequency (RF) circuit 601, a memory 602 including one or more storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a Wireless Fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. Those skilled in the art will appreciate that the terminal configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during the process of transmitting and receiving information, and in particular, for processing the received downlink information of the base station by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 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, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices 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 604 may be used to display information input by or provided to the user and various graphical user interfaces of the server, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 604 may include a display panel, and optionally, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 4 the touch-sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and the backlight when the server moves to the ear.
Audio circuitry 606, speakers, and microphones may provide an audio interface between the user and the server. The audio circuit 606 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and converted into audio data, which is then processed by the audio data output processor 608, and then passed through the RF circuit 601 to be sent to, for example, a terminal, or the audio data is output to the memory 602 for further processing. The audio circuitry 606 may also include an ear-bud jack to provide communication of peripheral headphones with the server.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 607, and provides wireless broadband internet access for the user. Although fig. 4 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 608 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the server and processes data by running or executing software programs and modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the terminal. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 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 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 608 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Specifically, in this embodiment, the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, thereby implementing various functions:
when the file is detected to be displayed, acquiring a display picture of a current display screen;
determining a plurality of areas to be processed according to the display picture;
acquiring image display information of a region to be processed;
determining a target processing area from a plurality of areas to be processed based on the image display information;
and adjusting the brightness of the target processing area.
The embodiment of the application discloses a file display processing method, a file display processing device, a storage medium and a terminal. The file display processing method comprises the following steps: when the file is detected to be displayed, acquiring a display picture of a current display screen; determining a plurality of areas to be processed according to the display picture; acquiring image display information of a region to be processed; determining a target processing area from a plurality of areas to be processed based on the image display information; and adjusting the brightness of the target processing area. According to the embodiment of the application, when the file is displayed at the terminal, the area needing brightness adjustment is determined according to the definition of each area of the display picture, the brightness adjustment is further carried out on the area, full-screen brightness adjustment is not needed, the quality of reading the file by a user is guaranteed, and meanwhile the power consumption of the terminal can be effectively reduced.
It will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, which may be stored in a storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the processing methods for file display provided in the present application. For example, the instructions may perform the steps of:
when the file is detected to be displayed, acquiring a display picture of a current display screen; determining a plurality of areas to be processed according to the display picture; acquiring image display information of a region to be processed; determining a target processing area from a plurality of areas to be processed based on the image display information; and adjusting the brightness of the target processing area.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any file display processing method provided in the embodiments of the present application, beneficial effects that can be achieved by any file display processing method provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted here for the foregoing embodiments.
The foregoing describes in detail a processing method, an apparatus, a storage medium, and a terminal for document display provided in an embodiment of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the foregoing embodiment 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 processing method for file display is applied to a terminal, and is characterized by comprising the following steps:
when the file is detected to be displayed, acquiring a display picture of a current display screen;
determining a plurality of areas to be processed according to the display picture;
acquiring image display information of a region to be processed;
determining a target processing area from a plurality of areas to be processed based on the image display information;
and adjusting the brightness of the target processing area.
2. The method of claim 1, wherein the display information comprises display definition;
the determining a target processing region from a plurality of regions to be processed based on the image display information comprises:
comparing the display definition of the area to be processed with a preset display definition;
and if the display definition is smaller than the preset display definition, taking the to-be-processed area corresponding to the display definition as a target processing area.
3. The method of claim 2, further comprising:
and if the display definition is greater than or equal to the preset display definition, keeping the current display brightness to display the to-be-processed area.
4. The method of claim 1, wherein determining a target processing region from a plurality of regions to be processed based on the image display information comprises:
acquiring a definition difference value between every two to-be-processed areas;
judging whether the definition difference value is less than or equal to a preset difference value or not;
and if not, taking the to-be-processed area with smaller definition in the two to-be-processed areas as a target processing area.
5. The method of claim 1, wherein said brightness adjusting said target processing region comprises:
acquiring brightness information of a to-be-processed area adjacent to the target processing area;
determining the target brightness according to the brightness information;
acquiring the display position of the target processing area on the display screen;
and adjusting the brightness of the display position to the target brightness.
6. The method of claim 5, wherein the adjusting the brightness of the display location to the target brightness comprises:
determining an electric pulse signal according to the display position;
driving a light source corresponding to the display position to emit light based on the electric pulse signal;
and adjusting the brightness of the display position to the target brightness according to the light.
7. The method of claim 1, wherein determining a plurality of regions to be processed from the display comprises:
acquiring the display content of the display picture;
and dividing the display picture according to the type of the display content to obtain a plurality of regions to be processed.
8. A device for processing a document display, comprising:
the detection unit is used for acquiring a display picture of a current display screen when the file is detected to be displayed;
the first determining unit is used for determining a plurality of areas to be processed according to the display picture;
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring image display information of a region to be processed;
a second determination unit configured to determine a target processing region from a plurality of regions to be processed based on the image display information;
and the processing unit is used for adjusting the brightness of the target processing area.
9. A storage medium storing a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the steps of the method for processing a document display according to any one of claims 1 to 6.
10. A terminal, characterized by comprising a processor and a memory, said memory storing a plurality of instructions, said processor loading said instructions to execute the steps in the processing method of document display according to any one of claims 1 to 6.
CN202010128884.4A 2020-02-28 2020-02-28 Processing method and device for file display, storage medium and terminal Pending CN111367604A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010128884.4A CN111367604A (en) 2020-02-28 2020-02-28 Processing method and device for file display, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010128884.4A CN111367604A (en) 2020-02-28 2020-02-28 Processing method and device for file display, storage medium and terminal

Publications (1)

Publication Number Publication Date
CN111367604A true CN111367604A (en) 2020-07-03

Family

ID=71208219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010128884.4A Pending CN111367604A (en) 2020-02-28 2020-02-28 Processing method and device for file display, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN111367604A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112532878A (en) * 2020-11-25 2021-03-19 平安信托有限责任公司 Anti-photographing method, device and equipment based on artificial intelligence and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130064474A1 (en) * 2008-06-30 2013-03-14 Oleg Maslov Computing Higher Resolution Images From Multiple Lower Resolution Images
CN104021774A (en) * 2014-05-29 2014-09-03 京东方科技集团股份有限公司 Image processing method and apparatus
CN108391111A (en) * 2018-02-27 2018-08-10 深圳Tcl新技术有限公司 Image definition adjusting method, display device and computer readable storage medium
CN109064998A (en) * 2018-06-28 2018-12-21 努比亚技术有限公司 A kind of screen luminance adjustment method, terminal and computer readable storage medium
CN110008817A (en) * 2019-01-29 2019-07-12 北京奇艺世纪科技有限公司 Model training, image processing method, device, electronic equipment and computer readable storage medium
CN110109531A (en) * 2019-05-07 2019-08-09 北京字节跳动网络技术有限公司 Display control method, device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130064474A1 (en) * 2008-06-30 2013-03-14 Oleg Maslov Computing Higher Resolution Images From Multiple Lower Resolution Images
CN104021774A (en) * 2014-05-29 2014-09-03 京东方科技集团股份有限公司 Image processing method and apparatus
CN108391111A (en) * 2018-02-27 2018-08-10 深圳Tcl新技术有限公司 Image definition adjusting method, display device and computer readable storage medium
CN109064998A (en) * 2018-06-28 2018-12-21 努比亚技术有限公司 A kind of screen luminance adjustment method, terminal and computer readable storage medium
CN110008817A (en) * 2019-01-29 2019-07-12 北京奇艺世纪科技有限公司 Model training, image processing method, device, electronic equipment and computer readable storage medium
CN110109531A (en) * 2019-05-07 2019-08-09 北京字节跳动网络技术有限公司 Display control method, device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112532878A (en) * 2020-11-25 2021-03-19 平安信托有限责任公司 Anti-photographing method, device and equipment based on artificial intelligence and storage medium

Similar Documents

Publication Publication Date Title
US10360833B2 (en) Method for controlling image display and terminal
CN111816139B (en) Screen refresh rate switching method and electronic equipment
CN112229507A (en) Ambient light detection method and device, storage medium and mobile terminal
US11165950B2 (en) Method and apparatus for shooting video, and storage medium
CN110675838B (en) Brightness adjusting method and device, computer readable storage medium and terminal
CN111949239B (en) Screen sharing method and device, storage medium and terminal
WO2022217698A1 (en) Display panel driving method and device, and display terminal
CN107895352A (en) A kind of image processing method and mobile terminal
US11887276B2 (en) Image processing method and display apparatus for adjusting format and resolution of input image in parallel and matrix manner
CN111443765A (en) Electronic equipment and screen display method
CN111095350A (en) Image processing apparatus, method for processing image, and computer-readable recording medium
CN108845785B (en) Display method and terminal
CN113018856A (en) Image processing method, image processing device, electronic equipment and storage medium
CN116382540A (en) Display method and device for electronic paper, electronic equipment and storage medium
CN114119431A (en) Image processing method, image processing device, electronic equipment and storage medium
CN109639981B (en) Image shooting method and mobile terminal
CN114038370A (en) Display parameter adjusting method and device, storage medium and display equipment
CN114092452A (en) Method and device for enhancing image visual effect, storage medium and terminal equipment
CN111475238B (en) Page processing method and device, electronic equipment and storage medium
CN111367604A (en) Processing method and device for file display, storage medium and terminal
CN112053416A (en) Image processing method, image processing device, storage medium and computer equipment
CN109729280B (en) Image processing method and mobile terminal
CN111263216A (en) Video transmission method, device, storage medium and terminal
CN107124638B (en) Data transmission method, device and system
CN105184750A (en) Method and device of denoising real-time video images on 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200703

RJ01 Rejection of invention patent application after publication