CN113784040B - Shooting method, shooting device, electronic equipment and storage medium - Google Patents

Shooting method, shooting device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113784040B
CN113784040B CN202110899877.9A CN202110899877A CN113784040B CN 113784040 B CN113784040 B CN 113784040B CN 202110899877 A CN202110899877 A CN 202110899877A CN 113784040 B CN113784040 B CN 113784040B
Authority
CN
China
Prior art keywords
pixel
voltage
target time
pixel point
voltage value
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
Application number
CN202110899877.9A
Other languages
Chinese (zh)
Other versions
CN113784040A (en
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.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202110899877.9A priority Critical patent/CN113784040B/en
Publication of CN113784040A publication Critical patent/CN113784040A/en
Application granted granted Critical
Publication of CN113784040B publication Critical patent/CN113784040B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/16566Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533
    • G01R19/16576Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533 comparing DC or AC voltage with one threshold

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a shooting method, a shooting device, electronic equipment and a storage medium, and belongs to the technical field of electronic equipment. The method is applied to the electronic equipment, a display screen of the electronic equipment is connected with a voltage detection circuit, and the method comprises the following steps: when the preview interface is displayed, the voltage value of each pixel point of the display screen is obtained through the voltage detection circuit; acquiring the voltage variation of the voltage value of the pixel point in a target time period; and when the voltage variation is smaller than a preset threshold value, controlling the camera to shoot.

Description

Shooting method, shooting device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a shooting method, a shooting device, electronic equipment and a storage medium.
Background
At present, when an electronic device such as a digital camera or a mobile phone is photographed by an imaging device mounted thereon, the electronic device is photographed according to a photographing operation performed by a user who holds the electronic device. For example, shooting is performed when the electronic device recognizes that a user gives a specific gesture or voice or expression in the preview interface.
In the related art, the electronic device often recognizes gestures or voices or expressions through a specific recognition model, and is easy to be triggered by mistake, so that a scene of taking a photo by mistake is caused, and the shot photo is not needed by a user, so that the experience effect of the user is seriously affected.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method, a shooting device, electronic equipment and a storage medium, which can solve the technical problem that automatic shooting of the electronic equipment is easy to be triggered by mistake and causes wrong shooting in the related technology.
In a first aspect, an embodiment of the present application provides a photographing method, which is applied to an electronic device, where a display screen of the electronic device is connected with a voltage detection circuit, and the method includes:
when the preview interface is displayed, the voltage value of each pixel point of the display screen is obtained through the voltage detection circuit;
acquiring the voltage variation of the voltage value of the pixel point in a target time period;
and when the voltage variation is smaller than a preset threshold value, controlling the camera to shoot.
In a second aspect, an embodiment of the present application provides a photographing apparatus, including: be applied to electronic equipment, electronic equipment's display screen is connected with voltage detection circuit, the device includes:
the first acquisition module is used for acquiring the voltage value of each pixel point of the display screen through the voltage detection circuit when the preview interface is displayed;
a second obtaining module, configured to obtain a voltage variation of the voltage value of the pixel point in a target time period;
And the shooting module is used for controlling the camera to shoot when the voltage variation is smaller than a preset threshold value.
In a third aspect, an embodiment of the present application provides an electronic device, including a camera, a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the photographing method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the photographing method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the shooting method according to the first aspect.
In the embodiment of the application, the voltage detection circuit connected with the display screen of the electronic equipment is arranged in the electronic equipment, so that when the display screen of the electronic equipment displays the preview interface, the voltage value of each pixel point of the display screen is obtained through the voltage detection circuit, and the voltage value of each pixel point is directly obtained through hardware, so that the accuracy of the obtained voltage value can be ensured, the accuracy of the voltage variation of the obtained voltage value of each pixel point in a target time period can be ensured, and further, the misjudgment that the voltage variation is smaller than a preset threshold value can be avoided, and a scene of misshooting occurs to the camera.
Drawings
FIG. 1 is a schematic diagram showing the working principle of a liquid crystal display according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a pixel driving circuit of a thin film field effect transistor according to an embodiment of the present application;
fig. 3 is a flowchart showing steps of a photographing method in the related art;
FIG. 4 is a schematic diagram of another TFT pixel drive circuit according to an embodiment of the application;
FIG. 5 is a flowchart showing steps of another photographing method according to an embodiment of the present application;
FIG. 6 illustrates a computational error diagram of an embodiment of the present application;
fig. 7 is a block diagram showing a configuration of a photographing apparatus according to an embodiment of the present application;
FIG. 8 shows a block diagram of an electronic device in accordance with an embodiment of the application;
fig. 9 is a schematic diagram of a hardware structure of an electronic device according to various embodiments of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more.
With the rapid development of mobile terminals such as mobile phones, mobile phones have become an indispensable part of daily life, and mobile phone photographing technologies have been improved in quality within a few years. The scenes that people need to use mobile phones to take photos in daily life are more and more.
The current photographing system usually needs a user to manually press a shutter key to trigger when photographing, and the mode is simple to operate, quick and convenient. However, when a certain fixed posture is required to be maintained or a certain moment is captured during actual photographing, particularly portrait photographing, the intellectualization of automatic photographing cannot be achieved, and false triggering or difficult triggering is easily caused.
In the related automatic photographing technology, a complex software technology is often used for capturing certain specific shots or voices to realize automatic photographing, and the requirements depend on a powerful software algorithm, so that whether photographing is required to be performed or not is judged to be more by external factors, a scene of wrong photographing is larger, and the experience effect of a user is seriously influenced.
In order to solve the problems, the application provides a shooting method, a shooting device, an electronic device and a storage medium.
The shooting method, the shooting device, the electronic equipment and the storage medium provided by the embodiment of the application are described in detail through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The technical scheme of the application is that the display screen is identified to be in a static state by matching with a specific software algorithm on the basis of hardware, when the electronic equipment is opened and the automatic photographing function is in an automatic photographing mode, the camera is automatically controlled to photograph after detecting that the preview interface displayed on the display screen of the electronic equipment is in the static state within a certain target time period.
The display screen in the technical scheme takes a liquid crystal display (Liquid Crystal Display, LCD) as an example, and the working principle of the LCD is as follows: referring to fig. 1, the LCD includes a Polarizer (Polarizer), a Color Filter (Color Filter), a Liquid Crystal (Liquid Crystal), a thin film transistor Substrate (Thin Film Transistor Substrate, TFT Substrate), and a backlight Unit (BLU). The LCD display uses thin film field effect transistors (Thin Film Transistor, TFT) to charge and discharge liquid crystals, which are deflected to filter backlight white light, and forms three primary colors (R, G, B) to synthesize one pixel. The schematic diagram of the pixel driving circuit of the TFT in fig. 1 is shown in fig. 2, in which in fig. 2, a multiplexer (Demux) switch and a GATE control bit (GATE) control two pixel transistors to be turned on, and an integrated circuit Source (integrated circuit, IC Source) charges and discharges a pixel storage capacitor, so that the pixel storage capacitor has different voltages, and the voltages are deflected by the liquid crystal to form different light transmission effects. The application improves the original TFT pixel driving circuit in FIG. 2, and adds a voltage detection circuit beside the pixel storage capacitor of the original TFT pixel driving circuit in FIG. 2 so as to match with a specific software algorithm to identify that the display screen is in a static state on the basis of hardware of the voltage detection circuit.
Referring to fig. 3, a flowchart illustrating steps of a photographing method according to an embodiment of the present application is shown, the method is applied to an electronic device, a display screen of the electronic device is connected with a voltage detection circuit, and the method includes:
step 301, when displaying the preview interface, obtaining the voltage value of each pixel point of the display screen through the voltage detection circuit.
In the embodiment of the application, the display screen may be an LCD, or may be other display screens with pixel storage capacitors, or may be other display screens with components having the same or similar functions as the pixel storage capacitors, which may be specifically determined according to actual requirements, and is not limited herein.
In the embodiment of the application, the pixel storage capacitor is used for storing the pixel point voltage of the image displayed in the display screen. The schematic diagram of the TFT pixel driving circuit after the voltage detection circuit is connected to the display screen of the electronic device is shown in fig. 4. By adding a voltage detection circuit to the basic circuit of the original TFT pixel driving circuit in FIG. 2, the voltage detection circuit records the voltage value of the color channel (RGB color channel) of each pixel point of the display screen; the voltage detection circuit includes: an analog-to-digital converter (analog to digital converter, ADC) and a baseband processing chip connected to the analog-to-digital converter, the analog-to-digital converter connected to the pixel storage capacitor of the display screen, the pixel voltage of the pixel storage capacitor is converted into a voltage value, for example, 0-255, 0 represents the lowest voltage (minimum on-voltage of the thin film field effect transistor) on the pixel storage capacitor, and 255 represents the highest voltage (for example, 5V) on the pixel storage capacitor.
In the embodiment of the application, the electronic device may determine the change of the voltage value of the pixel point of the preview interface displayed in the display screen based on the voltage of the pixel storage capacitor in the TFT pixel driving circuit, or may be other changes of the pixel point based on the preview interface displayed in the display screen, which may be specifically determined according to the actual requirement, and is not limited herein.
In the embodiment of the application, after a user turns on a photographing camera of the electronic equipment, a preview interface displayed in a display screen of the electronic equipment shows a user image. When a user adopts an automatic photographing mode and presses a photographing key, the electronic equipment enters an automatic photographing mode. When the electronic equipment shoots in the automatic shooting mode, the voltage detection circuit connected with the display screen of the electronic equipment acquires the voltage value of each pixel point of the preview interface displayed in the display screen in the target time period.
For example, after a user presses a photographing button of a photographing camera of the electronic device, when the electronic device performs photographing in an automatic photographing mode, a voltage detection circuit connected to a display screen of the electronic device includes an analog-to-digital converter and a baseband processing chip, where the analog-to-digital converter is connected to a pixel storage capacitor of the display screen to convert a pixel voltage of the pixel storage capacitor into a voltage value, so that the pixel voltage value of a preview interface displayed in the display screen in each target time interval can be obtained through the analog-to-digital converter in each sampling target time interval in a target time period (for example, 3 s), and the pixel voltage value is collected through the baseband processing chip.
Step 302, obtaining a voltage variation of the voltage value of the pixel point in the target time period.
In the embodiment of the application, the target time period is a time period from a starting time point to a terminating time point, wherein the starting time point and the terminating time point are time points after the electronic device enters the automatic shooting mode, the starting time point is earlier than the terminating time point, the target time period can be set by a user based on actual experience, or can be a default value of the electronic device, such as 3s and 5s, and can be specifically determined according to actual requirements, and the method is not limited herein.
In the embodiment of the application, the target time period comprises at least two target time intervals; the target time interval is a time period from a starting time point to an ending time point, the starting time point and the ending time point can be time points selected randomly in the target time period, or can be time points selected every specific time in the target time period, the starting time point is earlier than the ending time point, the target time interval is used for setting the time for sampling the voltage value of the pixel point of the preview interface displayed in the display screen, the target time interval can be set by a user based on actual experience, can be a default value of the electronic equipment, can be optimized according to actual hardware resources and actual operations, for example, 0.1s and 0.2s, can be determined according to actual requirements, and is not limited.
In the embodiment of the application, after the voltage value of the pixel point of the preview interface displayed in the display screen in the target time period is obtained from the voltage detection circuit connected with the display screen of the electronic device, the voltage variation of the voltage value of the pixel point in the target time period is calculated according to the preset algorithm, so as to judge whether the voltage variation meets the image static requirement: when the voltage variation meets the image static requirement, controlling a camera to shoot; and deleting the voltage value of each pixel point when the voltage variation does not meet the image static requirement, and entering step 301.
In the embodiment of the present application, if the pixel voltage value at the start time point of the target time period is R and the pixel voltage value at the end time point of the target time period is Z, the preset algorithm may be a mathematical vector error formula, for example: the ratio of the root mean square of the voltage variation= (|z-r|) to the root mean square of (|r|) may be other algorithms identical or similar to the mathematical vector error formula, such as: the voltage change amount= |z-r|/|r| may be specifically determined according to actual requirements, and is not limited herein.
In the embodiment of the present application, the image stillness requirement is used for determining the change amplitude of the voltage change amount, and the image stillness requirement may be set by a user based on actual experience, for example: the voltage variation is within the target voltage range, and may be a default value of the electronic device, for example: the voltage variation is smaller than a preset threshold, which can be specifically determined according to actual requirements, and is not limited herein.
Illustratively, in 3s, all pixel voltage values of the preview interface displayed in the display screen are obtained and collected from the voltage detection circuit connected to the display screen of the electronic device. And obtaining the voltage variation of the pixel point voltage value in 3s by using a mathematical vector error formula.
And 303, controlling the camera to shoot when the voltage variation is smaller than a preset threshold value.
In the embodiment of the application, the preset threshold value is a value, the voltage variation threshold value can be set by a user based on actual experience, can be a default value of electronic equipment, can be a value which is confirmed to be optimal according to practice later, for example, 5% and 6%, can be determined according to actual requirements, and is not limited herein.
In the embodiment of the application, the cameras are located on the electronic equipment, can be one or a plurality of cameras, can be specifically determined according to actual requirements, and are not limited herein.
In the embodiment of the application, after the electronic device obtains the voltage variation of the voltage value of each pixel point in the target time period, whether the voltage variation meets the image static requirement or not can be judged. And when the voltage variation corresponding to each target time interval in the target time period is smaller than a preset threshold value, confirming that the voltage variation meets the image static requirement. When the voltage variation meets the image static requirement, if the user opens the automatic photographing function of the electronic equipment, the camera of the electronic equipment can be controlled to be started for photographing.
For example, after the electronic device obtains the voltage variation of the pixel voltage value in the target period of 3s, for example, by using a mathematical vector error formula, it is determined whether the voltage variation meets the preset image stillness requirement. When the voltage variation corresponding to each target time interval of 0.1s is smaller than the preset threshold value by 5%, the preset threshold value can be defined to be within a specific range (for example, 0-5%), the screen is in a static state at the moment, and the voltage variation is confirmed to meet the image static requirement. When the voltage variation meets the preset image static requirement, controlling a camera of the electronic equipment to shoot. Compared with the scheme that when the electronic equipment recognizes gestures or voices or expressions through a specific recognition model, the camera of the electronic equipment is controlled to shoot, when the voltage variation accords with the preset image static requirement, the camera of the electronic equipment is controlled to shoot, whether the camera of the electronic equipment is controlled to shoot can be determined only by judging the voltage variation in the target time period, the specific recognition model is not needed, the preset gestures or voices or expressions are not needed, the calculation process can be simplified, the calculation time is saved, a certain instant is shot or a certain fixed gesture held by a user is shot rapidly, and the situation that the calculation time is too long, the instant of the shot is missed or the fixed gesture held by the user in the long-time calculation process is avoided from being changed due to too complex calculation process.
Step 304, deleting the voltage value of the pixel point when the voltage variation is greater than or equal to the preset threshold value, and entering step 301.
In an embodiment of the present application, step 304 is performed after step 302.
In the embodiment of the application, when the voltage variation corresponding to each target time interval is greater than or equal to the preset threshold value, the electronic equipment confirms that the voltage variation does not meet the image static requirement. And deleting the pixel point voltage value when the voltage variation is not in accordance with the image static requirement, and proceeding to step 301.
For example, after the voltage variation of the voltage value given to each pixel point in the target time period 3s is obtained, when the voltage variation corresponding to the target time interval 0.1s of any two samples in the target time period 3s is greater than or equal to the preset threshold value 5%, it may be defined that the voltage variation threshold value is not within a specific range (for example, 0-5%), which indicates that the screen is not in a static state at this time, and it is confirmed that the voltage variation does not meet the image static requirement. When it is confirmed that the voltage variation does not meet the image still requirement, the timing of the target period 3s is restarted, the pixel voltage value is deleted, the data in the memory is cleared, and step 301 is performed. Step 301 may continue to obtain the voltage values of the pixels in the display screen from the voltage detection circuit, so as to re-determine whether the voltage variation of the obtained voltage values of the pixels in the target period meets the image still requirement, so as to control the camera to perform shooting when the voltage variation meets the image still requirement (for example, the voltage variation is less than a preset threshold).
According to the embodiment of the application, the voltage detection circuit connected with the display screen of the electronic equipment is arranged in the electronic equipment, so that when the display screen of the electronic equipment displays the preview interface, the voltage value of each pixel point of the display screen is obtained through the voltage detection circuit, and the voltage value of each pixel point is directly obtained through hardware, so that the accuracy of the obtained voltage value can be ensured, the accuracy of the voltage variation of the obtained voltage value of each pixel point in a target time period can be ensured, and further, the situation that the misjudgment of the voltage variation is smaller than the preset threshold value can be avoided, and a camera can take a scene by mistake.
Referring to fig. 5, a flowchart of steps of another photographing method according to an embodiment of the present application is shown, the method is applied to an electronic device, a display screen of the electronic device is connected with a voltage detection circuit, the voltage detection circuit includes an analog-to-digital converter, the analog-to-digital converter is connected with a pixel storage capacitor of the display screen, the pixel storage capacitor is used for storing a pixel voltage of an image displayed in the display screen, and the analog-to-digital converter is used for converting the pixel voltage into a pixel voltage value, the method includes:
And 401, acquiring voltage values of all pixel points of a display screen through an analog-to-digital converter when the preview interface is displayed.
In the embodiment of the application, after the user opens the photographing camera of the electronic equipment, the user image appears on the preview interface displayed in the display screen of the electronic equipment. When the user adopts an automatic photographing mode and presses a photographing button, the electronic equipment enters an automatic photographing mode. When the electronic equipment shoots in the automatic shooting mode, the voltage value of each pixel point of the preview interface displayed in the display screen is continuously acquired in a target time period according to a target time interval through the digital-to-analog converter.
For example, after a user presses a photographing button of a photographing camera of the electronic device, when the electronic device enters an automatic photographing mode to perform photographing, pixel voltage values of a preview interface displayed in a display screen are obtained in a target time period 3s according to a target time interval of 0.1s from an analog-to-digital converter included in a voltage detection circuit connected to the display screen of the electronic device, and a baseband processing chip included in the voltage detection circuit collects the pixel voltage values.
According to the embodiment of the application, the pixel point voltage of the preview interface displayed in the display screen is converted into the voltage value through the analog-to-digital converter, so that the voltage variation of the pixel point voltage value in the target time period can be conveniently obtained, whether the voltage variation of each pixel in the screen meets the image static requirement or not is determined, and therefore, whether the voltage variation meets the image static requirement or not is determined, the camera is controlled to shoot, a scene of taking a picture by mistake is avoided, and the best experience effect is brought to a user.
And step 402, constructing a three-dimensional coordinate system based on three pixel channels corresponding to the voltage values of each pixel point.
In the embodiment of the present application, three pixel channels may be color channels (RGB color channel) or color coding methods YUV, where "Y" represents brightness (luminence or Luma), that is, gray values, "U" and "V" represent chromaticity (Chroma) to describe image colors and saturation, and the color of a specified pixel may be specifically determined according to actual requirements, which is not limited herein.
In the embodiment of the application, after the electronic device obtains the pixel voltage values of the preview interface displayed in the display screen in the target time period from the analog-to-digital converter according to the target time interval, determining the maximum pixel voltage values and the minimum pixel voltage values of the three pixel channels corresponding to the obtained pixel voltage values, and respectively taking the maximum pixel voltage values and the minimum pixel voltage values of the three pixel channels as the maximum values and the minimum values of three coordinate axes of the three-dimensional coordinate system, and respectively dividing the maximum values and the minimum values of the three coordinate axes by preset lengths (for example, 25 and 50) to obtain the scale values of the three coordinate axes.
For example, referring to fig. 6, after the electronic device obtains the pixel voltage values of the preview interface displayed in the display screen in the target time period from the analog-to-digital converter according to the target time interval, the voltage values of three color pixel channels R (Red)/G (Green)/B (Blue) are counted based on the baseband processing chip connected to the analog-to-digital converter, so as to obtain the maximum pixel voltage value and the minimum pixel voltage value of the R, G, B pixel channel, the maximum pixel voltage value and the minimum pixel voltage value of the R, G, B pixel channel are respectively used as the maximum value and the minimum value of the X, Y, Z coordinate axis, and the maximum value and the minimum value of the X, Y, Z coordinate axis are respectively divided by using 25 as a scale, so as to form the three-dimensional coordinate system X (R) Y (G) Z (B).
Step 403, the target time period includes at least two target time intervals, where the target time interval is a time period from a start time point to an end time point, and the pixel voltage value includes: a first pixel voltage value corresponding to the initial time point and a second pixel voltage value corresponding to the end time point; and inputting the first pixel voltage value and the second pixel voltage value corresponding to each target time interval into a three-dimensional coordinate system to respectively obtain a first pixel vector and a second pixel vector corresponding to the first pixel voltage value and the second pixel voltage value in each target time interval.
In the embodiment of the application, after the electronic equipment constructs a three-dimensional coordinate system based on three pixel channels corresponding to pixel voltage values, a first pixel voltage value and a second pixel voltage value corresponding to each target time interval are input into the three-dimensional coordinate system, and a first pixel vector and a second pixel vector corresponding to the first pixel voltage value and the second pixel voltage value corresponding to each target time interval are respectively obtained.
For example, referring to fig. 6, after the electronic device constructs a three-dimensional coordinate system X (R) Y (G) Z (B) based on three pixel channels corresponding to pixel voltage values of the baseband processing chip, the three-dimensional coordinate system X (R) Y (G) Z (B) is simultaneously stored in the memory, at this time, a first pixel voltage value corresponding to a target time interval of 0.1s is recorded as a state 1, the baseband processor uses a Clock cycle (CKH/CLK/Clock) of the system to record a second pixel voltage value corresponding to a target time interval of 0.1s into a state 2 at intervals of 0.1s, and inputs the first pixel voltage value (state 1) and the second pixel voltage value (state 2) corresponding to each target time interval of 0.1s into the three-dimensional coordinate system X (R) Y (G) Z (B), so as to obtain a first pixel vector R corresponding to each target time interval of the first pixel voltage value and a second pixel vector Z corresponding to each target time interval of the second pixel voltage value.
Step 404, calculating the voltage variation corresponding to each target time interval in the target time period according to the first pixel point vector and the second pixel point vector corresponding to each target time interval.
In the embodiment of the application, the mathematical vector error formula of the preset algorithm used for calculation can be the same as or similar to the mathematical vector error formula, and can be specifically determined according to actual requirements without limitation.
In the embodiment of the application, a mathematical vector error formula is utilized to calculate the voltage variation corresponding to each target time interval in the target time period according to the first pixel point vector and the second pixel point vector corresponding to each target time interval.
For example, the first pixel point vector R and the second pixel point vector Z corresponding to each target time interval are input to the mathematical vector error formula (1), and the output of the mathematical vector error formula is taken as the voltage variation corresponding to each target time interval in the target time period:
where RMS represents Root Mean Square (Root Mean Square), EVM represents error vector magnitude (Error Vector Magnitude), EVM value represents the magnitude of change of the pixels of the screen, where 0 represents no change of the screen image, i.e. the screen is in a static state, and the smaller the EVM value, the smaller the error vector magnitude EVM of the first pixel vector R and the second pixel vector Z, i.e. the preview interface displayed in the display screen of the electronic device, the closer the first pixel voltage value at the start time point and the second pixel voltage value at the end time point of the target time interval are, i.e. the smaller the pixel change of the preview interface displayed in the display screen is, i.e. the smaller the screen change of the displayed preview interface is.
Optionally, step 404 includes:
substep 4041, obtaining a first root mean square of an absolute value of a difference between the first pixel vector and the second pixel vector, and obtaining a second root mean square of the absolute value of the second pixel vector.
In the embodiment of the application, after a first pixel point vector corresponding to a first pixel point voltage value and a second pixel point vector corresponding to a second pixel point voltage value corresponding to each target time interval are obtained, a first root mean square of an absolute value of a difference value between the first pixel point vector and the second pixel point vector is obtained, and a second root mean square of an absolute value of the second pixel point vector is obtained.
For example, after a first pixel point vector R corresponding to a first pixel point voltage value and a second pixel point vector Z corresponding to a second pixel point voltage value corresponding to each target time interval are obtained, a first root mean square of an absolute value of a difference value between the first pixel point vector and the second pixel point vector is obtained through an RMS (|z-r|) formula, and a second root mean square of an absolute value of the second pixel point vector is obtained through an RMS (|r|) formula.
Substep 4042 uses the ratio of the first root mean square to the second root mean square as the voltage variation.
In the embodiment of the application, a first root mean square of an absolute value of a difference value between a first pixel point vector and a second pixel point vector is obtained, and a ratio of the first root mean square to the second root mean square is taken as a voltage variation after a second root mean square of the absolute value of the second pixel point vector is obtained.
For example, after a first root mean square of the absolute value of the difference between the first pixel point vector and the second pixel point vector is obtained and a second root mean square of the absolute value of the second pixel point vector is obtained, the ratio of the first root mean square to the second root mean square is used as the voltage variation through an RMS (|z-r|)/RMS (|r|) formula.
According to the embodiment of the application, the first root mean square of the absolute value of the difference value of the first pixel point vector and the second pixel point vector is obtained, the second root mean square of the absolute value of the second pixel point vector is obtained, the ratio of the first root mean square to the second root mean square is taken as the voltage variation, the voltage variation of the pixel point voltage value in the target time period can be obtained quickly, the voltage variation obtaining process can be simplified, and the voltage can be further determined to meet the image static requirement quickly, so that whether the camera is controlled to shoot pictures is determined, the situation that the camera shoots by mistake is avoided, and the best experience effect is brought to a user.
And step 405, when the voltage variation of the target quantity is smaller than a preset threshold value, confirming that the voltage variation meets the image static requirement, and when the voltage variation meets the image static requirement, controlling the camera to shoot.
In the embodiment of the application, the target number is a number value, and the target number is smaller than or equal to the total number of the target time intervals; the target number may be set by the user based on actual experience, may be a default value of the electronic device, may be a value that is determined to be optimal according to practice later, and may be a directly specified percentage value, for example, 90%,95%, or may be obtained by multiplying the percentage value by the total number of target time intervals, for example, when there are 2 target time intervals, the target number may be 90% by 2, 95% by 2, which may be specifically determined according to actual requirements, and is not limited herein.
In the embodiment of the present application, after step 302, step 404 or step 4042, for the voltage variation corresponding to each target time interval, when the voltage variation of the existing target number is smaller than the preset threshold, it is confirmed that the voltage variation meets the image still requirement, and when the voltage variation meets the image still requirement, the camera is controlled to shoot.
For example, after the voltage variation of the pixel voltage value in the target time period 3s is obtained, for the voltage variation corresponding to each target time interval 0.1s in the target time period 3s, when the voltage variation of 90% of the pixels in the target number meets the requirement of less than 5% of the preset threshold, the user is determined to be in a static state, the voltage variation is confirmed to meet the image static requirement, and if the user opens the automatic photographing function of the electronic device, the camera photographing of the electronic device can be started at this time.
Step 406, when the voltage variation of the preset number is greater than or equal to the preset threshold, determining that the voltage variation does not meet the image still requirement. And deleting the voltage value of the pixel point when the voltage variation does not meet the image static requirement, and entering step 301 or step 401.
In the embodiment of the application, the preset number is a number value, and the preset number is smaller than or equal to the total number of the target time intervals; the preset number may be a value set by the user based on actual experience, or may be a default value of the electronic device, and the preset number may be a directly specified percentage value, for example, 10%,5%, where the sum of the target number and the preset number is a target number, for example, the sum of the target number 90% and the preset number 10% is a target number 1; the preset number may also be or is obtained by multiplying a percentage value by the total number of target time intervals, for example, when there are 2 target time intervals, the target number may be 10% by 2,5% by 2, where the sum of the target number and the preset number is the total number of target time intervals, which may be specifically determined according to the actual requirement, and is not limited herein.
In the embodiment of the present application, after step 303, step 404 or step 4042, for the voltage variation corresponding to each target time interval in the target time period, when the voltage variation with the preset number is greater than or equal to the preset threshold, it is determined that the voltage variation does not meet the image still requirement. And deleting the pixel point voltage value when the voltage variation is not in accordance with the image static requirement, and proceeding to step 301 or step 401.
For example, after the voltage variation of the pixel voltage value in the target time period 3s is obtained, for the voltage variation corresponding to the target time interval 0.1s of any two samples in the target time period 3s, when the voltage variation of the pixel with the preset number of 10% is greater than or equal to the preset threshold value 5%, it may be defined that the preset threshold value is not within a specific range (for example, 0-5%), which indicates that the screen is not in a static state at this time, and it is confirmed that the voltage variation does not meet the image static requirement. When the voltage variation is confirmed to be not in accordance with the image still requirement, restarting the timing of the target time period 3s, deleting the pixel voltage value, clearing the data in the memory, and proceeding to step 301 or step 401. Step 301 may be executed to continue to acquire the pixel voltage value of the browsed image displayed in the display screen from the voltage detection circuit in the target time period, so as to re-determine whether the voltage variation of the acquired pixel voltage value in the target time period meets the image stillness requirement, thereby confirming that the voltage variation meets the image stillness requirement when the voltage variation is smaller than the preset threshold value, and controlling the camera to shoot; when the voltage variation is larger than or equal to a preset threshold value, confirming that the voltage variation does not meet the image static requirement, and deleting the voltage value of the pixel point. Step 401 may be performed continuously to acquire pixel voltage values of the browsed image displayed in the display screen in the target time period from the analog-to-digital converter according to the target time interval, so as to construct a three-dimensional coordinate system based on three pixel channels corresponding to the pixel voltage values again, obtain a first pixel vector corresponding to the first pixel voltage value and a second pixel vector corresponding to the second pixel voltage value in each target time interval through the three-dimensional coordinate system, and recalculate voltage variation corresponding to each target time interval in the target time period to determine whether the voltage variation meets the image static requirement, so that when the voltage variation of the first target number is smaller than the preset threshold, the voltage variation is confirmed to meet the image static requirement, and the camera is controlled to shoot; when the voltage variation of the preset number is larger than or equal to the preset threshold value, confirming that the voltage variation does not meet the image static requirement, and deleting the voltage value of the pixel point.
According to the embodiment of the application, after the voltage variation is acquired, the voltage variation corresponding to the target time intervals is stored, and whether the voltage variation corresponding to each target time interval in the target time period meets the image static requirement is judged. When the voltage variation is confirmed to meet the image static requirement, the user image in the preview interface displayed in the display screen can be determined to be in a static state, and at the moment, a scene of mistaken photographing can be avoided, so that the best experience effect is brought to the user. When the voltage variation is confirmed to be not in accordance with the image static requirement, the pixel point voltage value is deleted, so that the data in the memory can be emptied, and the situation that the memory of the memory is full due to the fact that the historical pixel point voltage value is always in the memory is avoided, and therefore the robustness and the reliability of the shooting method can be guaranteed. According to the embodiment of the application, the voltage detection circuit connected with the display screen of the electronic equipment is arranged in the electronic equipment, so that when the display screen of the electronic equipment displays the preview interface, the voltage value of each pixel point of the display screen is obtained through the analog-to-digital converter included in the voltage detection circuit, and the voltage value of the pixel point is directly obtained through hardware, so that the accuracy of the obtained voltage value can be ensured.
It should be noted that, in the photographing method provided by the embodiment of the present application, the execution subject may be a photographing device, or a control module in the photographing device for executing the loading photographing method. In the embodiment of the present application, an example of a photographing method performed by a photographing device is described as a photographing device provided by the embodiment of the present application.
Referring to fig. 7, a block diagram of a photographing apparatus according to an embodiment of the present application is shown, and the apparatus 700 includes:
the first obtaining module 701 is configured to obtain, by using a voltage detection circuit, a voltage value of each pixel point of the display screen when the preview interface is displayed.
The second obtaining module 702 is configured to obtain a voltage variation of the voltage value of the pixel point in the target period.
And the shooting module 703 is used for controlling the camera to shoot when the voltage variation is smaller than a preset threshold value.
Optionally, the voltage detection circuit includes an analog-to-digital converter, the analog-to-digital converter is connected with a pixel storage capacitor of the display screen, the pixel storage capacitor is used for storing pixel voltage of an image displayed in the display screen, and the analog-to-digital converter is used for converting the pixel voltage into a pixel voltage value; the first obtaining module 701 is further configured to obtain a voltage value of each pixel point of the display screen through an analog-to-digital converter.
Optionally, the target time period includes at least two target time intervals, and the pixel voltage value includes: a first pixel voltage value corresponding to a start time point of the target time interval and a second pixel voltage value corresponding to an end time point of the target time interval; the second obtaining module 702 is further configured to construct a three-dimensional coordinate system based on three pixel channels corresponding to the voltage values of the pixel points; inputting the first pixel voltage value and the second pixel voltage value corresponding to each target time interval into a three-dimensional coordinate system to respectively obtain a first pixel vector and a second pixel vector corresponding to the first pixel voltage value and the second pixel voltage value corresponding to each target time interval; and calculating the voltage variation corresponding to each target time interval in the target time period according to the first pixel point vector and the second pixel point vector corresponding to each target time interval.
Optionally, the second obtaining module 702 is further configured to obtain a first root mean square of an absolute value of a difference between the first pixel point vector and the second pixel point vector, and obtain a second root mean square of the absolute value of the second pixel point vector; the ratio of the first root mean square to the second root mean square is taken as the voltage variation.
Optionally, the shooting module 703 is further configured to: when the voltage variation quantity of the target quantity is smaller than a preset threshold value, controlling a camera to shoot; the target number is less than or equal to the total number of target time intervals.
According to the embodiment of the application, the voltage detection circuit connected with the display screen of the electronic equipment is arranged in the electronic equipment, so that when the display screen of the electronic equipment displays the preview interface, the voltage value of each pixel point of the display screen is obtained through the voltage detection circuit, and the voltage value of each pixel point is directly obtained through hardware, so that the accuracy of the obtained voltage value can be ensured, the accuracy of the voltage variation of the obtained voltage value of each pixel point in a target time period can be ensured, and further, the situation that the misjudgment of the voltage variation is smaller than the preset threshold value can be avoided, and a camera can take a scene by mistake.
The shooting device in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and embodiments of the present application are not limited in particular.
The photographing device in the embodiment of the application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The photographing device provided by the embodiment of the present application can implement each process implemented by the method embodiment of fig. 3 or fig. 5, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 8, the embodiment of the present application further provides an electronic device 800, including a camera 801, a memory 802, and a processor 803, where a program or an instruction stored in the memory 802 and capable of being executed by the processor 803 implements each process of the above-described shooting method embodiment, and the process may achieve the same technical effect, and is not repeated herein.
Optionally, the processor 803 is coupled to an analog-to-digital converter; the processor 803 is configured to construct a three-dimensional coordinate system based on three pixel channels corresponding to pixel voltage values.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Referring to fig. 9, a schematic diagram of a hardware architecture of an electronic device implementing various embodiments of the application is shown.
The electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an image input unit 903, a sensor 904, a display unit 905, a user input unit 906, an interface unit 907, a memory 908, a processor 909, and the like.
Those skilled in the art will appreciate that the electronic device 900 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 909 by a power management system to perform functions such as managing charging, discharging, and power consumption by the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 909 is configured to obtain, when the preview interface is displayed, a voltage value of each pixel point of the display screen through the voltage detection circuit; acquiring a voltage variation of a voltage value of a pixel point in a target time period; and when the voltage variation is smaller than a preset threshold value, controlling the camera to shoot.
And a display unit 905 for displaying the preview interface.
In the embodiment of the application, the electronic equipment can be provided with the voltage detection circuit connected with the display screen of the electronic equipment so as to obtain the voltage value of each pixel point of the display screen through the voltage detection circuit when the display screen of the electronic equipment displays the preview interface, and the accuracy of the obtained voltage value can be ensured because the voltage value of each pixel point is directly obtained through hardware, thereby ensuring the accuracy of the voltage variation of the obtained voltage value of each pixel point in a target time period, and further avoiding misjudgment that the voltage variation is smaller than a preset threshold value and leading a camera to have a scene of misshooting.
Optionally, the voltage detection circuit includes an analog-to-digital converter, the analog-to-digital converter is connected with a pixel storage capacitor of the display screen, the pixel storage capacitor is used for storing pixel voltage of an image displayed in the display screen, and the analog-to-digital converter is used for converting the pixel voltage into a pixel voltage value; the processor 909 is further configured to obtain a voltage value of each pixel point of the display screen through an analog-to-digital converter.
Optionally, the target time period includes at least two target time intervals, and the pixel voltage value includes: a first pixel voltage value corresponding to a start time point of the target time interval and a second pixel voltage value corresponding to an end time point of the target time interval; the processor 909 is further configured to construct a three-dimensional coordinate system based on three pixel channels corresponding to the voltage values of the pixel points; inputting the first pixel voltage value and the second pixel voltage value corresponding to each target time interval into a three-dimensional coordinate system to respectively obtain a first pixel vector and a second pixel vector corresponding to the first pixel voltage value and the second pixel voltage value corresponding to each target time interval; and calculating the voltage variation corresponding to each target time interval in the target time period according to the first pixel point vector and the second pixel point vector corresponding to each target time interval.
Optionally, the processor 909 is further configured to obtain a first root mean square of an absolute value of a difference between the first pixel point vector and the second pixel point vector, and obtain a second root mean square of the absolute value of the second pixel point vector; the ratio of the first root mean square to the second root mean square is taken as the voltage variation.
Optionally, the processor 909 is further configured to: when the voltage variation quantity of the target quantity is smaller than a preset threshold value, controlling the camera to shoot; the target number is less than or equal to the total number of target time intervals.
According to the embodiment of the application, the voltage detection circuit connected with the display screen of the electronic equipment is arranged in the electronic equipment, so that when the display screen of the electronic equipment displays the preview interface, the voltage value of each pixel point of the display screen is obtained through the voltage detection circuit, and the voltage value of each pixel point is directly obtained through hardware, so that the accuracy of the obtained voltage value can be ensured, the accuracy of the voltage variation of the obtained voltage value of each pixel point in a target time period can be ensured, and further, the situation that the misjudgment of the voltage variation is smaller than the preset threshold value can be avoided, and a camera can take a scene by mistake. It should be understood that, in an embodiment of the present application, the input unit 903 may include a graphics processor (Graphics Processing Unit, GPU) 9031, where the graphics processor 9031 processes at least two first preview images acquired by at least two cameras. The display unit 905 may include a display panel 9051, and the display panel 9051 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 906 includes a touch panel 9061 and other input devices 9062. Touch panel 9061, also referred to as a touch screen. The touch panel 9061 may include two parts, a touch detection device and a touch controller. Other input devices 9062 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein. Memory 908 may be used to store software programs and various data including, but not limited to, application programs and an operating system. Processor 909 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 909.
The embodiment of the application also provides a readable storage medium, and the readable storage medium stores a program or an instruction, which when executed by a processor, implements each process of the shooting method embodiment, and can achieve the same technical effect, so that repetition is avoided, and no further description is provided here.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, the shooting method can achieve the same technical effects, and the repetition is avoided, so that the description is omitted.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (7)

1. A photographing method, applied to an electronic device, wherein a display screen of the electronic device is connected with a voltage detection circuit, the method comprising:
when the preview interface is displayed, the voltage value of each pixel point of the display screen is obtained through the voltage detection circuit;
acquiring the voltage variation of the voltage value of the pixel point in a target time period;
when the voltage variation is smaller than a preset threshold, controlling a camera to shoot;
the voltage detection circuit comprises an analog-to-digital converter, wherein the analog-to-digital converter is connected with a pixel storage capacitor of the display screen, the pixel storage capacitor is used for storing pixel point voltages of images displayed in the display screen, and the analog-to-digital converter is used for converting the pixel point voltages into pixel point voltage values;
the step of obtaining the voltage value of each pixel point of the display screen through the voltage detection circuit comprises the following steps:
acquiring voltage values of all pixel points of the display screen through the analog-to-digital converter;
the target time period comprises at least two target time intervals, and the pixel point voltage value comprises: a first pixel voltage value corresponding to a start time point of the target time interval and a second pixel voltage value corresponding to an end time point of the target time interval;
The step of obtaining the voltage variation of the voltage value of the pixel point in the target time period includes:
constructing a three-dimensional coordinate system based on three pixel channels corresponding to the voltage values of the pixel points;
inputting the first pixel point voltage value and the second pixel point voltage value corresponding to each target time interval into the three-dimensional coordinate system to respectively obtain a first pixel point vector corresponding to the first pixel point voltage value and a second pixel point vector corresponding to the second pixel point voltage value in each target time interval;
calculating voltage variation corresponding to each target time interval in the target time period according to the first pixel point vector and the second pixel point vector corresponding to each target time interval;
the calculating the voltage variation corresponding to each target time interval in the target time period according to the first pixel point vector and the second pixel point vector corresponding to each target time interval includes:
acquiring a first root mean square of an absolute value of a difference value between the first pixel point vector and the second pixel point vector, and acquiring a second root mean square of the absolute value of the second pixel point vector;
And taking the ratio of the first root mean square to the second root mean square as a voltage variation.
2. The method according to claim 1, wherein when the voltage variation is smaller than a preset threshold, controlling the camera to take a picture, includes:
when the voltage variation quantity with the target quantity is smaller than the preset threshold value, controlling a camera to shoot; the target number is less than or equal to the total number of target time intervals.
3. A photographing apparatus, characterized in that it is applied to an electronic device, a display screen of which is connected with a voltage detection circuit, the apparatus comprising:
the first acquisition module is used for acquiring the voltage value of each pixel point of the display screen through the voltage detection circuit when the preview interface is displayed;
a second obtaining module, configured to obtain a voltage variation of the voltage value of the pixel point in a target time period;
the shooting module is used for controlling the camera to shoot when the voltage variation is smaller than a preset threshold value;
the voltage detection circuit comprises an analog-to-digital converter, wherein the analog-to-digital converter is connected with a pixel storage capacitor of the display screen, the pixel storage capacitor is used for storing pixel point voltages of images displayed in the display screen, and the analog-to-digital converter is used for converting the pixel point voltages into pixel point voltage values;
The first acquisition module is further used for acquiring voltage values of all pixel points of the display screen through the analog-to-digital converter;
the target time period comprises at least two target time intervals, and the pixel point voltage value comprises: a first pixel voltage value corresponding to a start time point of the target time interval and a second pixel voltage value corresponding to an end time point of the target time interval;
the second acquisition module is further used for constructing a three-dimensional coordinate system based on three pixel channels corresponding to the voltage values of the pixel points; inputting the first pixel voltage value and the second pixel voltage value corresponding to each target time interval into the three-dimensional coordinate system to respectively obtain a first pixel vector and a second pixel vector corresponding to the first pixel voltage value and the second pixel voltage value corresponding to each target time interval; calculating voltage variation corresponding to each target time interval in the target time period according to the first pixel point vector and the second pixel point vector corresponding to each target time interval;
the second obtaining module is further configured to obtain a first root mean square of an absolute value of a difference value between the first pixel point vector and the second pixel point vector, and obtain a second root mean square of the absolute value of the second pixel point vector; and taking the ratio of the first root mean square to the second root mean square as a voltage variation.
4. The apparatus of claim 3, wherein the photographing module is further configured to control the camera to perform photographing when the amount of voltage change in the target number is less than the preset threshold; the target number is less than or equal to the total number of target time intervals.
5. An electronic device comprising a camera, a processor, a memory and a program or instructions stored on the memory and executable on the processor, which when executed by the processor, carries out the steps of the shooting method according to any one of claims 1-2.
6. The electronic device of claim 5, wherein the processor is coupled to an analog-to-digital converter; the processor is used for constructing a three-dimensional coordinate system based on three pixel channels corresponding to the pixel point voltage values.
7. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the shooting method according to any one of claims 1-2.
CN202110899877.9A 2021-08-05 2021-08-05 Shooting method, shooting device, electronic equipment and storage medium Active CN113784040B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110899877.9A CN113784040B (en) 2021-08-05 2021-08-05 Shooting method, shooting device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110899877.9A CN113784040B (en) 2021-08-05 2021-08-05 Shooting method, shooting device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113784040A CN113784040A (en) 2021-12-10
CN113784040B true CN113784040B (en) 2023-11-14

Family

ID=78836863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110899877.9A Active CN113784040B (en) 2021-08-05 2021-08-05 Shooting method, shooting device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113784040B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710865A (en) * 2012-06-18 2012-10-03 宇龙计算机通信科技(深圳)有限公司 Mobile terminal with photography function and portrait self-timer method thereof
CN102761685A (en) * 2012-02-24 2012-10-31 联想(北京)有限公司 Method for capturing image and electronic equipment
CN109218614A (en) * 2018-09-21 2019-01-15 深圳美图创新科技有限公司 A kind of automatic photographing method and mobile terminal of mobile terminal
CN110718190A (en) * 2019-11-15 2020-01-21 Oppo广东移动通信有限公司 Voltage adjusting method, pixel circuit and electronic equipment
CN111182206A (en) * 2019-12-31 2020-05-19 维沃移动通信有限公司 Image processing method and device
CN111770279A (en) * 2020-08-03 2020-10-13 维沃移动通信有限公司 Shooting method and electronic equipment
CN112954209A (en) * 2021-02-08 2021-06-11 维沃移动通信(杭州)有限公司 Photographing method and device, electronic equipment and medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI220628B (en) * 2003-05-21 2004-08-21 Benq Corp Image auto-calibration system and method for digital image extraction apparatuses

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761685A (en) * 2012-02-24 2012-10-31 联想(北京)有限公司 Method for capturing image and electronic equipment
CN102710865A (en) * 2012-06-18 2012-10-03 宇龙计算机通信科技(深圳)有限公司 Mobile terminal with photography function and portrait self-timer method thereof
CN109218614A (en) * 2018-09-21 2019-01-15 深圳美图创新科技有限公司 A kind of automatic photographing method and mobile terminal of mobile terminal
CN110718190A (en) * 2019-11-15 2020-01-21 Oppo广东移动通信有限公司 Voltage adjusting method, pixel circuit and electronic equipment
CN111182206A (en) * 2019-12-31 2020-05-19 维沃移动通信有限公司 Image processing method and device
CN111770279A (en) * 2020-08-03 2020-10-13 维沃移动通信有限公司 Shooting method and electronic equipment
CN112954209A (en) * 2021-02-08 2021-06-11 维沃移动通信(杭州)有限公司 Photographing method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN113784040A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
AU2018415738B2 (en) Photographing Mobile Terminal
RU2630167C1 (en) Method and device for switching colour range mode
CN101600054B (en) Camera, and camera control method
US9858885B2 (en) Method and device for reducing display brightness
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
US20120294522A1 (en) Image processing apparatus, image processing method, program and imaging apparatus
US20110090345A1 (en) Digital camera, image processing apparatus, and image processing method
US9661229B2 (en) Method for capturing a picture in a portable terminal by outputting a notification of an object being in a capturing position
US20140118577A1 (en) Imaging device and recording medium
CN108513069B (en) Image processing method, image processing device, storage medium and electronic equipment
CN107170403B (en) Picture frame display method and device
WO2017012232A1 (en) Method and apparatus for displaying picture
KR101493591B1 (en) Imaging device, imaging processing method and storage medium
CN108492266B (en) Image processing method, image processing device, storage medium and electronic equipment
JP2006042330A (en) Video photographing method
CN113866782A (en) Image processing method and device and electronic equipment
CN113709368A (en) Image display method, device and equipment
CN113784040B (en) Shooting method, shooting device, electronic equipment and storage medium
US8767115B2 (en) Image capturing device with auto-focus function and auto-focus method
US20100259640A1 (en) Digital image capture device and digital image processing method thereof
CN105426081B (en) Interface switching device and method of mobile terminal
US20230274388A1 (en) Photographing Method, and Electronic Device and Non-Transitory Readable Storage Medium
CN112653841B (en) Shooting method and device and electronic equipment
CN114245018A (en) Image shooting method and device
CN113891018A (en) Shooting method and device and electronic equipment

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