CN112188133B - Video acquisition method and device, electronic equipment and storage medium - Google Patents
Video acquisition method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112188133B CN112188133B CN202011050637.3A CN202011050637A CN112188133B CN 112188133 B CN112188133 B CN 112188133B CN 202011050637 A CN202011050637 A CN 202011050637A CN 112188133 B CN112188133 B CN 112188133B
- Authority
- CN
- China
- Prior art keywords
- brightness
- data
- display
- luminance
- preset
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/004—Diagnosis, testing or measuring for television systems or their details for digital television systems
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The disclosure relates to a video acquisition method and device, electronic equipment and storage medium. The method comprises the following steps: after detecting a first operation representing the start of screen recording, sequentially acquiring initial images to be displayed of each frame and brightness data corresponding to the initial images of each frame; the brightness data are used for representing the current display brightness of a display screen in the electronic equipment when the corresponding initial image is displayed; processing each frame of initial image according to the brightness data corresponding to each frame of initial image to obtain a target image containing the current display brightness of the display screen; and sequentially acquiring target images of each frame until a second operation for finishing screen recording is detected, and acquiring a target video of the current screen recording. According to the embodiment, the display brightness of the display screen can be shared while the target video is shared, the scene of the recorded video can be reflected more intuitively, the problem of the display brightness can be found in time, and the use experience is improved.
Description
Technical Field
The disclosure relates to the technical field of image processing, and in particular relates to a video acquisition method and device, electronic equipment and a storage medium.
Background
For better viewing experience, the existing electronic devices are usually provided with an automatic brightness function, that is, the electronic device adjusts the brightness of the display screen according to the ambient light level of the environment, for example, when the display screen is under strong light, the brightness of the display screen is lightened, and when the display screen is indoors, the brightness of the display screen is darkened, so that the user can better use the electronic device.
However, when the brightness of the display screen of the electronic device is problematic, a technician needs to turn on the electronic device, acquire the brightness data of the display screen, and then process according to the brightness data: for example, after the electronic device is sold, the user typically needs to mail the electronic device to a manufacturer, and after the electronic device is opened by an after-sales person of the manufacturer, the electronic device is maintained according to the brightness data after the brightness data of the display screen is obtained, which is time-consuming and labor-consuming.
Disclosure of Invention
The disclosure provides a video acquisition method and device, electronic equipment and a storage medium, so as to solve the defects of the related technology.
According to a first aspect of an embodiment of the present disclosure, there is provided a video acquisition method, applied to an electronic device, including:
after detecting a first operation representing the start of screen recording, sequentially acquiring initial images to be displayed of each frame and brightness data corresponding to the initial images of each frame; the brightness data are used for representing the current display brightness of a display screen in the electronic equipment when the corresponding initial image is displayed;
processing each frame of initial image according to the brightness data corresponding to each frame of initial image to obtain a target image containing the current display brightness of the display screen;
and sequentially acquiring target images of each frame until a second operation for finishing screen recording is detected, and acquiring a target video of the current screen recording.
Optionally, acquiring luminance data corresponding to the initial image of each frame includes:
creating a preset layer, wherein the preset layer comprises brightness data representing the current display brightness of the display screen;
acquiring the current display brightness of the display screen at the current moment;
and updating the brightness data in the preset layer according to the current display brightness.
Optionally, updating the luminance data in the preset layer according to the current display luminance includes:
and when the storage bit number of the brightness data is larger than or equal to the storage bit number of the display brightness of the display screen, directly updating the brightness data in the preset layer by adopting the current display brightness.
Optionally, updating the luminance data in the preset layer according to the current display luminance includes:
when the storage bit number of the brightness data is smaller than the storage bit number of the display brightness of the display screen, inquiring target brightness data from the corresponding relation according to the current display brightness based on the corresponding relation between preset brightness data and display brightness;
and updating the brightness data in the preset layer by utilizing the target brightness data.
Optionally, when the storage bit number of the luminance data is smaller than the storage bit number of the display luminance of the display screen, the preset layer includes a preset area, and the preset area includes luminance data to be displayed.
Optionally, the luminance data to be displayed includes at least one of: the brightness data in the image layer, the current display brightness of the display screen and the light sensation data acquired by the light sensor are preset.
Optionally, the value of the layer number position identifier of the preset layer is the maximum value.
Optionally, the method further comprises:
and removing the preset layer after detecting a second operation for ending the screen recording.
According to a second aspect of embodiments of the present disclosure, there is provided a video acquisition apparatus, applied to an electronic device, including:
the initial image acquisition module is used for sequentially acquiring initial images to be displayed of each frame after detecting a first operation representing the start of screen recording;
the brightness data acquisition module is used for acquiring brightness data corresponding to each frame of initial image; the brightness data are used for representing the current display brightness of a display screen in the electronic equipment when the corresponding initial image is displayed;
the target image acquisition module is used for processing each frame of initial image according to the brightness data corresponding to each frame of initial image to obtain a target image containing the current display brightness of the display screen;
the target video acquisition module is used for sequentially acquiring target images of each frame until a second operation for indicating the end of screen recording is detected, so as to acquire the target video of the current screen recording.
Optionally, the luminance data acquisition module includes:
the display device comprises a preset layer creation unit, a display unit and a display unit, wherein the preset layer creation unit is used for creating a preset layer, and the preset layer comprises brightness data representing the current display brightness of a display screen;
the current brightness acquisition unit is used for acquiring the current display brightness of the display screen at the current moment;
and the brightness data updating unit is used for updating the brightness data in the preset layer according to the current display brightness.
Optionally, the luminance data updating unit includes:
and the first updating subunit is used for directly updating the brightness data in the preset layer by adopting the current display brightness when the storage bit number of the brightness data is greater than or equal to the storage bit number of the display brightness of the display screen.
Optionally, the luminance data updating unit includes:
a second updating subunit, configured to query, when the storage bit number of the luminance data is smaller than the storage bit number of the display luminance of the display screen, target luminance data from the corresponding relationship based on a preset corresponding relationship between the luminance data and the display luminance according to the current display luminance;
and updating the brightness data in the preset layer by utilizing the target brightness data.
Optionally, when the storage bit number of the luminance data is smaller than the storage bit number of the display luminance of the display screen, the preset layer includes a preset area, and the preset area includes luminance data to be displayed.
Optionally, the luminance data to be displayed includes at least one of: the brightness data in the image layer, the current display brightness of the display screen and the light sensation data acquired by the light sensor are preset.
Optionally, the value of the layer number position identifier of the preset layer is the maximum value.
Optionally, the luminance data acquisition module includes:
and the preset layer removing unit is used for removing the preset layer after detecting the second operation for indicating the end of recording.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a processor;
a memory for storing a computer program executable by the processor;
wherein the processor is configured to execute the computer program in the memory to implement the above-described method.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium, which when executed by a processor, enables the above-described method to be implemented.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
as can be seen from the foregoing embodiments, in the embodiments of the present disclosure, after detecting a first operation indicating that screen recording is started, initial images to be displayed of each frame are sequentially acquired, and luminance data corresponding to the initial images of each frame are acquired; the brightness data are used for representing the current display brightness of a display screen in the electronic equipment when the corresponding initial image is displayed; then, processing each frame of initial image according to the brightness data corresponding to each frame of initial image to obtain a target image containing the current display brightness of the display screen; and then, sequentially acquiring target images of each frame until a second operation for indicating the end of screen recording is detected, and acquiring the target video of the current screen recording. Therefore, in the embodiment, the display brightness of the display screen is integrated into the target video, so that the display brightness of the display screen can be shared while the target video is shared, and the scene of the recorded video can be more intuitively reflected; or, the display brightness and brightness change of the display screen can be sensed in the process of watching the target video, so that the problem of the display brightness can be found in time, and the use experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a video acquisition method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating acquiring luminance data according to an exemplary embodiment.
Fig. 3 is a flow chart illustrating an application scenario, according to an example embodiment.
Fig. 4 is a block diagram of a video acquisition device, according to an example embodiment.
Fig. 5 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The embodiments described by way of example below are not representative of all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus consistent with some aspects of the disclosure as detailed in the accompanying claims.
To solve the above technical problem, the embodiments of the present disclosure provide a video acquisition method, which may be applied to an electronic device having a screen recording function, and fig. 1 is a flowchart of a video acquisition method according to an exemplary embodiment.
Referring to fig. 1, a video acquisition method includes steps 11 to 13:
in step 11, after detecting a first operation indicating that screen recording is started, sequentially acquiring initial images to be displayed of each frame, and acquiring brightness data corresponding to the initial images of each frame.
In this embodiment, during the display process, the electronic device may detect a triggering operation of the electronic device by a user, for example, pressing a physical key, clicking a displayed virtual key, operating a gesture, indicating a first operation of starting screen recording, and so on. And when the first operation representing the start of the screen recording is detected, the electronic equipment is switched to the screen recording state. After that, the electronic device may sequentially acquire the initial images to be displayed for each frame according to a set period, for example, the electronic device may acquire the initial image to be displayed for each frame from the output end of the codec, or acquire the initial image from the input end of the image processing device, and the technician may select the position of acquiring the initial image according to a specific scene.
It can be appreciated that the setting period may be greater than or equal to the refresh frequency of the display screen in the electronic device, and a technician may adjust the frequency of the setting period according to a specific scenario. In one embodiment, the set period is the same as the refresh frequency of the display screen, so that the electronic device can obtain each frame of image to be displayed by the display screen.
Considering that each frame of initial image is an image of the next frame to be displayed, that is, the time when the electronic device obtains the initial image is not much different from the time when the initial image is displayed, the time when the initial image is obtained can be approximated as the display time. Based on this, the display luminance of the display screen at the time when the initial image is acquired can be regarded as the current display luminance corresponding thereto in the present embodiment.
In this embodiment, a light sensor is disposed in the electronic device, where the light sensor may sense light leakage of the display screen and external ambient light, and then process the light leakage and the ambient light to obtain light sensation data, where the light sensation data may be one of the following: light sensation data including leaked light and external environment light, light sensation data including leaked light, and light sensation data including external environment light. In an example, the light sensation data includes only data of external ambient light. It should be noted that, the scheme of acquiring the light sensation data by the light sensor may refer to the related art.
In this embodiment, the electronic device may communicate with the light sensor to obtain the light sensation data, so as to obtain luminance data corresponding to the initial image of each frame.
Referring to fig. 2, in step 21, the electronic device may create a preset layer at the top layer (the value of the layer number position identifier zorder is the maximum value) of all the layers, where each pixel data includes luminance data. The storage bit number of the brightness data can be larger than or equal to the storage bit number of the display brightness of the display screen or smaller than the storage bit number of the display brightness of the display screen.
Taking the existing display screen with the brightness value range of [0, 2047], namely the 11-bit storage bit number is needed as an example, if the storage data of the brightness data adopts 11 bits or even more than 11 bits, the brightness value range of the brightness data can cover the brightness value range of the display screen, so that the electronic equipment can directly update the brightness data in the preset layer by adopting the current display brightness of the display screen.
If the stored data of the luminance data adopts 10 bits, the value range of the luminance data is smaller than the value range of the luminance of the display screen, at this time, a corresponding relationship between the luminance data and the display luminance needs to be preset, for example, luminance data 0 corresponds to display luminance 0, luminance data 1 corresponds to display luminance 2, luminance data 2 corresponds to display luminance 4, … …, luminance data 1023 corresponds to display luminance 2047, and the display luminance can be mapped to the corresponding luminance data through the corresponding relationship, so that even distribution of the display luminance and the luminance data can be ensured under the condition that part of display luminance information is lost.
In step 22, the electronic device may obtain a current display brightness of the display screen at a current time, where the current display brightness is obtained through the light sensation data.
In step 23, the electronic device may update the luminance data in the preset layer according to the current display luminance. When the number of storage bits of the luminance data is greater than or equal to the number of storage bits of the display luminance of the display screen, the electronic device can directly update the luminance data in the preset layer by adopting the current display luminance. When the number of storage bits of the luminance data is smaller than the number of storage bits of the display luminance of the display screen, based on the preset corresponding relation between the luminance data and the display luminance, the electronic device can query the target luminance data from the corresponding relation according to the current display luminance, and then update the luminance data in the preset layer by using the target luminance data.
It should be noted that, the preset layer includes RGB data in addition to luminance data, where the value of the RGB data may be set reasonably according to a specific scene, so that each pixel includes RGBA data, that is, red pixel data, green pixel data, blue pixel data, and luminance data. For convenience, in an example, the RGB data are all set to 0, so that the RGB data in the preset layer cannot affect the RGB data of the initial image to be displayed, or the calculation amount is reduced.
In step 12, each frame of initial image is processed according to the brightness data corresponding to each frame of initial image, and a target image containing the current display brightness of the display screen is obtained.
In this embodiment, the electronic device may process each frame of initial image according to luminance data corresponding to each frame of initial image to obtain a target image including current display luminance of the display screen, including:
for example, the electronic device may provide the layers corresponding to the initial image to be displayed, i.e., the R layer, the G layer, and the B layer, and the preset layer, to an image processing device (such as a GPU or a hardware synthesizer), where the image processing device processes the layers.
Taking GPU as an example, the layers are in order from bottom to top: r layer, G layer, B layer, and preset layer. The GPU processes 4 layers according to a preset algorithm, and the method comprises the following steps:
firstly, synthesizing an R layer and a G layer to obtain a G' layer, wherein the synthesis mode is as follows:
G’_R=R1*(1-alpha2)+R2*alpha2;
G’_G=G1*(1-alpha2)+G2*alpha2;
G’_B=B1*(1-alpha2)+B2*alpha2;
wherein R1, G1 and B1 are pixel data of each color in the R layer, R2, G2 and B2 are pixel data of each color in the G layer, and alpha2 is brightness data of the G layer.
And then, synthesizing the G ' layer and the B layer, and obtaining the G ' layer by referring to the synthesized R layer and the G layer to obtain the B ' layer.
And then synthesizing the B' layer and the preset layer, thereby obtaining the target image.
In the second example, the luminance data in the preset layer may be used to adaptively adjust the pixel data of each pixel unit in the initial image, for example, adjust the pixel data in 1 layer, 2 layers or 3 layers in the RGB layers. The adjusted three layers of RGB are provided to an image processing device, and the three layers of RGB are synthesized by the image processing device, and the synthesis mode can refer to example one, so that a target image obtained by the scheme of example one is obtained. This example can be implemented without requiring adjustments to existing image processing devices.
In step 13, the target images of each frame are sequentially acquired until the second operation indicating the end of screen recording is detected, and the target video of the current screen recording is obtained.
In this embodiment, the electronic device may sequentially acquire, from the image processing device, the target image corresponding to each initial image until a second operation indicating that the screen recording is finished is detected, so as to obtain the target video of the secondary screen recording. Alternatively, each video frame in the target video is a target image acquired from the image processing device between the first operation and the second operation, and each includes the current display brightness of the display screen.
In an embodiment, the electronic device may remove the preset layer after detecting the second operation indicating that the recording is finished.
The problem of display brightness loss exists when the number of storage bits of the brightness data is smaller than the number of storage bits of the display brightness of the display screen, and the larger the difference of the storage bits is, the more the loss is. In an embodiment, a preset area is set in the preset layer, and the preset area is used for storing luminance data to be displayed, where the luminance data to be displayed includes at least one of the following: the brightness data in the image layer, the current display brightness of the display screen and the light sensation data acquired by the light sensor are preset. Therefore, in the process of displaying the target video, the brightness data can be displayed in a text mode, so that a user can conveniently compare the brightness data fused by the target video with the brightness data displayed by the text, and the method is beneficial to helping the user to find problems of the scene of the recorded video and the brightness of the target video.
So far, in the embodiment, the display brightness of the display screen is integrated into the target video, so that the display brightness of the display screen can be shared while the target video is shared, and the scene of the recorded video can be more intuitively reflected; or, the display brightness and brightness change of the display screen can be sensed in the process of watching the target video, so that the problem of the display brightness can be found in time, and the use experience is improved.
The process of the video acquisition method described above is described below in connection with a GPU, see fig. 3, including:
1. after the screen recording switch is turned on, the electronic equipment can detect the brightness switch of the brightness data in the screen recording tool, and after the brightness switch is turned on, the electronic equipment can create a preset image for acquiring the brightness data. When the brightness switch is not turned on, the electronic device may jump to step 2.
The preset layer is a buffer layer of RGBA (8/8/8/8 bit), and can select the format which can express the maximum bit of A bits in the current RGB format.
The synthesis mode is preprocessing, the RGB values are all 0, the alpha value (namely the A value) is used for storing the current display brightness of the display screen, and the value of the layer number position identifier zorder is the maximum value, namely the layer number position identifier is positioned at the top layer of all layers. The purpose of creating the preset layer is to change the gray scale of each layer in the initial image by using the alpha bit of the top layer, so as to achieve the effect of simulating brightness change by compressing the gray scale of the image.
If the storage bit number of the alpha value is smaller than the bit number of the current display brightness, namely the value range of the alpha value is smaller than the value range of the display brightness, the display brightness can be uniformly mapped to the value range of the alpha. However, in order to make up for the defect, the bufferlayer can specially mark a preset area at a certain position for displaying the current display brightness and light sensation data, so that the brightness information can be intuitively reflected, and the accurate numerical value of the current display brightness and light sensation data can be recorded.
2. The electronic equipment starts classical screen recording, namely the existing screen recording function:
in the classical recording, when the display brightness and the light sensation data continuously change, the alpha bit of the preset layer in the step 1, the current display brightness and the light sensation data are updated in real time. The electronic device may then input the initial image to be displayed and the preset layer to the GPU simultaneously. Thus, the GPU can synthesize the initial image and a preset image layer to obtain a target image.
3. After the screen recording switch is turned off, the electronic equipment can obtain the target video recorded at this time, so that the change of brightness can be simulated, and the brightness value and the light sensation value of the current terminal are displayed. After the screen recording is finished, the layer is removed.
4. The electronic equipment can close the classical screen recording function, and continuously judge whether the screen recording is started or not, when the brightness switch is started, the preset image is removed and the screen recording is finished, and otherwise, the screen recording is directly finished.
On the basis of the video acquisition method, the embodiment of the disclosure further provides a video acquisition device, which is applied to the electronic equipment, and referring to fig. 4, and includes:
an initial image obtaining module 41, configured to, after detecting a first operation indicating that screen recording is started, sequentially obtain initial images to be displayed for each frame;
a brightness data obtaining module 42, configured to obtain brightness data corresponding to each frame of initial image; the brightness data are used for representing the current display brightness of a display screen in the electronic equipment when the corresponding initial image is displayed;
a target image obtaining module 43, configured to process each frame of initial image according to the luminance data corresponding to each frame of initial image, and obtain a target image including the current display luminance of the display screen;
the target video obtaining module 44 is configured to obtain target video of the current screen recording in sequence until a second operation indicating that the screen recording is finished is detected.
In one embodiment, the luminance data acquisition module includes:
the display device comprises a preset layer creation unit, a display unit and a display unit, wherein the preset layer creation unit is used for creating a preset layer, and the preset layer comprises brightness data representing the current display brightness of a display screen;
the current brightness acquisition unit is used for acquiring the current display brightness of the display screen at the current moment;
and the brightness data updating unit is used for updating the brightness data in the preset layer according to the current display brightness.
In an embodiment, the luminance data updating unit includes:
and the first updating subunit is used for directly updating the brightness data in the preset layer by adopting the current display brightness when the storage bit number of the brightness data is greater than or equal to the storage bit number of the display brightness of the display screen.
In an embodiment, the luminance data updating unit includes:
a second updating subunit, configured to query, when the storage bit number of the luminance data is smaller than the storage bit number of the display luminance of the display screen, target luminance data from the corresponding relationship based on a preset corresponding relationship between the luminance data and the display luminance according to the current display luminance;
and updating the brightness data in the preset layer by utilizing the target brightness data.
In an embodiment, when the storage bit number of the luminance data is smaller than the storage bit number of the display screen for displaying the luminance, the preset layer includes a preset area, and the preset area includes the luminance data to be displayed.
In an embodiment, the luminance data to be displayed includes at least one of: the brightness data in the image layer, the current display brightness of the display screen and the light sensation data acquired by the light sensor are preset.
In an embodiment, the number of layers position identifier of the preset layer is the maximum value.
In one embodiment, the luminance data acquisition module includes:
and the preset layer removing unit is used for removing the preset layer after detecting the second operation for indicating the end of recording.
It can be understood that the apparatus provided in the embodiments of the present disclosure corresponds to the above method, and specific content may refer to content of each embodiment of the method, which is not described herein.
Fig. 5 is a block diagram of an electronic device, according to an example embodiment. For example, electronic device 500 may be a smart phone, computer, digital broadcast terminal, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 5, an electronic device 500 may include one or more of the following components: a processing component 502, a memory 504, a power supply component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, a communication component 516, and an image acquisition component 518.
The processing component 502 generally controls overall operation of the electronic device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 can include one or more processors 520 to execute computer programs. Further, the processing component 502 can include one or more modules that facilitate interactions between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the electronic device 500. Examples of such data include computer programs, contact data, phonebook data, messages, pictures, videos, etc. for any application or method operating on electronic device 500. The memory 504 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 506 provides power to the various components of the electronic device 500. The power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 500. The power supply assembly 506 may include a power chip and the controller may communicate with the power chip to control the power chip to turn on or off the switching device to power the motherboard circuit with or without the battery.
The multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and the target object. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a target object. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 further comprises a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc.
The sensor assembly 514 includes one or more sensors for providing status assessment of various aspects of the electronic device 500. For example, the sensor assembly 514 may detect an on/off state of the electronic device 500, a relative positioning of the components, such as a display and keypad of the electronic device 500, a change in position of the electronic device 500 or one of the components, the presence or absence of a target object in contact with the electronic device 500, an orientation or acceleration/deceleration of the electronic device 500, and a change in temperature of the electronic device 500. In this example, the sensor assembly 514 may include a magnetic force sensor, a gyroscope, and a magnetic field sensor, wherein the magnetic field sensor includes at least one of: hall sensors, thin film magneto-resistive sensors, and magnetic liquid acceleration sensors.
The communication component 516 is configured to facilitate communication between the electronic device 500 and other devices, either wired or wireless. The electronic device 500 may access a wireless network based on a communication standard, such as WiFi,2G, 3G, 4G, 5G, or a combination thereof. In one exemplary embodiment, the communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements.
In an exemplary embodiment, a non-transitory readable storage medium is also provided that includes an executable computer program, such as memory 504 including instructions, that is executable by a processor. The readable storage medium may be, among other things, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (16)
1. A video acquisition method, applied to an electronic device, comprising:
after detecting a first operation representing the start of screen recording, sequentially acquiring initial images to be displayed of each frame and brightness data corresponding to the initial images of each frame; the brightness data are used for representing the current display brightness of a display screen in the electronic equipment when the corresponding initial image is displayed; the obtaining the brightness data corresponding to the initial image of each frame includes: creating a preset layer, wherein the preset layer comprises brightness data representing the current display brightness of the display screen; acquiring the current display brightness of the display screen at the current moment; updating the brightness data in the preset layer according to the current display brightness;
processing each frame of initial image according to the brightness data corresponding to each frame of initial image to obtain a target image containing the current display brightness of the display screen so as to reflect the display brightness problem of the electronic equipment;
and sequentially acquiring target images of each frame until a second operation for finishing screen recording is detected, and acquiring a target video of the current screen recording.
2. The method of claim 1, wherein updating luminance data in the preset layer according to the current display luminance comprises:
and when the storage bit number of the brightness data is larger than or equal to the storage bit number of the display brightness of the display screen, directly updating the brightness data in the preset layer by adopting the current display brightness.
3. The method of claim 1, wherein updating luminance data in the preset layer according to the current display luminance comprises:
when the storage bit number of the brightness data is smaller than the storage bit number of the display brightness of the display screen, inquiring target brightness data from the corresponding relation according to the current display brightness based on the corresponding relation between preset brightness data and display brightness;
and updating the brightness data in the preset layer by utilizing the target brightness data.
4. The method of claim 1, wherein the predetermined layer comprises a predetermined area including luminance data to be displayed when the number of storage bits of the luminance data is smaller than the number of storage bits of the display luminance of the display screen.
5. The method of claim 4, wherein the luminance data to be displayed comprises at least one of: the brightness data in the image layer, the current display brightness of the display screen and the light sensation data acquired by the light sensor are preset.
6. The method of claim 1, wherein the number of layer position identifiers of the preset layer are maximized.
7. The method according to claim 1, wherein the method further comprises:
after a second operation indicating the end of the recording is detected, the preset layer is removed.
8. A video acquisition apparatus, characterized by being applied to an electronic device, comprising:
the initial image acquisition module is used for sequentially acquiring initial images to be displayed of each frame after detecting a first operation representing the start of screen recording;
the brightness data acquisition module is used for acquiring brightness data corresponding to each frame of initial image; the brightness data are used for representing the current display brightness of a display screen in the electronic equipment when the corresponding initial image is displayed;
the target image acquisition module is used for processing each frame of initial image according to the brightness data corresponding to each frame of initial image to obtain a target image containing the current display brightness of the display screen so as to reflect the display brightness problem of the electronic equipment; the brightness data acquisition module comprises: the display device comprises a preset layer creation unit, a display unit and a display unit, wherein the preset layer creation unit is used for creating a preset layer, and the preset layer comprises brightness data representing the current display brightness of a display screen; the current brightness acquisition unit is used for acquiring the current display brightness of the display screen at the current moment; a brightness data updating unit, configured to update brightness data in the preset layer according to the current display brightness;
the target video acquisition module is used for sequentially acquiring target images of each frame until a second operation for indicating the end of screen recording is detected, so as to acquire the target video of the current screen recording.
9. The apparatus according to claim 8, wherein the luminance data updating unit includes:
and the first updating subunit is used for directly updating the brightness data in the preset layer by adopting the current display brightness when the storage bit number of the brightness data is greater than or equal to the storage bit number of the display brightness of the display screen.
10. The apparatus according to claim 8, wherein the luminance data updating unit includes:
a second updating subunit, configured to query, when the storage bit number of the luminance data is smaller than the storage bit number of the display luminance of the display screen, target luminance data from the corresponding relationship based on a preset corresponding relationship between the luminance data and the display luminance according to the current display luminance;
and updating the brightness data in the preset layer by utilizing the target brightness data.
11. The apparatus of claim 8, wherein the preset layer comprises a preset area including luminance data to be displayed when a storage bit number of the luminance data is smaller than a storage bit number of the display luminance of the display screen.
12. The apparatus of claim 11, wherein the luminance data to be displayed comprises at least one of: the brightness data in the image layer, the current display brightness of the display screen and the light sensation data acquired by the light sensor are preset.
13. The apparatus of claim 8, wherein the number of layer position identifiers of the preset layer are maximized.
14. The apparatus of claim 8, wherein the luminance data acquisition module comprises:
and the preset layer removing unit is used for removing the preset layer after detecting the second operation for indicating the end of recording.
15. An electronic device, comprising:
a processor;
a memory for storing a computer program executable by the processor;
wherein the processor is configured to execute a computer program in the memory to implement the steps of the method according to any of claims 1-7.
16. A computer readable storage medium, characterized in that a computer program executable in said storage medium is capable of implementing the steps of the method according to any one of claims 1 to 7 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011050637.3A CN112188133B (en) | 2020-09-29 | 2020-09-29 | Video acquisition method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011050637.3A CN112188133B (en) | 2020-09-29 | 2020-09-29 | Video acquisition method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112188133A CN112188133A (en) | 2021-01-05 |
CN112188133B true CN112188133B (en) | 2023-10-17 |
Family
ID=73945853
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011050637.3A Active CN112188133B (en) | 2020-09-29 | 2020-09-29 | Video acquisition method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112188133B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113485545B (en) * | 2021-07-20 | 2024-10-11 | 歌尔科技有限公司 | Control method of wearable device, wearable device and medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105304064A (en) * | 2015-11-03 | 2016-02-03 | 广东欧珀移动通信有限公司 | Method and system for regulating brightness of electronic equipment screen |
CN106597788A (en) * | 2016-12-15 | 2017-04-26 | 广东威创视讯科技股份有限公司 | Color channel adjustment, light source brightness adjustment, splicing wall brightness method and system |
CN107068114A (en) * | 2017-04-24 | 2017-08-18 | 北京小米移动软件有限公司 | Screen color method of adjustment, device, equipment and storage medium |
CN108986053A (en) * | 2018-08-21 | 2018-12-11 | 北京小米移动软件有限公司 | Screen display method and device |
CN109062411A (en) * | 2018-08-02 | 2018-12-21 | 维沃移动通信有限公司 | A kind of screen luminance adjustment method and mobile terminal |
CN109947228A (en) * | 2019-03-27 | 2019-06-28 | 努比亚技术有限公司 | A kind of display panel control method, device and computer readable storage medium |
CN110164367A (en) * | 2019-05-05 | 2019-08-23 | 霸州市云谷电子科技有限公司 | Brightness adjusting method, device and the display screen of display screen |
CN110187943A (en) * | 2019-04-15 | 2019-08-30 | 努比亚技术有限公司 | A kind of record screen method, terminal and computer readable storage medium |
CN111060196A (en) * | 2020-01-03 | 2020-04-24 | 武汉天马微电子有限公司 | Brightness obtaining equipment and method for display screen |
CN210774613U (en) * | 2019-11-08 | 2020-06-16 | 北京转转精神科技有限责任公司 | Screen testing and identifying device |
CN111524492A (en) * | 2020-05-18 | 2020-08-11 | 刘兴丹 | Method and device for automatically adjusting screen brightness in preset mode |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI543147B (en) * | 2014-09-12 | 2016-07-21 | 致伸科技股份有限公司 | Method for adjusting luminance of monitor of electrical device |
WO2018098638A1 (en) * | 2016-11-29 | 2018-06-07 | 华为技术有限公司 | Electronic device photographing method and apparatus |
-
2020
- 2020-09-29 CN CN202011050637.3A patent/CN112188133B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105304064A (en) * | 2015-11-03 | 2016-02-03 | 广东欧珀移动通信有限公司 | Method and system for regulating brightness of electronic equipment screen |
CN106597788A (en) * | 2016-12-15 | 2017-04-26 | 广东威创视讯科技股份有限公司 | Color channel adjustment, light source brightness adjustment, splicing wall brightness method and system |
CN107068114A (en) * | 2017-04-24 | 2017-08-18 | 北京小米移动软件有限公司 | Screen color method of adjustment, device, equipment and storage medium |
CN109062411A (en) * | 2018-08-02 | 2018-12-21 | 维沃移动通信有限公司 | A kind of screen luminance adjustment method and mobile terminal |
CN108986053A (en) * | 2018-08-21 | 2018-12-11 | 北京小米移动软件有限公司 | Screen display method and device |
CN109947228A (en) * | 2019-03-27 | 2019-06-28 | 努比亚技术有限公司 | A kind of display panel control method, device and computer readable storage medium |
CN110187943A (en) * | 2019-04-15 | 2019-08-30 | 努比亚技术有限公司 | A kind of record screen method, terminal and computer readable storage medium |
CN110164367A (en) * | 2019-05-05 | 2019-08-23 | 霸州市云谷电子科技有限公司 | Brightness adjusting method, device and the display screen of display screen |
CN210774613U (en) * | 2019-11-08 | 2020-06-16 | 北京转转精神科技有限责任公司 | Screen testing and identifying device |
CN111060196A (en) * | 2020-01-03 | 2020-04-24 | 武汉天马微电子有限公司 | Brightness obtaining equipment and method for display screen |
CN111524492A (en) * | 2020-05-18 | 2020-08-11 | 刘兴丹 | Method and device for automatically adjusting screen brightness in preset mode |
Non-Patent Citations (1)
Title |
---|
LED显示屏亮度均匀性评价方法的研究;白燕燕;《中国优秀硕士学位论文全文数据库》;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112188133A (en) | 2021-01-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109961747B (en) | Electronic ink screen display method and device and electronic equipment | |
US9928811B2 (en) | Methods, devices, and computer-readable storage medium for image display | |
CN106710539B (en) | Liquid crystal display method and device | |
EP3168836A1 (en) | Liquid crystal display method and device, computer program and recording medium | |
CN109215578B (en) | Screen display method and device | |
CN108492767A (en) | Prevent the method, apparatus and storage medium of display burn-in | |
CN109599069B (en) | Image display method and device | |
CN111611034A (en) | Screen display adjusting method and device and storage medium | |
CN111462701A (en) | Backlight brightness adjusting method and device | |
EP3285474B1 (en) | Colour gamut mapping method and apparatus, computer program and recording medium | |
CN103885678A (en) | Method and device for displaying object | |
CN112188133B (en) | Video acquisition method and device, electronic equipment and storage medium | |
CN114067733B (en) | Display screen correction method, display screen correction device and display chip | |
US10827156B2 (en) | Light filling method and apparatus for photographing environment, and computer-readable storage medium | |
EP3846488A1 (en) | Method and apparatus for controlling video | |
CN108877697B (en) | Method and device for displaying image | |
CN112019680A (en) | Screen brightness adjusting method and device | |
CN112905096B (en) | Display control method, device, terminal equipment and storage medium | |
CN104461303A (en) | Method and device for adjusting interfaces | |
CN113393813B (en) | Display screen brightness adjusting method and device and terminal equipment | |
US20210335390A1 (en) | Method and device for generating dynamic image | |
CN111383568B (en) | Display control method and device, electronic equipment and computer readable storage medium | |
CN112799772A (en) | Method, device and medium for controlling interface display | |
CN110209314A (en) | Icon arrangement method and device | |
CN113360052A (en) | Page display adjusting method and device, mobile terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |