WO2017071560A1 - Picture processing method and device - Google Patents

Picture processing method and device Download PDF

Info

Publication number
WO2017071560A1
WO2017071560A1 PCT/CN2016/103239 CN2016103239W WO2017071560A1 WO 2017071560 A1 WO2017071560 A1 WO 2017071560A1 CN 2016103239 W CN2016103239 W CN 2016103239W WO 2017071560 A1 WO2017071560 A1 WO 2017071560A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
brightness
processed
pictures
photographing
Prior art date
Application number
PCT/CN2016/103239
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 WO2017071560A1 publication Critical patent/WO2017071560A1/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/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/76Circuitry for compensating brightness variation in the scene by influencing the image signals

Definitions

  • This document relates to, but is not limited to, the field of image processing technology, and in particular, to a picture processing method and apparatus.
  • the mobile terminal cannot achieve long-time exposure when taking a picture, and the picture captured during capturing an instantaneous object or scene is unclear, and even the instantaneously appearing object or scene cannot be captured.
  • Embodiments of the present invention provide a picture processing method and apparatus, which can enable a mobile terminal to clearly capture an instantaneous appearance of an object or a scene.
  • a picture processing apparatus provided by an embodiment of the present invention, where the picture processing apparatus includes:
  • the photographing module is configured to perform an exposure photographing operation every preset time interval
  • Obtaining a module configured to acquire a to-be-processed image in the image obtained by the exposure photographing operation, wherein the brightness of the to-be-processed image is greater than the brightness of the image obtained by the photographing operation when the exposure photographing operation is completed
  • the exposure photographing operation obtains brightness of other pictures in the picture other than the to-be-processed picture
  • a superimposing module configured to superimpose the to-be-processed image to generate a target image when the to-be-processed picture is a continuously photographed picture.
  • the overlay module includes:
  • a first acquiring unit configured to: when the to-be-processed picture includes a plurality of sets of consecutively captured picture groups, acquire a first picture group in which a picture of a maximum brightness value of each of the brightness values corresponding to the picture to be processed is located;
  • a second acquiring unit configured to acquire a maximum brightness value of the second group of pictures other than the first group of pictures in the group of pictures
  • the first superimposing unit is configured to superimpose the first picture group and the maximum brightness respectively when the brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group is less than a preset threshold
  • a second group of pictures having a luminance difference between the value and the maximum luminance value of the first group of pictures is less than a preset threshold to generate a target picture.
  • the overlay module further includes:
  • a second superimposing unit configured to superimpose the first group of pictures to generate a target when a brightness difference between a maximum brightness value of the second picture group and a maximum brightness value of the first picture group is greater than or equal to a preset threshold image.
  • the obtaining module includes:
  • a first picture obtaining unit configured to: when the exposure photographing operation is completed, obtain a picture whose brightness is greater than a preset brightness threshold value in a picture obtained by the exposure photographing operation according to a brightness of a picture obtained by the photographing operation;
  • the second picture obtaining unit is configured to obtain a to-be-processed picture in the picture whose brightness is greater than the preset brightness threshold, wherein the brightness of the to-be-processed picture is greater than the picture to be processed in the picture whose brightness is greater than the preset brightness threshold.
  • the image processing apparatus further includes:
  • a storage module configured to store a picture obtained by the exposure photographing operation and a corresponding photographing moment in real time, and calculate the number of currently stored pictures
  • the module is deleted, and when the number of currently stored pictures reaches a preset threshold, the picture with the earliest photographing time is deleted.
  • the obtaining module is configured to obtain the brightness of the image obtained based on the photographing operation by:
  • the acquiring module is configured to: obtain a red, blue, and green RBG value of the image, and calculate a brightness of the image according to the RBG value of the image:
  • the superimposing module is configured to determine that the to-be-processed picture is a continuously taken picture by:
  • the pictures obtained by photographing are numbered in chronological order, and it is determined whether the number of each picture in the to-be-processed picture is continuous.
  • the photographing module is configured to perform an exposure photographing operation at every preset time interval by:
  • the triggering manner of the photographing instruction includes:
  • the camera command is triggered by the pressure sensor.
  • an embodiment of the present invention further provides a picture processing method, where the picture processing method includes the following steps:
  • the brightness of the image acquired based on the photographing operation acquires a to-be-processed image in the image obtained by the exposure photographing operation, wherein the brightness of the to-be-processed image is greater than the exposure photographing operation to obtain a picture.
  • the picture to be processed is a continuously captured picture
  • the picture to be processed is superimposed to generate a target picture.
  • the step of superimposing the to-be-processed picture to generate a target picture includes:
  • the to-be-processed picture includes a plurality of consecutively captured picture groups, acquiring a first picture group in which the picture of the maximum brightness value of the brightness values corresponding to each picture to be processed is located;
  • the method further includes:
  • the first picture group is superimposed to generate a target picture.
  • the step of acquiring the image to be processed in the image obtained by the exposure photographing operation based on the brightness of the image acquired by the photographing operation comprises:
  • the brightness of the picture acquired based on the photographing operation acquires a picture whose brightness is greater than a preset brightness threshold value in the picture obtained by the exposure photographing operation;
  • the step of performing an exposure photographing operation at every preset time interval and the brightness of the image acquired based on the photographing operation when the exposure photographing operation is completed acquires a to-be-processed image in the image obtained by the exposure photographing operation between the steps, the method further includes:
  • the picture with the earliest photographing time is deleted.
  • obtaining the brightness of the image obtained based on the photographing operation including:
  • the red, blue, and green RBG values of the picture are obtained, and the brightness of the picture is calculated according to the RBG value of the picture, including:
  • determining that the to-be-processed picture is a continuously taken picture includes:
  • the pictures obtained by photographing are numbered in chronological order, and it is determined whether the number of each picture in the to-be-processed picture is continuous.
  • the exposure photographing operation is performed every preset time interval, including:
  • the triggering manner of the photographing instruction includes:
  • the camera command is triggered by the pressure sensor.
  • the photographing module performs the exposure photographing operation every preset time interval, and then, when the exposure photographing operation is completed, the obtaining module obtains the image to be processed in the image obtained by the exposure photographing operation based on the brightness of the image acquired by the photographing operation. Then, when the picture to be processed is a continuously photographed picture, the superimposing module superimposes the to-be-processed picture to generate a target picture, and realizes a picture in which the brightness of the picture obtained according to the exposure photographing operation is greater than the brightness of other pictures to obtain a target picture, so that the target picture instantaneously appears.
  • the scene is more clear.
  • the mobile terminal of the embodiment superimposes the picture of the scene such as lightning that is continuously photographed, and the scene of the lightning generated in the superimposed target picture is more clear. Further, the mobile terminal of the embodiment can also capture the motion trajectory of the object with a faster moving speed, thereby further enriching the photographing function of the mobile terminal.
  • FIG. 1 is a schematic structural diagram of hardware of a mobile terminal that implements various embodiments of the present invention
  • FIG. 2 is a schematic diagram of functional modules of a first embodiment of a picture processing apparatus according to the present invention
  • FIG. 3 is a brightness distribution diagram of a picture according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a refinement function module of a superimposing module in a second embodiment of the image processing apparatus of the present invention.
  • FIG. 5 is a diagram showing a luminance distribution of a picture according to another embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a refinement function module of an acquisition module in a third embodiment of a picture processing apparatus according to the present invention.
  • FIG. 7 is a schematic diagram of functional modules of a fourth embodiment of a picture processing apparatus according to the present invention.
  • FIG. 8 is a schematic flowchart diagram of a first embodiment of a picture processing method according to the present invention.
  • FIG. 9 is a detailed flow of steps of superimposing a picture to be processed in a second embodiment of a picture processing method according to the present invention.
  • FIG. 10 is a schematic flowchart of a step of obtaining a picture to be processed in a third embodiment of a picture processing method according to the present invention.
  • FIG. 11 is a schematic flowchart diagram of a fourth embodiment of a picture processing method according to the present invention.
  • the mobile terminal can be implemented in various forms.
  • the terminal described in the embodiments of the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device Mobile terminals of the like and fixed terminals such as digital TVs, desktop computers, and the like.
  • PDA Personal Digital Assistant
  • PAD Tablett
  • PMP Portable Multimedia Player
  • a slide type mobile terminal among various types of mobile terminals such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described as an example. Therefore, the embodiment of the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
  • FIG. 1 is a schematic structural diagram of hardware of a mobile terminal that implements various embodiments of the present invention.
  • the photographic lens 1211 is composed of a plurality of optical lenses provided to form a subject image, and is a single focus lens or a zoom lens.
  • the photographic lens 1211 is movable in the optical axis direction under the control of the lens driver 1221, and the lens driver 1221 controls the focus position of the photographic lens 1211 in accordance with a control signal from the lens driving control circuit 1222, and can also be controlled in the case of the zoom lens. Focus distance.
  • the lens drive control circuit 1222 performs drive control of the lens driver 1221 in accordance with a control command from the microcomputer 1217.
  • An imaging element 1212 is disposed near the position of the subject image.
  • the imaging element 1212 is provided to image the subject image and acquire captured image data.
  • Photodiodes constituting each pixel are arranged two-dimensionally and in a matrix on the imaging element 1212. Each photodiode generates a photoelectric conversion current corresponding to the amount of received light, and the photoelectric conversion current is charged by a capacitor connected to each photodiode.
  • a red, green, and blue RGB color filter of Bayer arrangement is disposed on the front surface of each pixel.
  • the imaging element 1212 is connected to the imaging circuit 1213.
  • the imaging circuit 1213 performs charge accumulation control and image signal readout control in the imaging element 1212, and performs waveform shaping after reducing the reset noise of the read image signal (analog image signal). Further, gain improvement or the like is performed to obtain an appropriate signal level.
  • the imaging circuit 1213 is connected to an A/D converter 1214 that performs analog-to-digital conversion on the analog image signal and outputs a digital image signal (hereinafter referred to as image data) to the bus 1227.
  • A/D converter 1214 that performs analog-to-digital conversion on the analog image signal and outputs a digital image signal (hereinafter referred to as image data) to the bus 1227.
  • the bus 1227 is a transmission path set to transfer various data read or generated inside the camera.
  • the A/D converter 1214 is connected to the bus 1227, and an image processor 1215, a JPEG processor 1216, a microcomputer 1217, a SDRAM (Synchronous Dynamic Random Access Memory) 1218, and a memory interface are also connected. (hereinafter referred to as memory I/F) 1219, LCD (Liquid Crystal Display) driver 1220.
  • memory I/F memory I/F
  • LCD Liquid Crystal Display
  • the image processor 1215 performs various kinds of images such as OB subtraction processing, white balance adjustment, color matrix calculation, gamma conversion, color difference signal processing, noise removal processing, simultaneous processing, edge processing, and the like on the image data based on the output of the imaging element 1212. deal with.
  • the JPEG processor 1216 compresses the image data read out from the SDRAM 1218 in accordance with the JPEG compression method when the image data is recorded on the recording medium 1225. Further, the JPEG processor 1216 performs decompression of JPEG image data for image reproduction display.
  • the file recorded on the recording medium 1225 is read, and after the compression processing is performed in the JPEG processor 1216, the decompressed image data is temporarily stored in the SDRAM 1218 and displayed on the LCD 1226.
  • the JPEG method is adopted as the image compression/decompression method.
  • the compression/decompression method is not limited thereto, and other compression/decompression methods such as MPEG, TIFF, and H.264 may be used.
  • the microcomputer 1217 functions as a control unit of the entire camera, and collectively controls various processing sequences of the camera.
  • the microcomputer 1217 is connected to the operation unit 1223 and the flash memory 1224.
  • the operation unit 1223 includes but is not limited to a physical button or a virtual button, and the entity or virtual button may be a power button, a camera button, an edit button, a dynamic image button, a reproduction button, a menu button Buttons, cross keys, OK buttons, delete buttons, zoom buttons, and other input controls such as various input buttons and various input buttons detect the operation status of these operation controls.
  • the detection result is output to the microcomputer 1217. Further, a touch panel is provided on the front surface of the LCD 1226 as a display, and the touch position of the user is detected, and the touch position is output to the microcomputer 1217.
  • the microcomputer 1217 executes various processing sequences corresponding to the user's operation in accordance with the detection result from the operation position of the operation unit 1223.
  • the flash memory 1224 stores programs for executing various processing sequences of the microcomputer 1217.
  • the microcomputer 1217 performs overall control of the camera in accordance with the program. Further, the flash memory 1224 stores various adjustment values of the camera, and the microcomputer 1217 reads out the adjustment value, and performs control of the camera in accordance with the adjustment value.
  • the SDRAM 1218 is an electrically rewritable volatile memory that is set to temporarily store image data or the like.
  • the SDRAM 1218 temporarily stores image data output from the A/D converter 1214 and image data processed in the image processor 1215, the JPEG processor 1216, and the like.
  • the memory interface 1219 is connected to the recording medium 1225, and performs control for writing image data and a file header attached to the image data to the recording medium 1225 and reading out from the recording medium 1225.
  • the recording medium 1225 is, for example, a recording medium such as a memory card that can be detachably attached to the camera body.
  • the recording medium 1225 is not limited thereto, and may be a hard disk or the like built in the camera body.
  • the LCD driver 1210 is connected to the LCD 1226, and stores image data processed by the image processor 1215 in the SDRAM 1218.
  • the image data stored in the SDRAM 1218 is read and displayed on the LCD 1226, or the image data stored in the JPEG processor 1216 is compressed.
  • the JPEG processor 1216 reads the compressed image data of the SDRAM 1218, decompresses it, and displays the decompressed image data through the LCD 1226.
  • the LCD 1226 is configured to display an image on the back of the camera body.
  • the LCD 1226 LCD is not limited thereto, and various display panels (LCD 1226) such as an organic EL may be used.
  • LCD 1226 display panels
  • the present invention is not limited thereto, and various display panels such as an organic EL may be used.
  • Embodiments of the present invention provide a picture processing apparatus.
  • Figure 2 is a picture of the present invention.
  • the image processing apparatus includes:
  • the photographing module 10 is configured to perform an exposure photographing operation every preset time interval
  • the photographing module 10 before the photographing module 10 performs the exposure photographing operation at every preset time interval, it is necessary to configure a continuous shooting application of the camera and an automatic exposure function, for example, setting 60 pictures per second.
  • the photographing module 10 when the photographing instruction is received, the photographing module 10 performs an exposure photographing operation every preset time interval, wherein the triggering manner of the photographing instruction includes: triggering a photographing instruction based on a touch operation triggered by a preset control, for example, The camera has a photographing option in a menu of the mobile terminal, and the user can trigger the photographing instruction when clicking the photographing option in the menu; when the sliding touch operation triggered by the image processing interface is detected, the photographing instruction is triggered, for example, the mobile terminal is installed.
  • the camera application or the like corresponding to the mobile terminal of the embodiment the user can enter the photographing interface by opening the application, and then trigger the photographing instruction when detecting the sliding touch operation triggered by the image processing interface; the pressure is set in the mobile terminal
  • the photographing command can be triggered by the pressure sensor, and the pressure sensor can be disposed on the left side, the right side, the top test or the bottom side of the mobile terminal, etc., when the pressure sensor is detected to change and the change satisfies
  • the photographing instruction can be triggered, wherein,
  • the condition may be that the pressure value of the pressure sensor is greater than or equal to the preset pressure threshold, or the pressing number of the pressing operation of the pressing pressure sensor is greater than or equal to the preset number of times threshold, that is, when the pressure value of the pressure sensor is detected to be greater than or equal to the preset pressure threshold.
  • the photographing instruction may be triggered when the pressing operation is detected and the pressing number of the pressing operation is greater than or equal to the preset number of times threshold, and the preset pressure threshold and the preset number of thresholds may be determined by the user according to their own habits or preferences.
  • the preset pressure threshold and the preset number threshold may also be system default values.
  • the pressing operation of the pressure sensor may be detected, and the pressure value of the pressure sensor is greater than the first value.
  • the preset pressure threshold is two, and the pressing duration of the pressing operation is greater than or equal to the preset duration threshold, the photographing instruction is triggered.
  • the obtaining module 20 is configured to obtain a to-be-processed image in the image obtained by the exposure photographing operation, wherein the brightness of the to-be-processed image is greater than that of the image obtained by the photographing operation when the exposure photographing operation is completed.
  • the exposure photographing operation obtains brightness of other pictures in the picture other than the picture to be processed;
  • the image to be processed is the brightness of the image obtained by the exposure photographing operation is greater than the image to be processed
  • the picture of the brightness of other pictures other than the picture, that is, the minimum brightness in the picture to be processed is larger than the brightness of the picture in which the brightness in the picture is larger than the picture other than the picture to be processed.
  • the brightness of the picture and the picture time corresponding to each picture are generated according to the exposure photographing operation, and when there is a peak in the generated brightness distribution map, if the brightness of the picture corresponding to the peak is greater than the brightness distribution map If the other location corresponds to the brightness of the picture, the picture corresponding to the peak is the picture to be processed.
  • the brightness of the picture obtained by the exposure photographing operation may be calculated after the exposure photographing operation is completed, or the brightness of the image obtained by the exposure photographing operation may be calculated when each image is obtained by the exposure photographing operation; wherein the exposure photographing operation is obtained
  • the RGB values of the pictures can be first obtained, and then the brightness of each picture can be separately calculated according to the brightness value calculation formula; in another case, the RGB of each pixel point in each picture can be obtained separately.
  • the completion of the exposure photographing operation refers to the user stopping the exposure photographing operation of the mobile terminal.
  • the mobile terminal may stop when the duration of the exposure photographing operation reaches the set time or the obtained image of the exposure photographing operation reaches a preset number. The photographing operation is exposed, at which time the brightness of each picture obtained by the exposure photographing operation is separately calculated.
  • the superimposing module 30 is configured to superimpose the to-be-processed image to generate a target image when the to-be-processed picture is a continuously captured picture.
  • the mobile terminal stores the photographing time and the like together, and the superimposing module 30 determines whether the image to be processed acquired by the obtaining module 20 is a continuously photographed image, for example, determining each of the to-be-processed images. Whether the picture is a picture obtained by photographing at intervals of time-lapse photographing, or determining whether each photographing moment of the to-be-processed picture is a time interval of continuous interval timing photographing, of course, for convenience of processing, photographing may be obtained when photographing The pictures are sorted or numbered in chronological order.
  • the superimposing module 30 superimposes the to-be-processed picture to generate a target picture, wherein, when performing image superimposition, the following may be adopted.
  • Performing a weighted average superposition process on the luminance values of each picture in the picture that is, assigning a higher weight coefficient to the picture with higher luminance value in the picture to be processed, and assigning a lower picture to the picture with lower brightness value in the picture to be processed.
  • Weight coefficient may be limited. For example, when the number of pictures to be processed is greater than or equal to 5, the operation of superimposing the picture to be processed is performed, and when the number of pictures to be processed is less than 5 Then no overlay operation is performed.
  • the mobile terminal in this embodiment can be applied to a mobile terminal such as a mobile phone.
  • a mobile terminal such as a mobile phone.
  • the pictures in the to-be-processed picture are not all consecutively taken pictures, and may be superimposed separately. Continuously taken pictures in the image to be processed.
  • FIG. 3 is a brightness distribution diagram of a picture obtained by 30 time-lapse photographing operations, that is, a brightness distribution value of a picture obtained according to 30 time-lapse photographing operations and a brightness distribution map formed by photographing moments corresponding to each picture, FIG. 3
  • the preset threshold is 50, and there are consecutively captured groups of pictures whose luminance values are greater than 50. Therefore, the to-be-processed picture is superimposed by the overlay module 30 to generate a target picture.
  • the picture obtained by the timed photographing operation is a lightning strike.
  • the target image generated by superimposing the overlay module 30 can clearly reflect the shape of the lightning.
  • the mobile terminal may set one or more sets of preset brightness values, and then calculate the brightness of the picture obtained by the exposure photographing operation in real time when the photographing module 10 performs the exposure photographing operation every preset time interval;
  • the picture is taken as the picture to be processed, and then the step of calculating the brightness of the picture obtained by the exposure taking operation in real time is performed;
  • the picture to be processed is superimposed to generate Target the image and delete all the images currently available for the pending image and the exposure photo operation. That is, when the picture is obtained, the brightness of the current picture is greater than the preset brightness value.
  • the picture to be processed is updated based on the current picture, and the current picture is added to the picture to be processed. If the brightness of the current picture is less than or equal to the preset brightness value, the picture to be processed is superimposed to generate a target picture, and the picture in the picture to be processed is deleted, of course, the number of pictures to be processed is greater than 1, that is, the number of pictures to be processed When it is greater than 1, the to-be-processed picture is superimposed to generate a target picture.
  • the preset brightness value is a preset brightness of the mobile terminal.
  • different preset brightness values may be set according to different environments, such as environmental factors such as weather and time, and scenes that may take pictures. Setting a different preset brightness value; because the mobile terminal of the embodiment is used to process a picture of an object that appears in an instant of shooting, that is, an object that appears in the picture except for an instant The other scenes are unchanged or basically unchanged, so the brightness value of any picture other than the picture containing the momentarily appearing object can be taken as the preset brightness value of the current photographing environment, of course, The preset brightness value of the current photographing environment is determined by other means before photographing.
  • the photographing module 10 performs an exposure photographing operation every preset time interval, and then, when the exposure photographing operation is completed, the brightness of the image acquired by the obtaining module 20 based on the photographing operation is acquired in the image obtained by the exposure photographing operation. Processing the picture, and then, when the picture to be processed is a continuously taken picture, the superimposing module 30 superimposes the picture to be processed to generate a target picture, and realizes a picture in which the brightness of the picture obtained according to the exposure photographing operation is greater than the brightness of other pictures to obtain a target picture, so that the target is obtained.
  • the scene that appears instantaneously in the picture is more clear.
  • the mobile terminal of the embodiment superimposes the picture of the scene such as lightning that is continuously photographed, and the scene of the lightning generated in the superimposed target picture is more clear, thereby improving the user experience.
  • the mobile terminal of the embodiment can also capture the motion trajectory of the object with a faster moving speed, thereby further enriching the photographing function of the mobile terminal.
  • the overlay module 30 includes:
  • the first obtaining unit 31 is configured to: when the to-be-processed picture includes a plurality of groups of consecutively captured picture groups, acquire a first picture group in which a picture of a maximum brightness value of each of the brightness values corresponding to the picture to be processed is located;
  • the picture to be processed includes multiple groups of consecutively taken picture groups.
  • the picture group in the picture to be processed is not consistent with the picture time of other picture groups. In this case, the picture with the maximum brightness value of the brightness value corresponding to the picture to be processed is located.
  • the picture group is the first picture group.
  • the second obtaining unit 32 is configured to acquire a maximum brightness value of the second group of pictures other than the first group of pictures in the group of pictures;
  • the second picture group is a picture group other than the first picture group in the picture group of the picture to be processed.
  • the second obtaining unit 32 acquires the maximum brightness value of each second picture group.
  • the first superimposing unit 33 is configured to superimpose the first picture group and the first picture group respectively when the brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group is less than a preset threshold A second group of pictures having a luminance difference between the maximum luminance value and the maximum luminance value of the first group of pictures is less than a preset threshold to generate a target picture.
  • the preset threshold is a preset brightness difference
  • the first picture group is superimposed by the first superimposing unit 43 and the second picture with a brightness difference between the maximum brightness value and the maximum brightness value of the first picture group is less than a preset threshold.
  • the superimposing module 30 further includes: a second superimposing unit, configured to set a brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group to be greater than or When the threshold is equal to the preset threshold, the first group of pictures is superimposed to generate a target picture.
  • a second superimposing unit configured to set a brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group to be greater than or When the threshold is equal to the preset threshold, the first group of pictures is superimposed to generate a target picture.
  • the second superimposing unit When the brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group in the to-be-processed picture is greater than or equal to a preset threshold, the second superimposing unit only superimposes the first picture group to generate a target picture. In order to avoid the phenomenon that the target image generated by the camera operation and the image processing process is far away from other target images or does not include the target scene.
  • FIG. 5 is a brightness distribution diagram of a picture obtained by taking 50 timed photographs, that is, a brightness distribution value of a picture obtained according to 50 time-lapse photographs and a brightness distribution map formed by photographing moments corresponding to each picture, and FIG.
  • the threshold be 50, and there are two consecutive groups of pictures with brightness values greater than 50 in the figure.
  • the preset threshold can be set to 10.
  • the maximum brightness value of the second picture group and the maximum of the first picture group can be seen from the figure.
  • the brightness difference between the brightness values is less than the preset threshold value 10.
  • the first superimposing unit 43 respectively superimposes the two groups of picture groups to generate two target pictures, for example, when the picture obtained by timing photographing is a picture obtained by photographing lightning, After processing by the first superimposing unit 43, two different pictures containing lightning can be obtained.
  • the first acquiring unit 31 acquires the first picture group in which the picture with the highest brightness value of the brightness value corresponding to the picture to be processed is located, and then obtains the second picture group.
  • the unit 32 obtains a maximum brightness value of the second picture group except the first picture group in the picture group, and then has a maximum brightness value of the second picture group and a maximum brightness value of the first picture group.
  • the first superimposing unit 33 When the brightness difference between the two is less than the preset threshold, the first superimposing unit 33 respectively superimposes the first picture group and the brightness between the maximum brightness value and the maximum brightness value of the first picture group.
  • the second picture group whose degree difference is smaller than the preset threshold is used to generate the target picture, and the picture group continuously captured in the to-be-processed picture is superimposed according to the preset threshold, thereby ensuring the accuracy and consistency of each target picture, and avoiding the photographing operation.
  • the error of the image processing process causes the generated target image to be far from the other target images or does not include the target scene.
  • the obtaining module 20 includes:
  • the first picture obtaining unit 21 is configured to, when the exposure photographing operation is completed, obtain a picture whose brightness is greater than a preset brightness threshold value in a picture obtained by the exposure photographing operation according to a brightness of a picture acquired according to the photographing operation;
  • the preset brightness threshold is a preset brightness of the mobile terminal.
  • the preset brightness threshold is set according to the camera function of the mobile terminal.
  • the camera environment should be considered when setting the preset brightness threshold.
  • the mobile terminal can Setting different preset brightness thresholds according to different environments, for example, setting different preset brightness thresholds according to environmental factors such as weather and time, and scenes that may take pictures, and the like;
  • the picture of the object that appears, that is, the scene other than the object that appears in the picture is constant or basically unchanged, so you can take any picture other than the picture of the object that appears in an instant.
  • the brightness value is used as the preset brightness threshold of the current photographing environment.
  • the preset brightness threshold of the current photographing environment may be determined by other methods before photographing.
  • the second picture obtaining unit 22 is configured to obtain a to-be-processed picture in the picture whose brightness is greater than the preset brightness threshold, wherein the brightness of the to-be-processed picture is greater than the obtained picture in which the brightness is greater than the preset brightness threshold. The brightness of other pictures outside the picture.
  • the first picture acquiring unit 21 obtains a picture whose brightness is greater than a preset brightness threshold value in the picture obtained by the exposure photographing operation based on the brightness of the picture acquired by the photographing operation, and then The image acquisition unit 22 obtains the to-be-processed image in the obtained image with the brightness greater than the preset brightness threshold, and implements the image to be processed according to the preset brightness threshold, thereby improving the accuracy of the image to be processed, thereby ensuring the target image. accuracy.
  • a fourth embodiment of the image processing apparatus of the present invention is proposed based on the first embodiment.
  • the image processing apparatus further includes:
  • the storage module 40 is configured to store a picture obtained by the exposure photographing operation and a corresponding photographing moment in real time, and calculate the number of currently stored pictures;
  • the storage module 40 stores the image obtained by the photographing operation and the photographing moment corresponding to the image, and calculates the number of the images stored at the current time.
  • the photographing may be obtained when photographing.
  • the pictures are sequentially numbered in chronological order, and the number of pictures currently stored at the current time can be obtained according to the number of the current picture and the picture obtained by the first timed picture.
  • the deleting module 50 is configured to delete the picture with the earliest photographing time when the number of currently stored pictures reaches a preset threshold.
  • the preset threshold is a maximum value of the picture obtained by the user-set mobile terminal to store the timed photograph. For example, when the time interval of the timed photographing is 1 second, the preset threshold may be set to 180, and the mobile terminal only saves the mobile terminal.
  • the picture obtained by photographing in the last 3 minutes when the number of currently stored pictures is greater than a preset threshold, the deleting module 50 deletes the picture with the earliest picture time, so that the number of pictures stored by the mobile terminal is less than or equal to a preset threshold, thereby ensuring the movement.
  • the terminal currently has enough storage space to store subsequent pictures.
  • the picture obtained by the exposure photographing operation and the corresponding photographing time are stored in real time by the storage module 40, and the number of currently stored pictures is calculated, and then when the number of currently stored pictures reaches a preset threshold,
  • the deleting module 50 deletes the picture with the earliest photographing time, so that the number of pictures stored by the mobile terminal is less than or equal to a preset threshold, thereby ensuring that the mobile terminal currently has enough storage space to store the subsequently taken pictures.
  • FIG. 8 is a schematic flowchart diagram of a first embodiment of a picture processing method according to the present invention.
  • the image processing method includes:
  • Step S10 performing an exposure photographing operation every preset time interval
  • the mobile terminal performs an exposure photographing operation every preset time interval. Before, you need to configure the camera's continuous shooting and auto exposure functions, such as setting up 60 images per second.
  • the mobile terminal when the photographing instruction is received, the mobile terminal performs an exposure photographing operation at a preset time interval, wherein the triggering manner of the photographing instruction includes: triggering a photographing instruction based on a touch operation triggered by the preset control, for example, A photographing option is provided in a menu of the mobile terminal, and the user can trigger a photographing instruction when clicking the photographing option in the menu; and triggering a photographing instruction when detecting a sliding touch operation triggered based on the image processing interface, for example, the mobile terminal is installed with In the camera application or the like corresponding to the mobile terminal of the embodiment, the user can enter the photographing interface by opening the application, and then trigger a photographing instruction when detecting a sliding touch operation triggered by the image processing interface; and the pressure sensor is provided at the mobile terminal.
  • the pressure sensor When the camera command is triggered by the pressure sensor, the pressure sensor can be disposed on the left side, the right side, the top test or the bottom side of the mobile terminal, etc., and the change of the pressure sensor is detected and the change meets the preset.
  • the camera command can be triggered when the condition is met, wherein the preset
  • the pressure value of the pressure sensor may be greater than or equal to the preset pressure threshold, or the pressing time of pressing the pressure sensor may be greater than or equal to the preset number threshold, that is, when the pressure value of the pressure sensor is detected to be greater than or equal to the preset pressure threshold.
  • the photographing instruction may be triggered when the pressing operation is detected and the pressing number of the pressing operation is greater than or equal to the preset number of times threshold, and the preset pressure threshold and the preset number of thresholds may be determined by the user according to their own habits or preferences.
  • the preset pressure threshold and the preset number threshold may also be system default values.
  • the pressing operation of the pressure sensor may be detected, and the pressure value of the pressure sensor is greater than the first value.
  • the preset pressure threshold is two, and the pressing duration of the pressing operation is greater than or equal to the preset duration threshold, the photographing instruction is triggered.
  • step S20 when the exposure photographing operation is completed, the brightness of the image acquired based on the photographing operation acquires a to-be-processed image in the image obtained by the exposure photographing operation, wherein the brightness of the to-be-processed image is greater than the exposure photographing
  • the operation obtains the brightness of other pictures in the picture other than the picture to be processed
  • the picture to be processed is a picture in which the brightness of the picture obtained by the exposure taking operation is greater than the brightness of the picture other than the picture to be processed, that is, the minimum brightness in the picture to be processed is larger than the exposure picture operation, and the brightness in the picture is greater than the picture to be processed.
  • the brightness of the picture and the picture time corresponding to each picture are generated according to the exposure photographing operation, and the brightness of the picture corresponding to the peak is generated when there is a peak in the generated brightness distribution map. If the brightness of the picture corresponding to the other position in the brightness distribution map is greater than the picture, the picture corresponding to the peak is the picture to be processed.
  • the brightness of the picture obtained by the exposure photographing operation may be calculated after the exposure photographing operation is completed, or the brightness of the image obtained by the exposure photographing operation may be calculated when each image is obtained by the exposure photographing operation; wherein the exposure photographing operation is obtained
  • the RGB values of the pictures can be first obtained, and then the brightness of each picture can be separately calculated according to the brightness value calculation formula; in another case, the RGB of each pixel point in each picture can be obtained separately.
  • the completion of the exposure photographing operation refers to the user stopping the exposure photographing operation of the mobile terminal.
  • the mobile terminal may stop when the duration of the exposure photographing operation reaches the set time or the obtained image of the exposure photographing operation reaches a preset number. The photographing operation is exposed, at which time the brightness of each picture obtained by the exposure photographing operation is separately calculated.
  • Step S30 When the picture to be processed is a continuously captured picture, the picture to be processed is superimposed to generate a target picture.
  • the mobile terminal stores the photographing time and other information correspondingly, and determines whether the acquired image to be processed is a continuously photographed image, for example, determining whether each image in the image to be processed is photographed at intervals.
  • the time interval is taken to take a picture, or it is determined whether each picture time of the picture to be processed is a time interval of consecutive time-lapse picture taking.
  • the pictures obtained by taking pictures may be chronologically performed during photographing. Sorting or numbering in sequence, it is only necessary to determine whether each picture in the image to be processed is a continuously arranged picture or to determine whether the number of each picture in the picture to be processed is continuous.
  • the picture to be processed is superimposed to generate a target picture, wherein, when performing picture superposition, a superimposition of weighted average according to the brightness value of each picture in the picture to be processed may be adopted.
  • the processing is to assign a higher weight coefficient to the picture with higher brightness value in the picture to be processed, and assign a lower weight coefficient to the picture with lower brightness value in the picture to be processed.
  • the number of pictures to be processed may be limited. For example, when the number of pictures to be processed is greater than or equal to 5, the operation of superimposing the picture to be processed is performed, and the number of pictures to be processed is small. At 5 o'clock, no superposition operation is performed.
  • the mobile terminal in this embodiment can be applied to a mobile terminal such as a mobile phone.
  • a mobile terminal such as a mobile phone.
  • the pictures in the to-be-processed picture are not all consecutively taken pictures, and may be superimposed separately. Continuously taken pictures in the image to be processed.
  • the exposure photographing operation is performed every preset time interval, and then, when the exposure photographing operation is completed, the brightness of the image acquired based on the photographing operation acquires the to-be-processed image in the image obtained by the exposure photographing operation, and then waits
  • the picture is processed as a continuous picture
  • the image to be processed is superimposed to generate a target picture
  • the picture obtained by the exposure picture operation is brighter than the picture of other pictures, and the target picture is obtained, so that the scene appearing in the target picture is clearer.
  • the mobile terminal of the present embodiment superimposes the picture of the scene such as lightning that is continuously photographed, and the scene of the lightning generated in the superimposed target picture is more clear, thereby improving the user experience.
  • the mobile terminal of the embodiment can also capture the motion trajectory of the object with a faster moving speed, thereby further enriching the photographing function of the mobile terminal.
  • step S30 includes:
  • Step S31 When the to-be-processed picture includes multiple sets of consecutively captured picture groups, obtain a first picture group in which the picture with the highest brightness value among the brightness values corresponding to each picture to be processed is located;
  • the picture to be processed includes multiple groups of consecutively taken picture groups.
  • the picture group in the picture to be processed is not consistent with the picture time of other picture groups. In this case, the picture with the maximum brightness value of the brightness value corresponding to the picture to be processed is located.
  • the picture group is the first picture group.
  • Step S32 Acquire a maximum brightness value of the second picture group except the first picture group in the picture group.
  • the second picture group is a picture group other than the first picture group in the picture group of the picture to be processed.
  • Step S33 when the brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group is less than a preset threshold, respectively superimposing the first picture group and the maximum brightness value and the a second picture group in which the luminance difference between the maximum luminance values of the first picture group is less than a preset threshold To generate a target image;
  • the preset threshold is a preset brightness difference
  • the target picture is generated by superimposing the first picture group and the second picture group whose luminance difference between the maximum brightness value and the maximum brightness value of the first picture group is less than a preset threshold.
  • step S30 further includes: the brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group is greater than or equal to a preset threshold. At the time, the first group of pictures is superimposed to generate a target picture.
  • the second superimposing unit When the brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group in the to-be-processed picture is greater than or equal to a preset threshold, the second superimposing unit only superimposes the first picture group to generate a target picture. In order to avoid the phenomenon that the target image generated by the camera operation and the image processing process is far away from other target images or does not include the target scene.
  • the first picture group in which the picture with the highest brightness value of the brightness value corresponding to each picture to be processed is located is obtained, and then each picture is obtained.
  • the maximum brightness value of the second picture group except the first picture group in the group, and then the luminance difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group is less than
  • the threshold image is superimposed on the consecutively captured image groups in the image to be processed, ensuring the accuracy and consistency of each target image, and avoiding the target image generated by the camera operation and the image processing process being far from the other target images or Does not include the phenomenon of the target scene.
  • step S20 includes
  • Step S21 when the exposure photographing operation is completed, the brightness of the picture acquired based on the photographing operation acquires a picture whose brightness is greater than a preset brightness threshold value in the picture obtained by the exposure photographing operation;
  • the preset brightness threshold is a preset brightness of the mobile terminal.
  • the preset brightness is The threshold is set according to the camera function of the mobile terminal.
  • the camera environment should be considered as much as possible when setting the preset brightness threshold.
  • the mobile terminal can set different preset brightness thresholds according to different environments, for example, according to environmental factors such as weather and time.
  • the preset brightness threshold may be set by factors such as the scene of the photographed picture; the mobile terminal of the embodiment is used to process the picture of the object appearing at the moment of shooting, that is, the scene other than the object that appears in the picture is not Changed or basically unchanged, so the brightness value of any picture other than the picture containing the momentarily appearing object can be taken as the preset brightness threshold of the current photographing environment, and of course, other methods can be used before photographing. Determine the preset brightness threshold of the current photo environment.
  • Step S22 Acquire a to-be-processed picture in the acquired picture whose brightness is greater than the preset brightness threshold, wherein the brightness of the to-be-processed picture is greater than the picture other than the to-be-processed picture in the picture whose brightness is greater than the preset brightness threshold. Brightness.
  • the brightness of the image acquired based on the photographing operation acquires a picture whose brightness is greater than the preset brightness threshold value in the image obtained by the exposure photographing operation, and then the acquired brightness is greater than the preset.
  • the image to be processed is obtained in the image of the brightness threshold, and the image to be processed is obtained according to the preset brightness threshold, thereby improving the accuracy of the image to be processed, thereby ensuring the accuracy of the target image.
  • a fourth embodiment of the image processing method of the present invention is proposed based on the first embodiment. Referring to FIG. 11, in the embodiment, between step S10 and step S20, the image processing method further includes:
  • Step S40 storing a picture obtained by the exposure photographing operation and a corresponding photographing moment in real time, and calculating the number of currently stored pictures;
  • the image obtained by the photographing operation and the photographing moment corresponding to the photograph are stored, and the number of the photographs stored at the current time is calculated.
  • the photographed photograph may also be photographed according to the photographing.
  • the time sequence is sequentially numbered, and the number of pictures currently stored at the current time can be obtained according to the number of the current picture and the picture obtained by the first timed picture.
  • step S50 when the number of currently stored pictures reaches a preset threshold, the picture with the earliest photographing time is deleted.
  • the preset threshold is a mobile terminal that is set by the user and stores the timed photo to obtain the most pictures.
  • a large value for example, when the time interval of the timed photo is 1 second, the preset threshold can be set to 180.
  • the mobile terminal only saves the picture obtained by taking the picture in the last 3 minutes, and the number of currently stored pictures is greater than the preset.
  • the threshold is used, the picture with the earliest photographing time is deleted, so that the number of pictures stored by the mobile terminal is less than or equal to a preset threshold, thereby ensuring that the mobile terminal currently has enough storage space to store the subsequently taken pictures.
  • the picture obtained by the exposure photographing operation and the corresponding photographing time are stored in real time, and the number of currently stored pictures is calculated, and then when the number of currently stored pictures reaches a preset threshold, the The picture of the earliest picture is taken, so that the number of pictures stored by the mobile terminal is less than or equal to a preset threshold, thereby ensuring that the mobile terminal currently has enough storage space to store the subsequently taken pictures.
  • the above technical solution makes the scene appearing in the target picture more clear, and can also capture the motion track of the object with faster moving speed, thereby making the camera function of the mobile terminal more abundant.

Landscapes

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

Abstract

A picture processing device and a method, wherein the device comprises: a photographing module set to perform an exposure photographing operation at every preset interval; an acquisition module set to acquire to-be-processed pictures from the pictures obtained by the exposure photographing operation according to the brightness of the obtained pictures thereby when the exposure photographing operation is complete; a superimposing module set to superimpose the to-be-processed pictures to generate a target picture when the to-be-processed pictures are continuously shot pictures. The technical solution realizes obtaining a target picture according to the pictures having greater brightness among pictures acquired by the exposure photographing operation so as to make the instantaneous scenes in the target picture clearer.

Description

图片处理方法及装置Picture processing method and device 技术领域Technical field
本文涉及但不限于图像处理技术领域,尤其涉及一种图片处理方法及装置。This document relates to, but is not limited to, the field of image processing technology, and in particular, to a picture processing method and apparatus.
背景技术Background technique
随着图像处理技术的迅速发展,手机、平板电脑PAD等移动终端的拍照功能越来越丰富。With the rapid development of image processing technology, mobile phones, tablet PCs and other mobile terminals have more and more camera functions.
相关技术中,移动终端在拍照时无法实现长时间的曝光,导致在捕捉瞬时出现的物体或景象时抓拍的图片不清晰,甚至无法抓拍到该瞬时出现的物体或景象。In the related art, the mobile terminal cannot achieve long-time exposure when taking a picture, and the picture captured during capturing an instantaneous object or scene is unclear, and even the instantaneously appearing object or scene cannot be captured.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种图片处理方法及装置,能够实现移动终端清楚地抓拍瞬时出现的物体或景象。Embodiments of the present invention provide a picture processing method and apparatus, which can enable a mobile terminal to clearly capture an instantaneous appearance of an object or a scene.
本发明实施例提供的一种图片处理装置,所述图片处理装置包括:A picture processing apparatus provided by an embodiment of the present invention, where the picture processing apparatus includes:
拍照模块,设置为每隔预设时间间隔进行曝光拍照操作;The photographing module is configured to perform an exposure photographing operation every preset time interval;
获取模块,设置为在所述曝光拍照操作完成时,基于拍照操作获取到的图片的亮度在所述曝光拍照操作获得的图片中获取待处理图片,其中,所述待处理图片的亮度大于所述曝光拍照操作获得图片中除所述待处理图片之外的其他图片的亮度;Obtaining a module, configured to acquire a to-be-processed image in the image obtained by the exposure photographing operation, wherein the brightness of the to-be-processed image is greater than the brightness of the image obtained by the photographing operation when the exposure photographing operation is completed The exposure photographing operation obtains brightness of other pictures in the picture other than the to-be-processed picture;
叠加模块,设置为在所述待处理图片为连续拍摄的图片时,叠加所述待处理图片以生成目标图片。 And a superimposing module, configured to superimpose the to-be-processed image to generate a target image when the to-be-processed picture is a continuously photographed picture.
可选地,所述叠加模块包括:Optionally, the overlay module includes:
第一获取单元,设置为在所述待处理图片包含多组连续拍摄的图片组时,获取每个待处理图片对应的亮度值中最大亮度值的图片所在的第一图片组;a first acquiring unit, configured to: when the to-be-processed picture includes a plurality of sets of consecutively captured picture groups, acquire a first picture group in which a picture of a maximum brightness value of each of the brightness values corresponding to the picture to be processed is located;
第二获取单元,设置为获取所述图片组中除所述第一图片组之外的第二图片组的最大亮度值;a second acquiring unit, configured to acquire a maximum brightness value of the second group of pictures other than the first group of pictures in the group of pictures;
第一叠加单元,设置为在有第二图片组的最大亮度值与所述第一图片组的最大亮度值之间的亮度差小于预设阈值时,分别叠加所述第一图片组以及最大亮度值与所述第一图片组的最大亮度值之间的亮度差小于预设阈值的第二图片组以生成目标图片。The first superimposing unit is configured to superimpose the first picture group and the maximum brightness respectively when the brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group is less than a preset threshold A second group of pictures having a luminance difference between the value and the maximum luminance value of the first group of pictures is less than a preset threshold to generate a target picture.
可选地,所述叠加模块还包括:Optionally, the overlay module further includes:
第二叠加单元,设置为在第二图片组的最大亮度值与所述第一图片组的最大亮度值之间的亮度差大于或等于预设阈值时,叠加所述第一图片组以生成目标图片。a second superimposing unit configured to superimpose the first group of pictures to generate a target when a brightness difference between a maximum brightness value of the second picture group and a maximum brightness value of the first picture group is greater than or equal to a preset threshold image.
可选地,所述获取模块包括:Optionally, the obtaining module includes:
第一图片获取单元,设置为在所述曝光拍照操作完成时,基于拍照操作获取到的图片的亮度在所述曝光拍照操作获得的图片中获取亮度大于预设亮度阈值的图片;a first picture obtaining unit, configured to: when the exposure photographing operation is completed, obtain a picture whose brightness is greater than a preset brightness threshold value in a picture obtained by the exposure photographing operation according to a brightness of a picture obtained by the photographing operation;
第二图片获取单元,设置为在获取的亮度大于预设亮度阈值的图片中获取待处理图片,其中,所述待处理图片的亮度大于获取的亮度大于预设亮度阈值的图片中除待处理图片之外的其他图片的亮度。The second picture obtaining unit is configured to obtain a to-be-processed picture in the picture whose brightness is greater than the preset brightness threshold, wherein the brightness of the to-be-processed picture is greater than the picture to be processed in the picture whose brightness is greater than the preset brightness threshold. The brightness of other pictures outside.
可选地,所述图片处理装置还包括:Optionally, the image processing apparatus further includes:
存储模块,设置为实时存储所述曝光拍照操作获得的图片及对应的拍照时刻,并计算当前存储的图片的个数;a storage module, configured to store a picture obtained by the exposure photographing operation and a corresponding photographing moment in real time, and calculate the number of currently stored pictures;
删除模块,设置为在当前存储的图片的个数达到预设阈值时,删除所述拍照时刻最早的图片。The module is deleted, and when the number of currently stored pictures reaches a preset threshold, the picture with the earliest photographing time is deleted.
可选地,获取模块,是设置为通过如下方式获取基于拍照操作获取到的图片的亮度: Optionally, the obtaining module is configured to obtain the brightness of the image obtained based on the photographing operation by:
获取图片的红蓝绿RBG值;Get the red, blue and green RBG values of the image;
根据所述图片的RBG值计算所述图片的亮度。Calculating the brightness of the picture according to the RBG value of the picture.
可选地,获取模块,是设置为通过如下方式实现获取图片的红蓝绿RBG值,根据图片的RBG值计算所述图片的亮度:Optionally, the acquiring module is configured to: obtain a red, blue, and green RBG value of the image, and calculate a brightness of the image according to the RBG value of the image:
获取所述图片中每个像素点的RBG值;根据所述每个像素点的RBG值计算所述图片中每个像素点的亮度;Obtaining an RBG value of each pixel in the picture; calculating a brightness of each pixel in the picture according to the RBG value of each pixel;
将所述图片中所有像素点的亮度进行加权平均得到所述图片的亮度。Weighting the luminances of all the pixels in the picture to obtain the brightness of the picture.
可选地,叠加模块是设置为通过如下方式实现判断所述待处理图片为连续拍摄的图片:Optionally, the superimposing module is configured to determine that the to-be-processed picture is a continuously taken picture by:
判断所述待处理图片中每个图片是否为所述预设时间间隔拍照获得的图片;或者,Determining whether each picture in the to-be-processed picture is a picture obtained by taking a picture at the preset time interval; or
判断所述待处理图片的每个拍照时刻是否为连续的间隔定时拍照的时间间隔的时刻;或者,Determining whether each photographing moment of the to-be-processed picture is a time interval of consecutive interval timing photographing; or
对拍照获得的图片按照时间顺序进行排序,判断所述待处理图片中每个图片是否为连续排列的图片;或者Sorting the pictures obtained by photographing in chronological order, and determining whether each picture in the to-be-processed picture is a continuously arranged picture; or
对拍照获得的图片按照时间顺序进行编号,判断所述待处理图片中每个图片的编号是否连续。The pictures obtained by photographing are numbered in chronological order, and it is determined whether the number of each picture in the to-be-processed picture is continuous.
可选地,拍照模块,是设置为通过如下方式实现每隔预设时间间隔进行曝光拍照操作:Optionally, the photographing module is configured to perform an exposure photographing operation at every preset time interval by:
在接收到拍照指令时,每隔预设时间间隔进行曝光拍照操作。When a photographing instruction is received, an exposure photographing operation is performed every preset time interval.
可选地,所述拍照指令的触发方式包括:Optionally, the triggering manner of the photographing instruction includes:
基于预设控件触发的触摸操作触发拍照指令;或,Triggering a photographing instruction based on a touch operation triggered by a preset control; or
在侦测到基于图片处理界面触发的滑动触摸操作时触发拍照指令;或,Triggering a photographing instruction when detecting a sliding touch operation triggered based on the image processing interface; or
通过压力传感器触发拍照指令。The camera command is triggered by the pressure sensor.
此外,本发明实施例还提供一种图片处理方法,所述图片处理方法包括以下步骤: In addition, an embodiment of the present invention further provides a picture processing method, where the picture processing method includes the following steps:
每隔预设时间间隔进行曝光拍照操作;Performing an exposure photographing operation every preset time interval;
在所述曝光拍照操作完成时,基于拍照操作获取到的图片的亮度在所述曝光拍照操作获得的图片中获取待处理图片,其中,所述待处理图片的亮度大于所述曝光拍照操作获得图片中除所述待处理图片之外的其他图片的亮度;When the exposure photographing operation is completed, the brightness of the image acquired based on the photographing operation acquires a to-be-processed image in the image obtained by the exposure photographing operation, wherein the brightness of the to-be-processed image is greater than the exposure photographing operation to obtain a picture. The brightness of other pictures except the picture to be processed;
在所述待处理图片为连续拍摄的图片时,叠加所述待处理图片以生成目标图片。When the picture to be processed is a continuously captured picture, the picture to be processed is superimposed to generate a target picture.
可选地,在所述待处理图片为连续拍摄的图片时,叠加所述待处理图片以生成目标图片的步骤包括:Optionally, when the to-be-processed picture is a continuously captured picture, the step of superimposing the to-be-processed picture to generate a target picture includes:
在所述待处理图片包含多组连续拍摄的图片组时,获取每个待处理图片对应的亮度值中最大亮度值的图片所在的第一图片组;When the to-be-processed picture includes a plurality of consecutively captured picture groups, acquiring a first picture group in which the picture of the maximum brightness value of the brightness values corresponding to each picture to be processed is located;
获取每个所述图片组中除所述第一图片组之外的第二图片组的最大亮度值;Obtaining a maximum brightness value of the second picture group except the first picture group in each of the picture groups;
在有第二图片组的最大亮度值与所述第一图片组的最大亮度值之间的亮度差小于预设阈值时,分别叠加所述第一图片组以及最大亮度值与所述第一图片组的最大亮度值之间的亮度差小于预设阈值的第二图片组以生成目标图片。When the brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group is less than a preset threshold, respectively superimposing the first picture group and the maximum brightness value and the first picture The second picture group whose luminance difference between the maximum luminance values of the group is smaller than a preset threshold to generate a target picture.
可选地,在所述获取每个所述图片组中除所述第一图片组之外的第二图片组的最大亮度值的步骤之后,所述方法还包括:Optionally, after the step of acquiring a maximum brightness value of a second group of pictures other than the first group of pictures in each of the group of pictures, the method further includes:
在第二图片组的最大亮度值与所述第一图片组的最大亮度值之间的亮度差大于或等于预设阈值时,叠加所述第一图片组以生成目标图片。And when the brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group is greater than or equal to a preset threshold, the first picture group is superimposed to generate a target picture.
可选地,在所述曝光拍照操作完成时,基于拍照操作获取到的图片的亮度在所述曝光拍照操作获得的图片中获取待处理图片的步骤包括:Optionally, when the exposure photographing operation is completed, the step of acquiring the image to be processed in the image obtained by the exposure photographing operation based on the brightness of the image acquired by the photographing operation comprises:
在所述曝光拍照操作完成时,基于拍照操作获取到的图片的亮度在所述曝光拍照操作获得的图片中获取亮度大于预设亮度阈值的图片;When the exposure photographing operation is completed, the brightness of the picture acquired based on the photographing operation acquires a picture whose brightness is greater than a preset brightness threshold value in the picture obtained by the exposure photographing operation;
在获取的亮度大于预设亮度阈值的图片中获取待处理图片,其中,所述待处理图片的亮度大于获取的亮度大于预设亮度阈值的图片中除待处理图片之外的其他图片的亮度。 Obtaining a to-be-processed picture in the obtained picture whose brightness is greater than the preset brightness threshold, wherein the brightness of the picture to be processed is greater than the brightness of the picture other than the picture to be processed in the picture whose brightness is greater than the preset brightness threshold.
可选地,在每隔预设时间间隔进行曝光拍照操作的步骤与在所述曝光拍照操作完成时,基于拍照操作获取到的图片的亮度在所述曝光拍照操作获得的图片中获取待处理图片的步骤之间,所述方法还包括:Optionally, the step of performing an exposure photographing operation at every preset time interval and the brightness of the image acquired based on the photographing operation when the exposure photographing operation is completed acquires a to-be-processed image in the image obtained by the exposure photographing operation Between the steps, the method further includes:
实时存储所述曝光拍照操作获得的图片及对应的拍照时刻,并计算当前存储的图片的个数;Real-time storing the picture obtained by the exposure photographing operation and the corresponding photographing moment, and calculating the number of currently stored pictures;
在当前存储的图片的个数达到预设阈值时,删除所述拍照时刻最早的图片。When the number of currently stored pictures reaches a preset threshold, the picture with the earliest photographing time is deleted.
可选地,获取基于拍照操作获取到的图片的亮度,包括:Optionally, obtaining the brightness of the image obtained based on the photographing operation, including:
获取图片的红蓝绿RBG值;Get the red, blue and green RBG values of the image;
根据所述图片的RBG值计算所述图片的亮度。Calculating the brightness of the picture according to the RBG value of the picture.
可选地,获取图片的红蓝绿RBG值,根据图片的RBG值计算所述图片的亮度,包括:Optionally, the red, blue, and green RBG values of the picture are obtained, and the brightness of the picture is calculated according to the RBG value of the picture, including:
获取所述图片中每个像素点的RBG值;Obtaining an RBG value of each pixel in the picture;
根据每个像素点的RBG值计算图片中每个像素点的亮度;Calculating the brightness of each pixel in the picture according to the RBG value of each pixel;
将所述图片中所有像素点的亮度进行加权平均得到所述图片的亮度。Weighting the luminances of all the pixels in the picture to obtain the brightness of the picture.
可选地,判断所述待处理图片为连续拍摄的图片,包括:Optionally, determining that the to-be-processed picture is a continuously taken picture includes:
判断所述待处理图片中每个图片是否为所述预设时间间隔拍照获得的图片;或者,Determining whether each picture in the to-be-processed picture is a picture obtained by taking a picture at the preset time interval; or
判断所述待处理图片的每个拍照时刻是否为连续的间隔定时拍照的时间间隔的时刻;或者,Determining whether each photographing moment of the to-be-processed picture is a time interval of consecutive interval timing photographing; or
对拍照获得的图片按照时间顺序进行排序,判断所述待处理图片中每个图片是否为连续排列的图片;或者,Sorting the pictures obtained by photographing in chronological order, and determining whether each picture in the to-be-processed picture is a continuously arranged picture; or
对拍照获得的图片按照时间顺序进行编号,判断所述待处理图片中每个图片的编号是否连续。The pictures obtained by photographing are numbered in chronological order, and it is determined whether the number of each picture in the to-be-processed picture is continuous.
可选地,每隔预设时间间隔进行曝光拍照操作,包括:Optionally, the exposure photographing operation is performed every preset time interval, including:
在接收到拍照指令时,每隔预设时间间隔进行曝光拍照操作。When a photographing instruction is received, an exposure photographing operation is performed every preset time interval.
可选地,所述拍照指令的触发方式包括: Optionally, the triggering manner of the photographing instruction includes:
基于预设控件触发的触摸操作触发拍照指令;或,Triggering a photographing instruction based on a touch operation triggered by a preset control; or
在侦测到基于图片处理界面触发的滑动触摸操作时触发拍照指令;或,Triggering a photographing instruction when detecting a sliding touch operation triggered based on the image processing interface; or
通过压力传感器触发拍照指令。The camera command is triggered by the pressure sensor.
本发明实施例通过拍照模块每隔预设时间间隔进行曝光拍照操作,接着在曝光拍照操作完成时,获取模块基于拍照操作获取到的图片的亮度在曝光拍照操作获得的图片中获取待处理图片,然后在待处理图片为连续拍摄的图片时,叠加模块叠加待处理图片以生成目标图片,实现了根据曝光拍照操作获得的图片中亮度大于其他图片亮度的图片得到目标图片,使得目标图片中瞬时出现的景象更加清晰,譬如采用本实施例的移动终端对连续拍照的闪电等景象的图片进行叠加处理,叠加生成的目标图片中的闪电等景象更加清晰。进一步地,采用本实施例的移动终端还能够捕捉运动速度较快的物体的运动轨迹,进而使得移动终端的拍照功能更加丰富。In the embodiment of the present invention, the photographing module performs the exposure photographing operation every preset time interval, and then, when the exposure photographing operation is completed, the obtaining module obtains the image to be processed in the image obtained by the exposure photographing operation based on the brightness of the image acquired by the photographing operation. Then, when the picture to be processed is a continuously photographed picture, the superimposing module superimposes the to-be-processed picture to generate a target picture, and realizes a picture in which the brightness of the picture obtained according to the exposure photographing operation is greater than the brightness of other pictures to obtain a target picture, so that the target picture instantaneously appears. The scene is more clear. For example, the mobile terminal of the embodiment superimposes the picture of the scene such as lightning that is continuously photographed, and the scene of the lightning generated in the superimposed target picture is more clear. Further, the mobile terminal of the embodiment can also capture the motion trajectory of the object with a faster moving speed, thereby further enriching the photographing function of the mobile terminal.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为实现本发明各个实施例的移动终端的硬件结构示意图;1 is a schematic structural diagram of hardware of a mobile terminal that implements various embodiments of the present invention;
图2为本发明图片处理装置第一实施例的功能模块示意图;2 is a schematic diagram of functional modules of a first embodiment of a picture processing apparatus according to the present invention;
图3为本发明一实施例中图片的亮度分布图;3 is a brightness distribution diagram of a picture according to an embodiment of the present invention;
图4为本发明图片处理装置第二实施例中叠加模块的细化功能模块示意图;4 is a schematic diagram of a refinement function module of a superimposing module in a second embodiment of the image processing apparatus of the present invention;
图5为本发明又一实施例中图片的亮度分布图;FIG. 5 is a diagram showing a luminance distribution of a picture according to another embodiment of the present invention; FIG.
图6为本发明图片处理装置第三实施例中获取模块的细化功能模块示意图;6 is a schematic diagram of a refinement function module of an acquisition module in a third embodiment of a picture processing apparatus according to the present invention;
图7为本发明图片处理装置第四实施例的功能模块示意图;FIG. 7 is a schematic diagram of functional modules of a fourth embodiment of a picture processing apparatus according to the present invention; FIG.
图8为本发明图片处理方法第一实施例的流程示意图;FIG. 8 is a schematic flowchart diagram of a first embodiment of a picture processing method according to the present invention; FIG.
图9为本发明图片处理方法第二实施例中叠加待处理图片步骤的细化流 程示意图;FIG. 9 is a detailed flow of steps of superimposing a picture to be processed in a second embodiment of a picture processing method according to the present invention; Schematic diagram
图10为本发明图片处理方法第三实施例中获取待处理图片步骤的细化流程示意图;FIG. 10 is a schematic flowchart of a step of obtaining a picture to be processed in a third embodiment of a picture processing method according to the present invention;
图11为本发明图片处理方法第四实施例的流程示意图。FIG. 11 is a schematic flowchart diagram of a fourth embodiment of a picture processing method according to the present invention.
本发明的实施方式Embodiments of the invention
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
现在将参考附图描述实现本发明各个实施例的移动终端。在后续的描述中,使用设置为表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明实施例的说明,其本身并没有特定的意义。因此,“模块”与“部件”可以混合地使用。A mobile terminal embodying various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, the use of suffixes such as "module", "component" or "unit" set to indicate an element is merely an explanation for facilitating embodiments of the present invention, and does not have a specific meaning per se. Therefore, "module" and "component" can be used in combination.
移动终端可以以各种形式来实施。例如,本发明实施例中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。下面,假设终端是移动终端。然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。The mobile terminal can be implemented in various forms. For example, the terminal described in the embodiments of the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device Mobile terminals of the like and fixed terminals such as digital TVs, desktop computers, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, those skilled in the art will appreciate that configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
下面,为了简要起见,将描述诸如折叠型、直板型、摆动型、滑动型移动终端等等的各种类型的移动终端中的滑动型移动终端作为示例。因此,本发明实施例能够应用于任何类型的移动终端,并且不限于滑动型移动终端。Hereinafter, for the sake of brevity, a slide type mobile terminal among various types of mobile terminals such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described as an example. Therefore, the embodiment of the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
参照图1,图1为实现本发明各个实施例的移动终端的硬件结构示意图。Referring to FIG. 1, FIG. 1 is a schematic structural diagram of hardware of a mobile terminal that implements various embodiments of the present invention.
摄影镜头1211由设置为形成被摄体像的多个光学镜头构成,为单焦点镜头或变焦镜头。摄影镜头1211在镜头驱动器1221的控制下能够在光轴方向上移动,镜头驱动器1221根据来自镜头驱动控制电路1222的控制信号,控制摄影镜头1211的焦点位置,在变焦镜头的情况下,也可控制焦点距离。镜头驱动控制电路1222按照来自微型计算机1217的控制命令进行镜头驱动器1221的驱动控制。在摄影镜头1211的光轴上、由摄影镜头1211形成的 被摄体像的位置附近配置有摄像元件1212。摄像元件1212设置为对被摄体像摄像并取得摄像图像数据。在摄像元件1212上二维且呈矩阵状配置有构成各像素的光电二极管。各光电二极管产生与受光量对应的光电转换电流,该光电转换电流由与各光电二极管连接的电容器进行电荷蓄积。各像素的前表面配置有拜耳排列的红绿蓝RGB滤色器。The photographic lens 1211 is composed of a plurality of optical lenses provided to form a subject image, and is a single focus lens or a zoom lens. The photographic lens 1211 is movable in the optical axis direction under the control of the lens driver 1221, and the lens driver 1221 controls the focus position of the photographic lens 1211 in accordance with a control signal from the lens driving control circuit 1222, and can also be controlled in the case of the zoom lens. Focus distance. The lens drive control circuit 1222 performs drive control of the lens driver 1221 in accordance with a control command from the microcomputer 1217. On the optical axis of the photographic lens 1211, formed by the photographic lens 1211 An imaging element 1212 is disposed near the position of the subject image. The imaging element 1212 is provided to image the subject image and acquire captured image data. Photodiodes constituting each pixel are arranged two-dimensionally and in a matrix on the imaging element 1212. Each photodiode generates a photoelectric conversion current corresponding to the amount of received light, and the photoelectric conversion current is charged by a capacitor connected to each photodiode. A red, green, and blue RGB color filter of Bayer arrangement is disposed on the front surface of each pixel.
摄像元件1212与摄像电路1213连接,该摄像电路1213在摄像元件1212中进行电荷蓄积控制和图像信号读出控制,对该读出的图像信号(模拟图像信号)降低重置噪声后进行波形整形,进而进行增益提高等以成为适当的信号电平。The imaging element 1212 is connected to the imaging circuit 1213. The imaging circuit 1213 performs charge accumulation control and image signal readout control in the imaging element 1212, and performs waveform shaping after reducing the reset noise of the read image signal (analog image signal). Further, gain improvement or the like is performed to obtain an appropriate signal level.
摄像电路1213与A/D转换器1214连接,该A/D转换器1214对模拟图像信号进行模数转换,向总线1227输出数字图像信号(以下称之为图像数据)。The imaging circuit 1213 is connected to an A/D converter 1214 that performs analog-to-digital conversion on the analog image signal and outputs a digital image signal (hereinafter referred to as image data) to the bus 1227.
总线1227是设置为传送在相机的内部读出或生成的各种数据的传送路径。在总线1227连接着上述A/D转换器1214,此外还连接着图像处理器1215、JPEG处理器1216、微型计算机1217、SDRAM(Synchronous Dynamic random access memory,同步动态随机存取内存)1218、存储器接口(以下称之为存储器I/F)1219、LCD(Liquid Crystal Display,液晶显示器)驱动器1220。The bus 1227 is a transmission path set to transfer various data read or generated inside the camera. The A/D converter 1214 is connected to the bus 1227, and an image processor 1215, a JPEG processor 1216, a microcomputer 1217, a SDRAM (Synchronous Dynamic Random Access Memory) 1218, and a memory interface are also connected. (hereinafter referred to as memory I/F) 1219, LCD (Liquid Crystal Display) driver 1220.
图像处理器1215对基于摄像元件1212的输出的图像数据进行OB相减处理、白平衡调整、颜色矩阵运算、伽马转换、色差信号处理、噪声去除处理、同时化处理、边缘处理等各种图像处理。JPEG处理器1216在将图像数据记录于记录介质1225时,按照JPEG压缩方式压缩从SDRAM1218读出的图像数据。此外,JPEG处理器1216为了进行图像再现显示而进行JPEG图像数据的解压缩。进行解压缩时,读出记录在记录介质1225中的文件,在JPEG处理器1216中实施了解压缩处理后,将解压缩的图像数据暂时存储于SDRAM1218中并在LCD1226上进行显示。另外,在本实施方式中,作为图像压缩解压缩方式采用的是JPEG方式,然而压缩解压缩方式不限于此,当然可以采用MPEG、TIFF、H.264等其他的压缩解压缩方式。The image processor 1215 performs various kinds of images such as OB subtraction processing, white balance adjustment, color matrix calculation, gamma conversion, color difference signal processing, noise removal processing, simultaneous processing, edge processing, and the like on the image data based on the output of the imaging element 1212. deal with. The JPEG processor 1216 compresses the image data read out from the SDRAM 1218 in accordance with the JPEG compression method when the image data is recorded on the recording medium 1225. Further, the JPEG processor 1216 performs decompression of JPEG image data for image reproduction display. At the time of decompression, the file recorded on the recording medium 1225 is read, and after the compression processing is performed in the JPEG processor 1216, the decompressed image data is temporarily stored in the SDRAM 1218 and displayed on the LCD 1226. Further, in the present embodiment, the JPEG method is adopted as the image compression/decompression method. However, the compression/decompression method is not limited thereto, and other compression/decompression methods such as MPEG, TIFF, and H.264 may be used.
微型计算机1217发挥作为该相机整体的控制部的功能,统一控制相机的各种处理序列。微型计算机1217连接着操作单元1223和闪存1224。The microcomputer 1217 functions as a control unit of the entire camera, and collectively controls various processing sequences of the camera. The microcomputer 1217 is connected to the operation unit 1223 and the flash memory 1224.
操作单元1223包括但不限于实体按键或者虚拟按键,该实体或虚拟按键可以为电源按钮、拍照键、编辑按键、动态图像按钮、再现按钮、菜单按 钮、十字键、OK按钮、删除按钮、放大按钮等各种输入按钮和各种输入键等操作控件,检测这些操作控件的操作状态。The operation unit 1223 includes but is not limited to a physical button or a virtual button, and the entity or virtual button may be a power button, a camera button, an edit button, a dynamic image button, a reproduction button, a menu button Buttons, cross keys, OK buttons, delete buttons, zoom buttons, and other input controls such as various input buttons and various input buttons detect the operation status of these operation controls.
将检测结果向微型计算机1217输出。此外,在作为显示器的LCD1226的前表面设有触摸面板,检测用户的触摸位置,将该触摸位置向微型计算机1217输出。微型计算机1217根据来自操作单元1223的操作位置的检测结果,执行与用户的操作对应的各种处理序列。The detection result is output to the microcomputer 1217. Further, a touch panel is provided on the front surface of the LCD 1226 as a display, and the touch position of the user is detected, and the touch position is output to the microcomputer 1217. The microcomputer 1217 executes various processing sequences corresponding to the user's operation in accordance with the detection result from the operation position of the operation unit 1223.
闪存1224存储用于执行微型计算机1217的各种处理序列的程序。微型计算机1217根据该程序进行相机整体的控制。此外,闪存1224存储相机的各种调整值,微型计算机1217读出调整值,按照该调整值进行相机的控制。The flash memory 1224 stores programs for executing various processing sequences of the microcomputer 1217. The microcomputer 1217 performs overall control of the camera in accordance with the program. Further, the flash memory 1224 stores various adjustment values of the camera, and the microcomputer 1217 reads out the adjustment value, and performs control of the camera in accordance with the adjustment value.
SDRAM1218是设置为对图像数据等进行暂时存储的可电改写的易失性存储器。该SDRAM1218暂时存储从A/D转换器1214输出的图像数据和在图像处理器1215、JPEG处理器1216等中进行了处理后的图像数据。The SDRAM 1218 is an electrically rewritable volatile memory that is set to temporarily store image data or the like. The SDRAM 1218 temporarily stores image data output from the A/D converter 1214 and image data processed in the image processor 1215, the JPEG processor 1216, and the like.
存储器接口1219与记录介质1225连接,进行将图像数据和附加在图像数据中的文件头等数据写入记录介质1225和从记录介质1225中读出的控制。记录介质1225例如为能够在相机主体上自由拆装的存储器卡等记录介质,然而不限于此,也可以是内置在相机主体中的硬盘等。The memory interface 1219 is connected to the recording medium 1225, and performs control for writing image data and a file header attached to the image data to the recording medium 1225 and reading out from the recording medium 1225. The recording medium 1225 is, for example, a recording medium such as a memory card that can be detachably attached to the camera body. However, the recording medium 1225 is not limited thereto, and may be a hard disk or the like built in the camera body.
LCD驱动器1210与LCD1226连接,将由图像处理器1215处理后的图像数据存储于SDRAM1218,需要显示时,读取SDRAM1218存储的图像数据并在LCD1226上显示,或者,JPEG处理器1216压缩过的图像数据存储于SDRAM1218,在需要显示时,JPEG处理器1216读取SDRAM1218的压缩过的图像数据,再进行解压缩,将解压缩后的图像数据通过LCD1226进行显示。The LCD driver 1210 is connected to the LCD 1226, and stores image data processed by the image processor 1215 in the SDRAM 1218. When display is required, the image data stored in the SDRAM 1218 is read and displayed on the LCD 1226, or the image data stored in the JPEG processor 1216 is compressed. In the SDRAM 1218, when display is required, the JPEG processor 1216 reads the compressed image data of the SDRAM 1218, decompresses it, and displays the decompressed image data through the LCD 1226.
LCD1226配置在相机主体的背面进行图像显示。该LCD1226LCD),然而不限于此,也可以采用有机EL等各种显示面板(LCD1226),然而不限于此,也可以采用有机EL等各种显示面板。The LCD 1226 is configured to display an image on the back of the camera body. The LCD 1226 LCD) is not limited thereto, and various display panels (LCD 1226) such as an organic EL may be used. However, the present invention is not limited thereto, and various display panels such as an organic EL may be used.
基于上述移动终端硬件结构示意图,提出本发明图片处理方法及装置的各个实施例。Based on the hardware structure diagram of the above mobile terminal, various embodiments of the image processing method and apparatus of the present invention are proposed.
本发明实施例提供一种图片处理装置。参照图2,图2为本发明图片处 理装置第一实施例的功能模块示意图。Embodiments of the present invention provide a picture processing apparatus. Referring to Figure 2, Figure 2 is a picture of the present invention. A schematic diagram of the functional modules of the first embodiment of the device.
在本实施例中,该图片处理装置包括:In this embodiment, the image processing apparatus includes:
拍照模块10,设置为每隔预设时间间隔进行曝光拍照操作;The photographing module 10 is configured to perform an exposure photographing operation every preset time interval;
本实施例中,在拍照模块10进行每隔预设时间间隔进行曝光拍照操作之前,需要配置相机的连拍应用以及自动曝光等功能,譬如,设置每秒拍摄60张图片等。在其他实施例中,可以在接收到拍照指令时,拍照模块10每隔预设时间间隔进行曝光拍照操作,其中,拍照指令的触发方式包括:基于预设控件触发的触摸操作触发拍照指令,例如,移动终端的某菜单中设有拍照选项,用户在点击该菜单中的拍照选项时可以触发拍照指令;在侦测到基于图片处理界面触发的滑动触摸操作时触发拍照指令,例如,移动终端安装有本实施例的移动终端对应的相机应用等,用户可以通过打开该应用进入拍照界面,然后在侦测到基于图片处理界面触发的滑动触摸操作时触发拍照指令;在所述移动终端设有压力传感器时,拍照指令可以通过该压力传感器触发,压力传感器可以设置于移动终端的左侧、右侧、顶测或者底侧等多个侧面等,在侦测到压力传感器发生变化且该变化满足预设条件时,均可以触发该拍照指令,其中,预设条件可以为压力传感器的压力值大于或等于预设压力阈值、或按压压力传感器的按压操作的按压次数大于或等于预设次数阈值,即在检测到压力传感器的压力值大于或等于预设压力阈值时、或在检测到按压操作且所述按压操作的按压次数大于或等于预设次数阈值时,均可以触发该拍照指令,预设压力阈值以及预设次数阈值可以由用户根据自己的习惯或喜好自行设定,当然,预设压力阈值以及预设次数阈值也可以为系统默认值,当然,在其他实施例中,也可以在检测到对压力传感器的按压操作、且压力传感器的压力值大于第二预设压力阈值、且按压操作的按压时长大于或等于预设时长阈值时,触发该拍照指令。In this embodiment, before the photographing module 10 performs the exposure photographing operation at every preset time interval, it is necessary to configure a continuous shooting application of the camera and an automatic exposure function, for example, setting 60 pictures per second. In other embodiments, when the photographing instruction is received, the photographing module 10 performs an exposure photographing operation every preset time interval, wherein the triggering manner of the photographing instruction includes: triggering a photographing instruction based on a touch operation triggered by a preset control, for example, The camera has a photographing option in a menu of the mobile terminal, and the user can trigger the photographing instruction when clicking the photographing option in the menu; when the sliding touch operation triggered by the image processing interface is detected, the photographing instruction is triggered, for example, the mobile terminal is installed. The camera application or the like corresponding to the mobile terminal of the embodiment, the user can enter the photographing interface by opening the application, and then trigger the photographing instruction when detecting the sliding touch operation triggered by the image processing interface; the pressure is set in the mobile terminal In the case of the sensor, the photographing command can be triggered by the pressure sensor, and the pressure sensor can be disposed on the left side, the right side, the top test or the bottom side of the mobile terminal, etc., when the pressure sensor is detected to change and the change satisfies When the condition is set, the photographing instruction can be triggered, wherein, The condition may be that the pressure value of the pressure sensor is greater than or equal to the preset pressure threshold, or the pressing number of the pressing operation of the pressing pressure sensor is greater than or equal to the preset number of times threshold, that is, when the pressure value of the pressure sensor is detected to be greater than or equal to the preset pressure threshold. The photographing instruction may be triggered when the pressing operation is detected and the pressing number of the pressing operation is greater than or equal to the preset number of times threshold, and the preset pressure threshold and the preset number of thresholds may be determined by the user according to their own habits or preferences. The preset pressure threshold and the preset number threshold may also be system default values. Of course, in other embodiments, the pressing operation of the pressure sensor may be detected, and the pressure value of the pressure sensor is greater than the first value. When the preset pressure threshold is two, and the pressing duration of the pressing operation is greater than or equal to the preset duration threshold, the photographing instruction is triggered.
获取模块20,设置为在所述曝光拍照操作完成时,基于拍照操作获取到的图片的亮度在所述曝光拍照操作获得的图片中获取待处理图片,其中,所述待处理图片的亮度大于所述曝光拍照操作获得图片中除待处理图片之外的其他图片的亮度;The obtaining module 20 is configured to obtain a to-be-processed image in the image obtained by the exposure photographing operation, wherein the brightness of the to-be-processed image is greater than that of the image obtained by the photographing operation when the exposure photographing operation is completed. The exposure photographing operation obtains brightness of other pictures in the picture other than the picture to be processed;
其中,待处理图片为曝光拍照操作获得的图片中亮度大于除待处理图片 之外的其他图片的亮度的图片,即待处理图片中的最小亮度大于曝光拍照操作获得图片中亮度大于除待处理图片之外的其他图片的亮度。本实施例中,可以根据曝光拍照操作获得图片的亮度以及每个图片对应的拍照时刻生成亮度分布图,在生成亮度分布图中存在波峰时,若该波峰对应的图片的亮度大于亮度分布图中其他位置对应图片的亮度,则该波峰对应的图片即为待处理图片。本实施例中,可以在曝光拍照操作完成之后计算曝光拍照操作获得的图片的亮度,也可以在曝光拍照操作获得每一张图片时计算曝光拍照操作获得的图片的亮度;其中,曝光拍照操作获得的图片的亮度计算过程为:获取图片的RBG值,然后根据图片的RBG值计算对应亮度,其中,根据图片的RBG值计算亮度计算公式为:亮度Y=0.3R+0.6G+0.1B,因此,一种情况下,可以通过首先获取图片的RGB值,然后根据亮度值计算公式分别计算每个图片的亮度;又一种情况下,可以通过分别获取每一张图片中每个像素点的RGB值,然后根据亮度值计算公式分别计算每一张图片中每个像素点的亮度,最后分别将每一张图片中所有像素点的亮度进行加权平均即可获得每一张图片的亮度。曝光拍照操作完成是指用户停止移动终端的曝光拍照操作,当然,也可以是曝光拍照操作的持续时间达到设定的时间或者曝光拍照操作的获得的图片达到预设的数量等而使移动终端停止曝光拍照操作,此时分别计算所述曝光拍照操作获得的每个图片的亮度。Wherein, the image to be processed is the brightness of the image obtained by the exposure photographing operation is greater than the image to be processed The picture of the brightness of other pictures other than the picture, that is, the minimum brightness in the picture to be processed is larger than the brightness of the picture in which the brightness in the picture is larger than the picture other than the picture to be processed. In this embodiment, the brightness of the picture and the picture time corresponding to each picture are generated according to the exposure photographing operation, and when there is a peak in the generated brightness distribution map, if the brightness of the picture corresponding to the peak is greater than the brightness distribution map If the other location corresponds to the brightness of the picture, the picture corresponding to the peak is the picture to be processed. In this embodiment, the brightness of the picture obtained by the exposure photographing operation may be calculated after the exposure photographing operation is completed, or the brightness of the image obtained by the exposure photographing operation may be calculated when each image is obtained by the exposure photographing operation; wherein the exposure photographing operation is obtained The brightness calculation process of the picture is: obtaining the RBG value of the picture, and then calculating the corresponding brightness according to the RBG value of the picture, wherein the brightness calculation formula is calculated according to the RBG value of the picture: brightness Y=0.3R+0.6G+0.1B, therefore In one case, the RGB values of the pictures can be first obtained, and then the brightness of each picture can be separately calculated according to the brightness value calculation formula; in another case, the RGB of each pixel point in each picture can be obtained separately. Value, and then calculate the brightness of each pixel in each picture according to the brightness value calculation formula, and finally weight the average of the brightness of all the pixels in each picture to obtain the brightness of each picture. The completion of the exposure photographing operation refers to the user stopping the exposure photographing operation of the mobile terminal. Of course, the mobile terminal may stop when the duration of the exposure photographing operation reaches the set time or the obtained image of the exposure photographing operation reaches a preset number. The photographing operation is exposed, at which time the brightness of each picture obtained by the exposure photographing operation is separately calculated.
叠加模块30,设置为在所述待处理图片为连续拍摄的图片时,叠加所述待处理图片以生成目标图片。The superimposing module 30 is configured to superimpose the to-be-processed image to generate a target image when the to-be-processed picture is a continuously captured picture.
在存储拍照获得的图片时,移动终端会将拍照时间等信息进行对应的一并存储,叠加模块30判断获取模块20获取的待处理图片是否为连续拍摄的图片,譬如判断待处理图片中每个图片是否为间隔定时拍照的时间间隔拍照获得的图片,或者判断待处理图片的每个拍照时刻是否为连续的间隔定时拍照的时间间隔的时刻,当然,为便于处理,可以在拍照时对拍照获得的图片按照时间顺序进行依次排序或者编号,在处理时只需判断待处理图片中每个图片是否为连续排列的图片或者判断待处理图片中每个图片的编号是否连续即可。在待处理图片中每个图片为连续拍摄的图片时,叠加模块30叠加待处理图片以生成目标图片,其中,在进行图片叠加时,可以采用按照待处 理图片中每个图片的亮度值进行加权平均的叠加处理,即对于待处理图片中亮度值较高的图片分配较高的权重系数,对于待处理图片中亮度值较低的图片分配较低的权重系数。在其他实施例中,可以对待处理图片的数量进行一定的限制,譬如在待处理图片的数量大于或等于5时,进行叠加所述待处理图片的操作,而在待处理图片的数量小于5时则不进行叠加操作。When the picture obtained by the photographing is stored, the mobile terminal stores the photographing time and the like together, and the superimposing module 30 determines whether the image to be processed acquired by the obtaining module 20 is a continuously photographed image, for example, determining each of the to-be-processed images. Whether the picture is a picture obtained by photographing at intervals of time-lapse photographing, or determining whether each photographing moment of the to-be-processed picture is a time interval of continuous interval timing photographing, of course, for convenience of processing, photographing may be obtained when photographing The pictures are sorted or numbered in chronological order. During processing, it is only necessary to determine whether each picture in the picture to be processed is a continuously arranged picture or to determine whether the number of each picture in the picture to be processed is continuous. When each picture in the to-be-processed picture is a continuously taken picture, the superimposing module 30 superimposes the to-be-processed picture to generate a target picture, wherein, when performing image superimposition, the following may be adopted. Performing a weighted average superposition process on the luminance values of each picture in the picture, that is, assigning a higher weight coefficient to the picture with higher luminance value in the picture to be processed, and assigning a lower picture to the picture with lower brightness value in the picture to be processed. Weight coefficient. In other embodiments, the number of pictures to be processed may be limited. For example, when the number of pictures to be processed is greater than or equal to 5, the operation of superimposing the picture to be processed is performed, and when the number of pictures to be processed is less than 5 Then no overlay operation is performed.
本实施例的移动终端可以应用于手机等移动终端,当然,本实施例中,在待处理图片中存在间断拍摄的图片时,即待处理图片中的图片不全为连续拍摄的图片,可以分别叠加待处理图片中连续拍摄的图片。The mobile terminal in this embodiment can be applied to a mobile terminal such as a mobile phone. Of course, in the embodiment, when there are intermittently taken pictures in the to-be-processed picture, the pictures in the to-be-processed picture are not all consecutively taken pictures, and may be superimposed separately. Continuously taken pictures in the image to be processed.
参照图3,图3为30张定时拍照操作获得的图片的亮度分布图,即根据30张定时拍照操作获得的图片的亮度值以及每一张图片对应的拍照时刻形成的亮度分布图,图3中预设阈值为50,且图中存在亮度值大于50的连续拍摄的图片组,因此,通过叠加模块30叠加该待处理图片以生成目标图片,例如,在定时拍照操作获得的图片为拍摄闪电获得的图片时,则通过叠加模块30叠加后生成的目标图片能够清晰的体现闪电的形状。Referring to FIG. 3, FIG. 3 is a brightness distribution diagram of a picture obtained by 30 time-lapse photographing operations, that is, a brightness distribution value of a picture obtained according to 30 time-lapse photographing operations and a brightness distribution map formed by photographing moments corresponding to each picture, FIG. 3 The preset threshold is 50, and there are consecutively captured groups of pictures whose luminance values are greater than 50. Therefore, the to-be-processed picture is superimposed by the overlay module 30 to generate a target picture. For example, the picture obtained by the timed photographing operation is a lightning strike. When the obtained image is obtained, the target image generated by superimposing the overlay module 30 can clearly reflect the shape of the lightning.
在其他实施例中,移动终端可以设置一组或多组预设亮度值,然后在拍照模块10进行每隔预设时间间隔进行曝光拍照操作时,实时计算曝光拍照操作获得的图片的亮度;在亮度大于预设亮度值时,将该图片作为待处理图片,然后执行实时计算曝光拍照操作获得的图片的亮度的步骤;在亮度小于或等于预设亮度值时,叠加所述待处理图片以生成目标图片,并删除待处理图片及曝光拍照操作当前获得的所有的图片。即在每次拍照获得到图片时,判断当前图片的亮度是否大于预设亮度值,若当前图片的亮度大于预设亮度值,则基于当前图片更新待处理图片,即将当前图片添加至待处理图片;当前图片的亮度小于或等于预设亮度值,则叠加所述待处理图片以生成目标图片,并删除待处理图片中的图片,当然待处理图片的数量大于1,即在待处理图片的数量大于1时叠加所述待处理图片以生成目标图片。In other embodiments, the mobile terminal may set one or more sets of preset brightness values, and then calculate the brightness of the picture obtained by the exposure photographing operation in real time when the photographing module 10 performs the exposure photographing operation every preset time interval; When the brightness is greater than the preset brightness value, the picture is taken as the picture to be processed, and then the step of calculating the brightness of the picture obtained by the exposure taking operation in real time is performed; when the brightness is less than or equal to the preset brightness value, the picture to be processed is superimposed to generate Target the image and delete all the images currently available for the pending image and the exposure photo operation. That is, when the picture is obtained, the brightness of the current picture is greater than the preset brightness value. If the brightness of the current picture is greater than the preset brightness value, the picture to be processed is updated based on the current picture, and the current picture is added to the picture to be processed. If the brightness of the current picture is less than or equal to the preset brightness value, the picture to be processed is superimposed to generate a target picture, and the picture in the picture to be processed is deleted, of course, the number of pictures to be processed is greater than 1, that is, the number of pictures to be processed When it is greater than 1, the to-be-processed picture is superimposed to generate a target picture.
其中,预设亮度值为移动终端预先设置的亮度,本实施例中,可以根据不同的环境设置不同的预设亮度值,譬如根据天气、时间等环境因素以及可能会进行拍照图片的景物等因素设置不同的预设亮度值;由于本实施例的移动终端用于处理拍摄瞬间出现的物体的图片,即图片中除瞬间出现的物体之 外的其他景物是不变的或者基本是不变的,因此可以将拍摄的包含瞬间出现的物体的图片之外的任一张图片的亮度值作为当前拍照环境的预设亮度值,当然也可以在拍照前通过其他方式确定当前拍照环境的预设亮度值。The preset brightness value is a preset brightness of the mobile terminal. In this embodiment, different preset brightness values may be set according to different environments, such as environmental factors such as weather and time, and scenes that may take pictures. Setting a different preset brightness value; because the mobile terminal of the embodiment is used to process a picture of an object that appears in an instant of shooting, that is, an object that appears in the picture except for an instant The other scenes are unchanged or basically unchanged, so the brightness value of any picture other than the picture containing the momentarily appearing object can be taken as the preset brightness value of the current photographing environment, of course, The preset brightness value of the current photographing environment is determined by other means before photographing.
本实施例中,通过拍照模块10每隔预设时间间隔进行曝光拍照操作,接着在曝光拍照操作完成时,获取模块20基于拍照操作获取到的图片的亮度在曝光拍照操作获得的图片中获取待处理图片,然后在待处理图片为连续拍摄的图片时,叠加模块30叠加待处理图片以生成目标图片,实现了根据曝光拍照操作获得的图片中亮度大于其他图片亮度的图片得到目标图片,使得目标图片中瞬时出现的景象更加清晰,譬如采用本实施例的移动终端对连续拍照的闪电等景象的图片进行叠加处理,叠加生成的目标图片中的闪电等景象更加清晰,提高了用户体验。进一步地,采用本实施例的移动终端还能够捕捉运动速度较快的物体的运动轨迹,进而使得移动终端的拍照功能更加丰富。In this embodiment, the photographing module 10 performs an exposure photographing operation every preset time interval, and then, when the exposure photographing operation is completed, the brightness of the image acquired by the obtaining module 20 based on the photographing operation is acquired in the image obtained by the exposure photographing operation. Processing the picture, and then, when the picture to be processed is a continuously taken picture, the superimposing module 30 superimposes the picture to be processed to generate a target picture, and realizes a picture in which the brightness of the picture obtained according to the exposure photographing operation is greater than the brightness of other pictures to obtain a target picture, so that the target is obtained. The scene that appears instantaneously in the picture is more clear. For example, the mobile terminal of the embodiment superimposes the picture of the scene such as lightning that is continuously photographed, and the scene of the lightning generated in the superimposed target picture is more clear, thereby improving the user experience. Further, the mobile terminal of the embodiment can also capture the motion trajectory of the object with a faster moving speed, thereby further enriching the photographing function of the mobile terminal.
基于第一实施例提出本发明图片处理装置的第二实施例,参照图4,在本实施例中,叠加模块30包括:A second embodiment of the image processing apparatus of the present invention is proposed based on the first embodiment. Referring to FIG. 4, in this embodiment, the overlay module 30 includes:
第一获取单元31,设置为在所述待处理图片包含多组连续拍摄的图片组时,获取每个待处理图片对应的亮度值中最大亮度值的图片所在的第一图片组;The first obtaining unit 31 is configured to: when the to-be-processed picture includes a plurality of groups of consecutively captured picture groups, acquire a first picture group in which a picture of a maximum brightness value of each of the brightness values corresponding to the picture to be processed is located;
待处理图片包含多组连续拍摄的图片组是指待处理图片中每个图片组均不与其他图片组的拍照时刻连续,此时,将待处理图片对应的亮度值中最大亮度值的图片所在的图片组作为第一图片组。The picture to be processed includes multiple groups of consecutively taken picture groups. The picture group in the picture to be processed is not consistent with the picture time of other picture groups. In this case, the picture with the maximum brightness value of the brightness value corresponding to the picture to be processed is located. The picture group is the first picture group.
第二获取单元32,设置为获取所述图片组中除所述第一图片组之外的第二图片组的最大亮度值;The second obtaining unit 32 is configured to acquire a maximum brightness value of the second group of pictures other than the first group of pictures in the group of pictures;
其中,第二图片组为待处理图片的图片组中除第一图片组之外的图片组。第二获取单元32获取每个第二图片组的最大亮度值。The second picture group is a picture group other than the first picture group in the picture group of the picture to be processed. The second obtaining unit 32 acquires the maximum brightness value of each second picture group.
第一叠加单元33,设置为在第二图片组的最大亮度值与所述第一图片组的最大亮度值之间的亮度差小于预设阈值时,分别叠加所述第一图片组以及 最大亮度值与所述第一图片组的最大亮度值之间的亮度差小于预设阈值的第二图片组以生成目标图片。The first superimposing unit 33 is configured to superimpose the first picture group and the first picture group respectively when the brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group is less than a preset threshold A second group of pictures having a luminance difference between the maximum luminance value and the maximum luminance value of the first group of pictures is less than a preset threshold to generate a target picture.
其中,预设阈值为预设的亮度差,通过第一叠加单元43分别叠加第一图片组以及最大亮度值与第一图片组的最大亮度值之间的亮度差小于预设阈值的第二图片组以生成目标图片,能够获得多张目标图片,并能够确保每个图片组叠加后形成的目标图片的准确性以及一致性,避免因拍照操作及图片处理过程的误差而造成生成的目标图片与其他目标图片相去甚远或者未包括目标景象等现象。The preset threshold is a preset brightness difference, and the first picture group is superimposed by the first superimposing unit 43 and the second picture with a brightness difference between the maximum brightness value and the maximum brightness value of the first picture group is less than a preset threshold. By generating a target image, the group can obtain multiple target images, and can ensure the accuracy and consistency of the target image formed by superimposing each image group, and avoid the target image generated by the error of the photographing operation and the image processing process. Other target images are far apart or do not include the target scene.
可选地,在其他实施例中,叠加模块30还包括:第二叠加单元,设置为在第二图片组的最大亮度值与所述第一图片组的最大亮度值之间的亮度差大于或等于预设阈值时,叠加所述第一图片组以生成目标图片。Optionally, in other embodiments, the superimposing module 30 further includes: a second superimposing unit, configured to set a brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group to be greater than or When the threshold is equal to the preset threshold, the first group of pictures is superimposed to generate a target picture.
待处理图片中第二图片组的最大亮度值与所述第一图片组的最大亮度值之间的亮度差大于或等于预设阈值时,第二叠加单元只叠加第一图片组以生成目标图片,以避免因拍照操作及图片处理过程的误差而造成生成的目标图片与其他目标图片相去甚远或者未包括目标景象等现象。When the brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group in the to-be-processed picture is greater than or equal to a preset threshold, the second superimposing unit only superimposes the first picture group to generate a target picture. In order to avoid the phenomenon that the target image generated by the camera operation and the image processing process is far away from other target images or does not include the target scene.
参照图5,图5为50张定时拍照获得的图片的亮度分布图,即根据50张定时拍照获得的图片的亮度值以及每一张图片对应的拍照时刻形成的亮度分布图,图5中预设阈值为50,且图中存在两组亮度值大于50的连续拍摄的图片组,可以预设阈值可以设置为10,由图可知在第二图片组的最大亮度值与第一图片组的最大亮度值之间的亮度差小于预设阈值10,因此,第一叠加单元43分别叠加这两组图片组生成两个目标图片,例如,在定时拍照获得的图片为拍摄闪电获得的图片时,则通过第一叠加单元43处理后能够获得两张不同的包含闪电的图片。Referring to FIG. 5, FIG. 5 is a brightness distribution diagram of a picture obtained by taking 50 timed photographs, that is, a brightness distribution value of a picture obtained according to 50 time-lapse photographs and a brightness distribution map formed by photographing moments corresponding to each picture, and FIG. Let the threshold be 50, and there are two consecutive groups of pictures with brightness values greater than 50 in the figure. The preset threshold can be set to 10. The maximum brightness value of the second picture group and the maximum of the first picture group can be seen from the figure. The brightness difference between the brightness values is less than the preset threshold value 10. Therefore, the first superimposing unit 43 respectively superimposes the two groups of picture groups to generate two target pictures, for example, when the picture obtained by timing photographing is a picture obtained by photographing lightning, After processing by the first superimposing unit 43, two different pictures containing lightning can be obtained.
本实施例通过在所述待处理图片包含多组连续拍摄的图片组时,第一获取单元31获取待处理图片对应的亮度值中最大亮度值的图片所在的第一图片组,接着第二获取单元32获取所述图片组中除所述第一图片组之外的第二图片组的最大亮度值,然后在有第二图片组的最大亮度值与所述第一图片组的最大亮度值之间的亮度差小于预设阈值时,第一叠加单元33分别叠加所述第一图片组以及最大亮度值与所述第一图片组的最大亮度值之间的亮 度差小于预设阈值的第二图片组以生成目标图片,实现了根据预设阈值叠加待处理图片中连续拍摄的图片组,确保了每个目标图片的准确性以及一致性,避免因拍照操作及图片处理过程的误差而造成生成的目标图片与其他目标图片相差甚远或者未包括目标景象等现象。In this embodiment, when the to-be-processed picture includes multiple sets of consecutively captured picture groups, the first acquiring unit 31 acquires the first picture group in which the picture with the highest brightness value of the brightness value corresponding to the picture to be processed is located, and then obtains the second picture group. The unit 32 obtains a maximum brightness value of the second picture group except the first picture group in the picture group, and then has a maximum brightness value of the second picture group and a maximum brightness value of the first picture group. When the brightness difference between the two is less than the preset threshold, the first superimposing unit 33 respectively superimposes the first picture group and the brightness between the maximum brightness value and the maximum brightness value of the first picture group The second picture group whose degree difference is smaller than the preset threshold is used to generate the target picture, and the picture group continuously captured in the to-be-processed picture is superimposed according to the preset threshold, thereby ensuring the accuracy and consistency of each target picture, and avoiding the photographing operation. And the error of the image processing process causes the generated target image to be far from the other target images or does not include the target scene.
基于第一实施例提出本发明图片处理装置的第三实施例,参照图6,在本实施例中,获取模块20包括:A third embodiment of the image processing apparatus of the present invention is proposed based on the first embodiment. Referring to FIG. 6, in the embodiment, the obtaining module 20 includes:
第一图片获取单元21,设置为在所述曝光拍照操作完成时,基于拍照操作获取到的图片的亮度在所述曝光拍照操作获得的图片中获取亮度大于预设亮度阈值的图片;The first picture obtaining unit 21 is configured to, when the exposure photographing operation is completed, obtain a picture whose brightness is greater than a preset brightness threshold value in a picture obtained by the exposure photographing operation according to a brightness of a picture acquired according to the photographing operation;
其中,预设亮度阈值为移动终端预先设置的亮度,本实施例中,预设亮度阈值根据移动终端的拍照功能设置,当然在设置预设亮度阈值时应尽量考虑拍照环境,例如,移动终端可以根据不同的环境设置不同的预设亮度阈值,譬如根据天气、时间等环境因素以及可能会进行拍照图片的景物等因素设置不同的预设亮度阈值;由于本实施例的移动终端用于处理拍摄瞬间出现的物体的图片,即图片中除瞬间出现的物体之外的其他景物是不变的或者基本是不变的,因此可以将拍摄的包含瞬间出现的物体的图片之外的任一张图片的亮度值作为当前拍照环境的预设亮度阈值,当然也可以在拍照前通过其他方式确定当前拍照环境的预设亮度阈值。The preset brightness threshold is a preset brightness of the mobile terminal. In this embodiment, the preset brightness threshold is set according to the camera function of the mobile terminal. Of course, the camera environment should be considered when setting the preset brightness threshold. For example, the mobile terminal can Setting different preset brightness thresholds according to different environments, for example, setting different preset brightness thresholds according to environmental factors such as weather and time, and scenes that may take pictures, and the like; The picture of the object that appears, that is, the scene other than the object that appears in the picture is constant or basically unchanged, so you can take any picture other than the picture of the object that appears in an instant. The brightness value is used as the preset brightness threshold of the current photographing environment. Of course, the preset brightness threshold of the current photographing environment may be determined by other methods before photographing.
第二图片获取单元22,设置为在获取的亮度大于预设亮度阈值的图片中获取待处理图片,其中,所述待处理图片的亮度大于获取的亮度大于预设亮度阈值的图片中除待处理图片之外的其他图片的亮度。The second picture obtaining unit 22 is configured to obtain a to-be-processed picture in the picture whose brightness is greater than the preset brightness threshold, wherein the brightness of the to-be-processed picture is greater than the obtained picture in which the brightness is greater than the preset brightness threshold. The brightness of other pictures outside the picture.
本实施例通过在所述曝光拍照操作完成时,第一图片获取单元21基于拍照操作获取到的图片的亮度在所述曝光拍照操作获得的图片中获取亮度大于预设亮度阈值的图片,接着第二图片获取单元22在获取的亮度大于预设亮度阈值的图片中获取待处理图片,实现了根据预设亮度阈值获取待处理图片,提高了待处理图片获取的准确率,进而保证了目标图片的准确性。 In this embodiment, when the exposure photographing operation is completed, the first picture acquiring unit 21 obtains a picture whose brightness is greater than a preset brightness threshold value in the picture obtained by the exposure photographing operation based on the brightness of the picture acquired by the photographing operation, and then The image acquisition unit 22 obtains the to-be-processed image in the obtained image with the brightness greater than the preset brightness threshold, and implements the image to be processed according to the preset brightness threshold, thereby improving the accuracy of the image to be processed, thereby ensuring the target image. accuracy.
基于第一实施例提出本发明图片处理装置的第四实施例,参照图7,在本实施例中,该图片处理装置还包括:A fourth embodiment of the image processing apparatus of the present invention is proposed based on the first embodiment. Referring to FIG. 7, in the embodiment, the image processing apparatus further includes:
存储模块40,设置为实时存储所述曝光拍照操作获得的图片及对应的拍照时刻,并计算当前存储的图片的个数;The storage module 40 is configured to store a picture obtained by the exposure photographing operation and a corresponding photographing moment in real time, and calculate the number of currently stored pictures;
在移动终端进行曝光拍照时,存储模块40存储拍照操作获得的图片及该图片对应的拍照时刻,并计算当前时存储的图片的个数,在其他实施例中,也可以在拍照时对拍照获得的图片按照时间顺序进行依次编号,根据当前图片的编号与第一张定时拍照获得的图片进行相应的计算即可得到当前时存储的图片的个数。When the mobile terminal performs the exposure photographing, the storage module 40 stores the image obtained by the photographing operation and the photographing moment corresponding to the image, and calculates the number of the images stored at the current time. In other embodiments, the photographing may be obtained when photographing. The pictures are sequentially numbered in chronological order, and the number of pictures currently stored at the current time can be obtained according to the number of the current picture and the picture obtained by the first timed picture.
删除模块50,设置为在当前存储的图片的个数达到预设阈值时,删除所述拍照时刻最早的图片。The deleting module 50 is configured to delete the picture with the earliest photographing time when the number of currently stored pictures reaches a preset threshold.
其中,预设阈值为用户自行设定的移动终端存储定时拍照获得图片的最大值,例如,在定时拍照的时间间隔为1秒时,可以将预设阈值设置为180,此时移动终端只保存最近3分钟拍照获得的图片,在当前存储的图片的数量的大于预设阈值时,删除模块50删除拍照时间最早的图片,使得移动终端存储的图片的数量小于或等于预设阈值,进而保证移动终端当前拥有足够的存储空间存储后续拍摄的图片。The preset threshold is a maximum value of the picture obtained by the user-set mobile terminal to store the timed photograph. For example, when the time interval of the timed photographing is 1 second, the preset threshold may be set to 180, and the mobile terminal only saves the mobile terminal. The picture obtained by photographing in the last 3 minutes, when the number of currently stored pictures is greater than a preset threshold, the deleting module 50 deletes the picture with the earliest picture time, so that the number of pictures stored by the mobile terminal is less than or equal to a preset threshold, thereby ensuring the movement. The terminal currently has enough storage space to store subsequent pictures.
本实施例中,通过存储模块40实时存储所述曝光拍照操作获得的图片及对应的拍照时刻,并计算当前存储的图片的个数,接着在当前存储的图片的个数达到预设阈值时,删除模块50删除所述拍照时刻最早的图片,使得移动终端存储的图片的数量小于或等于预设阈值,进而保证移动终端当前拥有足够的存储空间存储后续拍摄的图片。In this embodiment, the picture obtained by the exposure photographing operation and the corresponding photographing time are stored in real time by the storage module 40, and the number of currently stored pictures is calculated, and then when the number of currently stored pictures reaches a preset threshold, The deleting module 50 deletes the picture with the earliest photographing time, so that the number of pictures stored by the mobile terminal is less than or equal to a preset threshold, thereby ensuring that the mobile terminal currently has enough storage space to store the subsequently taken pictures.
本发明实施例进一步提供一种图片处理方法。参照图8,图8为本发明图片处理方法第一实施例的流程示意图。The embodiment of the invention further provides a picture processing method. Referring to FIG. 8, FIG. 8 is a schematic flowchart diagram of a first embodiment of a picture processing method according to the present invention.
在本实施例中,该图片处理方法包括:In this embodiment, the image processing method includes:
步骤S10,每隔预设时间间隔进行曝光拍照操作;Step S10, performing an exposure photographing operation every preset time interval;
本实施例中,在移动终端进行每隔预设时间间隔进行曝光拍照操作之 前,需要配置相机应用的连拍以及自动曝光等功能,譬如,设置每秒拍摄60张图片等。在其他实施例中,可以在接收到拍照指令时,移动终端每隔预设时间间隔进行曝光拍照操作,其中,拍照指令的触发方式包括:基于预设控件触发的触摸操作触发拍照指令,例如,移动终端的某菜单中设有拍照选项,用户在点击该菜单中的拍照选项时可以触发拍照指令;在侦测到基于图片处理界面触发的滑动触摸操作时触发拍照指令,例如,移动终端安装有本实施例的移动终端对应的相机应用等,用户可以通过打开该应用进入拍照界面,然后在侦测到基于图片处理界面触发的滑动触摸操作时触发拍照指令;在所述移动终端设有压力传感器时,拍照指令可以通过该压力传感器触发,压力传感器可以设置于移动终端的左侧、右侧、顶测或者底侧等多个侧面等,在侦测到压力传感器发生变化且该变化满足预设条件时,均可以触发该拍照指令,其中,预设条件可以为压力传感器的压力值大于或等于预设压力阈值、或按压压力传感器的按压操作的按压次数大于或等于预设次数阈值,即在检测到压力传感器的压力值大于或等于预设压力阈值时、或在检测到按压操作且所述按压操作的按压次数大于或等于预设次数阈值时,均可以触发该拍照指令,预设压力阈值以及预设次数阈值可以由用户根据自己的习惯或喜好自行设定,当然,预设压力阈值以及预设次数阈值也可以为系统默认值,当然,在其他实施例中,也可以在检测到对压力传感器的按压操作、且压力传感器的压力值大于第二预设压力阈值、且按压操作的按压时长大于或等于预设时长阈值时,触发该拍照指令。In this embodiment, the mobile terminal performs an exposure photographing operation every preset time interval. Before, you need to configure the camera's continuous shooting and auto exposure functions, such as setting up 60 images per second. In other embodiments, when the photographing instruction is received, the mobile terminal performs an exposure photographing operation at a preset time interval, wherein the triggering manner of the photographing instruction includes: triggering a photographing instruction based on a touch operation triggered by the preset control, for example, A photographing option is provided in a menu of the mobile terminal, and the user can trigger a photographing instruction when clicking the photographing option in the menu; and triggering a photographing instruction when detecting a sliding touch operation triggered based on the image processing interface, for example, the mobile terminal is installed with In the camera application or the like corresponding to the mobile terminal of the embodiment, the user can enter the photographing interface by opening the application, and then trigger a photographing instruction when detecting a sliding touch operation triggered by the image processing interface; and the pressure sensor is provided at the mobile terminal. When the camera command is triggered by the pressure sensor, the pressure sensor can be disposed on the left side, the right side, the top test or the bottom side of the mobile terminal, etc., and the change of the pressure sensor is detected and the change meets the preset. The camera command can be triggered when the condition is met, wherein the preset The pressure value of the pressure sensor may be greater than or equal to the preset pressure threshold, or the pressing time of pressing the pressure sensor may be greater than or equal to the preset number threshold, that is, when the pressure value of the pressure sensor is detected to be greater than or equal to the preset pressure threshold. The photographing instruction may be triggered when the pressing operation is detected and the pressing number of the pressing operation is greater than or equal to the preset number of times threshold, and the preset pressure threshold and the preset number of thresholds may be determined by the user according to their own habits or preferences. The preset pressure threshold and the preset number threshold may also be system default values. Of course, in other embodiments, the pressing operation of the pressure sensor may be detected, and the pressure value of the pressure sensor is greater than the first value. When the preset pressure threshold is two, and the pressing duration of the pressing operation is greater than or equal to the preset duration threshold, the photographing instruction is triggered.
步骤S20,在所述曝光拍照操作完成时,基于拍照操作获取到的图片的亮度在所述曝光拍照操作获得的图片中获取待处理图片,其中,所述待处理图片的亮度大于所述曝光拍照操作获得图片中除待处理图片之外的其他图片的亮度;In step S20, when the exposure photographing operation is completed, the brightness of the image acquired based on the photographing operation acquires a to-be-processed image in the image obtained by the exposure photographing operation, wherein the brightness of the to-be-processed image is greater than the exposure photographing The operation obtains the brightness of other pictures in the picture other than the picture to be processed;
其中,待处理图片为曝光拍照操作获得的图片中亮度大于除待处理图片之外的其他图片的亮度的图片,即待处理图片中的最小亮度大于曝光拍照操作获得图片中亮度大于除待处理图片之外的其他图片的亮度。本实施例中,可以根据曝光拍照操作获得图片的亮度以及每个图片对应的拍照时刻生成亮度分布图,在生成亮度分布图中存在波峰时,若该波峰对应的图片的亮度 大于亮度分布图中其他位置对应图片的亮度,则该波峰对应的图片即为待处理图片。本实施例中,可以在曝光拍照操作完成之后计算曝光拍照操作获得的图片的亮度,也可以在曝光拍照操作获得每一张图片时计算曝光拍照操作获得的图片的亮度;其中,曝光拍照操作获得的图片的亮度计算过程为:获取图片的RBG值,然后根据图片的RBG值计算对应亮度,其中,根据图片的RBG值计算亮度计算公式为:亮度Y=0.3R+0.6G+0.1B,因此,一种情况下,可以通过首先获取图片的RGB值,然后根据亮度值计算公式分别计算每个图片的亮度;又一种情况下,可以通过分别获取每一张图片中每个像素点的RGB值,然后根据亮度值计算公式分别计算每一张图片中每个像素点的亮度,最后分别将每一张图片中所有像素点的亮度进行加权平均即可获得每一张图片的亮度。曝光拍照操作完成是指用户停止移动终端的曝光拍照操作,当然,也可以是曝光拍照操作的持续时间达到设定的时间或者曝光拍照操作的获得的图片达到预设的数量等而使移动终端停止曝光拍照操作,此时分别计算所述曝光拍照操作获得的每个图片的亮度。The picture to be processed is a picture in which the brightness of the picture obtained by the exposure taking operation is greater than the brightness of the picture other than the picture to be processed, that is, the minimum brightness in the picture to be processed is larger than the exposure picture operation, and the brightness in the picture is greater than the picture to be processed. The brightness of other pictures outside. In this embodiment, the brightness of the picture and the picture time corresponding to each picture are generated according to the exposure photographing operation, and the brightness of the picture corresponding to the peak is generated when there is a peak in the generated brightness distribution map. If the brightness of the picture corresponding to the other position in the brightness distribution map is greater than the picture, the picture corresponding to the peak is the picture to be processed. In this embodiment, the brightness of the picture obtained by the exposure photographing operation may be calculated after the exposure photographing operation is completed, or the brightness of the image obtained by the exposure photographing operation may be calculated when each image is obtained by the exposure photographing operation; wherein the exposure photographing operation is obtained The brightness calculation process of the picture is: obtaining the RBG value of the picture, and then calculating the corresponding brightness according to the RBG value of the picture, wherein the brightness calculation formula is calculated according to the RBG value of the picture: brightness Y=0.3R+0.6G+0.1B, therefore In one case, the RGB values of the pictures can be first obtained, and then the brightness of each picture can be separately calculated according to the brightness value calculation formula; in another case, the RGB of each pixel point in each picture can be obtained separately. Value, and then calculate the brightness of each pixel in each picture according to the brightness value calculation formula, and finally weight the average of the brightness of all the pixels in each picture to obtain the brightness of each picture. The completion of the exposure photographing operation refers to the user stopping the exposure photographing operation of the mobile terminal. Of course, the mobile terminal may stop when the duration of the exposure photographing operation reaches the set time or the obtained image of the exposure photographing operation reaches a preset number. The photographing operation is exposed, at which time the brightness of each picture obtained by the exposure photographing operation is separately calculated.
步骤S30在所述待处理图片为连续拍摄的图片时,叠加所述待处理图片以生成目标图片。Step S30: When the picture to be processed is a continuously captured picture, the picture to be processed is superimposed to generate a target picture.
在存储拍照获得的图片时,移动终端会将拍照时间等信息进行对应的一并存储,判断获取的待处理图片是否为连续拍摄的图片,譬如判断待处理图片中每个图片是否为间隔定时拍照的时间间隔拍照获得的图片,或者判断待处理图片的每个拍照时刻是否为连续的间隔定时拍照的时间间隔的时刻,当然,为便于处理,可以在拍照时对拍照获得的图片按照时间顺序进行依次排序或者编号,在处理时只需判断待处理图片中每个图片是否为连续排列的图片或者判断待处理图片中每个图片的编号是否连续即可。在待处理图片中每个图片为连续拍摄的图片时,叠加待处理图片以生成目标图片,其中,在进行图片叠加时,可以采用按照待处理图片中每个图片的亮度值进行加权平均的叠加处理,即对于待处理图片中亮度值较高的图片分配较高的权重系数,对于待处理图片中亮度值较低的图片分配较低的权重系数。在其他实施例中,可以对待处理图片的数量进行一定的限制,譬如在待处理图片的数量大于或等于5时,进行叠加所述待处理图片的操作,而在待处理图片的数量小 于5时则不进行叠加操作。When the picture obtained by the photographing is stored, the mobile terminal stores the photographing time and other information correspondingly, and determines whether the acquired image to be processed is a continuously photographed image, for example, determining whether each image in the image to be processed is photographed at intervals. The time interval is taken to take a picture, or it is determined whether each picture time of the picture to be processed is a time interval of consecutive time-lapse picture taking. Of course, for the convenience of processing, the pictures obtained by taking pictures may be chronologically performed during photographing. Sorting or numbering in sequence, it is only necessary to determine whether each picture in the image to be processed is a continuously arranged picture or to determine whether the number of each picture in the picture to be processed is continuous. When each picture in the to-be-processed picture is a continuously taken picture, the picture to be processed is superimposed to generate a target picture, wherein, when performing picture superposition, a superimposition of weighted average according to the brightness value of each picture in the picture to be processed may be adopted. The processing is to assign a higher weight coefficient to the picture with higher brightness value in the picture to be processed, and assign a lower weight coefficient to the picture with lower brightness value in the picture to be processed. In other embodiments, the number of pictures to be processed may be limited. For example, when the number of pictures to be processed is greater than or equal to 5, the operation of superimposing the picture to be processed is performed, and the number of pictures to be processed is small. At 5 o'clock, no superposition operation is performed.
本实施例的移动终端可以应用于手机等移动终端,当然,本实施例中,在待处理图片中存在间断拍摄的图片时,即待处理图片中的图片不全为连续拍摄的图片,可以分别叠加待处理图片中连续拍摄的图片。The mobile terminal in this embodiment can be applied to a mobile terminal such as a mobile phone. Of course, in the embodiment, when there are intermittently taken pictures in the to-be-processed picture, the pictures in the to-be-processed picture are not all consecutively taken pictures, and may be superimposed separately. Continuously taken pictures in the image to be processed.
本实施例中,通过每隔预设时间间隔进行曝光拍照操作,接着在曝光拍照操作完成时,基于拍照操作获取到的图片的亮度在曝光拍照操作获得的图片中获取待处理图片,然后在待处理图片为连续拍摄的图片时,叠加待处理图片以生成目标图片,实现了根据曝光拍照操作获得的图片中亮度大于其他图片亮度的图片得到目标图片,使得目标图片中瞬时出现的景象更加清晰,譬如采用本实施例的移动终端对连续拍照的闪电等景象的图片进行叠加处理,叠加生成的目标图片中的闪电等景象更加清晰,提高了用户体验。进一步地,采用本实施例的移动终端还能够捕捉运动速度较快的物体的运动轨迹,进而使得移动终端的拍照功能更加丰富。In this embodiment, the exposure photographing operation is performed every preset time interval, and then, when the exposure photographing operation is completed, the brightness of the image acquired based on the photographing operation acquires the to-be-processed image in the image obtained by the exposure photographing operation, and then waits When the picture is processed as a continuous picture, the image to be processed is superimposed to generate a target picture, and the picture obtained by the exposure picture operation is brighter than the picture of other pictures, and the target picture is obtained, so that the scene appearing in the target picture is clearer. For example, the mobile terminal of the present embodiment superimposes the picture of the scene such as lightning that is continuously photographed, and the scene of the lightning generated in the superimposed target picture is more clear, thereby improving the user experience. Further, the mobile terminal of the embodiment can also capture the motion trajectory of the object with a faster moving speed, thereby further enriching the photographing function of the mobile terminal.
基于第一实施例提出本发明图片处理方法的第二实施例,参照图9,在本实施例中,步骤S30包括:A second embodiment of the image processing method of the present invention is proposed based on the first embodiment. Referring to FIG. 9, in the embodiment, step S30 includes:
步骤S31,在所述待处理图片包含多组连续拍摄的图片组时,获取每个待处理图片对应的亮度值中最大亮度值的图片所在的第一图片组;Step S31: When the to-be-processed picture includes multiple sets of consecutively captured picture groups, obtain a first picture group in which the picture with the highest brightness value among the brightness values corresponding to each picture to be processed is located;
待处理图片包含多组连续拍摄的图片组是指待处理图片中每个图片组均不与其他图片组的拍照时刻连续,此时,将待处理图片对应的亮度值中最大亮度值的图片所在的图片组作为第一图片组。The picture to be processed includes multiple groups of consecutively taken picture groups. The picture group in the picture to be processed is not consistent with the picture time of other picture groups. In this case, the picture with the maximum brightness value of the brightness value corresponding to the picture to be processed is located. The picture group is the first picture group.
步骤S32,获取所述图片组中除所述第一图片组之外的第二图片组的最大亮度值;Step S32: Acquire a maximum brightness value of the second picture group except the first picture group in the picture group.
其中,第二图片组为待处理图片的图片组中除第一图片组之外的图片组。The second picture group is a picture group other than the first picture group in the picture group of the picture to be processed.
步骤S33,在有第二图片组的最大亮度值与所述第一图片组的最大亮度值之间的亮度差小于预设阈值时,分别叠加所述第一图片组以及最大亮度值与所述第一图片组的最大亮度值之间的亮度差小于预设阈值的第二图片组 以生成目标图片;Step S33, when the brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group is less than a preset threshold, respectively superimposing the first picture group and the maximum brightness value and the a second picture group in which the luminance difference between the maximum luminance values of the first picture group is less than a preset threshold To generate a target image;
其中,预设阈值为预设的亮度差,通过分别叠加第一图片组以及最大亮度值与第一图片组的最大亮度值之间的亮度差小于预设阈值的第二图片组以生成目标图片,能够获得多张目标图片,并能够确保每个图片组叠加后形成的目标图片的准确性以及一致性,避免因拍照操作及图片处理过程的误差而造成生成的目标图片与其他目标图片相去甚远或者未包括目标景象等现象。The preset threshold is a preset brightness difference, and the target picture is generated by superimposing the first picture group and the second picture group whose luminance difference between the maximum brightness value and the maximum brightness value of the first picture group is less than a preset threshold. , can obtain multiple target images, and can ensure the accuracy and consistency of the target image formed by superimposing each image group, avoiding the target image generated by the camera operation and the image processing process, which is different from other target images. Far or not including the target scene.
可选地,在其他实施例中,步骤S32之后,步骤S30还包括:在第二图片组的最大亮度值与所述第一图片组的最大亮度值之间的亮度差大于或等于预设阈值时,叠加所述第一图片组以生成目标图片。Optionally, in other embodiments, after step S32, step S30 further includes: the brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group is greater than or equal to a preset threshold. At the time, the first group of pictures is superimposed to generate a target picture.
待处理图片中第二图片组的最大亮度值与所述第一图片组的最大亮度值之间的亮度差大于或等于预设阈值时,第二叠加单元只叠加第一图片组以生成目标图片,以避免因拍照操作及图片处理过程的误差而造成生成的目标图片与其他目标图片相去甚远或者未包括目标景象等现象。When the brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group in the to-be-processed picture is greater than or equal to a preset threshold, the second superimposing unit only superimposes the first picture group to generate a target picture. In order to avoid the phenomenon that the target image generated by the camera operation and the image processing process is far away from other target images or does not include the target scene.
本实施例通过在所述待处理图片包含多组连续拍摄的图片组时,获取每个待处理图片对应的亮度值中最大亮度值的图片所在的第一图片组,接着获取每个所述图片组中除所述第一图片组之外的第二图片组的最大亮度值,然后在有第二图片组的最大亮度值与所述第一图片组的最大亮度值之间的亮度差小于预设阈值时,分别叠加所述第一图片组以及最大亮度值与所述第一图片组的最大亮度值之间的亮度差小于预设阈值的第二图片组以生成目标图片,实现了根据预设阈值叠加待处理图片中连续拍摄的图片组,确保了每个目标图片的准确性以及一致性,避免因拍照操作及图片处理过程的误差而造成生成的目标图片与其他目标图片相差甚远或者未包括目标景象等现象。In this embodiment, when the to-be-processed picture includes multiple sets of consecutively captured picture groups, the first picture group in which the picture with the highest brightness value of the brightness value corresponding to each picture to be processed is located is obtained, and then each picture is obtained. The maximum brightness value of the second picture group except the first picture group in the group, and then the luminance difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group is less than When the threshold is set, the first picture group and the second picture group whose luminance difference between the maximum brightness value and the maximum brightness value of the first picture group is less than a preset threshold are respectively superimposed to generate a target picture, which is implemented according to the preset The threshold image is superimposed on the consecutively captured image groups in the image to be processed, ensuring the accuracy and consistency of each target image, and avoiding the target image generated by the camera operation and the image processing process being far from the other target images or Does not include the phenomenon of the target scene.
基于第一实施例提出本发明图片处理方法的第三实施例,参照图10,在本实施例中,步骤S20包括,A third embodiment of the image processing method of the present invention is proposed based on the first embodiment. Referring to FIG. 10, in the embodiment, step S20 includes
步骤S21,在所述曝光拍照操作完成时,基于拍照操作获取到的图片的亮度在所述曝光拍照操作获得的图片中获取亮度大于预设亮度阈值的图片;Step S21, when the exposure photographing operation is completed, the brightness of the picture acquired based on the photographing operation acquires a picture whose brightness is greater than a preset brightness threshold value in the picture obtained by the exposure photographing operation;
其中,预设亮度阈值为移动终端预先设置的亮度,本实施例中,预设亮 度阈值根据移动终端的拍照功能设置,当然在设置预设亮度阈值时应尽量考虑拍照环境,例如,移动终端可以根据不同的环境设置不同的预设亮度阈值,譬如根据天气、时间等环境因素以及可能会进行拍照图片的景物等因素设置不同的预设亮度阈值;由于本实施例的移动终端用于处理拍摄瞬间出现的物体的图片,即图片中除瞬间出现的物体之外的其他景物是不变的或者基本是不变的,因此可以将拍摄的包含瞬间出现的物体的图片之外的任一张图片的亮度值作为当前拍照环境的预设亮度阈值,当然也可以在拍照前通过其他方式确定当前拍照环境的预设亮度阈值。The preset brightness threshold is a preset brightness of the mobile terminal. In this embodiment, the preset brightness is The threshold is set according to the camera function of the mobile terminal. Of course, the camera environment should be considered as much as possible when setting the preset brightness threshold. For example, the mobile terminal can set different preset brightness thresholds according to different environments, for example, according to environmental factors such as weather and time. The preset brightness threshold may be set by factors such as the scene of the photographed picture; the mobile terminal of the embodiment is used to process the picture of the object appearing at the moment of shooting, that is, the scene other than the object that appears in the picture is not Changed or basically unchanged, so the brightness value of any picture other than the picture containing the momentarily appearing object can be taken as the preset brightness threshold of the current photographing environment, and of course, other methods can be used before photographing. Determine the preset brightness threshold of the current photo environment.
步骤S22,在获取的亮度大于预设亮度阈值的图片中获取待处理图片,其中,所述待处理图片的亮度大于获取的亮度大于预设亮度阈值的图片中除待处理图片之外的其他图片的亮度。Step S22: Acquire a to-be-processed picture in the acquired picture whose brightness is greater than the preset brightness threshold, wherein the brightness of the to-be-processed picture is greater than the picture other than the to-be-processed picture in the picture whose brightness is greater than the preset brightness threshold. Brightness.
本实施例通过在所述曝光拍照操作完成时,基于拍照操作获取到的图片的亮度在所述曝光拍照操作获得的图片中获取亮度大于预设亮度阈值的图片,接着在获取的亮度大于预设亮度阈值的图片中获取待处理图片,实现了根据预设亮度阈值获取待处理图片,提高了待处理图片获取的准确率,进而保证了目标图片的准确性。In this embodiment, when the exposure photographing operation is completed, the brightness of the image acquired based on the photographing operation acquires a picture whose brightness is greater than the preset brightness threshold value in the image obtained by the exposure photographing operation, and then the acquired brightness is greater than the preset. The image to be processed is obtained in the image of the brightness threshold, and the image to be processed is obtained according to the preset brightness threshold, thereby improving the accuracy of the image to be processed, thereby ensuring the accuracy of the target image.
基于第一实施例提出本发明图片处理方法的第四实施例,参照图11,在本实施例中,步骤S10与步骤S20之间,该图片处理方法还包括:A fourth embodiment of the image processing method of the present invention is proposed based on the first embodiment. Referring to FIG. 11, in the embodiment, between step S10 and step S20, the image processing method further includes:
步骤S40,实时存储所述曝光拍照操作获得的图片及对应的拍照时刻,并计算当前存储的图片的个数;Step S40, storing a picture obtained by the exposure photographing operation and a corresponding photographing moment in real time, and calculating the number of currently stored pictures;
在移动终端进行曝光拍照时,存储拍照操作获得的图片及该图片对应的拍照时刻,并计算当前时存储的图片的个数,在其他实施例中,也可以在拍照时对拍照获得的图片按照时间顺序进行依次编号,根据当前图片的编号与第一张定时拍照获得的图片进行相应的计算即可得到当前时存储的图片的个数。When the mobile terminal performs the exposure photographing, the image obtained by the photographing operation and the photographing moment corresponding to the photograph are stored, and the number of the photographs stored at the current time is calculated. In other embodiments, the photographed photograph may also be photographed according to the photographing. The time sequence is sequentially numbered, and the number of pictures currently stored at the current time can be obtained according to the number of the current picture and the picture obtained by the first timed picture.
步骤S50,在当前存储的图片的个数达到预设阈值时,删除所述拍照时刻最早的图片。In step S50, when the number of currently stored pictures reaches a preset threshold, the picture with the earliest photographing time is deleted.
其中,预设阈值为用户自行设定的移动终端存储定时拍照获得图片的最 大值,例如,在定时拍照的时间间隔为1秒时,可以将预设阈值设置为180,此时移动终端只保存最近3分钟拍照获得的图片,在当前存储的图片的数量的大于预设阈值时,删除拍照时间最早的图片,使得移动终端存储的图片的数量小于或等于预设阈值,进而保证移动终端当前拥有足够的存储空间存储后续拍摄的图片。The preset threshold is a mobile terminal that is set by the user and stores the timed photo to obtain the most pictures. A large value, for example, when the time interval of the timed photo is 1 second, the preset threshold can be set to 180. At this time, the mobile terminal only saves the picture obtained by taking the picture in the last 3 minutes, and the number of currently stored pictures is greater than the preset. When the threshold is used, the picture with the earliest photographing time is deleted, so that the number of pictures stored by the mobile terminal is less than or equal to a preset threshold, thereby ensuring that the mobile terminal currently has enough storage space to store the subsequently taken pictures.
本实施例中,通过实时存储所述曝光拍照操作获得的图片及对应的拍照时刻,并计算当前存储的图片的个数,接着在当前存储的图片的个数达到预设阈值时,删除所述拍照时刻最早的图片,使得移动终端存储的图片的数量小于或等于预设阈值,进而保证移动终端当前拥有足够的存储空间存储后续拍摄的图片。In this embodiment, the picture obtained by the exposure photographing operation and the corresponding photographing time are stored in real time, and the number of currently stored pictures is calculated, and then when the number of currently stored pictures reaches a preset threshold, the The picture of the earliest picture is taken, so that the number of pictures stored by the mobile terminal is less than or equal to a preset threshold, thereby ensuring that the mobile terminal currently has enough storage space to store the subsequently taken pictures.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention in essence or the contribution to the related art can be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, air conditioner, or network device, etc.) to perform the methods described in various embodiments of the present invention.
以上仅为本发明的可选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only an alternative embodiment of the present invention, and thus does not limit the scope of the invention, and the equivalent structure or equivalent process transformation made by using the specification and the drawings of the present invention, or directly or indirectly applied to other related technologies. The fields are all included in the scope of patent protection of the present invention.
工业实用性Industrial applicability
上述技术方案使目标图片中瞬时出现的景象更加清晰,还能够捕捉运动速度较快的物体的运动轨迹,进而使得移动终端的拍照功能更加丰富。 The above technical solution makes the scene appearing in the target picture more clear, and can also capture the motion track of the object with faster moving speed, thereby making the camera function of the mobile terminal more abundant.

Claims (20)

  1. 一种图片处理装置,所述图片处理装置包括:A picture processing device, the picture processing device comprising:
    拍照模块,设置为每隔预设时间间隔进行曝光拍照操作;The photographing module is configured to perform an exposure photographing operation every preset time interval;
    获取模块,设置为在所述曝光拍照操作完成时,基于拍照操作获取到的图片的亮度在曝光拍照操作获得的图片中获取待处理图片,其中,所述待处理图片的亮度大于所述曝光拍照操作获得图片中除所述待处理图片之外的其他图片的亮度;Obtaining a module, configured to obtain a to-be-processed image in a picture obtained by the exposure photographing operation, wherein the brightness of the to-be-processed picture is greater than the exposure photo when the exposure photographing operation is completed The operation obtains brightness of other pictures in the picture other than the to-be-processed picture;
    叠加模块,设置为在所述待处理图片为连续拍摄的图片时,叠加所述待处理图片以生成目标图片。And a superimposing module, configured to superimpose the to-be-processed image to generate a target image when the to-be-processed picture is a continuously photographed picture.
  2. 如权利要求1所述的图片处理装置,其中,所述叠加模块包括:The picture processing device of claim 1, wherein the overlay module comprises:
    第一获取单元,设置为在所述待处理图片包含多组连续拍摄的图片组时,获取每个待处理图片对应的亮度值中最大亮度值的图片所在的第一图片组;a first acquiring unit, configured to: when the to-be-processed picture includes a plurality of sets of consecutively captured picture groups, acquire a first picture group in which a picture of a maximum brightness value of each of the brightness values corresponding to the picture to be processed is located;
    第二获取单元,设置为获取所述图片组中除所述第一图片组之外的第二图片组的最大亮度值;a second acquiring unit, configured to acquire a maximum brightness value of the second group of pictures other than the first group of pictures in the group of pictures;
    第一叠加单元,设置为在有第二图片组的最大亮度值与所述第一图片组的最大亮度值之间的亮度差小于预设阈值时,分别叠加所述第一图片组以及最大亮度值与所述第一图片组的最大亮度值之间的亮度差小于预设阈值的第二图片组以生成目标图片。The first superimposing unit is configured to superimpose the first picture group and the maximum brightness respectively when the brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group is less than a preset threshold A second group of pictures having a luminance difference between the value and the maximum luminance value of the first group of pictures is less than a preset threshold to generate a target picture.
  3. 如权利要求2所述的图片处理装置,所述叠加模块还包括:The image processing apparatus according to claim 2, wherein the superimposing module further comprises:
    第二叠加单元,设置为在第二图片组的最大亮度值与所述第一图片组的最大亮度值之间的亮度差大于或等于预设阈值时,叠加所述第一图片组以生成目标图片。a second superimposing unit configured to superimpose the first group of pictures to generate a target when a brightness difference between a maximum brightness value of the second picture group and a maximum brightness value of the first picture group is greater than or equal to a preset threshold image.
  4. 如权利要求1所述的图片处理装置,其中,所述获取模块包括: The picture processing device of claim 1, wherein the obtaining module comprises:
    第一图片获取单元,设置为在所述曝光拍照操作完成时,基于拍照操作获取到的图片的亮度在所述曝光拍照操作获得的图片中获取亮度大于预设亮度阈值的图片;a first picture obtaining unit, configured to: when the exposure photographing operation is completed, obtain a picture whose brightness is greater than a preset brightness threshold value in a picture obtained by the exposure photographing operation according to a brightness of a picture obtained by the photographing operation;
    第二图片获取单元,设置为在获取的亮度大于预设亮度阈值的图片中获取待处理图片,其中,所述待处理图片的亮度大于获取的亮度大于预设亮度阈值的图片中除待处理图片之外的其他图片的亮度。The second picture obtaining unit is configured to obtain a to-be-processed picture in the picture whose brightness is greater than the preset brightness threshold, wherein the brightness of the to-be-processed picture is greater than the picture to be processed in the picture whose brightness is greater than the preset brightness threshold. The brightness of other pictures outside.
  5. 如权利要求1至4任一项所述的图片处理装置,所述图片处理装置还包括:The picture processing device according to any one of claims 1 to 4, further comprising:
    存储模块,设置为实时存储所述曝光拍照操作获得的图片及对应的拍照时刻,并计算当前存储的图片的个数;a storage module, configured to store a picture obtained by the exposure photographing operation and a corresponding photographing moment in real time, and calculate the number of currently stored pictures;
    删除模块,设置为在当前存储的图片的个数达到预设阈值时,删除所述拍照时刻最早的图片。The module is deleted, and when the number of currently stored pictures reaches a preset threshold, the picture with the earliest photographing time is deleted.
  6. 如权利要求1所述的图片处理装置,其中,获取模块,是设置为通过如下方式获取基于拍照操作获取到的图片的亮度:The picture processing device according to claim 1, wherein the obtaining module is configured to acquire the brightness of the picture acquired based on the photographing operation by:
    获取图片的红蓝绿RBG值;Get the red, blue and green RBG values of the image;
    根据所述图片的RBG值计算所述图片的亮度。Calculating the brightness of the picture according to the RBG value of the picture.
  7. 如权利要求6所述的图片处理装置,其中,获取模块,是设置为通过如下方式实现获取图片的红蓝绿RBG值,根据图片的RBG值计算所述图片的亮度:The image processing device of claim 6, wherein the obtaining module is configured to: obtain a red, blue, green, and RBG value of the image by: calculating the brightness of the image according to the RBG value of the image:
    获取所述图片中每个像素点的RBG值;根据所述每个像素点的RBG值计算所述图片中每个像素点的亮度;Obtaining an RBG value of each pixel in the picture; calculating a brightness of each pixel in the picture according to the RBG value of each pixel;
    将所述图片中所有像素点的亮度进行加权平均得到所述图片的亮度。Weighting the luminances of all the pixels in the picture to obtain the brightness of the picture.
  8. 如权利要求1所述的图片处理装置,其中,叠加模块是设置为通过 如下方式实现判断所述待处理图片为连续拍摄的图片:The picture processing device according to claim 1, wherein the superimposing module is set to pass The method for determining that the to-be-processed picture is continuously captured is implemented as follows:
    判断所述待处理图片中每个图片是否为所述预设时间间隔拍照获得的图片;或者,Determining whether each picture in the to-be-processed picture is a picture obtained by taking a picture at the preset time interval; or
    判断所述待处理图片的每个拍照时刻是否为连续的间隔定时拍照的时间间隔的时刻;或者,Determining whether each photographing moment of the to-be-processed picture is a time interval of consecutive interval timing photographing; or
    对拍照获得的图片按照时间顺序进行排序,判断所述待处理图片中每个图片是否为连续排列的图片;或者Sorting the pictures obtained by photographing in chronological order, and determining whether each picture in the to-be-processed picture is a continuously arranged picture; or
    对拍照获得的图片按照时间顺序进行编号,判断所述待处理图片中每个图片的编号是否连续。The pictures obtained by photographing are numbered in chronological order, and it is determined whether the number of each picture in the to-be-processed picture is continuous.
  9. 如权利要求1所述的图片处理装置,其中,拍照模块,是设置为通过如下方式实现每隔预设时间间隔进行曝光拍照操作:The picture processing device according to claim 1, wherein the photographing module is configured to perform an exposure photographing operation every preset time interval by:
    在接收到拍照指令时,每隔预设时间间隔进行曝光拍照操作。When a photographing instruction is received, an exposure photographing operation is performed every preset time interval.
  10. 如权利要求9所述的图片处理装置,其中,所述拍照指令的触发方式包括:The picture processing device of claim 9, wherein the triggering manner of the photographing instruction comprises:
    基于预设控件触发的触摸操作触发拍照指令;或,Triggering a photographing instruction based on a touch operation triggered by a preset control; or
    在侦测到基于图片处理界面触发的滑动触摸操作时触发拍照指令;或Triggering a photographing instruction when detecting a sliding touch operation triggered based on the image processing interface; or
    通过压力传感器触发拍照指令。The camera command is triggered by the pressure sensor.
  11. 一种图片处理方法,所述图片处理方法包括以下步骤:A picture processing method, the picture processing method comprising the following steps:
    每隔预设时间间隔进行曝光拍照操作;Performing an exposure photographing operation every preset time interval;
    在所述曝光拍照操作完成时,基于拍照操作获取到的图片的亮度在所述曝光拍照操作获得的图片中获取待处理图片,其中,所述待处理图片的亮度大于所述曝光拍照操作获得图片中除所述待处理图片之外的其他图片的亮度;When the exposure photographing operation is completed, the brightness of the image acquired based on the photographing operation acquires a to-be-processed image in the image obtained by the exposure photographing operation, wherein the brightness of the to-be-processed image is greater than the exposure photographing operation to obtain a picture. The brightness of other pictures except the picture to be processed;
    在所述待处理图片为连续拍摄的图片时,叠加所述待处理图片以生成目 标图片。When the picture to be processed is a picture taken continuously, the picture to be processed is superimposed to generate a picture. Picture.
  12. 如权利要求11所述的图片处理方法,其中,在所述待处理图片为连续拍摄的图片时,叠加所述待处理图片以生成目标图片的步骤包括:The picture processing method according to claim 11, wherein when the picture to be processed is a continuously captured picture, the step of superimposing the picture to be processed to generate a target picture comprises:
    在所述待处理图片包含多组连续拍摄的图片组时,获取每个待处理图片对应的亮度值中最大亮度值的图片所在的第一图片组;When the to-be-processed picture includes a plurality of consecutively captured picture groups, acquiring a first picture group in which the picture of the maximum brightness value of the brightness values corresponding to each picture to be processed is located;
    获取每个所述图片组中除所述第一图片组之外的第二图片组的最大亮度值;Obtaining a maximum brightness value of the second picture group except the first picture group in each of the picture groups;
    在有第二图片组的最大亮度值与所述第一图片组的最大亮度值之间的亮度差小于预设阈值时,分别叠加所述第一图片组以及最大亮度值与所述第一图片组的最大亮度值之间的亮度差小于预设阈值的第二图片组以生成目标图片。When the brightness difference between the maximum brightness value of the second picture group and the maximum brightness value of the first picture group is less than a preset threshold, respectively superimposing the first picture group and the maximum brightness value and the first picture The second picture group whose luminance difference between the maximum luminance values of the group is smaller than a preset threshold to generate a target picture.
  13. 如权利要求12所述的图片处理方法,所述方法还包括:The image processing method according to claim 12, further comprising:
    在所述获取每个所述图片组中除所述第一图片组之外的第二图片组的最大亮度值的步骤之后,在第二图片组的最大亮度值与所述第一图片组的最大亮度值之间的亮度差大于或等于预设阈值时,叠加所述第一图片组以生成目标图片。After the step of acquiring the maximum brightness value of the second group of pictures other than the first group of pictures in each of the group of pictures, the maximum brightness value of the second group of pictures and the first group of pictures When the luminance difference between the maximum luminance values is greater than or equal to the preset threshold, the first group of pictures is superimposed to generate a target picture.
  14. 如权利要求11所述的图片处理方法,其中,在所述曝光拍照操作完成时,基于拍照操作获取到的图片的亮度在所述曝光拍照操作获得的图片中获取待处理图片的步骤包括:The image processing method according to claim 11, wherein, when the exposure photographing operation is completed, the step of acquiring the image to be processed in the image obtained by the exposure photographing operation based on the brightness of the image acquired by the photographing operation comprises:
    在所述曝光拍照操作完成时,基于拍照操作获取到的图片的亮度在所述曝光拍照操作获得的图片中获取亮度大于预设亮度阈值的图片;When the exposure photographing operation is completed, the brightness of the picture acquired based on the photographing operation acquires a picture whose brightness is greater than a preset brightness threshold value in the picture obtained by the exposure photographing operation;
    在获取的亮度大于预设亮度阈值的图片中获取待处理图片,其中,所述待处理图片的亮度大于获取的亮度大于预设亮度阈值的图片中除待处理图片之外的其他图片的亮度。 Obtaining a to-be-processed picture in the obtained picture whose brightness is greater than the preset brightness threshold, wherein the brightness of the picture to be processed is greater than the brightness of the picture other than the picture to be processed in the picture whose brightness is greater than the preset brightness threshold.
  15. 如权利要求11至14任一项所述的图片处理方法,所述方法还包括:The image processing method according to any one of claims 11 to 14, further comprising:
    在每隔预设时间间隔进行曝光拍照操作的步骤与基于拍照操作获取到的图片的亮度在所述曝光拍照操作获得的图片中获取待处理图片的步骤之间,实时存储所述曝光拍照操作获得的图片及对应的拍照时刻,并计算当前存储的图片的个数;Between the steps of performing the exposure photographing operation at every preset time interval and the step of acquiring the image to be processed in the image obtained by the exposure photographing operation based on the brightness of the image acquired based on the photographing operation, the exposure photographing operation is obtained in real time. The picture and the corresponding photo time, and calculate the number of pictures currently stored;
    在当前存储的图片的个数达到预设阈值时,删除所述拍照时刻最早的图片。When the number of currently stored pictures reaches a preset threshold, the picture with the earliest photographing time is deleted.
  16. 如权利要求11所述的图片处理方法,其中,获取基于拍照操作获取到的图片的亮度,包括:The image processing method according to claim 11, wherein the acquiring the brightness of the image acquired based on the photographing operation comprises:
    获取图片的红蓝绿RBG值;Get the red, blue and green RBG values of the image;
    根据所述图片的RBG值计算所述图片的亮度。Calculating the brightness of the picture according to the RBG value of the picture.
  17. 如权利要求16所述的图片处理方法,其中,获取图片的红蓝绿RBG值,根据图片的RBG值计算所述图片的亮度,包括:The picture processing method of claim 16, wherein the red, blue and green RBG values of the picture are obtained, and the brightness of the picture is calculated according to the RBG value of the picture, including:
    获取所述图片中每个像素点的RBG值;Obtaining an RBG value of each pixel in the picture;
    根据每个像素点的RBG值计算图片中每个像素点的亮度;Calculating the brightness of each pixel in the picture according to the RBG value of each pixel;
    将所述图片中所有像素点的亮度进行加权平均得到所述图片的亮度。Weighting the luminances of all the pixels in the picture to obtain the brightness of the picture.
  18. 如权利要求11所述的图片处理方法,其中,判断所述待处理图片为连续拍摄的图片,包括:The picture processing method according to claim 11, wherein the determining that the picture to be processed is a continuously taken picture comprises:
    判断所述待处理图片中每个图片是否为所述预设时间间隔拍照获得的图片;或者,Determining whether each picture in the to-be-processed picture is a picture obtained by taking a picture at the preset time interval; or
    判断所述待处理图片的每个拍照时刻是否为连续的间隔定时拍照的时间间隔的时刻;或者,Determining whether each photographing moment of the to-be-processed picture is a time interval of consecutive interval timing photographing; or
    对拍照获得的图片按照时间顺序进行排序,判断所述待处理图片中每个 图片是否为连续排列的图片;或者Sorting the pictures obtained by photographing in chronological order, and judging each of the to-be-processed pictures Whether the picture is a continuous arrangement of pictures; or
    对拍照获得的图片按照时间顺序进行编号,判断所述待处理图片中每个图片的编号是否连续。The pictures obtained by photographing are numbered in chronological order, and it is determined whether the number of each picture in the to-be-processed picture is continuous.
  19. 如权利要求11所述的图片处理方法,其中,每隔预设时间间隔进行曝光拍照操作,包括:The picture processing method according to claim 11, wherein the taking out the photographing operation every predetermined time interval comprises:
    在接收到拍照指令时,每隔预设时间间隔进行曝光拍照操作。When a photographing instruction is received, an exposure photographing operation is performed every preset time interval.
  20. 如权利要求19所述的图片处理方法,其中,所述拍照指令的触发方式包括:The picture processing method according to claim 19, wherein the triggering manner of the photographing instruction comprises:
    基于预设控件触发的触摸操作触发拍照指令;或,Triggering a photographing instruction based on a touch operation triggered by a preset control; or
    在侦测到基于图片处理界面触发的滑动触摸操作时触发拍照指令;或Triggering a photographing instruction when detecting a sliding touch operation triggered based on the image processing interface; or
    通过压力传感器触发拍照指令。 The camera command is triggered by the pressure sensor.
PCT/CN2016/103239 2015-10-30 2016-10-25 Picture processing method and device WO2017071560A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510731507.9 2015-10-30
CN201510731507.9A CN105357447B (en) 2015-10-30 2015-10-30 Picture processing method and device

Publications (1)

Publication Number Publication Date
WO2017071560A1 true WO2017071560A1 (en) 2017-05-04

Family

ID=55333297

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/103239 WO2017071560A1 (en) 2015-10-30 2016-10-25 Picture processing method and device

Country Status (2)

Country Link
CN (1) CN105357447B (en)
WO (1) WO2017071560A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357447B (en) * 2015-10-30 2020-03-13 努比亚技术有限公司 Picture processing method and device
CN108353132A (en) * 2017-08-30 2018-07-31 深圳市红狐狸智能科技有限公司 Recycle camera system and its method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481143A (en) * 2002-09-03 2004-03-10 力捷电脑股份有限公司 Method for recognizing abnomal images
CN1499823A (en) * 2002-11-05 2004-05-26 奥林巴斯株式会社 Camera
CN1506686A (en) * 2002-12-09 2004-06-23 北京中星微电子有限公司 Moving image detecting method
CN1517784A (en) * 2003-01-17 2004-08-04 精工爱普生株式会社 Image processing system, projector and image processing method
CN105357447A (en) * 2015-10-30 2016-02-24 努比亚技术有限公司 Picture processing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6853806B2 (en) * 2002-09-13 2005-02-08 Olympus Optical Co., Ltd. Camera with an exposure control function
CN103293825B (en) * 2013-06-26 2014-11-26 深圳市中兴移动通信有限公司 Multiple exposure method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481143A (en) * 2002-09-03 2004-03-10 力捷电脑股份有限公司 Method for recognizing abnomal images
CN1499823A (en) * 2002-11-05 2004-05-26 奥林巴斯株式会社 Camera
CN1506686A (en) * 2002-12-09 2004-06-23 北京中星微电子有限公司 Moving image detecting method
CN1517784A (en) * 2003-01-17 2004-08-04 精工爱普生株式会社 Image processing system, projector and image processing method
CN105357447A (en) * 2015-10-30 2016-02-24 努比亚技术有限公司 Picture processing method and device

Also Published As

Publication number Publication date
CN105357447A (en) 2016-02-24
CN105357447B (en) 2020-03-13

Similar Documents

Publication Publication Date Title
US10477093B2 (en) Method for capturing image and image capturing apparatus for capturing still images of an object at a desired time point
WO2016023406A1 (en) Shooting method for motion trace of object, mobile terminal and computer storage medium
US10419661B2 (en) Shooting method and shooting device
US9195880B1 (en) Interactive viewer for image stacks
WO2017050125A1 (en) Camera angle indication method and device, terminal, and computer storage medium
US9092659B2 (en) Subject determination apparatus that determines whether or not subject is specific subject
WO2016008359A1 (en) Object movement track image synthesizing method, device and computer storage medium
US20170302848A1 (en) Photographing method, device and computer storage medium
WO2016011859A1 (en) Method for filming light painting video, mobile terminal, and computer storage medium
JP6652039B2 (en) Imaging device, imaging method, and program
US8860840B2 (en) Light source estimation device, light source estimation method, light source estimation program, and imaging apparatus
WO2016029746A1 (en) Shooting method, shooting device and computer storage medium
WO2016011872A1 (en) Image photographing method and apparatus and computer storage medium
WO2017080348A2 (en) Scene-based photographing device and method, and computer storage medium
JP5125734B2 (en) Imaging apparatus, image selection method, and image selection program
WO2016004819A1 (en) Shooting method, shooting device and computer storage medium
US8295609B2 (en) Image processing apparatus, image processing method and computer readable-medium
US20140369611A1 (en) Image processing apparatus and control method thereof
WO2016000514A1 (en) Method and device for filming video of nebula, and computer storage medium
US9986163B2 (en) Digital photographing apparatus and digital photographing method
WO2017128914A1 (en) Photographing method and device
JP6230386B2 (en) Image processing apparatus, image processing method, and image processing program
WO2017071560A1 (en) Picture processing method and device
WO2018219304A1 (en) Picture processing method and apparatus, computer readable storage medium, and electronic device
CN105426081B (en) Interface switching device and method of mobile terminal

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: 16858995

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: 16858995

Country of ref document: EP

Kind code of ref document: A1