WO2018040180A1 - Photographing method and apparatus - Google Patents

Photographing method and apparatus Download PDF

Info

Publication number
WO2018040180A1
WO2018040180A1 PCT/CN2016/100793 CN2016100793W WO2018040180A1 WO 2018040180 A1 WO2018040180 A1 WO 2018040180A1 CN 2016100793 W CN2016100793 W CN 2016100793W WO 2018040180 A1 WO2018040180 A1 WO 2018040180A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel array
screen
module
photographing
display pixel
Prior art date
Application number
PCT/CN2016/100793
Other languages
French (fr)
Chinese (zh)
Inventor
董德
曾燕玲
段勇
Original Assignee
宇龙计算机通信科技(深圳)有限公司
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 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Publication of WO2018040180A1 publication Critical patent/WO2018040180A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • 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/63Control of cameras or camera modules by using electronic viewfinders
    • 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/62Control of parameters via user interfaces
    • 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/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes

Definitions

  • the present invention relates to the field of photographing technology, and in particular to a photographing method and apparatus.
  • the present invention provides a photographing method, comprising: acquiring a display pixel array of a current screen to be photographed; calculating a coincidence degree of the display pixel array and a sampling pixel array of the photographing device; when the coincidence degree is lower than When the first threshold is preset, the moving direction of the photographing device that increases the coincidence degree is calculated; the moving direction is presented to the user.
  • the method before the acquiring the display pixel array of the current to-be-shot screen, the method further includes: receiving an instruction input by the user to enter a screen shooting mode; or detecting a moiré phenomenon when the shooting image is detected When you enter the screen shot mode.
  • the acquiring the display pixel array of the current to-be-shot screen includes: determining the display pixel array corresponding to the model by identifying a model of the current to-be-shot screen; or receiving a user input to select the current An instruction to capture a size of the screen and a resolution, determine the display pixel array according to the size and the resolution; or generate a molar by interference on a screen of the current to-be-shot screen captured at different angles and different distances
  • the array of display pixels is determined by a pattern and a known array of sampled pixels.
  • the calculating the degree of coincidence of the display pixel array and the sampling pixel array of the photographing device comprises: calculating, as a first ratio of all pixel points in the sampled pixel array on the display pixel array The degree of coincidence; or a calculated second ratio of all pixel points in the display pixel array falling on the sampled pixel array as the coincidence degree; or the first ratio and the second ratio The weighted value is taken as the degree of coincidence.
  • the calculating a moving direction of the photographing device that increases the coincidence degree comprises: calculating a coincidence degree after a predetermined plurality of directions is assumed to be moved, and selecting a direction in which the calculated coincidence degree is the highest as the The moving direction is calculated; or the rate of change of the coincidence degree is calculated during the movement of the photographing apparatus, and the moving direction of the point where the forward rate of change is the largest is selected as the moving direction.
  • the prompting the user to move the direction comprises: prompting the user by means of an arrow, a direction, a screen tilt or a voice.
  • the method further includes: capturing the current to-be-shot screen when the preset shooting condition is met.
  • the photographing the current to-be-shot screen includes: receiving a shooting instruction input by a user, and photographing the current to-be-shot screen; or when the coincidence exceeds a preset
  • the user is prompted with the optimal shooting prompt information or automatically captures the current to-be-shot screen.
  • the prompting the optimal shooting prompt information to the user comprises: prompting by means of text, sound, screen flicker, shooting button color switching, or shooting button color blinking.
  • the present invention further provides a photographing apparatus, comprising: a display pixel array acquiring module, configured to acquire a display pixel array of a current screen to be photographed; a coincidence degree calculating module configured to calculate a sampling pixel array of the display pixel array and the photographing device Coincidence degree; moving direction calculation module, set to be When the degree of coincidence is lower than the preset first threshold, the moving direction of the photographing device that increases the coincidence degree is calculated; and the prompting module is configured to prompt the user for the moving direction.
  • a display pixel array acquiring module configured to acquire a display pixel array of a current screen to be photographed
  • a coincidence degree calculating module configured to calculate a sampling pixel array of the display pixel array and the photographing device Coincidence degree
  • moving direction calculation module set to be When the degree of coincidence is lower than the preset first threshold, the moving direction of the photographing device that increases the coincidence degree is calculated
  • the prompting module is configured to prompt the user for the moving direction.
  • the method further includes: a screen shot mode entry module, configured to receive an instruction input by the user to enter a screen shot mode before the display pixel array acquisition module acquires the display pixel array of the current screen to be shot; or when detecting When the moiré phenomenon appears on the shooting screen, enter the screen shooting mode.
  • a screen shot mode entry module configured to receive an instruction input by the user to enter a screen shot mode before the display pixel array acquisition module acquires the display pixel array of the current screen to be shot; or when detecting When the moiré phenomenon appears on the shooting screen, enter the screen shooting mode.
  • the display pixel array acquiring module is specifically: determining a module of the display pixel array corresponding to the model by identifying a model of the current screen to be photographed; or receiving a user input to select the current waiting
  • a pattern of the display pixel array is determined by moiré and a known array of sampled pixels.
  • the coincidence calculation module is specifically: calculating, by using the first ratio of all pixel points in the array of pixel arrays on the display pixel array, as a module of the coincidence degree; or calculating a second ratio of all pixel points in the display pixel array falling on the sampling pixel array as a module of the coincidence degree; or a weighting value of the first ratio and the second ratio as the coincidence Degree module.
  • the moving direction calculation module is specifically configured to: calculate a coincidence degree after a predetermined plurality of directions is assumed to be moved, and select a direction in which the calculated coincidence degree is the highest as a module of the moving direction; or in the shooting The rate of change of the coincidence degree is calculated during the movement of the device, and the moving direction of the point with the largest forward rate of change is selected as the module of the moving direction.
  • the prompting module is specifically: a module that prompts the user by means of an arrow, a direction, a screen tilt, or a voice.
  • the method further includes: a shooting module, configured to: after the prompting module prompts the user of the moving direction, when the preset shooting condition is met, the current to-be-shot screen is photographed.
  • a shooting module configured to: after the prompting module prompts the user of the moving direction, when the preset shooting condition is met, the current to-be-shot screen is photographed.
  • the photographing module is specifically configured to: receive a photographing instruction input by a user, and perform a photographing on the current screen to be photographed; or when the coincidence exceeds a preset second threshold, prompt the user to the most Excellent shooting information or a module that automatically captures the current screen to be shot.
  • the shooting module is specifically: by text, sound, screen flicker, shooting button A module that prompts for the color switching or shooting button color flashing.
  • the photographing method and device provided by the present invention acquires a display pixel array of a current screen to be photographed; calculates a coincidence degree of a display pixel array and a sampling pixel array of the photographing device; and when the coincidence degree is lower than a preset first threshold, the calculation is performed
  • the moving direction of the photographing device that increases the degree of coincidence; prompts the user of the moving direction.
  • the present application detects the coincidence degree of the display pixel array of the screen and the sampling pixel array of the camera sensor in real time, and guides the user to gradually increase the coincidence degree of the two pixel arrays, so that the two arrays tend to overlap as much as possible, and weaken the overlap of the two arrays.
  • the interference can significantly reduce or even eliminate moiré, so that users can get high-definition screen shots quickly and easily.
  • Figure 1 is a schematic diagram of the moiré phenomenon in the image
  • 2 is a schematic diagram showing the principle of generation of moiré
  • FIG. 3 is a schematic diagram showing a specific arrangement when the display of the screen and the camera sensor and the sampling pixels maintain a certain angle and distance;
  • FIG. 4 is a schematic diagram of interference between a display pixel array and a sampling pixel array of a screen and a camera sensor
  • FIG. 5 is a flowchart of a specific implementation manner of a photographing method provided by the present invention.
  • FIG. 6 is a flow chart of another specific embodiment of a photographing method provided by the present invention.
  • FIG. 7 is a flow chart of still another embodiment of a photographing method provided by the present invention.
  • FIG. 8 is a structural block diagram of a photographing apparatus according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a photographing apparatus 1 according to an embodiment of the present invention.
  • FIG. 10 is a structural block diagram of a photographing apparatus 2 according to another embodiment of the present invention.
  • Moiré is a phenomenon caused by the superposition of the peaks of two sine waves. In fact, it is the hand. Waveform interference occurs between the sampling pixels in the camera CCD of the camera such as a digital camera or a digital camera and the display pixels of the captured display. As shown in Figure 2, the schematic diagram of the generation of moiré is shown. Figure 3 is a schematic diagram showing a specific arrangement of the display and sampling pixels of the screen and camera sensors while maintaining a particular angle and distance. After the interference between the two, there will be a situation as shown in 4, and moiré appears in the overlapping portion. Since the film camera has no pixels, there is no irregular interference fringes.
  • the main cause of the moiré phenomenon is that the display pixel array of the screen and the sampling pixel array of the camera sensor cannot be in one-to-one correspondence, resulting in an interference phenomenon.
  • Adjusting the spacing of the two pixel arrays can change the relative sizes of the two arrays.
  • Adjusting the orientation of the camera can change the relative orientation of the two pixel arrays. Therefore, by adjusting the spacing and direction to make the two arrays overlap as much as possible, it can be significant. Reduce or even eliminate moiré.
  • FIG. 5 A flowchart of a specific embodiment of the photographing method provided by the present invention is shown in FIG. 5, and the method includes:
  • Step S101 Acquire an array of display pixels of a current screen to be shot
  • Step S102 Calculate a degree of coincidence of the display pixel array and the sampling pixel array of the photographing device
  • the sampling pixel array of the photographing device may be an array of sampling pixels of the CCD of the photographing device, and specifically, the sampling pixel array of the CCD may be determined by the sensor data of the photographing device itself. In addition, the sampling pixel array can also be obtained by reading chip data or pre-storing configuration information.
  • the coincidence degree is used to indicate the degree of coincidence of the sampled pixel array and the display pixel array. The more overlap between the two arrays, the higher the degree of coincidence.
  • Step S103 When the degree of coincidence is lower than a preset first threshold, calculate a moving direction of the photographing device that increases the coincidence degree;
  • Step S104 Prompting the user to the moving direction.
  • the user may be prompted by an arrow, a direction, a screen tilt, or a voice.
  • the direction of movement can be forward, backward, leftward, rightward, or other direction relative to the current screen.
  • the photographing method provided by the present invention obtains the display pixel array of the current screen to be photographed; calculates the coincidence degree of the display pixel array and the sampling pixel array of the photographing device; when the coincidence degree is lower than the preset first threshold, the calculation is performed to make coincidence
  • the moving direction of the photographing device is increased; the user is prompted to move the direction.
  • the present application detects the coincidence degree of the display pixel array of the screen and the sampling pixel array of the camera sensor in real time, and guides the user to gradually increase the coincidence degree of the two pixel arrays, so that the two arrays tend to overlap as much as possible, and weaken the overlap of the two arrays. Interference, which can significantly reduce or even eliminate moiré, so that users can get high-definition screen shots quickly and easily.
  • the setting screen screen shooting mode can be added to implement the photographing method provided by the present invention.
  • the startup mode of the screen shot mode may be an instruction to receive a screen input mode input by the user; or when a moiré phenomenon is detected on the photographing screen, that is, the photographing screen is taken by the photographing device, the screen shot mode is entered.
  • the shooting method provided by the present invention can be used for shooting.
  • FIG. 6 A flowchart of another specific embodiment of the photographing method provided by the present invention is shown in FIG. 6, and the method includes:
  • Step S201 Enter a screen shooting mode
  • entering the screen shot mode may be an instruction to input a screen input mode input by the user.
  • the trigger mode of the command can be physical button, virtual button or voice. It is also possible to automatically enter the screen shooting mode when the moiré phenomenon of the shooting screen is detected in the normal shooting mode.
  • Step S202 Acquire an array of display pixels of a current screen to be shot
  • Step S203 calculating a degree of coincidence between the display pixel array and the sampling pixel array of the photographing device
  • Step S204 When the degree of coincidence is lower than a preset first threshold, calculate a moving direction of the photographing device that increases the coincidence degree;
  • a method for determining a moving direction may be: calculating a coincidence degree after a predetermined plurality of directions is assumed to be moved, and selecting a direction in which the calculated degree of coincidence is the highest as the moving direction.
  • a three-dimensional coordinate system is established with the center point of the photographing device as an origin, and a spherical surface is formed with R as a radius.
  • the area of the spherical surface is N-divided, and the center point of each aliquot is taken as a preset assumed direction, that is, has N preset assumed directions.
  • N is greater than or equal to 6, and its specific value can be set according to the actual accuracy and the amount of calculation. Calculate the coincidence degree after moving the N preset assumed directions respectively, and Compare the size and determine the direction with the highest degree of coincidence as the direction of movement.
  • another method for determining the moving direction may be: calculating a rate of change of the coincidence degree during the moving of the photographing device, and selecting a moving direction of a point having the largest forward rate of change as the moving direction.
  • the rate of change of the coincidence degree is calculated during the movement, and the moving direction of the point with the largest forward rate of change is selected as the direction with the highest probability of increasing the degree of coincidence, that is, the moving direction for prompting the moving of the photographing device.
  • Step S205 prompting the user of the moving direction.
  • the method may further include:
  • the current to-be-shot screen is photographed.
  • the preset shooting condition may be: receiving a shooting instruction input by the user, and capturing the current to-be-shot screen; or prompting the user to the optimal shooting prompt information or when the coincidence degree exceeds a preset second threshold The current to-be-shot screen is automatically captured.
  • the user can move the photographing device in the direction of the prompt, and when the coincidence degree is greater than the preset second threshold, the user may prompt the user to perform the optimal photographing prompt information for shooting, or the photographing device can automatically perform photographing, and further automatically save the photographed image.
  • the photographing device can automatically perform photographing, and further automatically save the photographed image.
  • the shooting interface may be displayed without further exiting the shooting interface, and the direction prompt for further increasing the coincidence degree is displayed on the screen until the user input is received. Exit the screen shot mode or exit the shooting screen.
  • the flowchart of the method is as shown in FIG. 7 , and specifically includes:
  • Step S301 When it is detected that the moiré phenomenon occurs on the shooting screen, enter the screen shooting mode;
  • Step S302 determining, by the captured screen image, a display pixel array of the current screen
  • the determining method of the display pixel array may be: determining the display pixel array corresponding to the model by identifying a model of the current to-be-shot screen. After identifying the model of the current screen to be shot, by searching the data, the display pixel array of the screen corresponding to the model can be determined.
  • the determining method of the display pixel array may further be: receiving an instruction input by the user for selecting a size and a resolution of the current to-be-shot screen, and determining the display pixel array according to the size and the resolution.
  • the process is to select the selection box containing the size and resolution of the current screen by the user on the premise that the user knows the size and resolution of the current screen, and then according to the size and the resolution, the resolution is required. Pixels are uniformly distributed in a regular array of pixels formed on a screen of corresponding size.
  • Another method of determining a display pixel array is to determine the display pixel array by a moiré generated by interference on a picture of the current to-be-shot screen captured at different angles and a known sampled pixel array. Since the camera sampling pixel array is fixed, the display pixel array is also fixed, and the moiré generated by the interference on the screen images taken at different angles and different distances is also different.
  • the array of display pixels can be solved by moiré on a screen image taken at different angles and at different distances, and a known array of sampled pixels.
  • Step S303 determining a sampling pixel array of the sensor
  • step S302 and step S303 described above may be interchanged, which does not affect the implementation of the present invention.
  • Step S304 calculating a coincidence degree between the display pixel array of the current screen and the current sensor sampling pixel array;
  • the calculation method of the coincidence degree may be: calculating a first ratio of all pixel points in the sampled pixel array on the display pixel array as the coincidence degree.
  • the calculation method of the coincidence degree may be: calculating a second ratio of all pixel points in the display pixel array on the sampling pixel array as the coincidence degree;
  • a weighting value of the first ratio and the second ratio may also be used as the coincidence degree. Or after performing other calculations on the weighting values of the first ratio and the second ratio, the corresponding numerical value obtained is taken as the weight Cohesion.
  • Step S305 When the calculated coincidence degree is lower than the preset first threshold, calculate a moving direction that increases the coincidence degree;
  • Step S306 prompting the user to the moving direction
  • Step S307 In the process of the user moving the photographing device, continuously detecting and calculating, repeating steps S304 to S307, until the calculated coincidence degree is greater than the preset second threshold, the screen prompts the user to perform shooting, or the mobile terminal automatically performs Take a picture and save the picture.
  • the specific prompts for the user to shoot can be text prompts, voice prompts, screen flashing prompts, shooting button color prompts, or shooting button color blinking prompts.
  • the shooting method provided by the present invention is further elaborated below in a specific scenario.
  • the user turns on the camera to enter the shooting screen, and the mobile terminal detects that the screen has moiré and enters the screen shooting mode.
  • the first threshold value for example, the first threshold value may be taken as 70%
  • the calculated coincidence degree is increased on the screen shooting interface.
  • the user moves the camera backwards or forwards according to the moving direction of the prompt.
  • the calculated coincidence degree is greater than the second threshold, and the second threshold can be taken as 85%.
  • the mobile terminal automatically captures the current picture and saves it. Continue to display the moving direction that increases the coincidence degree.
  • the coincidence degree is increased to 94%, the user presses the shooting button to save the shooting screen and exits the
  • the photographing apparatus provided by the embodiment of the present invention will be described below, and the photographing apparatus described below and the photographing method described above can be referred to each other.
  • FIG. 8 is a structural block diagram of a photographing apparatus according to an embodiment of the present invention.
  • the photographing apparatus may include:
  • the display pixel array obtaining module 100 is configured to acquire a display pixel array of the current screen to be captured
  • the coincidence degree calculation module 200 is configured to calculate a degree of coincidence of the display pixel array and the sampling pixel array of the photographing device;
  • the movement direction calculation module 300 is configured to calculate a moving direction of the photographing device that increases the coincidence degree when the coincidence degree is lower than a preset first threshold value
  • the prompting module 400 is configured to prompt the user of the moving direction.
  • the photographing apparatus provided by the present invention may further include:
  • the screen shot mode entry module is configured to receive an instruction input by the user to enter a screen shot mode before the display pixel array acquisition module acquires the display pixel array of the current screen to be photographed; or when detecting a moiré phenomenon on the photographed screen When you enter the screen shot mode.
  • the display pixel array acquiring module is specifically:
  • the coincidence calculation module is specifically:
  • the moving direction calculation module is specifically:
  • the prompting module is specifically:
  • the photographing apparatus provided by the present invention may further include:
  • the photographing module is configured to: after the prompting module prompts the user of the moving direction, when the preset shooting condition is met, the current to-be-shot screen is photographed.
  • the shooting module may be specifically:
  • the shooting module is specifically:
  • a module that prompts by text, sound, screen flicker, shooting button color switching, or shooting button color blinking is
  • the photographing device detects the coincidence degree of the display pixel array of the screen and the sampling pixel array of the camera sensor in real time, and guides the user to gradually increase the coincidence degree of the two pixel arrays, so that the two arrays tend to overlap as much as possible, weakening Interference between the two arrays can significantly reduce or even eliminate moiré, allowing users to quickly and easily obtain high-definition screen shots.
  • FIG. 9 is a schematic diagram of a photographing apparatus 1 according to an embodiment of the present invention.
  • the photographing apparatus 1 may include a processor 11 , a memory 12 , and a display 13 .
  • the processor 11 , the memory 12 , and the display 13 communicate through the communication bus 14 .
  • the memory 12 is configured to store program code.
  • the processor 11 After the processor 11 is configured to read the program code stored in the memory 12, the following is performed: acquiring a display pixel array of the current screen to be captured; calculating a coincidence degree of the display pixel array and the sampling pixel array of the photographing device. And when the degree of coincidence is lower than a preset first threshold, calculating a moving direction of the photographing device that increases the coincidence degree; prompting the user of the moving direction.
  • the display 13 is configured to receive a display instruction of the processor 11 to display the moving direction.
  • the processor 11 calls the code stored in the memory 12 via the bus 14 to further receive: an instruction input by the user to enter the screen shooting mode; or when detecting a moiré phenomenon on the shooting picture , enter the screen shooting mode.
  • the processor 11 calls the code stored in the memory 12 via the bus 14 to specifically: by identifying the current screen to be shot. a model, determining the display pixel array corresponding to the model; or receiving a user input instruction for selecting a size and a resolution of the current to-be-shot screen, determining the display pixel array according to the size and the resolution Or determining the display pixel array by using a moiré generated by interference on a picture of the current to-be-shot screen taken at different angles and a known sampling pixel array.
  • the sampling of the display pixel array and the photographing device is calculated in the above manner.
  • the processor 11 calls the code stored in the memory 12 via the bus 14 to specifically: calculate the calculated total pixel points of the sampled pixel array on the display pixel array. a ratio as the degree of coincidence; or a calculated second ratio of all pixel points in the display pixel array falling on the sampled pixel array as the coincidence degree; or the first ratio and the first ratio The weighting value of the second ratio is taken as the degree of coincidence.
  • the processor 11 calls the code stored in the memory 12 via the bus 14 to specifically: for the preset, in terms of calculating the moving direction of the photographing device in which the degree of coincidence is increased.
  • the plurality of directions are assumed to calculate the coincidence degree after the movement, and the direction with the highest degree of coincidence is selected as the moving direction; or the rate of change of the coincidence degree is calculated during the movement of the photographing device, and the direction with the highest positive change rate is selected.
  • the moving direction of the point serves as the moving direction.
  • the processor 11 sends a display instruction to the display 13 via the bus 14 for specifically: by arrow, direction, screen tilt or voice. Prompt to the user.
  • the processor 11 calls the code stored in the memory 12 via the bus 14 to further: after the user is prompted by the moving direction, when the preset shooting condition is met, The current screen to be shot is taken.
  • the processor 11 calls the code stored in the memory 12 via the bus 14 to specifically receive: in the aspect of capturing the current to-be-shot screen when the preset shooting condition is met. a photographing instruction input by the user, photographing the current screen to be photographed; or when the degree of coincidence exceeds a preset second threshold, prompting the user to the optimal photographing prompt information or automatically photographing the current screen to be photographed.
  • the processor 11 sends a display instruction to the display 13 via the bus 14 to specifically: through the text. Prompt for sound, screen flicker, shooting button color switching, or flashing of the shooting button color.
  • the photographing device provided by the present application detects the display pixel array of the screen and the camera through real time The coincidence of the sampling pixel array of the sensor, and guide the user to gradually increase the coincidence degree of the two pixel arrays, so that the two arrays tend to overlap as much as possible, weakening the interference when the two arrays overlap, and the moiré can be significantly reduced or even eliminated. This makes it easy and quick for users to get high-definition screen shots.
  • FIG. 10 is a structural block diagram of a photographing apparatus 2 according to another embodiment of the present invention.
  • the photographing device 2 may include at least one processor 21, at least one network interface 22 or other user interface 23, a memory 24, a display 25, a camera 26, at least one communication bus 27, and an image sensor 28.
  • Communication bus 27 is used to implement connection communication between these components.
  • the memory 24 can include read only memory and random access memory and provides instructions and data to the processor 21.
  • a portion of memory 24 may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • memory 24 stores the following elements, executable modules or data structures, or a subset thereof, or their extended set:
  • the operating system 241 includes various system programs for implementing various basic services and processing hardware-based tasks.
  • the application module 242 which includes various applications, is configured to implement various application services.
  • the application module 242 includes, but is not limited to, a display pixel array acquisition module 100, a coincidence degree calculation module 200, a movement direction calculation module 300, and/or a prompt module 400, and the like.
  • the processor 21 is further configured to: receive an instruction input by the user to enter a screen shooting mode by calling a program or an instruction stored in the memory 24; or when detecting a moiré phenomenon in the shooting image, Enter the screen shot mode.
  • the processor 21 is specifically configured to: identify the model of the current screen to be shot by Determining the display pixel array corresponding to the model; or receiving an instruction input by the user to select a size and a resolution of the current to-be-shot screen, and determining the display pixel array according to the size and the resolution;
  • the display pixel array is determined by a moiré generated by interference on a picture of the current to-be-shot screen captured at different angles and a known sampled pixel array.
  • the processor 21 is specifically configured to: calculate the first pixel point of the calculated pixel array on the display pixel array by calling the program or instruction stored in the memory 24 a ratio as the degree of coincidence; or a calculated second ratio of all pixels in the display pixel array falling on the sampled pixel array as the coincidence degree; or the first ratio and the first The weighting value of the two ratios is taken as the degree of coincidence.
  • the processor 21 is specifically configured to: preset a plurality of presets by calling a program or instruction stored in the memory 24 in terms of calculating the moving direction of the photographing device in which the degree of coincidence is increased.
  • the direction is calculated by calculating the coincidence degree after the movement, and the direction with the highest degree of coincidence is selected as the moving direction; or the rate of change of the coincidence degree is calculated during the movement of the photographing device, and the point with the largest forward rate of change is selected.
  • the moving direction is taken as the moving direction.
  • the processor 21 transmits a display instruction to the display 25 via the bus 27 for specifically: by arrow, direction, screen tilt or voice. Prompt to the user.
  • the processor 21 is further configured to: after the prompting the moving direction to the user, when the preset shooting condition is met, the current waiting Shoot the screen to shoot.
  • the processor 21 is specifically configured to: receive user input by calling a program or instruction stored in the memory 24 in the aspect of capturing the current to-be-shot screen when the preset shooting condition is satisfied. a shooting instruction to capture the current to-be-shot screen; or when the degree of coincidence exceeds a preset second threshold, prompting the user to the optimal shooting prompt information or automatically capturing the current to-be-shot screen.
  • the processor 21 sends a display instruction to the display 25 via the bus 27 to specifically use: Prompt for sound, screen flicker, shooting button color switching, or flashing of the shooting button color.
  • the photographing device may be a terminal device such as a mobile phone or a tablet or a camera.
  • the photographing device detects the coincidence degree of the display pixel array of the screen and the sampling pixel array of the camera sensor in real time, and guides the user to gradually increase the coincidence degree of the two pixel arrays, so that the two arrays tend to overlap as much as possible, weakening two Interference with array overlap can significantly reduce or even eliminate moiré, allowing users to quickly and easily obtain high-definition screen shots.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented directly in hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

A photographing method and apparatus. The method comprises: acquiring a display pixel array of a screen currently to be photographed (S101); calculating a coincidence degree of the display pixel array and a sampled pixel array of a photographing device (S102); when the coincidence degree is less than a first pre-set threshold value, calculating a direction of movement for the photographing device for increasing the coincidence degree (S103); and notifying the user of the direction of movement (S104). By measuring in real time the coincidence degree of a display pixel array of a screen and a sampled pixel array from a camera sensor, and guiding a user to increase the coincidence degree of the two pixel arrays step by step, the two arrays tend to overlap as much as possible, the interference when two arrays overlap is weakened, and a moiré pattern can be significantly reduced or even eliminated, thereby allowing a user to quickly and easily obtain high-definition screen shots.

Description

一种拍摄方法以及装置Shooting method and device
本申请要求于2016年8月31日提交中国专利局,申请号为201610792759.7、发明名称为“一种拍摄方法以及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 2016-10792759.7, the entire disclosure of which is incorporated herein in
技术领域Technical field
本发明涉及拍照技术领域,特别是涉及一种拍摄方法以及装置。The present invention relates to the field of photographing technology, and in particular to a photographing method and apparatus.
背景技术Background technique
在生活中,人与人的交往越来越多的体现在网络上,很多人通过微博等网络社交应用实时分享自己的动态,经常会出现使用相机或带有拍摄功能的手机等移动终端去拍摄电脑屏幕画面的场景。In life, people's interactions are more and more reflected in the network. Many people share their own dynamics through online social applications such as Weibo. Mobile terminals such as mobile phones with cameras or shooting functions often appear. Take a picture of the computer screen.
然而,由于手机或数码相机等拍摄设备的摄像头CCD中取样像素与被摄显示屏的显示像素之间产生了波形干涉,会导致密集的弯曲的彩色纹路的出现,即如图1所示的图像中的摩尔纹现象。这样的摩尔纹遍及整张图像,很难通过软件去优化,导致拍摄出的图片清晰度极差,影响对图片的观看。However, due to waveform interference between the sampling pixels in the camera CCD of the camera such as a mobile phone or a digital camera and the display pixels of the captured display screen, a dense curved color line appears, that is, an image as shown in FIG. The moiré phenomenon in the middle. Such a moiré spreads over the entire image, which is difficult to optimize by software, resulting in a very poor picture clarity and affecting the viewing of the picture.
鉴于此,提供一种拍摄方法以及装置,以减弱移动终端拍摄屏幕画面时产生的摩尔纹现象是非常有必要的。In view of this, it is highly necessary to provide a photographing method and apparatus to attenuate the moiré phenomenon generated when a mobile terminal takes a screen shot.
发明内容Summary of the invention
本发明的目的是提供一种拍摄方法以及装置,以解决现有拍摄设备拍摄屏幕时产生摩尔纹现象而导致图像质量较低、影响拍摄效果的问题。It is an object of the present invention to provide a photographing method and apparatus for solving the problem that a moiré phenomenon occurs when an existing photographing apparatus photographs a screen, resulting in a low image quality and affecting a photographing effect.
为解决上述技术问题,本发明提供一种拍摄方法,包括:获取当前待拍摄屏幕的显示像素阵列;计算所述显示像素阵列与拍摄设备的取样像素阵列的重合度;当所述重合度低于预设第一阈值时,计算以使所述重合度增大的拍摄设备的移动方向;向用户提示所述移动方向。In order to solve the above technical problem, the present invention provides a photographing method, comprising: acquiring a display pixel array of a current screen to be photographed; calculating a coincidence degree of the display pixel array and a sampling pixel array of the photographing device; when the coincidence degree is lower than When the first threshold is preset, the moving direction of the photographing device that increases the coincidence degree is calculated; the moving direction is presented to the user.
可选地,在所述获取当前待拍摄屏幕的显示像素阵列之前还包括:接收用户输入的进入屏幕画面拍摄模式的指令;或当检测到拍摄画面出现摩尔纹现象 时,进入屏幕画面拍摄模式。Optionally, before the acquiring the display pixel array of the current to-be-shot screen, the method further includes: receiving an instruction input by the user to enter a screen shooting mode; or detecting a moiré phenomenon when the shooting image is detected When you enter the screen shot mode.
可选地,所述获取当前待拍摄屏幕的显示像素阵列包括:通过识别所述当前待拍摄屏幕的型号,确定与所述型号对应的所述显示像素阵列;或接收用户输入的选择所述当前待拍摄屏幕的尺寸以及分辨率的指令,根据所述尺寸以及所述分辨率确定所述显示像素阵列;或通过对不同角度不同距离拍摄到的所述当前待拍摄屏幕的画面上干涉产生的摩尔纹以及已知的取样像素阵列,确定所述显示像素阵列。Optionally, the acquiring the display pixel array of the current to-be-shot screen includes: determining the display pixel array corresponding to the model by identifying a model of the current to-be-shot screen; or receiving a user input to select the current An instruction to capture a size of the screen and a resolution, determine the display pixel array according to the size and the resolution; or generate a molar by interference on a screen of the current to-be-shot screen captured at different angles and different distances The array of display pixels is determined by a pattern and a known array of sampled pixels.
可选地,所述计算所述显示像素阵列与拍摄设备的取样像素阵列的重合度包括:将计算得到的所述取样像素阵列中所有像素点落在所述显示像素阵列上的第一比例作为所述重合度;或将计算得到的所述显示像素阵列中所有像素点落在所述取样像素阵列上的第二比例作为所述重合度;或将所述第一比例与所述第二比例的加权值作为所述重合度。Optionally, the calculating the degree of coincidence of the display pixel array and the sampling pixel array of the photographing device comprises: calculating, as a first ratio of all pixel points in the sampled pixel array on the display pixel array The degree of coincidence; or a calculated second ratio of all pixel points in the display pixel array falling on the sampled pixel array as the coincidence degree; or the first ratio and the second ratio The weighted value is taken as the degree of coincidence.
可选地,所述计算以使所述重合度增大的拍摄设备的移动方向包括:对预设多个方向假定移动后的重合度进行计算,选取计算出的重合度最高的方向作为所述移动方向;或在所述拍摄设备移动过程中计算重合度的变化率,选取正向变化率最大的点的移动方向作为所述移动方向。Optionally, the calculating a moving direction of the photographing device that increases the coincidence degree comprises: calculating a coincidence degree after a predetermined plurality of directions is assumed to be moved, and selecting a direction in which the calculated coincidence degree is the highest as the The moving direction is calculated; or the rate of change of the coincidence degree is calculated during the movement of the photographing apparatus, and the moving direction of the point where the forward rate of change is the largest is selected as the moving direction.
可选地,所述向用户提示所述移动方向包括:通过箭头、方向、画面倾斜或语音的方式向所述用户进行提示。Optionally, the prompting the user to move the direction comprises: prompting the user by means of an arrow, a direction, a screen tilt or a voice.
可选地,在所述向用户提示所述移动方向之后还包括:在满足预设拍摄条件时,对所述当前待拍摄屏幕进行拍摄。Optionally, after the prompting the moving direction to the user, the method further includes: capturing the current to-be-shot screen when the preset shooting condition is met.
可选地,所述在满足预设拍摄条件时,对所述当前待拍摄屏幕进行拍摄包括:接收用户输入的拍摄指令,对所述当前待拍摄屏幕进行拍摄;或当所述重合度超过预设第二阈值时,向所述用户提示最优拍摄提示信息或自动拍摄所述当前待拍摄屏幕。Optionally, when the preset shooting condition is met, the photographing the current to-be-shot screen includes: receiving a shooting instruction input by a user, and photographing the current to-be-shot screen; or when the coincidence exceeds a preset When the second threshold is set, the user is prompted with the optimal shooting prompt information or automatically captures the current to-be-shot screen.
可选地,所述向所述用户提示最优拍摄提示信息包括:通过文字、声音、屏幕闪烁、拍摄按钮颜色切换或拍摄按钮颜色闪烁的方式进行提示。Optionally, the prompting the optimal shooting prompt information to the user comprises: prompting by means of text, sound, screen flicker, shooting button color switching, or shooting button color blinking.
本发明还提供了一种拍摄装置,包括:显示像素阵列获取模块,设置为获取当前待拍摄屏幕的显示像素阵列;重合度计算模块,设置为计算所述显示像素阵列与拍摄设备的取样像素阵列的重合度;移动方向计算模块,设置为当所 述重合度低于预设第一阈值时,计算以使所述重合度增大的拍摄设备的移动方向;提示模块,设置为向用户提示所述移动方向。The present invention further provides a photographing apparatus, comprising: a display pixel array acquiring module, configured to acquire a display pixel array of a current screen to be photographed; a coincidence degree calculating module configured to calculate a sampling pixel array of the display pixel array and the photographing device Coincidence degree; moving direction calculation module, set to be When the degree of coincidence is lower than the preset first threshold, the moving direction of the photographing device that increases the coincidence degree is calculated; and the prompting module is configured to prompt the user for the moving direction.
可选地,还包括:屏幕画面拍摄模式进入模块,设置为在所述显示像素阵列获取模块获取当前待拍摄屏幕的显示像素阵列之前,接收用户输入的进入屏幕画面拍摄模式的指令;或当检测到拍摄画面出现摩尔纹现象时,进入屏幕画面拍摄模式。Optionally, the method further includes: a screen shot mode entry module, configured to receive an instruction input by the user to enter a screen shot mode before the display pixel array acquisition module acquires the display pixel array of the current screen to be shot; or when detecting When the moiré phenomenon appears on the shooting screen, enter the screen shooting mode.
可选地,所述显示像素阵列获取模块具体为:通过识别所述当前待拍摄屏幕的型号,确定与所述型号对应的所述显示像素阵列的模块;或接收用户输入的选择所述当前待拍摄屏幕的尺寸以及分辨率的指令,根据所述尺寸以及所述分辨率确定所述显示像素阵列的模块;或通过对不同角度不同距离拍摄到的所述当前待拍摄屏幕的画面上干涉产生的摩尔纹以及已知的取样像素阵列,确定所述显示像素阵列的模块。Optionally, the display pixel array acquiring module is specifically: determining a module of the display pixel array corresponding to the model by identifying a model of the current screen to be photographed; or receiving a user input to select the current waiting An instruction to capture a size of the screen and a resolution, determine a module of the display pixel array according to the size and the resolution; or generate interference by interfering with a picture of the current to-be-shot screen captured at different angles and different distances A pattern of the display pixel array is determined by moiré and a known array of sampled pixels.
可选地,所述重合度计算模块具体为:将计算得到的所述取样像素阵列中所有像素点落在所述显示像素阵列上的第一比例作为所述重合度的模块;或将计算得到的所述显示像素阵列中所有像素点落在所述取样像素阵列上的第二比例作为所述重合度的模块;或将所述第一比例与所述第二比例的加权值作为所述重合度的模块。Optionally, the coincidence calculation module is specifically: calculating, by using the first ratio of all pixel points in the array of pixel arrays on the display pixel array, as a module of the coincidence degree; or calculating a second ratio of all pixel points in the display pixel array falling on the sampling pixel array as a module of the coincidence degree; or a weighting value of the first ratio and the second ratio as the coincidence Degree module.
可选地,所述移动方向计算模块具体为:对预设多个方向假定移动后的重合度进行计算,选取计算出的重合度最高的方向作为所述移动方向的模块;或在所述拍摄设备移动过程中计算重合度的变化率,选取正向变化率最大的点的移动方向作为所述移动方向的模块。Optionally, the moving direction calculation module is specifically configured to: calculate a coincidence degree after a predetermined plurality of directions is assumed to be moved, and select a direction in which the calculated coincidence degree is the highest as a module of the moving direction; or in the shooting The rate of change of the coincidence degree is calculated during the movement of the device, and the moving direction of the point with the largest forward rate of change is selected as the module of the moving direction.
可选地,所述提示模块具体为:通过箭头、方向、画面倾斜或语音的方式向所述用户进行提示的模块。Optionally, the prompting module is specifically: a module that prompts the user by means of an arrow, a direction, a screen tilt, or a voice.
可选地,还包括:拍摄模块,设置为在所述提示模块向用户提示所述移动方向之后,在满足预设拍摄条件时,对所述当前待拍摄屏幕进行拍摄。Optionally, the method further includes: a shooting module, configured to: after the prompting module prompts the user of the moving direction, when the preset shooting condition is met, the current to-be-shot screen is photographed.
可选地,所述拍摄模块具体为:接收用户输入的拍摄指令,对所述当前待拍摄屏幕进行拍摄的模块;或当所述重合度超过预设第二阈值时,向所述用户提示最优拍摄提示信息或自动拍摄所述当前待拍摄屏幕的模块。Optionally, the photographing module is specifically configured to: receive a photographing instruction input by a user, and perform a photographing on the current screen to be photographed; or when the coincidence exceeds a preset second threshold, prompt the user to the most Excellent shooting information or a module that automatically captures the current screen to be shot.
可选地,所述拍摄模块具体为:通过文字、声音、屏幕闪烁、拍摄按钮颜 色切换或拍摄按钮颜色闪烁的方式进行提示的模块。Optionally, the shooting module is specifically: by text, sound, screen flicker, shooting button A module that prompts for the color switching or shooting button color flashing.
本发明所提供的拍摄方法以及装置,通过获取当前待拍摄屏幕的显示像素阵列;计算显示像素阵列与拍摄设备的取样像素阵列的重合度;当重合度低于预设第一阈值时,计算以使重合度增大的拍摄设备的移动方向;向用户提示移动方向。本申请通过实时检测屏幕的显示像素阵列以及摄像头传感器的取样像素阵列的重合度,并引导用户逐步提高两个像素阵列的重合度,以使两个阵列尽量趋于重叠,弱化两个阵列重叠时的干涉,能够显著减少甚至消除摩尔纹,从而使得用户可以方便快捷地得到清晰度高的屏幕拍摄画面。The photographing method and device provided by the present invention acquires a display pixel array of a current screen to be photographed; calculates a coincidence degree of a display pixel array and a sampling pixel array of the photographing device; and when the coincidence degree is lower than a preset first threshold, the calculation is performed The moving direction of the photographing device that increases the degree of coincidence; prompts the user of the moving direction. The present application detects the coincidence degree of the display pixel array of the screen and the sampling pixel array of the camera sensor in real time, and guides the user to gradually increase the coincidence degree of the two pixel arrays, so that the two arrays tend to overlap as much as possible, and weaken the overlap of the two arrays. The interference can significantly reduce or even eliminate moiré, so that users can get high-definition screen shots quickly and easily.
附图说明DRAWINGS
为了更清楚的说明本发明实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are merely Some embodiments of the present invention may also be used to obtain other drawings based on these drawings without departing from the art.
图1为图像中的摩尔纹现象示意图;Figure 1 is a schematic diagram of the moiré phenomenon in the image;
图2为摩尔纹的产生原理示意图;2 is a schematic diagram showing the principle of generation of moiré;
图3为屏幕和摄像头传感器的显示和取样像素保持特定角度和距离时的一种具体排列示意图;3 is a schematic diagram showing a specific arrangement when the display of the screen and the camera sensor and the sampling pixels maintain a certain angle and distance;
图4为屏幕和摄像头传感器的显示像素阵列和取样像素阵列干涉后示意图;4 is a schematic diagram of interference between a display pixel array and a sampling pixel array of a screen and a camera sensor;
图5为本发明所提供的拍摄方法的一种具体实施方式的流程图;FIG. 5 is a flowchart of a specific implementation manner of a photographing method provided by the present invention; FIG.
图6为本发明所提供的拍摄方法的另一种具体实施方式的流程图;6 is a flow chart of another specific embodiment of a photographing method provided by the present invention;
图7为本发明所提供的拍摄方法的又一种具体实施方式的流程图;7 is a flow chart of still another embodiment of a photographing method provided by the present invention;
图8为本发明实施例提供的拍摄装置的结构框图;FIG. 8 is a structural block diagram of a photographing apparatus according to an embodiment of the present invention;
图9为本发明实施例提供的拍摄设备1的示意图;FIG. 9 is a schematic diagram of a photographing apparatus 1 according to an embodiment of the present invention;
图10为本发明的另一个实施例提供的拍摄设备2的结构框图。FIG. 10 is a structural block diagram of a photographing apparatus 2 according to another embodiment of the present invention.
具体实施方式detailed description
摩尔纹是由于两个正弦波的波峰叠加所产生的一种现象,实际上也就是手 机或数码相机等拍摄设备的摄像头CCD中取样像素与被摄显示屏的显示像素之间发生了波形干涉现象。如图2摩尔纹的产生原理示意图所示。图3是屏幕和摄像头传感器的显示和取样像素保持特定角度和距离时的一种具体排列示意图。二者干涉后会出现如4中示出的情况,重叠部分出现了摩尔纹。由于胶片相机是没有像素的,所以如何交错也不会出现不规律的干涉条纹。Moiré is a phenomenon caused by the superposition of the peaks of two sine waves. In fact, it is the hand. Waveform interference occurs between the sampling pixels in the camera CCD of the camera such as a digital camera or a digital camera and the display pixels of the captured display. As shown in Figure 2, the schematic diagram of the generation of moiré is shown. Figure 3 is a schematic diagram showing a specific arrangement of the display and sampling pixels of the screen and camera sensors while maintaining a particular angle and distance. After the interference between the two, there will be a situation as shown in 4, and moiré appears in the overlapping portion. Since the film camera has no pixels, there is no irregular interference fringes.
基于上述原理可知,出现摩尔纹现象的主要原因是屏幕的显示像素阵列与摄像头传感器的取样像素阵列并不能一一对应,导致发生了干涉现象。而调整两个像素阵列的间距可以改变两个阵列的相对大小,调整摄像头的方向可以改变两个像素阵列的相对方向,因此可以通过调整间距与方向来使两个阵列尽量趋向重叠,则可以显著减少甚至消除摩尔纹。Based on the above principle, it is known that the main cause of the moiré phenomenon is that the display pixel array of the screen and the sampling pixel array of the camera sensor cannot be in one-to-one correspondence, resulting in an interference phenomenon. Adjusting the spacing of the two pixel arrays can change the relative sizes of the two arrays. Adjusting the orientation of the camera can change the relative orientation of the two pixel arrays. Therefore, by adjusting the spacing and direction to make the two arrays overlap as much as possible, it can be significant. Reduce or even eliminate moiré.
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The present invention will be further described in detail below in conjunction with the drawings and embodiments. It is apparent that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明所提供的拍摄方法的一种具体实施方式的流程图如图5所示,该方法包括:A flowchart of a specific embodiment of the photographing method provided by the present invention is shown in FIG. 5, and the method includes:
步骤S101:获取当前待拍摄屏幕的显示像素阵列;Step S101: Acquire an array of display pixels of a current screen to be shot;
步骤S102:计算所述显示像素阵列与拍摄设备的取样像素阵列的重合度;Step S102: Calculate a degree of coincidence of the display pixel array and the sampling pixel array of the photographing device;
拍摄设备的取样像素阵列可以为拍摄设备的CCD的取样像素阵列,具体可以通过拍摄设备自身的传感器资料,确定CCD的取样像素阵列。此外,还可以通过读取芯片数据或者预存配置信息等方式,获取取样像素阵列。The sampling pixel array of the photographing device may be an array of sampling pixels of the CCD of the photographing device, and specifically, the sampling pixel array of the CCD may be determined by the sensor data of the photographing device itself. In addition, the sampling pixel array can also be obtained by reading chip data or pre-storing configuration information.
重合度用于表示取样像素阵列与显示像素阵列的重合程度。两个阵列重叠越多则重合度越高。The coincidence degree is used to indicate the degree of coincidence of the sampled pixel array and the display pixel array. The more overlap between the two arrays, the higher the degree of coincidence.
步骤S103:当所述重合度低于预设第一阈值时,计算以使所述重合度增大的拍摄设备的移动方向;Step S103: When the degree of coincidence is lower than a preset first threshold, calculate a moving direction of the photographing device that increases the coincidence degree;
步骤S104:向用户提示所述移动方向。Step S104: Prompting the user to the moving direction.
具体地,可以通过箭头、方向、画面倾斜或语音的方式向所述用户进行提示。移动方向可以为相对于当前屏幕向前、向后、向左、向右或其他方向。 Specifically, the user may be prompted by an arrow, a direction, a screen tilt, or a voice. The direction of movement can be forward, backward, leftward, rightward, or other direction relative to the current screen.
本发明所提供的拍摄方法,通过获取当前待拍摄屏幕的显示像素阵列;计算显示像素阵列与拍摄设备的取样像素阵列的重合度;当重合度低于预设第一阈值时,计算以使重合度增大的拍摄设备的移动方向;向用户提示移动方向。本申请通过实时检测屏幕的显示像素阵列以及摄像头传感器的取样像素阵列的重合度,并引导用户逐步提高两个像素阵列的重合度,以使两个阵列尽量趋于重叠,弱化两个阵列重叠时的干涉,这样能够显著减少甚至消除摩尔纹,从而使得用户可以方便快捷地得到清晰度高的屏幕拍摄画面。The photographing method provided by the present invention obtains the display pixel array of the current screen to be photographed; calculates the coincidence degree of the display pixel array and the sampling pixel array of the photographing device; when the coincidence degree is lower than the preset first threshold, the calculation is performed to make coincidence The moving direction of the photographing device is increased; the user is prompted to move the direction. The present application detects the coincidence degree of the display pixel array of the screen and the sampling pixel array of the camera sensor in real time, and guides the user to gradually increase the coincidence degree of the two pixel arrays, so that the two arrays tend to overlap as much as possible, and weaken the overlap of the two arrays. Interference, which can significantly reduce or even eliminate moiré, so that users can get high-definition screen shots quickly and easily.
在拍摄设备上,可以增加设置屏幕画面拍摄模式来实现本发明所提供的拍摄方法。屏幕画面拍摄模式的启动方式可以为接收用户输入的进入屏幕画面拍摄模式的指令;或当检测到拍摄画面出现摩尔纹现象,即拍摄设备拍摄屏幕画面时,进入屏幕画面拍摄模式。在进入屏幕画面拍摄模式后,可以采用本发明所提供的拍摄方法进行拍摄。On the photographing apparatus, the setting screen screen shooting mode can be added to implement the photographing method provided by the present invention. The startup mode of the screen shot mode may be an instruction to receive a screen input mode input by the user; or when a moiré phenomenon is detected on the photographing screen, that is, the photographing screen is taken by the photographing device, the screen shot mode is entered. After entering the screen shooting mode, the shooting method provided by the present invention can be used for shooting.
本发明所提供的拍摄方法的另一种具体实施方式的流程图如图6所示,该方法包括:A flowchart of another specific embodiment of the photographing method provided by the present invention is shown in FIG. 6, and the method includes:
步骤S201:进入屏幕画面拍摄模式;Step S201: Enter a screen shooting mode;
具体地,进入屏幕画面拍摄模式可以为接收用户输入的进入屏幕画面拍摄模式的指令。指令的触发方式可以为物理按键、虚拟按键或语音的方式。还可以为在正常拍摄模式下,当检测到拍摄画面出现摩尔纹现象时,自动进入屏幕画面拍摄模式。Specifically, entering the screen shot mode may be an instruction to input a screen input mode input by the user. The trigger mode of the command can be physical button, virtual button or voice. It is also possible to automatically enter the screen shooting mode when the moiré phenomenon of the shooting screen is detected in the normal shooting mode.
步骤S202:获取当前待拍摄屏幕的显示像素阵列;Step S202: Acquire an array of display pixels of a current screen to be shot;
步骤S203:计算显示像素阵列与拍摄设备的取样像素阵列的重合度;Step S203: calculating a degree of coincidence between the display pixel array and the sampling pixel array of the photographing device;
步骤S204:当所述重合度低于预设第一阈值时,计算以使所述重合度增大的拍摄设备的移动方向;Step S204: When the degree of coincidence is lower than a preset first threshold, calculate a moving direction of the photographing device that increases the coincidence degree;
一种确定移动方向的方法可以为:对预设多个方向假定移动后的重合度进行计算,选取计算出的重合度最高的方向作为所述移动方向。A method for determining a moving direction may be: calculating a coincidence degree after a predetermined plurality of directions is assumed to be moved, and selecting a direction in which the calculated degree of coincidence is the highest as the moving direction.
具体地,以拍摄设备的中心点为原点,建立三维坐标系,以R为半径形成球面。将球面的面积进行N等分,取每一等分的中心点作为预设假定方向,即具有N个预设假定方向。N大于等于6,其具体取值可以根据实际精确度以及计算量进行设置。分别对N个预设假定方向移动后的重合度进行计算,并 比较其大小,确定重合度最高的方向为移动方向。Specifically, a three-dimensional coordinate system is established with the center point of the photographing device as an origin, and a spherical surface is formed with R as a radius. The area of the spherical surface is N-divided, and the center point of each aliquot is taken as a preset assumed direction, that is, has N preset assumed directions. N is greater than or equal to 6, and its specific value can be set according to the actual accuracy and the amount of calculation. Calculate the coincidence degree after moving the N preset assumed directions respectively, and Compare the size and determine the direction with the highest degree of coincidence as the direction of movement.
以N=6为例,相当于将空间分为上下左右前后六个方向。计算向该六个方向分别移动一个预设位移单位后的重合度大小,选取重合度最高的方向作为移动方向,如计算出向右移动后重合度最高时,则将向右作为提示拍摄设备下一步移动的移动方向。当然,当N选为6时,计算量最小,准确率则最差。Taking N=6 as an example is equivalent to dividing the space into six directions: up, down, left, and right. Calculate the degree of coincidence after moving a preset displacement unit to the six directions, and select the direction with the highest degree of coincidence as the moving direction. If the coincidence degree is calculated to be the highest when moving to the right, it will be the right as the prompting device. The direction of movement of the move. Of course, when N is chosen to be 6, the calculation is the smallest and the accuracy is the worst.
可选地,另一种移动方向的确定方法可以为:在所述拍摄设备移动过程中计算重合度的变化率,选取正向变化率最大的点的移动方向作为所述移动方向。Alternatively, another method for determining the moving direction may be: calculating a rate of change of the coincidence degree during the moving of the photographing device, and selecting a moving direction of a point having the largest forward rate of change as the moving direction.
在拍摄设备的移动过程中存在移动轨迹,轨迹中每一点的重合度均会变化,每一点相对于上一点的重合度的变化率不同。因此,在移动过程中计算重合度的变化率,选取正向变化率最大的点的移动方向作为重合度增大趋势概率最大的方向,即为提示拍摄设备移动的移动方向。There is a moving trajectory during the movement of the photographing device, and the coincidence degree of each point in the trajectory changes, and the rate of change of the coincidence degree of each point with respect to the upper point is different. Therefore, the rate of change of the coincidence degree is calculated during the movement, and the moving direction of the point with the largest forward rate of change is selected as the direction with the highest probability of increasing the degree of coincidence, that is, the moving direction for prompting the moving of the photographing device.
步骤S205:向用户提示所述移动方向。Step S205: prompting the user of the moving direction.
进一步地,在向用户提示所述移动方向之后还可以包括:Further, after prompting the user for the moving direction, the method may further include:
在满足预设拍摄条件时,对所述当前待拍摄屏幕进行拍摄。When the preset shooting condition is satisfied, the current to-be-shot screen is photographed.
预设的拍摄条件可以为:接收用户输入的拍摄指令,对所述当前待拍摄屏幕进行拍摄;或当所述重合度超过预设第二阈值时,向所述用户提示最优拍摄提示信息或自动拍摄所述当前待拍摄屏幕。The preset shooting condition may be: receiving a shooting instruction input by the user, and capturing the current to-be-shot screen; or prompting the user to the optimal shooting prompt information or when the coincidence degree exceeds a preset second threshold The current to-be-shot screen is automatically captured.
用户可按照提示的方向移动拍摄设备,在重合度大于预设第二阈值时,在屏幕上提示用户可以进行拍摄的最优拍摄提示信息,或者拍摄设备可以自动进行拍摄,进一步自动保存拍摄图片。此外,还可以在拍摄设备的移动过程中,接收用户进行拍摄的指令,直接进行拍摄。The user can move the photographing device in the direction of the prompt, and when the coincidence degree is greater than the preset second threshold, the user may prompt the user to perform the optimal photographing prompt information for shooting, or the photographing device can automatically perform photographing, and further automatically save the photographed image. In addition, it is also possible to receive an instruction from the user to take a picture during the movement of the shooting device and directly shoot.
本实施例中在屏幕画面拍摄模式下,按照拍摄键拍摄屏幕画面或者自动拍摄屏幕画面后,可以不退出拍摄界面,继续在屏幕上显示使重合度进一步提高的方向提示,直到接收到用户输入的退出屏幕画面拍摄模式或退出拍摄画面的指令。In the screen shooting mode in this embodiment, after the screen shot is taken according to the shooting button or the screen screen is automatically photographed, the shooting interface may be displayed without further exiting the shooting interface, and the direction prompt for further increasing the coincidence degree is displayed on the screen until the user input is received. Exit the screen shot mode or exit the shooting screen.
以重合度超过预设第二阈值为预设拍摄条件为例,下面对本发明所提供的拍摄方法的又一种具体实施方式进行阐述,该方法的流程图如图7所示,其具体包括: For example, the following is a description of a specific embodiment of the photographing method provided by the present invention. The flowchart of the method is as shown in FIG. 7 , and specifically includes:
步骤S301:检测到拍摄屏幕画面出现摩尔纹现象时,进入屏幕画面拍摄模式;Step S301: When it is detected that the moiré phenomenon occurs on the shooting screen, enter the screen shooting mode;
步骤S302:通过拍摄到的屏幕画面,确定当前屏幕的显示像素阵列;Step S302: determining, by the captured screen image, a display pixel array of the current screen;
具体地,显示像素阵列的确定方法可以为:通过识别所述当前待拍摄屏幕的型号,确定与所述型号对应的所述显示像素阵列。在识别出当前待拍摄屏幕的型号后,通过搜索资料,即可以确定该型号对应的屏幕的显示像素阵列。Specifically, the determining method of the display pixel array may be: determining the display pixel array corresponding to the model by identifying a model of the current to-be-shot screen. After identifying the model of the current screen to be shot, by searching the data, the display pixel array of the screen corresponding to the model can be determined.
显示像素阵列的确定方法还可以为:接收用户输入的选择所述当前待拍摄屏幕的尺寸以及分辨率的指令,根据所述尺寸以及所述分辨率确定所述显示像素阵列。该过程为在用户已知当前屏幕的尺寸以及分辨率的前提下,由用户对包含当前屏幕的尺寸以及分辨率的选择框进行自行选择,再根据尺寸以及分辨率即可得到将分辨率需要的像素点按照规则均匀分布在对应尺寸大小的屏幕上形成的像素阵列。The determining method of the display pixel array may further be: receiving an instruction input by the user for selecting a size and a resolution of the current to-be-shot screen, and determining the display pixel array according to the size and the resolution. The process is to select the selection box containing the size and resolution of the current screen by the user on the premise that the user knows the size and resolution of the current screen, and then according to the size and the resolution, the resolution is required. Pixels are uniformly distributed in a regular array of pixels formed on a screen of corresponding size.
另一种确定显示像素阵列的方法为:通过对不同角度不同距离拍摄到的所述当前待拍摄屏幕的画面上干涉产生的摩尔纹以及已知的取样像素阵列,确定所述显示像素阵列。由于摄像头取样像素阵列是固定的,显示像素阵列也是固定的,不同角度不同距离拍摄的屏幕画面上干涉产生的摩尔纹也不同。通过对多个不同角度不同距离拍摄到的屏幕画面上的摩尔纹以及已知的取样像素阵列,即可求解得出显示像素阵列。Another method of determining a display pixel array is to determine the display pixel array by a moiré generated by interference on a picture of the current to-be-shot screen captured at different angles and a known sampled pixel array. Since the camera sampling pixel array is fixed, the display pixel array is also fixed, and the moiré generated by the interference on the screen images taken at different angles and different distances is also different. The array of display pixels can be solved by moiré on a screen image taken at different angles and at different distances, and a known array of sampled pixels.
步骤S303:确定传感器的取样像素阵列;Step S303: determining a sampling pixel array of the sensor;
需要指出的是,上述步骤S302与步骤S303的位置可以互换,这均不影响本发明的实现。It should be noted that the positions of step S302 and step S303 described above may be interchanged, which does not affect the implementation of the present invention.
步骤S304:计算当前屏幕的显示像素阵列与当前的传感器取样像素阵列的重合度;Step S304: calculating a coincidence degree between the display pixel array of the current screen and the current sensor sampling pixel array;
具体地,重合度的计算方法可以为:将计算得到的所述取样像素阵列中所有像素点落在所述显示像素阵列上的第一比例作为所述重合度。Specifically, the calculation method of the coincidence degree may be: calculating a first ratio of all pixel points in the sampled pixel array on the display pixel array as the coincidence degree.
重合度的计算方法还可以为:将计算得到的所述显示像素阵列中所有像素点落在所述取样像素阵列上的第二比例作为所述重合度;The calculation method of the coincidence degree may be: calculating a second ratio of all pixel points in the display pixel array on the sampling pixel array as the coincidence degree;
此外,还可以将所述第一比例与所述第二比例的加权值作为所述重合度。或者将第一比例与第二比例的加权值进行其他计算后,得到的对应数值作为重 合度。In addition, a weighting value of the first ratio and the second ratio may also be used as the coincidence degree. Or after performing other calculations on the weighting values of the first ratio and the second ratio, the corresponding numerical value obtained is taken as the weight Cohesion.
步骤S305:将计算的重合度低于预设第一阈值时,计算使重合度增大的移动方向;Step S305: When the calculated coincidence degree is lower than the preset first threshold, calculate a moving direction that increases the coincidence degree;
步骤S306:向用户提示所述移动方向;Step S306: prompting the user to the moving direction;
步骤S307:在用户移动拍摄设备的过程中,持续检测与计算,重复步骤S304至步骤S307,直到计算的重合度大于预设第二阈值时,屏幕上提示用户可以进行拍摄,或移动终端自动进行拍摄保存图片。Step S307: In the process of the user moving the photographing device, continuously detecting and calculating, repeating steps S304 to S307, until the calculated coincidence degree is greater than the preset second threshold, the screen prompts the user to perform shooting, or the mobile terminal automatically performs Take a picture and save the picture.
具体的提示用户可以进行拍摄的方式可以为文字提示、声音提示、屏幕闪烁提示、拍摄按钮颜色提示或拍摄按钮颜色闪烁提示等。The specific prompts for the user to shoot can be text prompts, voice prompts, screen flashing prompts, shooting button color prompts, or shooting button color blinking prompts.
下面以一具体场景对本发明所提供的拍摄方法进行进一步阐述。在该场景中,用户打开相机进入拍摄屏幕画面,移动终端检测到屏幕画面有摩尔纹,进入屏幕画面拍摄模式。确定屏幕的显示像素阵列以及取样像素阵列,计算两个阵列的重合度,当重合度小于第一阈值,如第一阈值可以取为70%,在屏幕拍摄界面上显示计算出的使重合度增大的移动方向,用户按照提示的移动方向如向后或向前移动摄像头,此时计算出的重合度大于第二阈值,第二阈值可以取为85%,移动终端自动拍摄当前画面并保存,继续显示使重合度增大的移动方向,在重合度增大到94%时,用户按下拍摄键保存拍摄画面,并退出拍摄界面。The shooting method provided by the present invention is further elaborated below in a specific scenario. In this scenario, the user turns on the camera to enter the shooting screen, and the mobile terminal detects that the screen has moiré and enters the screen shooting mode. Determining the display pixel array of the screen and the sampling pixel array, calculating the coincidence degree of the two arrays, when the coincidence degree is less than the first threshold value, for example, the first threshold value may be taken as 70%, and the calculated coincidence degree is increased on the screen shooting interface. In the large moving direction, the user moves the camera backwards or forwards according to the moving direction of the prompt. The calculated coincidence degree is greater than the second threshold, and the second threshold can be taken as 85%. The mobile terminal automatically captures the current picture and saves it. Continue to display the moving direction that increases the coincidence degree. When the coincidence degree is increased to 94%, the user presses the shooting button to save the shooting screen and exits the shooting interface.
下面对本发明实施例提供的拍摄装置进行介绍,下文描述的拍摄装置与上文描述的拍摄方法可相互对应参照。The photographing apparatus provided by the embodiment of the present invention will be described below, and the photographing apparatus described below and the photographing method described above can be referred to each other.
图8为本发明实施例提供的拍摄装置的结构框图,参照图8拍摄装置可以包括:FIG. 8 is a structural block diagram of a photographing apparatus according to an embodiment of the present invention. The photographing apparatus may include:
显示像素阵列获取模块100,设置为获取当前待拍摄屏幕的显示像素阵列;The display pixel array obtaining module 100 is configured to acquire a display pixel array of the current screen to be captured;
重合度计算模块200,设置为计算所述显示像素阵列与拍摄设备的取样像素阵列的重合度;The coincidence degree calculation module 200 is configured to calculate a degree of coincidence of the display pixel array and the sampling pixel array of the photographing device;
移动方向计算模块300,设置为当所述重合度低于预设第一阈值时,计算以使所述重合度增大的拍摄设备的移动方向;The movement direction calculation module 300 is configured to calculate a moving direction of the photographing device that increases the coincidence degree when the coincidence degree is lower than a preset first threshold value;
提示模块400,设置为向用户提示所述移动方向。The prompting module 400 is configured to prompt the user of the moving direction.
在上述实施例的基础上,本发明所提供的拍摄装置还可以包括: On the basis of the above embodiments, the photographing apparatus provided by the present invention may further include:
屏幕画面拍摄模式进入模块,设置为在所述显示像素阵列获取模块获取当前待拍摄屏幕的显示像素阵列之前,接收用户输入的进入屏幕画面拍摄模式的指令;或当检测到拍摄画面出现摩尔纹现象时,进入屏幕画面拍摄模式。The screen shot mode entry module is configured to receive an instruction input by the user to enter a screen shot mode before the display pixel array acquisition module acquires the display pixel array of the current screen to be photographed; or when detecting a moiré phenomenon on the photographed screen When you enter the screen shot mode.
作为一种具体实施方式,所述显示像素阵列获取模块具体为:As a specific implementation manner, the display pixel array acquiring module is specifically:
通过识别所述当前待拍摄屏幕的型号,确定与所述型号对应的所述显示像素阵列的模块;Determining, by the model of the current screen to be shot, a module of the display pixel array corresponding to the model;
或接收用户输入的选择所述当前待拍摄屏幕的尺寸以及分辨率的指令,根据所述尺寸以及所述分辨率确定所述显示像素阵列的模块;Or receiving an instruction input by the user for selecting a size and a resolution of the current to-be-shot screen, and determining a module of the display pixel array according to the size and the resolution;
或通过对不同角度不同距离拍摄到的所述当前待拍摄屏幕的画面上干涉产生的摩尔纹以及已知的取样像素阵列,确定所述显示像素阵列的模块。Or determining a module of the display pixel array by using a moiré generated by interference on a picture of the current to-be-shot screen captured at different angles and a known sampling pixel array.
作为一种具体实施方式,所述重合度计算模块具体为:As a specific implementation manner, the coincidence calculation module is specifically:
将计算得到的所述取样像素阵列中所有像素点落在所述显示像素阵列上的第一比例作为所述重合度的模块;Calculating a first ratio of all pixel points in the sampled pixel array falling on the display pixel array as the module of the coincidence degree;
或将计算得到的所述显示像素阵列中所有像素点落在所述取样像素阵列上的第二比例作为所述重合度的模块;Or calculating a second ratio of all pixel points in the display pixel array falling on the sampling pixel array as the module of the coincidence degree;
或将所述第一比例与所述第二比例的加权值作为所述重合度的模块。Or using the weighting value of the first ratio and the second ratio as a module of the coincidence degree.
作为一种具体实施方式,所述移动方向计算模块具体为:As a specific implementation manner, the moving direction calculation module is specifically:
对预设多个方向假定移动后的重合度进行计算,选取计算出的重合度最高的方向作为所述移动方向的模块;Calculating the coincidence degree after the predetermined plurality of directions is assumed to be moved, and selecting the calculated direction with the highest degree of coincidence as the module of the moving direction;
或在所述拍摄设备移动过程中计算重合度的变化率,选取正向变化率最大的点的移动方向作为所述移动方向的模块。Or calculating a rate of change of the coincidence degree during the movement of the photographing apparatus, and selecting a moving direction of a point having the largest forward rate of change as a module of the moving direction.
作为一种具体实施方式,所述提示模块具体为:As a specific implementation manner, the prompting module is specifically:
通过箭头、方向、画面倾斜或语音的方式向所述用户进行提示的模块。A module that prompts the user by means of arrows, directions, screen tilts, or voices.
本发明所提供的拍摄装置还可以进一步包括:The photographing apparatus provided by the present invention may further include:
拍摄模块,设置为在所述提示模块向用户提示所述移动方向之后,在满足预设拍摄条件时,对所述当前待拍摄屏幕进行拍摄。The photographing module is configured to: after the prompting module prompts the user of the moving direction, when the preset shooting condition is met, the current to-be-shot screen is photographed.
其中,所述拍摄模块可以具体为:The shooting module may be specifically:
接收用户输入的拍摄指令,对所述当前待拍摄屏幕进行拍摄的模块;Receiving a shooting instruction input by a user, and performing a module for capturing the current screen to be shot;
或当所述重合度超过预设第二阈值时,向所述用户提示最优拍摄提示信息 或自动拍摄所述当前待拍摄屏幕的模块。Or prompting the user to the optimal shooting prompt information when the degree of coincidence exceeds a preset second threshold Or automatically capture the module of the current screen to be shot.
所述拍摄模块具体为:The shooting module is specifically:
通过文字、声音、屏幕闪烁、拍摄按钮颜色切换或拍摄按钮颜色闪烁的方式进行提示的模块。A module that prompts by text, sound, screen flicker, shooting button color switching, or shooting button color blinking.
本发明所提供的拍摄装置通过实时检测屏幕的显示像素阵列以及摄像头传感器的取样像素阵列的重合度,并引导用户逐步提高两个像素阵列的重合度,以使两个阵列尽量趋于重叠,弱化两个阵列重叠时的干涉,能够显著减少甚至消除摩尔纹,从而使得用户可以方便快捷地得到清晰度高的屏幕拍摄画面。The photographing device provided by the present invention detects the coincidence degree of the display pixel array of the screen and the sampling pixel array of the camera sensor in real time, and guides the user to gradually increase the coincidence degree of the two pixel arrays, so that the two arrays tend to overlap as much as possible, weakening Interference between the two arrays can significantly reduce or even eliminate moiré, allowing users to quickly and easily obtain high-definition screen shots.
参见图9,图9为本发明实施例提供的拍摄设备1的示意图,拍摄设备1可包括处理器11、存储器12以及显示器13,处理器11、存储器12与显示器13通过通信总线14进行通信。Referring to FIG. 9 , FIG. 9 is a schematic diagram of a photographing apparatus 1 according to an embodiment of the present invention. The photographing apparatus 1 may include a processor 11 , a memory 12 , and a display 13 . The processor 11 , the memory 12 , and the display 13 communicate through the communication bus 14 .
所述存储器12,用于存储程序代码。The memory 12 is configured to store program code.
所述处理器11用于读取所述存储器12中存储的程序代码后,执行以下内容:获取当前待拍摄屏幕的显示像素阵列;计算所述显示像素阵列与拍摄设备的取样像素阵列的重合度;当所述重合度低于预设第一阈值时,计算以使所述重合度增大的拍摄设备的移动方向;向用户提示所述移动方向。After the processor 11 is configured to read the program code stored in the memory 12, the following is performed: acquiring a display pixel array of the current screen to be captured; calculating a coincidence degree of the display pixel array and the sampling pixel array of the photographing device. And when the degree of coincidence is lower than a preset first threshold, calculating a moving direction of the photographing device that increases the coincidence degree; prompting the user of the moving direction.
所述显示器13用于接收处理器11的显示指令,对所述移动方向进行显示。The display 13 is configured to receive a display instruction of the processor 11 to display the moving direction.
在本发明一些实施例中,处理器11通过总线14,调用存储器12中存储的代码以还用于:接收用户输入的进入屏幕画面拍摄模式的指令;或当检测到拍摄画面出现摩尔纹现象时,进入屏幕画面拍摄模式。In some embodiments of the present invention, the processor 11 calls the code stored in the memory 12 via the bus 14 to further receive: an instruction input by the user to enter the screen shooting mode; or when detecting a moiré phenomenon on the shooting picture , enter the screen shooting mode.
在本发明一些实施例中,在上述获取当前待拍摄屏幕的显示像素阵列的方面,处理器11通过总线14,调用存储器12中存储的代码以具体用于:通过识别所述当前待拍摄屏幕的型号,确定与所述型号对应的所述显示像素阵列;或接收用户输入的选择所述当前待拍摄屏幕的尺寸以及分辨率的指令,根据所述尺寸以及所述分辨率确定所述显示像素阵列;或通过对不同角度不同距离拍摄到的所述当前待拍摄屏幕的画面上干涉产生的摩尔纹以及已知的取样像素阵列,确定所述显示像素阵列。In some embodiments of the present invention, in the above aspect of acquiring the display pixel array of the current screen to be shot, the processor 11 calls the code stored in the memory 12 via the bus 14 to specifically: by identifying the current screen to be shot. a model, determining the display pixel array corresponding to the model; or receiving a user input instruction for selecting a size and a resolution of the current to-be-shot screen, determining the display pixel array according to the size and the resolution Or determining the display pixel array by using a moiré generated by interference on a picture of the current to-be-shot screen taken at different angles and a known sampling pixel array.
在本发明一些实施例中,在上述计算所述显示像素阵列与拍摄设备的取样 像素阵列的重合度的方面,处理器11通过总线14,调用存储器12中存储的代码以具体用于:将计算得到的所述取样像素阵列中所有像素点落在所述显示像素阵列上的第一比例作为所述重合度;或将计算得到的所述显示像素阵列中所有像素点落在所述取样像素阵列上的第二比例作为所述重合度;或将所述第一比例与所述第二比例的加权值作为所述重合度。In some embodiments of the present invention, the sampling of the display pixel array and the photographing device is calculated in the above manner. In terms of the degree of coincidence of the pixel array, the processor 11 calls the code stored in the memory 12 via the bus 14 to specifically: calculate the calculated total pixel points of the sampled pixel array on the display pixel array. a ratio as the degree of coincidence; or a calculated second ratio of all pixel points in the display pixel array falling on the sampled pixel array as the coincidence degree; or the first ratio and the first ratio The weighting value of the second ratio is taken as the degree of coincidence.
在本发明一些实施例中,在上述计算以使所述重合度增大的拍摄设备的移动方向的方面,处理器11通过总线14,调用存储器12中存储的代码以具体用于:对预设多个方向假定移动后的重合度进行计算,选取计算出的重合度最高的方向作为所述移动方向;或在所述拍摄设备移动过程中计算重合度的变化率,选取正向变化率最大的点的移动方向作为所述移动方向。In some embodiments of the present invention, the processor 11 calls the code stored in the memory 12 via the bus 14 to specifically: for the preset, in terms of calculating the moving direction of the photographing device in which the degree of coincidence is increased. The plurality of directions are assumed to calculate the coincidence degree after the movement, and the direction with the highest degree of coincidence is selected as the moving direction; or the rate of change of the coincidence degree is calculated during the movement of the photographing device, and the direction with the highest positive change rate is selected. The moving direction of the point serves as the moving direction.
在本发明一些实施例中,在上述向用户提示所述移动方向包括的方面,处理器11通过总线14,向显示器13发送显示指令以具体用于:通过箭头、方向、画面倾斜或语音的方式向所述用户进行提示。In some embodiments of the present invention, in the above-described manner of prompting the user to include the direction of movement, the processor 11 sends a display instruction to the display 13 via the bus 14 for specifically: by arrow, direction, screen tilt or voice. Prompt to the user.
在本发明一些实施例中,处理器11通过总线14,调用存储器12中存储的代码以还用于:在所述向用户提示所述移动方向之后,在满足预设拍摄条件时,对所述当前待拍摄屏幕进行拍摄。In some embodiments of the present invention, the processor 11 calls the code stored in the memory 12 via the bus 14 to further: after the user is prompted by the moving direction, when the preset shooting condition is met, The current screen to be shot is taken.
在本发明一些实施例中,在上述在满足预设拍摄条件时,对所述当前待拍摄屏幕进行拍摄的方面,处理器11通过总线14,调用存储器12中存储的代码以具体用于:接收用户输入的拍摄指令,对所述当前待拍摄屏幕进行拍摄;或当所述重合度超过预设第二阈值时,向所述用户提示最优拍摄提示信息或自动拍摄所述当前待拍摄屏幕。In some embodiments of the present invention, the processor 11 calls the code stored in the memory 12 via the bus 14 to specifically receive: in the aspect of capturing the current to-be-shot screen when the preset shooting condition is met. a photographing instruction input by the user, photographing the current screen to be photographed; or when the degree of coincidence exceeds a preset second threshold, prompting the user to the optimal photographing prompt information or automatically photographing the current screen to be photographed.
在本发明一些实施例中,在上述在满足预设拍摄条件时,对所述当前待拍摄屏幕进行拍摄的方面,处理器11通过总线14,向显示器13发送显示指令以具体用于:通过文字、声音、屏幕闪烁、拍摄按钮颜色切换或拍摄按钮颜色闪烁的方式进行提示。In some embodiments of the present invention, in the aspect of photographing the current to-be-shot screen when the preset shooting condition is satisfied, the processor 11 sends a display instruction to the display 13 via the bus 14 to specifically: through the text. Prompt for sound, screen flicker, shooting button color switching, or flashing of the shooting button color.
可以理解的是,本实施例的拍摄设备1的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It is to be understood that the functions of the functional modules of the photographic device 1 of the present embodiment may be specifically implemented according to the method in the foregoing method embodiments. For the specific implementation process, reference may be made to the related description of the foregoing method embodiments, and details are not described herein again.
本申请所提供的拍摄设备通过实时检测屏幕的显示像素阵列以及摄像头 传感器的取样像素阵列的重合度,并引导用户逐步提高两个像素阵列的重合度,以使两个阵列尽量趋于重叠,弱化两个阵列重叠时的干涉,能够显著减少甚至消除摩尔纹,从而使得用户可以方便快捷地得到清晰度高的屏幕拍摄画面。The photographing device provided by the present application detects the display pixel array of the screen and the camera through real time The coincidence of the sampling pixel array of the sensor, and guide the user to gradually increase the coincidence degree of the two pixel arrays, so that the two arrays tend to overlap as much as possible, weakening the interference when the two arrays overlap, and the moiré can be significantly reduced or even eliminated. This makes it easy and quick for users to get high-definition screen shots.
参见图10,图10是本发明的另一个实施例提供的拍摄设备2的结构框图。其中,拍摄设备2可以包括:至少一个处理器21,至少一个网络接口22或其他用户接口23,存储器24,显示器25,摄像头26,至少一个通信总线27,图像传感器28。通信总线27用于实现这些组件之间的连接通信。Referring to FIG. 10, FIG. 10 is a structural block diagram of a photographing apparatus 2 according to another embodiment of the present invention. The photographing device 2 may include at least one processor 21, at least one network interface 22 or other user interface 23, a memory 24, a display 25, a camera 26, at least one communication bus 27, and an image sensor 28. Communication bus 27 is used to implement connection communication between these components.
其中,存储器24可以包括只读存储器和随机存取存储器,并向处理器21提供指令和数据。存储器24的一部分还可以包括非易失性随机存取存储器(NVRAM)。The memory 24 can include read only memory and random access memory and provides instructions and data to the processor 21. A portion of memory 24 may also include non-volatile random access memory (NVRAM).
在一些实施方式中,存储器24存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:In some embodiments, memory 24 stores the following elements, executable modules or data structures, or a subset thereof, or their extended set:
操作系统241,包含各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。The operating system 241 includes various system programs for implementing various basic services and processing hardware-based tasks.
应用程序模块242,包含各种应用程序,设置为实现各种应用业务。The application module 242, which includes various applications, is configured to implement various application services.
应用程序模块242中包括但不限于显示像素阵列获取模块100、重合度计算模块200、移动方向计算模块300和/或提示模块400等。The application module 242 includes, but is not limited to, a display pixel array acquisition module 100, a coincidence degree calculation module 200, a movement direction calculation module 300, and/or a prompt module 400, and the like.
在本发明的一些实施例中,通过调用存储器24存储的程序或指令,处理器21还用于:接收用户输入的进入屏幕画面拍摄模式的指令;或当检测到拍摄画面出现摩尔纹现象时,进入屏幕画面拍摄模式。In some embodiments of the present invention, the processor 21 is further configured to: receive an instruction input by the user to enter a screen shooting mode by calling a program or an instruction stored in the memory 24; or when detecting a moiré phenomenon in the shooting image, Enter the screen shot mode.
在本发明的一些实施例中,在上述获取当前待拍摄屏幕的显示像素阵列的方面,通过调用存储器24存储的程序或指令,处理器21具体用于:通过识别所述当前待拍摄屏幕的型号,确定与所述型号对应的所述显示像素阵列;或接收用户输入的选择所述当前待拍摄屏幕的尺寸以及分辨率的指令,根据所述尺寸以及所述分辨率确定所述显示像素阵列;或通过对不同角度不同距离拍摄到的所述当前待拍摄屏幕的画面上干涉产生的摩尔纹以及已知的取样像素阵列,确定所述显示像素阵列。In some embodiments of the present invention, in the above-mentioned aspect of acquiring the display pixel array of the current screen to be shot, by calling a program or instruction stored in the memory 24, the processor 21 is specifically configured to: identify the model of the current screen to be shot by Determining the display pixel array corresponding to the model; or receiving an instruction input by the user to select a size and a resolution of the current to-be-shot screen, and determining the display pixel array according to the size and the resolution; The display pixel array is determined by a moiré generated by interference on a picture of the current to-be-shot screen captured at different angles and a known sampled pixel array.
在本发明的一些实施例中,在上述计算所述显示像素阵列与拍摄设备的取 样像素阵列的重合度的方面,通过调用存储器24存储的程序或指令,处理器21具体用于:将计算得到的所述取样像素阵列中所有像素点落在所述显示像素阵列上的第一比例作为所述重合度;或将计算得到的所述显示像素阵列中所有像素点落在所述取样像素阵列上的第二比例作为所述重合度;或将所述第一比例与所述第二比例的加权值作为所述重合度。In some embodiments of the present invention, calculating the display pixel array and the photographing device in the above manner In the aspect of the degree of coincidence of the pixel array, the processor 21 is specifically configured to: calculate the first pixel point of the calculated pixel array on the display pixel array by calling the program or instruction stored in the memory 24 a ratio as the degree of coincidence; or a calculated second ratio of all pixels in the display pixel array falling on the sampled pixel array as the coincidence degree; or the first ratio and the first The weighting value of the two ratios is taken as the degree of coincidence.
在本发明一些实施例中,在上述计算以使所述重合度增大的拍摄设备的移动方向的方面,通过调用存储器24存储的程序或指令,处理器21具体用于:对预设多个方向假定移动后的重合度进行计算,选取计算出的重合度最高的方向作为所述移动方向;或在所述拍摄设备移动过程中计算重合度的变化率,选取正向变化率最大的点的移动方向作为所述移动方向。In some embodiments of the present invention, the processor 21 is specifically configured to: preset a plurality of presets by calling a program or instruction stored in the memory 24 in terms of calculating the moving direction of the photographing device in which the degree of coincidence is increased. The direction is calculated by calculating the coincidence degree after the movement, and the direction with the highest degree of coincidence is selected as the moving direction; or the rate of change of the coincidence degree is calculated during the movement of the photographing device, and the point with the largest forward rate of change is selected. The moving direction is taken as the moving direction.
在本发明一些实施例中,在上述向用户提示所述移动方向包括的方面,处理器21通过总线27,向显示器25发送显示指令以具体用于:通过箭头、方向、画面倾斜或语音的方式向所述用户进行提示。In some embodiments of the present invention, in the above-described aspect of prompting the user to include the direction of movement, the processor 21 transmits a display instruction to the display 25 via the bus 27 for specifically: by arrow, direction, screen tilt or voice. Prompt to the user.
在本发明一些实施例中,通过调用存储器24存储的程序或指令,处理器21还用于:在所述向用户提示所述移动方向之后,在满足预设拍摄条件时,对所述当前待拍摄屏幕进行拍摄。In some embodiments of the present invention, by calling a program or instruction stored in the memory 24, the processor 21 is further configured to: after the prompting the moving direction to the user, when the preset shooting condition is met, the current waiting Shoot the screen to shoot.
在本发明一些实施例中,在上述在满足预设拍摄条件时,对所述当前待拍摄屏幕进行拍摄的方面,通过调用存储器24存储的程序或指令,处理器21具体用于:接收用户输入的拍摄指令,对所述当前待拍摄屏幕进行拍摄;或当所述重合度超过预设第二阈值时,向所述用户提示最优拍摄提示信息或自动拍摄所述当前待拍摄屏幕。In some embodiments of the present invention, the processor 21 is specifically configured to: receive user input by calling a program or instruction stored in the memory 24 in the aspect of capturing the current to-be-shot screen when the preset shooting condition is satisfied. a shooting instruction to capture the current to-be-shot screen; or when the degree of coincidence exceeds a preset second threshold, prompting the user to the optimal shooting prompt information or automatically capturing the current to-be-shot screen.
在本发明一些实施例中,在上述在满足预设拍摄条件时,对所述当前待拍摄屏幕进行拍摄的方面,处理器21通过总线27,向显示器25发送显示指令以具体用于:通过文字、声音、屏幕闪烁、拍摄按钮颜色切换或拍摄按钮颜色闪烁的方式进行提示。In some embodiments of the present invention, in the above aspect of capturing the current to-be-shot screen when the preset shooting condition is satisfied, the processor 21 sends a display instruction to the display 25 via the bus 27 to specifically use: Prompt for sound, screen flicker, shooting button color switching, or flashing of the shooting button color.
可以理解的是,本实施例的拍摄设备2的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It is to be understood that the functions of the functional modules of the photographic device 2 of the present embodiment may be specifically implemented according to the method in the foregoing method embodiments. For the specific implementation process, refer to the related description of the foregoing method embodiments, and details are not described herein again.
具体地,该拍摄设备可以为手机、平板等终端设备或相机。 Specifically, the photographing device may be a terminal device such as a mobile phone or a tablet or a camera.
本申请提供的拍摄设备通过实时检测屏幕的显示像素阵列以及摄像头传感器的取样像素阵列的重合度,并引导用户逐步提高两个像素阵列的重合度,以使两个阵列尽量趋于重叠,弱化两个阵列重叠时的干涉,能够显著减少甚至消除摩尔纹,从而使得用户可以方便快捷地得到清晰度高的屏幕拍摄画面。The photographing device provided by the present application detects the coincidence degree of the display pixel array of the screen and the sampling pixel array of the camera sensor in real time, and guides the user to gradually increase the coincidence degree of the two pixel arrays, so that the two arrays tend to overlap as much as possible, weakening two Interference with array overlap can significantly reduce or even eliminate moiré, allowing users to quickly and easily obtain high-definition screen shots.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts of the respective embodiments may be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。A person skilled in the art will further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software or a combination of both, in order to clearly illustrate the hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented directly in hardware, a software module executed by a processor, or a combination of both. The software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.
以上对本发明所提供的拍摄方法、装置以及设备进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。 The photographing method, apparatus, and apparatus provided by the present invention have been described in detail above. The principles and embodiments of the present invention have been described herein with reference to specific examples, and the description of the above embodiments is only to assist in understanding the method of the present invention and its core idea. It should be noted that those skilled in the art can make various modifications and changes to the present invention without departing from the spirit and scope of the invention.

Claims (18)

  1. 一种拍摄方法,其特征在于,包括:A photographing method, comprising:
    获取当前待拍摄屏幕的显示像素阵列;Obtaining a display pixel array of a current screen to be photographed;
    计算所述显示像素阵列与拍摄设备的取样像素阵列的重合度;Calculating a degree of coincidence of the display pixel array and the sampling pixel array of the photographing device;
    当所述重合度低于预设第一阈值时,计算以使所述重合度增大的拍摄设备的移动方向;When the degree of coincidence is lower than a preset first threshold, calculating a moving direction of the photographing device that increases the coincidence degree;
    向用户提示所述移动方向。The user is prompted for the direction of movement.
  2. 如权利要求1所述的拍摄方法,其特征在于,在所述获取当前待拍摄屏幕的显示像素阵列之前还包括:The photographing method according to claim 1, further comprising: before the acquiring the display pixel array of the current screen to be photographed:
    接收用户输入的进入屏幕画面拍摄模式的指令;Receiving an instruction input by the user to enter a screen shooting mode;
    或当检测到拍摄画面出现摩尔纹现象时,进入屏幕画面拍摄模式。Or when the moiré phenomenon is detected on the shooting screen, enter the screen shooting mode.
  3. 如权利要求2所述的拍摄方法,其特征在于,所述获取当前待拍摄屏幕的显示像素阵列包括:The photographing method of claim 2, wherein the obtaining a display pixel array of the current screen to be photographed comprises:
    通过识别所述当前待拍摄屏幕的型号,确定与所述型号对应的所述显示像素阵列;Determining, by identifying a model of the current screen to be shot, the display pixel array corresponding to the model;
    或接收用户输入的选择所述当前待拍摄屏幕的尺寸以及分辨率的指令,根据所述尺寸以及所述分辨率确定所述显示像素阵列;Or receiving an instruction input by the user to select a size and a resolution of the current to-be-shot screen, and determining the display pixel array according to the size and the resolution;
    或通过对不同角度不同距离拍摄到的所述当前待拍摄屏幕的画面上干涉产生的摩尔纹以及已知的取样像素阵列,确定所述显示像素阵列。The display pixel array is determined by a moiré generated by interference on a picture of the current to-be-shot screen captured at different angles and a known sampled pixel array.
  4. 如权利要求1至3任一项所述的拍摄方法,其特征在于,所述计算所述显示像素阵列与拍摄设备的取样像素阵列的重合度包括:The photographing method according to any one of claims 1 to 3, wherein the calculating the degree of coincidence of the display pixel array and the sampling pixel array of the photographing device comprises:
    将计算得到的所述取样像素阵列中所有像素点落在所述显示像素阵列上的第一比例作为所述重合度;Calculating a first ratio of all pixel points in the sampled pixel array on the display pixel array as the coincidence degree;
    或将计算得到的所述显示像素阵列中所有像素点落在所述取样像素阵列上的第二比例作为所述重合度;Or calculating a second ratio of all pixel points in the display pixel array falling on the sampling pixel array as the coincidence degree;
    或将所述第一比例与所述第二比例的加权值作为所述重合度。Or using the weighting value of the first ratio and the second ratio as the coincidence degree.
  5. 如权利要求1所述的拍摄方法,其特征在于,所述计算以使所述重合度增大的拍摄设备的移动方向包括:The photographing method according to claim 1, wherein the moving direction of the photographing device calculated to increase the coincidence degree comprises:
    对预设多个方向假定移动后的重合度进行计算,选取计算出的重合度最高 的方向作为所述移动方向;Calculate the coincidence degree after assuming multiple movements in a preset direction, and select the calculated coincidence degree to be the highest. The direction of the movement as the direction of movement;
    或在所述拍摄设备移动过程中计算重合度的变化率,选取正向变化率最大的点的移动方向作为所述移动方向。Or calculating a rate of change of the coincidence degree during the movement of the photographing apparatus, and selecting a moving direction of a point having the largest forward change rate as the moving direction.
  6. 如权利要求5所述的拍摄方法,其特征在于,所述向用户提示所述移动方向包括:The photographing method according to claim 5, wherein the prompting the user of the moving direction comprises:
    通过箭头、方向、画面倾斜或语音的方式向所述用户进行提示。The user is prompted by an arrow, a direction, a screen tilt, or a voice.
  7. 如权利要求5所述的拍摄方法,其特征在于,在所述向用户提示所述移动方向之后还包括:The photographing method according to claim 5, further comprising: after the prompting the moving direction to the user:
    在满足预设拍摄条件时,对所述当前待拍摄屏幕进行拍摄。When the preset shooting condition is satisfied, the current to-be-shot screen is photographed.
  8. 如权利要求7所述的拍摄方法,其特征在于,所述在满足预设拍摄条件时,对所述当前待拍摄屏幕进行拍摄包括:The photographing method according to claim 7, wherein the photographing the current to-be-shot screen when the preset photographing condition is satisfied comprises:
    接收用户输入的拍摄指令,对所述当前待拍摄屏幕进行拍摄;Receiving a shooting instruction input by the user, and taking a picture of the current to-be-shot screen;
    或当所述重合度超过预设第二阈值时,向所述用户提示最优拍摄提示信息或自动拍摄所述当前待拍摄屏幕。Or when the degree of coincidence exceeds a preset second threshold, prompting the user to the optimal shooting prompt information or automatically capturing the current to-be-shot screen.
  9. 如权利要求8所述的拍摄方法,其特征在于,所述向所述用户提示最优拍摄提示信息包括:The photographing method according to claim 8, wherein the prompting the optimal photographing prompt information to the user comprises:
    通过文字、声音、屏幕闪烁、拍摄按钮颜色切换或拍摄按钮颜色闪烁的方式进行提示。Prompt by text, sound, screen flicker, shooting button color switching, or shooting button color flashing.
  10. 一种拍摄装置,其特征在于,包括:A photographing device, comprising:
    显示像素阵列获取模块,设置为获取当前待拍摄屏幕的显示像素阵列;a display pixel array acquisition module configured to acquire a display pixel array of a current screen to be captured;
    重合度计算模块,设置为计算所述显示像素阵列与拍摄设备的取样像素阵列的重合度;a coincidence calculation module, configured to calculate a coincidence degree between the display pixel array and a sampling pixel array of the photographing device;
    移动方向计算模块,设置为当所述重合度低于预设第一阈值时,计算以使所述重合度增大的拍摄设备的移动方向;a moving direction calculation module, configured to calculate a moving direction of the photographing device that increases the coincidence degree when the coincidence degree is lower than a preset first threshold value;
    提示模块,设置为向用户提示所述移动方向。The prompting module is configured to prompt the user of the moving direction.
  11. 如权利要求10所述的拍摄装置,其特征在于,还包括:The photographing apparatus according to claim 10, further comprising:
    屏幕画面拍摄模式进入模块,设置为在所述显示像素阵列获取模块获取当前待拍摄屏幕的显示像素阵列之前,接收用户输入的进入屏幕画面拍摄模式的指令;或当检测到拍摄画面出现摩尔纹现象时,进入屏幕画面拍摄模式。 The screen shot mode entry module is configured to receive an instruction input by the user to enter a screen shot mode before the display pixel array acquisition module acquires the display pixel array of the current screen to be photographed; or when detecting a moiré phenomenon on the photographed screen When you enter the screen shot mode.
  12. 如权利要求11所述的拍摄装置,其特征在于,所述显示像素阵列获取模块具体为:The photographing device of claim 11, wherein the display pixel array acquisition module is specifically:
    通过识别所述当前待拍摄屏幕的型号,确定与所述型号对应的所述显示像素阵列的模块;Determining, by the model of the current screen to be shot, a module of the display pixel array corresponding to the model;
    或接收用户输入的选择所述当前待拍摄屏幕的尺寸以及分辨率的指令,根据所述尺寸以及所述分辨率确定所述显示像素阵列的模块;Or receiving an instruction input by the user for selecting a size and a resolution of the current to-be-shot screen, and determining a module of the display pixel array according to the size and the resolution;
    或通过对不同角度不同距离拍摄到的所述当前待拍摄屏幕的画面上干涉产生的摩尔纹以及已知的取样像素阵列,确定所述显示像素阵列的模块。Or determining a module of the display pixel array by using a moiré generated by interference on a picture of the current to-be-shot screen captured at different angles and a known sampling pixel array.
  13. 如权利要求10至12任一项所述的拍摄装置,其特征在于,所述重合度计算模块具体为:The photographing apparatus according to any one of claims 10 to 12, wherein the coincidence degree calculation module is specifically:
    将计算得到的所述取样像素阵列中所有像素点落在所述显示像素阵列上的第一比例作为所述重合度的模块;Calculating a first ratio of all pixel points in the sampled pixel array falling on the display pixel array as the module of the coincidence degree;
    或将计算得到的所述显示像素阵列中所有像素点落在所述取样像素阵列上的第二比例作为所述重合度的模块;Or calculating a second ratio of all pixel points in the display pixel array falling on the sampling pixel array as the module of the coincidence degree;
    或将所述第一比例与所述第二比例的加权值作为所述重合度的模块。Or using the weighting value of the first ratio and the second ratio as a module of the coincidence degree.
  14. 如权利要求10所述的拍摄装置,其特征在于,所述移动方向计算模块具体为:The photographing apparatus according to claim 10, wherein the moving direction calculation module is specifically:
    对预设多个方向假定移动后的重合度进行计算,选取计算出的重合度最高的方向作为所述移动方向的模块;Calculating the coincidence degree after the predetermined plurality of directions is assumed to be moved, and selecting the calculated direction with the highest degree of coincidence as the module of the moving direction;
    或在所述拍摄设备移动过程中计算重合度的变化率,选取正向变化率最大的点的移动方向作为所述移动方向的模块。Or calculating a rate of change of the coincidence degree during the movement of the photographing apparatus, and selecting a moving direction of a point having the largest forward rate of change as a module of the moving direction.
  15. 如权利要求14所述的拍摄装置,其特征在于,所述提示模块具体为:The photographing apparatus according to claim 14, wherein the prompting module is specifically:
    通过箭头、方向、画面倾斜或语音的方式向所述用户进行提示的模块。A module that prompts the user by means of arrows, directions, screen tilts, or voices.
  16. 如权利要求14所述的拍摄装置,其特征在于,还包括:The photographing apparatus according to claim 14, further comprising:
    拍摄模块,设置为在所述提示模块向用户提示所述移动方向之后,在满足预设拍摄条件时,对所述当前待拍摄屏幕进行拍摄。The photographing module is configured to: after the prompting module prompts the user of the moving direction, when the preset shooting condition is met, the current to-be-shot screen is photographed.
  17. 如权利要求16所述的拍摄装置,其特征在于,所述拍摄模块具体为:The photographing apparatus according to claim 16, wherein the photographing module is specifically:
    接收用户输入的拍摄指令,对所述当前待拍摄屏幕进行拍摄的模块;Receiving a shooting instruction input by a user, and performing a module for capturing the current screen to be shot;
    或当所述重合度超过预设第二阈值时,向所述用户提示最优拍摄提示信息 或自动拍摄所述当前待拍摄屏幕的模块。Or prompting the user to the optimal shooting prompt information when the degree of coincidence exceeds a preset second threshold Or automatically capture the module of the current screen to be shot.
  18. 如权利要求17所述的拍摄装置,其特征在于,所述拍摄模块具体为:The photographing apparatus according to claim 17, wherein the photographing module is specifically:
    通过文字、声音、屏幕闪烁、拍摄按钮颜色切换或拍摄按钮颜色闪烁的方式进行提示的模块。 A module that prompts by text, sound, screen flicker, shooting button color switching, or shooting button color blinking.
PCT/CN2016/100793 2016-08-31 2016-09-29 Photographing method and apparatus WO2018040180A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610792759.7A CN106131391B (en) 2016-08-31 2016-08-31 A kind of image pickup method and device
CN201610792759.7 2016-08-31

Publications (1)

Publication Number Publication Date
WO2018040180A1 true WO2018040180A1 (en) 2018-03-08

Family

ID=57271414

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/100793 WO2018040180A1 (en) 2016-08-31 2016-09-29 Photographing method and apparatus

Country Status (2)

Country Link
CN (1) CN106131391B (en)
WO (1) WO2018040180A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657747B (en) * 2017-01-04 2022-11-15 京东方科技集团股份有限公司 Camera module, electronic equipment, camera control method and device
WO2018176261A1 (en) * 2017-03-29 2018-10-04 深圳配天智能技术研究院有限公司 Method for determining detection parameter, and detection device
CN107509040A (en) * 2017-09-15 2017-12-22 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN107948498B (en) * 2017-10-30 2019-10-18 维沃移动通信有限公司 A kind of elimination camera Morie fringe method and mobile terminal
CN112995452B (en) * 2019-12-17 2022-11-11 英属开曼群岛商音飞光电科技股份有限公司 Moire pattern image processing device
CN113497957A (en) * 2020-03-18 2021-10-12 摩托罗拉移动有限责任公司 Electronic device and method for capturing images from an external display of a remote electronic device
CN111586298A (en) * 2020-05-09 2020-08-25 北京华严互娱科技有限公司 Real-time moire removing method based on multi-scale network and dynamic feature coding
CN113491102A (en) * 2020-08-25 2021-10-08 深圳市大疆创新科技有限公司 Zoom video shooting method, shooting system, shooting device and storage medium
CN112312032B (en) * 2020-10-21 2022-03-25 Tcl通讯(宁波)有限公司 Method and device for shooting by using off-screen camera, storage medium and mobile terminal
CN114449230A (en) * 2020-10-30 2022-05-06 中兴通讯股份有限公司 Photographing method, photographing device, terminal and computer-readable storage medium
CN114449150A (en) * 2020-10-30 2022-05-06 中兴通讯股份有限公司 Photographing method, photographing device, terminal and computer-readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030184665A1 (en) * 2002-03-21 2003-10-02 International Business Machines Corporation Anti-moire pixel array having multiple pixel types
CN103123691A (en) * 2013-02-26 2013-05-29 百度在线网络技术(北京)有限公司 Moire fringe filtering method and device
CN103985320A (en) * 2014-05-27 2014-08-13 利亚德光电股份有限公司 Method for restraining moire and display device capable of restraining moire
CN104486534A (en) * 2014-12-16 2015-04-01 西安诺瓦电子科技有限公司 Moire detecting and suppression method and device
CN104704822A (en) * 2012-09-25 2015-06-10 宜客斯股份有限公司 Image quality adjustment device, correction data generation method, and image quality adjustment technique utilizing same
JP2015115726A (en) * 2013-12-10 2015-06-22 株式会社イクス Luminance measuring method, luminance measuring device and image quality adjustment technology employing the same

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100630557B1 (en) * 2004-12-28 2006-09-29 주식회사 팬택 Method for providing osd in mobile communication terminal using qcamera
JP5157758B2 (en) * 2008-08-29 2013-03-06 株式会社ニコン Imaging device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030184665A1 (en) * 2002-03-21 2003-10-02 International Business Machines Corporation Anti-moire pixel array having multiple pixel types
CN104704822A (en) * 2012-09-25 2015-06-10 宜客斯股份有限公司 Image quality adjustment device, correction data generation method, and image quality adjustment technique utilizing same
CN103123691A (en) * 2013-02-26 2013-05-29 百度在线网络技术(北京)有限公司 Moire fringe filtering method and device
JP2015115726A (en) * 2013-12-10 2015-06-22 株式会社イクス Luminance measuring method, luminance measuring device and image quality adjustment technology employing the same
CN103985320A (en) * 2014-05-27 2014-08-13 利亚德光电股份有限公司 Method for restraining moire and display device capable of restraining moire
CN104486534A (en) * 2014-12-16 2015-04-01 西安诺瓦电子科技有限公司 Moire detecting and suppression method and device

Also Published As

Publication number Publication date
CN106131391B (en) 2019-03-22
CN106131391A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
WO2018040180A1 (en) Photographing method and apparatus
CN107770452B (en) Photographing method, terminal and related medium product
CN108632536B (en) Camera control method and device, terminal and storage medium
CN103297696A (en) Photographing method, photographing device and photographing terminal
CN113973190A (en) Video virtual background image processing method and device and computer equipment
US9854174B2 (en) Shot image processing method and apparatus
CN101938604A (en) Image processing method and camera
CN105827914A (en) Lens cleaning prompting method and device
CN106503682B (en) Method and device for positioning key points in video data
US20150116471A1 (en) Method, apparatus and storage medium for passerby detection
CN111246080B (en) Control apparatus, control method, image pickup apparatus, and storage medium
CN104811798B (en) A kind of method and device for adjusting video playout speed
CN112954212B (en) Video generation method, device and equipment
CN104378576B (en) Information processing method and electronic equipment
US9317770B2 (en) Method, apparatus and terminal for detecting image stability
CN115174878B (en) Projection picture correction method, apparatus and storage medium
CN109547678B (en) Processing method, device, equipment and readable storage medium
JP6483661B2 (en) Imaging control apparatus, imaging control method, and program
JP2017103657A (en) Imaging apparatus, imaging method, and computer program for imaging apparatus
CN112153291B (en) Photographing method and electronic equipment
CN113747011A (en) Auxiliary shooting method and device, electronic equipment and medium
CN110012208B (en) Photographing focusing method and device, storage medium and electronic equipment
CN112561809A (en) Image processing method, device and equipment
CN112995502B (en) Image processing method and device and electronic equipment
CN115499594B (en) Panoramic image generation method and computer-readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16914743

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16914743

Country of ref document: EP

Kind code of ref document: A1