CN106878623A - Photographic method, mobile terminal and computer-readable recording medium - Google Patents

Photographic method, mobile terminal and computer-readable recording medium Download PDF

Info

Publication number
CN106878623A
CN106878623A CN201710263760.5A CN201710263760A CN106878623A CN 106878623 A CN106878623 A CN 106878623A CN 201710263760 A CN201710263760 A CN 201710263760A CN 106878623 A CN106878623 A CN 106878623A
Authority
CN
China
Prior art keywords
resolution
mobile terminal
resolution ratio
image data
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710263760.5A
Other languages
Chinese (zh)
Inventor
谭凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710263760.5A priority Critical patent/CN106878623A/en
Publication of CN106878623A publication Critical patent/CN106878623A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes

Landscapes

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

Abstract

The invention discloses a kind of photographic method, including:Configuration mobile terminal is currently taken pictures corresponding target resolution;Judge whether the resolution ratio of camera head of the mobile terminal reaches the target resolution;If the resolution ratio of camera head is not up to the target resolution, then the image data to the camera collection of the mobile terminal carries out resolution ratio expansion treatment, the corresponding resolution ratio of the image data is extended into the target resolution, corresponding picture is shown with the image data after according to treatment.The invention also discloses a kind of mobile terminal and computer-readable recording medium.Invention achieves the cost for taking into account mobile terminal and its effect for clapping picture quality.

Description

Photographic method, mobile terminal and computer-readable recording medium
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of photographic method, mobile terminal and computer-readable Storage medium.
Background technology
With the development of science and technology, the mobile terminal such as smart mobile phone, PAD (panel computer) typically all has camera function, it is full The demand that foot people can be taken pictures whenever and wherever possible.At the same time, people take the picture for coming for mobile terminal Quality requirement also more and more higher, is expected that by mobile terminal and takes high definition picture.In order to improve the matter that mobile terminal claps picture Amount, typically improves the resolution ratio of mobile terminal camera at present, and this can cause the mobile terminal cost to increase;But if will The cost of mobile terminal is controlled, the quality of picture will sacrifice;Therefore, the cost of mobile terminal and its matter for clapping picture Amount these two aspects cannot be taken into account.
The content of the invention
It is a primary object of the present invention to propose a kind of photographic method, mobile terminal and computer-readable recording medium, purport Solving the technical problem that the cost of mobile terminal in the prior art and its quality these two aspects for clapping picture cannot be taken into account.
To achieve the above object, the invention provides a kind of photographic method, the photographic method includes:
Configuration mobile terminal is currently taken pictures corresponding target resolution;
Judge whether the resolution ratio of camera head of the mobile terminal reaches the target resolution;
If the resolution ratio of camera head is not up to the target resolution, the camera of the mobile terminal is gathered Image data carries out resolution ratio expansion treatment, and the corresponding resolution ratio of the image data is extended into the target resolution, with The image data after according to treatment shows corresponding picture.
Alternatively, it is described configuration mobile terminal currently take pictures corresponding target resolution the step of before, also include:
After the mobile terminal opens camera applications, detect whether the mobile terminal is opened high-resolution and taken pictures mould Formula, wherein, the exposal model of the mobile terminal includes common exposal model and high-resolution exposal model;
It is described configuration mobile terminal currently take pictures corresponding target resolution the step of include:
When the mobile terminal opens high-resolution exposal model, configure the mobile terminal and currently take pictures corresponding mesh Mark resolution ratio.
Alternatively, it is described when the mobile terminal opens high-resolution exposal model, configure the mobile terminal current Take pictures corresponding target resolution the step of before, also include:
It is provided for the parameter of storage resolution;
It is described when the mobile terminal opens high-resolution exposal model, configure the mobile terminal and currently take pictures correspondence Target resolution the step of include:
When the mobile terminal opens high-resolution exposal model, obtain the mobile terminal and currently take pictures corresponding mesh Mark resolution ratio, and the value of the parameter is defined as the target resolution.
Alternatively, the step of whether resolution ratio of camera head for judging the mobile terminal reaches the target resolution Including:
When photographing instruction is received, judge whether the resolution ratio of camera head of the mobile terminal reaches the target and differentiate Rate;
If the resolution ratio of camera head is not up to the target resolution, the camera to the mobile terminal is adopted The image data of collection carries out resolution ratio expansion treatment, and the corresponding resolution ratio of the image data is extended into the target differentiates Rate, includes the step of show corresponding picture with the image data after according to treatment:
If the resolution ratio of camera head is not up to the target resolution, each pixel corresponding to the image data Point is copied and interpolation, the corresponding resolution ratio of the image data is extended into the target resolution, after according to interpolation The image data show the picture.
Alternatively, when the image data of camera collection is yuv data, wherein the y represents brightness, institute State u and v represents colourity, if the resolution ratio of camera head is not up to the target resolution, to the image data pair Each pixel answered is copied and interpolation, and the corresponding resolution ratio of the image data is extended into the target resolution, The step of showing the picture with the image data after according to interpolation includes:
If the resolution ratio of camera head is not up to the target resolution, the yuv data are converted into rgb data, Wherein, the r represents red, and the g represents green, and the b represents blue;
Corresponding each pixel of the rgb data is copied, the rgb data are carried out according to copy pixel Columns and/or rows interpolation, the target resolution is extended to by the corresponding resolution ratio of the rgb data;
The rgb data encodings after by interpolation into picture format jpeg data, with according to the jpeg data displays institute State picture.
Additionally, to achieve the above object, present invention also offers a kind of mobile terminal, the mobile terminal includes:
Camera, is configured to gather image data;
Be stored with the memory of processing routine of taking pictures;
Processor, is configured to take pictures processing routine to perform operations described below described in execution:
The mobile terminal is configured currently to take pictures corresponding target resolution;
Judge whether the resolution ratio of camera head of the mobile terminal reaches the target resolution;
If the resolution ratio of camera head is not up to the target resolution, according to the target resolution to the shooting The image data of head collection carries out resolution ratio expansion treatment, and corresponding figure is shown with the image data after according to treatment Piece.
Alternatively, perform the configuration mobile terminal currently take pictures corresponding target resolution operation before, The processor takes pictures processing routine to perform operations described below described in also performing:
After the mobile terminal opens camera applications, detect whether the mobile terminal is opened high-resolution and taken pictures mould Formula, wherein, the exposal model of the mobile terminal includes common exposal model and high-resolution exposal model;
Performing currently the take pictures operation of corresponding target resolution of the configuration mobile terminal includes:
When the mobile terminal opens high-resolution exposal model, configure the mobile terminal and currently take pictures corresponding mesh Mark resolution ratio.
Alternatively, perform whether the resolution ratio of camera head for judging the mobile terminal reaches the target resolution Operation includes:
When photographing instruction is received, judge whether the resolution ratio of camera head of the mobile terminal reaches the target and differentiate Rate;
If performing the resolution ratio of camera head is not up to the target resolution, according to the target resolution pair The image data of the camera collection carries out resolution ratio expansion treatment, is shown with the image data after according to treatment The operation of corresponding picture includes:
If the resolution ratio of camera head is not up to the target resolution, each pixel corresponding to the image data Point is copied and interpolation, the corresponding resolution ratio of the image data is extended into the target resolution, after according to interpolation The image data show the picture.
Alternatively, when the image data of camera collection is yuv data, wherein the y represents brightness, institute State u and v represents colourity, if performing the resolution ratio of camera head is not up to the target resolution, to the picture number Copied and interpolation according to corresponding each pixel, the corresponding resolution ratio of the image data is extended into the target differentiates Rate, shows that the operation of the picture includes with the image data after according to interpolation:
If the resolution ratio of camera head is not up to the target resolution, the yuv data are converted into rgb data, Wherein, the r represents red, and the g represents green, and the b represents blue;
Corresponding each pixel of the rgb data is copied, the rgb data are carried out according to copy pixel Columns and/or rows interpolation, the target resolution is extended to by the corresponding resolution ratio of the rgb data;
The rgb data encodings after by interpolation into picture format jpeg data, with according to the jpeg data displays institute State picture.
Additionally, to achieve the above object, the present invention also proposes a kind of computer-readable recording medium, the computer-readable Be stored with processing routine of taking pictures on storage medium, and the processing routine of taking pictures is when executed by realizing bat as described above The step of according to method.
Photographic method proposed by the present invention, when user will be taken pictures by mobile terminal, configures mobile terminal current first Take pictures corresponding target resolution, if the resolution ratio of camera head of mobile terminal is not up to the target resolution, now, according to target Resolution ratio carries out resolution ratio expansion treatment to the image data that camera is gathered, and the corresponding resolution ratio of image data is extended into mesh Mark resolution ratio, so shows corresponding picture according to the image data after treatment, and the resolution ratio of the picture is just target resolution. It is thereby achieved that the resolution ratio of camera head that need not improve mobile terminal can just improve the resolution ratio that mobile terminal claps picture, Realize on the premise of mobile terminal cost is controlled, improve the quality that mobile terminal claps picture, reached and taken into account shifting The cost of dynamic terminal and its effect for clapping picture quality.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram of the mobile terminal for realizing each embodiment of the invention;
Fig. 2 is the schematic flow sheet of photographic method first embodiment of the present invention;
Fig. 3 to Fig. 6 is the operation chart of the optional configuration target resolution of the present invention one;
Fig. 7 is a kind of block schematic illustration of mobile terminal of each embodiment of the invention;
Fig. 8 is the schematic flow sheet of photographic method second embodiment of the present invention;
Fig. 9 is the schematic flow sheet of photographic method 3rd embodiment of the present invention;
Figure 10 is that the present invention one is optional carries out the schematic flow sheet that resolution ratio expands treatment to image data.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Use.
Mobile terminal can be implemented in a variety of manners.For example, the mobile terminal described in the present invention can be included such as Mobile phone, panel computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), the mobile terminal such as portable media player (Portable Media Player, PMP).
To be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that except special For outside the element for moving purpose, construction according to the embodiment of the present invention can also apply to such as numeral TV, desk-top The terminal of the fixed types such as computer.
Fig. 1 is referred to, it is a kind of hardware architecture diagram of the mobile terminal for realizing each embodiment of the invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110, power supply 111 and camera (not shown).Those skilled in the art can be with Understand, the mobile terminal structure shown in Fig. 1 does not constitute the restriction to mobile terminal, mobile terminal can be included than diagram more Many or less parts, or some parts are combined, or different part arrangements.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used to receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, processed to processor 110;In addition, by up data is activation to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..Additionally, penetrating Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 1 00 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or The voice data stored in memory 109 is converted into audio signal and is output as sound.And, audio output unit 103 The audio output related to the specific function that mobile terminal 1 00 is performed can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphic process unit (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphic process unit 1041 pairs is in Video Capture pattern Or carried out by the static images of image capture apparatus (such as camera) acquisition or the view data of video in image capture mode Reason.Picture frame after treatment may be displayed on display unit 106.Picture frame after being processed through graphic process unit 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after treatment can Exported with being converted to the form that can be sent to mobile communication base station via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound The noise produced during frequency signal or interference.
Mobile terminal 1 00 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 1 00 is moved in one's ear Display panel 1061 and/or backlight.It is (general in the detectable all directions of accelerometer sensor as one kind of motion sensor It is three axles) size of acceleration, size and the direction of gravity are can detect that when static, can be used to recognize the application of mobile phone attitude (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that be can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for display by the information of user input or is supplied to the information of user.Display unit 106 can be wrapped Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used to receive the numeral or character information of input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, can collect user thereon or neighbouring touch operation (such as user is using any suitable objects such as finger, stylus or annex on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, touch detecting apparatus detect the touch orientation of user, and detect touch operation band The signal for coming, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order sent of receiving processor 110 and can be performed.Additionally, can Contact panel 1071 is realized with using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can be wrapped In including but being not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, when contact panel 1071 detect thereon or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, with preprocessor 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 is input and the output function that mobile terminal is realized as two independent parts, but in certain embodiments, can So that contact panel 1071 and display panel 1061 is integrated, input that is realizing mobile terminal and output function, do not do specifically herein Limit.
Interface unit 108 is connected the interface that can pass through with mobile terminal 1 00 as at least one external device (ED).For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and one or more elements for being transferred in mobile terminal 1 00 of the input that will receive or can be with For transmitting data between mobile terminal 1 00 and external device (ED).
Camera can be used to gather video data and/or image data, and in the present invention, mobile terminal 1 00 is taken the photograph by calling As head obtains image data.Typically, the image data for being obtained by camera is yuv data, wherein, y represents brightness, u and v tables Show colourity.
Memory 109 can be used to store software program and various data.In the present invention, the memory of mobile terminal 1 00 Be stored with processing routine of taking pictures in 109.Memory 109 can mainly include storing program area and storage data field, wherein, store journey Sequence area can be needed for storage program area, at least one function application program (such as sound-playing function, image player function Deng) etc.;Storage data field can be stored and use created data (such as voice data, phone directory etc.) etc. according to mobile phone.This Outward, memory 109 can include high-speed random access memory, can also include nonvolatile memory, for example, at least one Disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, using each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing software program and/or module of the storage in memory 109, and calls storage in storage Data in device 109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrated application processor and modulatedemodulate mediate Reason device, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor is main Treatment radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
In the present invention, processor 110 performs take pictures processing routine of the storage in memory 109, to perform operations described below:
Configuration mobile terminal 1 00 is currently taken pictures corresponding target resolution;
Judge whether the resolution ratio of camera head of mobile terminal 1 00 reaches target resolution;
If resolution ratio of camera head miss the mark resolution ratio, to the image data of the camera collection of mobile terminal 1 00 Resolution ratio expansion treatment is carried out, the corresponding resolution ratio of image data target resolution is extended into, with according to the picture after treatment The corresponding picture of data display.
Further, perform configuration mobile terminal 1 00 currently take pictures corresponding target resolution operation before, treatment Device 110 performs take pictures processing routine of the storage in memory 109, also performs following operation:
After mobile terminal 1 00 opens camera applications, whether detection mobile terminal 1 00 opens high-resolution exposal model, Wherein, the exposal model of mobile terminal 1 00 includes common exposal model and high-resolution exposal model;
Performing currently the take pictures operation of corresponding target resolution of configuration mobile terminal 1 00 includes:
When mobile terminal 1 00 opens high-resolution exposal model, configuration mobile terminal 1 00 is currently taken pictures corresponding target Resolution ratio.
Further, perform when mobile terminal 1 00 opens high-resolution exposal model, configuration mobile terminal 1 00 is current The operation of corresponding target resolution of taking pictures includes:
When mobile terminal 1 00 opens high-resolution exposal model, obtain mobile terminal 1 00 and currently take pictures corresponding target Resolution ratio, and write target resolution to predefined ro.interpolation;Wherein, ro.interpolation is advance The parameter for storage resolution for setting.
Further, perform and judge whether the resolution ratio of camera head of mobile terminal 1 00 reaches the operation bag of target resolution Include:
When photographing instruction is received, judge whether the resolution ratio of camera head of mobile terminal 1 00 reaches target resolution;
If performing resolution ratio of camera head miss the mark resolution ratio, to the picture of the camera collection of mobile terminal 1 00 Data carry out resolution ratio expansion treatment, the corresponding resolution ratio of image data are extended into target resolution, after according to treatment Image data shows that the operation of corresponding picture includes:
If resolution ratio of camera head is not up to the target resolution, each pixel corresponding to image data is copied Shellfish and interpolation, target resolution is extended to by the corresponding resolution ratio of image data, and figure is shown with according to the image data after interpolation Piece.
Further, when the image data of camera collection is yuv data, if performing resolution ratio of camera head is not up to mesh Resolution ratio is marked, then each pixel corresponding to image data is copied and interpolation, the corresponding resolution ratio of image data is expanded Target resolution is charged to, is included with according to the operation of the image data display picture after interpolation:
If yuv data are converted to rgb data by resolution ratio of camera head miss the mark resolution ratio, wherein, rgb is three Primary colors optical mode, r represents red, and g represents green, and b represents blue;
Each pixel corresponding to rgb data is copied, according to copy pixel rgb data are entered ranks and/or Row interpolation, target resolution is extended to by the corresponding resolution ratio of rgb data;
By the rgb data encodings after interpolation into picture format jpeg data, with according to jpeg data display pictures.
Mobile terminal 1 00 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous with processor 110 by power-supply management system, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 1 00 can also will not be repeated here including bluetooth module etc..
Based on above-mentioned mobile terminal hardware configuration, each embodiment of photographic method of the present invention is proposed.
Reference picture 2, Fig. 2 is the schematic flow sheet of photographic method first embodiment of the present invention.In the first embodiment, the bat Comprised the following steps according to method:
Step S10, configuration mobile terminal is currently taken pictures corresponding target resolution;
Step S20, judges whether the resolution ratio of camera head of the mobile terminal reaches the target resolution;
Step S30, if the resolution ratio of camera head is not up to the target resolution, the shooting to the mobile terminal The image data of head collection carries out resolution ratio expansion treatment, and the corresponding resolution ratio of the image data is extended into the target point Resolution, corresponding picture is shown with the image data after according to treatment.
With the development of science and technology, the mobile terminal such as smart mobile phone, PAD (panel computer) typically all has camera function, it is full The demand that foot people can be taken pictures whenever and wherever possible.At the same time, people take the picture for coming for mobile terminal Quality requirement also more and more higher, is expected that by mobile terminal and takes high definition picture.In order to improve the matter that mobile terminal claps picture Amount, typically improves the resolution ratio of mobile terminal camera at present, and this can cause the mobile terminal cost to increase;But if will The cost of mobile terminal is controlled, the quality of picture will sacrifice;Therefore, the cost of mobile terminal and its matter for clapping picture Amount these two aspects cannot be taken into account.
In order to take into account the cost and its quality for clapping picture of mobile terminal, when user will be by mobile terminal in the present invention When taking pictures, mobile terminal is configured first and is currently taken pictures corresponding target resolution, if the resolution ratio of camera head of mobile terminal does not reach To the target resolution (namely the resolution ratio of the picture directly taken by camera can be less than target resolution), now, Resolution ratio expansion treatment is carried out to the image data that camera is gathered according to target resolution, by the corresponding resolution ratio of image data Target resolution is extended to, corresponding picture is so shown according to the image data after treatment, the resolution ratio of the picture is just mesh Mark resolution ratio.Therefore, the present invention is realized on the premise of the resolution ratio of camera head for not improving mobile terminal, improves mobile terminal The resolution ratio of clapped picture, namely realize while mobile terminal cost is not increased, improve mobile terminal and clapping picture Quality.
Specifically, when user will be taken pictures by mobile terminal, mobile terminal is configured first and is currently taken pictures corresponding target Resolution ratio.Alternatively, the target resolution can be automatically configured by mobile terminal, it is also possible to by user's manual configuration, specifically be matched somebody with somebody This is not restricted to put mode.
Alternatively, a parameter ro.interpolation for being used for storage resolution, the parameter are pre-defined Ro.interpolation is an environmental variance, and ro.interpolation is initially set into sky.It is automatic in mobile terminal In the mode of configuration target resolution, when user will be taken pictures by mobile terminal, after opening camera Camera applications, mobile terminal Default resolution is write into the ro.interpolation, so that the configuration operation of target resolution is completed, The default resolution write in ro.interpolation is mobile terminal and currently takes pictures corresponding target resolution.The acquiescence Resolution ratio can just set when mobile terminal dispatches from the factory, it is to be understood that the default resolution can also throw in mobile terminal It is updated according to market by producer after city.In order to reach the resolution ratio effect higher that mobile terminal claps picture, acquiescence Resolution ratio typically sets higher, such as be set to 4k (4096*2160), 2k (2048*1080) etc..
Further, increase one setting functionality controls of resolution ratio of setting in the terminal in advance, such as, such as Fig. 3 It is shown, in taking pictures for mobile terminal, the setting control that interface increases resolution ratio is set.In user's manual configuration target resolution In mode, as Figure 4-Figure 6, when user clicks on the control, the corresponding operation interface for including resolution ratio options of display, User can select corresponding resolution ratio in operation interface, and mobile terminal writes the selected resolution ratio of user Ro.interpolation, so as to complete the configuration operation of target resolution, the user institute write in ro.interpolation The resolution ratio of selection is mobile terminal and currently takes pictures corresponding target resolution.
After configuration completes target resolution, mobile terminal is compared the target resolution with its resolution ratio of camera head It is right, judge whether resolution ratio of camera head reaches the target resolution.Alternatively, corresponding resolution is previously stored with mobile terminal Rate list, includes at least one resolution ratio that camera is supported in the resolution list.Mobile terminal is by target resolution Compare with least one resolution ratio in resolution list, judge to whether there is high resolution in target in resolution list Resolution ratio.If there is high resolution in resolution list in target resolution, judge that resolution ratio of camera head reaches the target point Resolution, camera can meet current demand of taking pictures;If sentencing in target resolution in the absence of high resolution in resolution list Determine resolution ratio of camera head and be not up to the target resolution, camera cannot meet current demand of taking pictures.
Specifically, as shown in fig. 7, in the present embodiment, mobile terminal includes Camera application layers, Camera frameworks Layer, CameraHAL layers (Camera Hardware Adapation Layer, hardware adaptation layer) and driving layer, wherein, Camera ccf layers include Camera API, and (Application Programming Interface, application programming connects Mouthful) and CameraService.When user is taken pictures by mobile terminal, Camera application layers send corresponding finger of taking pictures Make (take picture instructions), the photographing instruction is passed via the Camera API and CameraService of Camera ccf layers Transport to CameraHAL layers.When the photographing instruction is received for CameraHAL layers, call camera to be taken pictures, drive layer to preserve The image data that camera is gathered.
When resolution ratio of camera head reaches the target resolution, namely camera can meet it is current take pictures demand when, move CameraHAL the layer of dynamic terminal from driving layer to get the image data that camera is gathered, and by the image data via The Camera API and CameraService of Camera ccf layers are transmitted to Camera application layers, by Camera application layers according to The image data, generates and shows corresponding picture.
When resolution ratio of camera head is not up to the target resolution, in the case, the image data pair of camera collection The resolution ratio answered is less than target resolution, it is impossible to meet current demand of taking pictures.Therefore, as the CameraHAL of mobile terminal From after the image data for driving layer to get camera collection, CameraHAL layers carries out resolution ratio expansion to layer to the image data Treatment is filled, the corresponding resolution ratio of the image data is extended into target resolution, then by image data (its resolution ratio after treatment It is target resolution) transmitted to Camera application layers via the Camera API and CameraService of Camera ccf layers, by Camera application layers are generated according to the image data after treatment and show corresponding picture.Therefore, the picture that mobile terminal is clapped Corresponding resolution ratio is target resolution.
Alternatively, if the image data of camera collection is yuv data, wherein, y represents brightness, and u and v represents colourity, and Take pictures picture typically jpeg picture formats, therefore, when CameraHAL layers from drive layer to get yuv data after, in camera In the case of resolution ratio miss the mark resolution ratio (namely the corresponding resolution ratio of yuv data is less than target resolution), CameraHAL layers carries out resolution ratio expansion treatment to the yuv data, and the corresponding resolution ratio of yuv data is extended into target point Resolution, is then encoded into jpeg data, and by jpeg data via the Camera API of Camera ccf layers and CameraService is transmitted to Camera application layers, by Camera application layers are according to the jpeg data genarations and show corresponding Picture.
The photographic method that the present embodiment is provided, when user will be taken pictures by mobile terminal, configures mobile terminal and works as first Before take pictures corresponding target resolution, if the resolution ratio of camera head of mobile terminal is not up to the target resolution, now, according to mesh Mark resolution ratio carries out resolution ratio expansion treatment to the image data that camera is gathered, and the corresponding resolution ratio of image data is extended to Target resolution, so shows corresponding picture according to the image data after treatment, and the resolution ratio of the picture is just for target is differentiated Rate.It is thereby achieved that the resolution ratio of camera head that need not improve mobile terminal can just improve the resolution ratio that mobile terminal claps picture, Namely realize on the premise of mobile terminal cost is controlled, the quality that mobile terminal claps picture is improve, reach and taken into account The cost of mobile terminal and its effect for clapping picture quality.
Further, as shown in figure 8, proposing photographic method second embodiment of the present invention.Photographic method second embodiment with The difference of photographic method first embodiment is, in photographic method second embodiment, before the step S10, also includes:
Step S40, after the mobile terminal opens camera applications, detects whether the mobile terminal opens high-resolution Exposal model, wherein, the exposal model of the mobile terminal includes common exposal model and high-resolution exposal model;
The step S10 includes:
Step S11, when the mobile terminal opens high-resolution exposal model, configures the mobile terminal and currently takes pictures Corresponding target resolution.
In actual applications, user does not sometimes have demand so high to the resolution ratio of picture yet, in this situation Lower mobile terminal perform photographing operation in first embodiment just need not, therefore, in the present embodiment, in order to improve user's Interactivity, sets various exposal models of mobile terminal, including but not limited to common exposal model and high-resolution exposal model. It is that common exposal model or high-resolution are clapped that user can flexibly set the current exposal model of mobile terminal according to actual conditions According to pattern.
In the present embodiment, after mobile terminal opens camera applications, whether detection mobile terminal currently opens high-resolution Exposal model.Specifically, whether the Camera application layers detection mobile terminal of mobile terminal is currently opened high-resolution and is taken pictures mould Formula.For example, a property parameters property is pre-set, wherein, the parameter value of property is the exposal model of 0 mark camera It is common exposal model, the parameter value of property is that the exposal model of 1 mark camera is high-resolution exposal model.In camera After startup, the Camera application layers of mobile terminal detect the parameter value of current property, if the parameter value of property is 0, Then judge that mobile terminal currently opens common exposal model;If the parameter value of property is 1, judge that mobile terminal is currently opened Open high-resolution exposal model.
When mobile terminal does not open high-resolution exposal model currently, performed according to common exposal model and taken pictures accordingly Operation.When mobile terminal currently opens high-resolution exposal model, perform such as the corresponding photographing operation in first embodiment.
Alternatively, a high-resolution is set up in Camera camera applications to take pictures button, is clapped when user clicks on the high-resolution During according to button, corresponding high-resolution exposal model is opened in triggering.When mobile terminal currently opens high-resolution exposal model, Configuration mobile terminal is performed currently to take pictures the operation of corresponding target resolution.Specifically, before the step S11, also include:
It is provided for the parameter of storage resolution;
The step S11 includes:
When the mobile terminal opens high-resolution exposal model, obtain the mobile terminal and currently take pictures corresponding mesh Mark resolution ratio, and the value of the parameter is defined as the target resolution.
Alternatively, a parameter ro.interpolation for being used for storage resolution, the parameter are pre-defined Ro.interpolation is an environmental variance.When mobile terminal opens high-resolution exposal model, mobile terminal is obtained Currently take pictures corresponding target resolution, the target resolution can be the default resolution described in first embodiment, or The resolution ratio of user's setting, and to acquired target resolution is write in ro.interpolation, also will The value of ro.interpolation write-ins is defined as target resolution, so as to complete mobile terminal currently take pictures corresponding target point The configuration operation of resolution.
When user performs photographing operation, such as the button of taking pictures at interface of taking pictures is clicked on, it is mobile whole during triggering photographing instruction End calls camera to gather image data, and judges whether resolution ratio of camera head reaches target resolution.Specific deterministic process As described in the first embodiment, will not be repeated here.If resolution ratio of camera head miss the mark resolution ratio, such as first is performed Operation in embodiment, target resolution is extended to by the corresponding resolution ratio of image data, is then generated further according to image data And show corresponding picture.If resolution ratio of camera head reaches target resolution, performed accordingly according to the mode commonly taken pictures Photographing operation, generate and show corresponding picture.
The photographic method that the present embodiment is provided, after mobile terminal opens camera applications, first detects whether mobile terminal is opened High-resolution exposal model (exposal model of mobile terminal includes common exposal model and high-resolution exposal model) is opened, is being moved When dynamic terminal opens high-resolution exposal model, configuration mobile terminal is currently taken pictures corresponding target resolution, to realize taking pictures The resolution ratio of picture is target resolution;When mobile terminal does not open high-resolution exposal model, according to common exposal model Perform corresponding photographing operation.Whether user can according to the actual requirements set open high-resolution exposal model, therefore, improve The interactive experience of user.
Further, as shown in figure 9, proposing photographic method 3rd embodiment of the present invention.Photographic method 3rd embodiment with The difference of photographic method first embodiment or photographic method second embodiment is, described in photographic method 3rd embodiment Step S20 includes:
Step S21, when photographing instruction is received, judge the mobile terminal resolution ratio of camera head whether reach it is described Target resolution;
The step S30 includes:
Step S31, it is corresponding to the image data if the resolution ratio of camera head is not up to the target resolution Each pixel is copied and interpolation, the corresponding resolution ratio of the image data is extended into the target resolution, with root The picture is shown according to the image data after interpolation.
In the present embodiment, currently take pictures after corresponding target resolution when being configured with mobile terminal, when user performs Photographing operation, such as click on take pictures button when, trigger photographing instruction.When photographing instruction is received, taking the photograph for mobile terminal is judged As whether head resolution ratio reaches target resolution.Specifically, the camera application layers of mobile terminal judge the shooting of mobile terminal Whether head resolution ratio reaches target resolution.
When resolution ratio of camera head miss the mark resolution ratio, CameraHAL layers of mobile terminal to camera collection Corresponding each pixel of image data is copied and interpolation, and the corresponding resolution ratio of the image data is extended into target differentiates Rate.Wherein, the image data of camera collection includes multiple pixels that each row is respectively arranged.Specifically, in the figure of camera collection When sheet data is yuv data, the step S31 includes:
The yuv data, if the resolution ratio of camera head is not up to the target resolution, are converted to rgb by step a Data, wherein, the r represents red, and the g represents green, and the b represents blue;
Step b, copies to corresponding each pixel of the rgb data, according to copy pixel to the rgb numbers According to columns and/or rows interpolation is carried out, the corresponding resolution ratio of the rgb data is extended into the target resolution;
Step c, by interpolation after the rgb data encodings into picture format jpeg data, with according to the jpeg data Show the picture.
When resolution ratio of camera head miss the mark resolution ratio, CameraHAL layers of mobile terminal gets from driving layer The yuv data of camera collection, yuv data are first converted to rgb data by CameraHAL layers.Wherein, rgb is three primary colors optical mode Formula, r represents red, and g represents green, and b represents blue.As shown in table 1, the rgb data being converted into include the multiple that each row is respectively arranged Pixel.
Table 1
Original image vegetarian refreshments 1 Original image vegetarian refreshments 2 ……
Original image vegetarian refreshments 3 Original image vegetarian refreshments 4 ……
…… …… ……
After rgb data are obtained, CameraHAL layers copies to corresponding each pixel of the rgb data, according to copying Shellfish pixel carries out columns and/or rows interpolation to rgb data, and the corresponding resolution ratio of rgb data after interpolation is extended into target point Resolution.For example, if the corresponding resolution ratio of rgb data shown in table 1 is 640*480, target resolution is 1280*960, then insert Rgb data after value are as shown in table 2,
Table 2
Afterwards, CameraHAL layers by the rgb data encodings after interpolation into jpeg data, and by jpeg data transfers extremely Camera application layers, by camera application layers are according to jpeg data genarations and show corresponding picture.
Alternatively, yuv data are carried out with the process of resolution ratio expansion as shown in Figure 10, with the corresponding resolution ratio of yuv data Be 640*480, target resolution be 1280*960 as a example by illustrate, in this instance, yuv data original line number be 480, yuv numbers It is 640 according to former columns, because target resolution is 1280*960, then line number is 960 after interpolation, and columns is 1280 after interpolation.In advance The interim internal memory of first to file, for preserving the rgb data after interpolation.Successively to each traveling row interpolation, specifically, first by first trip (0 OK) as current line number, whether first (0 row) judge current line number less than line number after interpolation, if current line as current columns Number is less than line number after interpolation, then judges whether current line number can divide exactly line number/original line number after interpolation (in this example namely 960/ 480).If current line number can divide exactly line number/original line number after interpolation, whether current columns is judged less than columns after interpolation, if working as Preceding columns less than columns after interpolation, then judge current columns whether can divide exactly columns/original columns after interpolation (in this example namely 1280/640), if current columns can divide exactly columns/original columns after interpolation, current yuv data are taken out, by the yuv data Rgb data (original image vegetarian refreshments 1) are converted into, are stored in the interim internal memory of application.Then current columns is incremented by+1, judges to work as Whether preceding columns if current columns be less than interpolation after columns, judges whether current columns can divide exactly less than columns after interpolation Columns/original columns after interpolation (in this example namely 1280/640), if current columns cannot divide exactly columns/original columns after interpolation, Then a upper rgb data (original image vegetarian refreshments 1) are copied, and the rgb data (copy pixel 1) that will be copied pay interim Next position in internal memory.Then aforesaid operations are performed successively, until in columns after current columns is not less than difference, will face When internal memory in the current a line rgb data encodings for preserving into jpeg data.Also, current line number is incremented by+1, is continued return and is held Row judges whether current line number is less than the operation of line number after interpolation, and circulation performs above-mentioned operating process, successively by interim internal memory Every a line rgb data encodings of middle preservation are into jpeg data.Until in line number after current line number is not less than interpolation, namely complete During interpolation, by all of jpeg data transfers to camera application layers, by camera application layers are according to jpeg data genarations and show Show corresponding picture.
The photographic method that the present embodiment is provided, when the image data of camera collection is yuv data, if camera is differentiated Rate miss the mark resolution ratio, then be first converted to rgb data by yuv data, and the corresponding resolution ratio of rgb data is extended into target Resolution ratio, then by the rgb data encodings after treatment into jpeg data, according to the corresponding picture of jpeg data displays.Due to phase Than in yuv data, rgb data contain more pictorial informations, therefore, compared to directly carrying out resolution ratio expansion to yuv data The mode filled, further increases the quality of picture.
Additionally, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium On be stored with processing routine of taking pictures, following operation is realized when the processing routine of taking pictures is performed by processor 110:
Configuration mobile terminal 1 00 is currently taken pictures corresponding target resolution;
Judge whether the resolution ratio of camera head of mobile terminal 1 00 reaches target resolution;
If resolution ratio of camera head miss the mark resolution ratio, to the image data of the camera collection of mobile terminal 1 00 Resolution ratio expansion treatment is carried out, the corresponding resolution ratio of image data target resolution is extended into, with according to the picture after treatment The corresponding picture of data display.
Further, following operation is also realized when the processing routine of taking pictures is performed by processor 110:
After mobile terminal 1 00 opens camera applications, whether detection mobile terminal 1 00 opens high-resolution exposal model, Wherein, the exposal model of mobile terminal 1 00 includes common exposal model and high-resolution exposal model;
Performing currently the take pictures operation of corresponding target resolution of configuration mobile terminal 1 00 includes:
When mobile terminal 1 00 opens high-resolution exposal model, configuration mobile terminal 1 00 is currently taken pictures corresponding target Resolution ratio.
Further, following operation is also realized when the processing routine of taking pictures is performed by processor 110:
When mobile terminal 1 00 opens high-resolution exposal model, obtain mobile terminal 1 00 and currently take pictures corresponding target Resolution ratio, and write target resolution to predefined ro.interpolation;Wherein, ro.interpolation is advance The parameter for storage resolution for setting.
Further, following operation is also realized when the processing routine of taking pictures is performed by processor 110:
When photographing instruction is received, judge whether the resolution ratio of camera head of mobile terminal 1 00 reaches target resolution;
If performing resolution ratio of camera head miss the mark resolution ratio, to the picture of the camera collection of mobile terminal 1 00 Data carry out resolution ratio expansion treatment, the corresponding resolution ratio of image data are extended into target resolution, after according to treatment Image data shows that the operation of corresponding picture includes:
If resolution ratio of camera head is not up to the target resolution, each pixel corresponding to image data is copied Shellfish and interpolation, target resolution is extended to by the corresponding resolution ratio of image data, and figure is shown with according to the image data after interpolation Piece.
Further, following operation is also realized when the processing routine of taking pictures is performed by processor 110:
If yuv data are converted to rgb data by resolution ratio of camera head miss the mark resolution ratio, wherein, rgb is three Primary colors optical mode, r represents red, and g represents green, and b represents blue;
Each pixel corresponding to rgb data is copied, according to copy pixel rgb data are entered ranks and/or Row interpolation, target resolution is extended to by the corresponding resolution ratio of rgb data;
By the rgb data encodings after interpolation into picture format jpeg data, with according to jpeg data display pictures.
It should be noted that herein, term " including ", "comprising" or its any other variant be intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also include other key elements being not expressly set out, or also include for this process, method, article or device institute are intrinsic Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably implementation method.Based on such understanding, technical scheme is substantially done to prior art in other words The part for going out contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used to so that a station terminal (can be mobile phone, computer, service Device, air-conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Implementation method, above-mentioned specific embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under enlightenment of the invention, in the case of present inventive concept and scope of the claimed protection is not departed from, can also make a lot Form, these are belonged within protection of the invention.

Claims (10)

1. a kind of photographic method, it is characterised in that the photographic method is comprised the following steps:
Configuration mobile terminal is currently taken pictures corresponding target resolution;
Judge whether the resolution ratio of camera head of the mobile terminal reaches the target resolution;
If the resolution ratio of camera head is not up to the target resolution, to the picture of the camera collection of the mobile terminal Data carry out resolution ratio expansion treatment, the corresponding resolution ratio of the image data are extended into the target resolution, with basis The image data after treatment shows corresponding picture.
2. photographic method as claimed in claim 1, it is characterised in that the configuration mobile terminal is currently taken pictures corresponding target Before the step of resolution ratio, also include:
After the mobile terminal opens camera applications, detect whether the mobile terminal opens high-resolution exposal model, its In, the exposal model of the mobile terminal includes common exposal model and high-resolution exposal model;
It is described configuration mobile terminal currently take pictures corresponding target resolution the step of include:
When the mobile terminal opens high-resolution exposal model, configure the mobile terminal and currently take pictures corresponding target point Resolution.
3. photographic method as claimed in claim 2, it is characterised in that described to open high-resolution in the mobile terminal and take pictures During pattern, configure the mobile terminal currently take pictures corresponding target resolution the step of before, also include:
It is provided for the parameter of storage resolution;
It is described when the mobile terminal opens high-resolution exposal model, configure the mobile terminal and currently take pictures corresponding mesh The step of mark resolution ratio, includes:
When the mobile terminal opens high-resolution exposal model, obtain the mobile terminal and currently take pictures corresponding target point Resolution, and the value of the parameter is defined as the target resolution.
4. the photographic method as described in claim any one of 1-3, it is characterised in that the shooting of the judgement mobile terminal The step of whether head resolution ratio reaches the target resolution includes:
When photographing instruction is received, judge whether the resolution ratio of camera head of the mobile terminal reaches the target resolution;
If the resolution ratio of camera head is not up to the target resolution, the camera of the mobile terminal is gathered Image data carries out resolution ratio expansion treatment, and the corresponding resolution ratio of the image data is extended into the target resolution, with The step of image data after according to treatment shows corresponding picture includes:
If the resolution ratio of camera head is not up to the target resolution, each pixel corresponding to the image data is clicked through Row copy and interpolation, extend to the target resolution, with according to the institute after interpolation by the corresponding resolution ratio of the image data State image data and show the picture.
5. photographic method as claimed in claim 4, it is characterised in that when the image data of camera collection is During yuv data, wherein the y represents that brightness, the u and v represent colourity, if the resolution ratio of camera head be not up to it is described Target resolution, then each pixel corresponding to the image data copied and interpolation, by the image data correspondence Resolution ratio extend to the target resolution, wrap the step of show the picture with the image data after according to interpolation Include:
If the resolution ratio of camera head is not up to the target resolution, the yuv data are converted into rgb data, wherein, The r represents red, and the g represents green, and the b represents blue;
Corresponding each pixel of the rgb data is copied, ranks are entered to the rgb data according to copy pixel And/or row interpolation, the corresponding resolution ratio of the rgb data is extended into the target resolution;
The rgb data encodings after by interpolation are schemed into picture format jpeg data with according to the jpeg data displays Piece.
6. a kind of mobile terminal, it is characterised in that the mobile terminal includes:
Camera, is configured to gather image data;
Be stored with the memory of processing routine of taking pictures;
Processor, is configured to take pictures processing routine to perform operations described below described in execution:
The mobile terminal is configured currently to take pictures corresponding target resolution;
Judge whether the resolution ratio of camera head of the mobile terminal reaches the target resolution;
If the resolution ratio of camera head is not up to the target resolution, the camera is adopted according to the target resolution The image data of collection carries out resolution ratio expansion treatment, and corresponding picture is shown with the image data after according to treatment.
7. mobile terminal as claimed in claim 6, it is characterised in that currently taken pictures the configuration mobile terminal is performed Before the operation of corresponding target resolution, the processor is also performed described takes pictures processing routine to perform operations described below:
After the mobile terminal opens camera applications, detect whether the mobile terminal opens high-resolution exposal model, its In, the exposal model of the mobile terminal includes common exposal model and high-resolution exposal model;
Performing currently the take pictures operation of corresponding target resolution of the configuration mobile terminal includes:
When the mobile terminal opens high-resolution exposal model, configure the mobile terminal and currently take pictures corresponding target point Resolution.
8. mobile terminal as claimed in claims 6 or 7, it is characterised in that perform the shooting for judging the mobile terminal The operation whether head resolution ratio reaches the target resolution includes:
When photographing instruction is received, judge whether the resolution ratio of camera head of the mobile terminal reaches the target resolution;
If performing the resolution ratio of camera head is not up to the target resolution, according to the target resolution to described The image data of camera collection carries out resolution ratio expansion treatment, is shown accordingly with the image data after according to treatment The operation of picture include:
If the resolution ratio of camera head is not up to the target resolution, each pixel corresponding to the image data is clicked through Row copy and interpolation, extend to the target resolution, with according to the institute after interpolation by the corresponding resolution ratio of the image data State image data and show the picture.
9. mobile terminal as claimed in claim 8, it is characterised in that when the image data of camera collection is During yuv data, wherein the y represents that brightness, the u and v represent colourity, if perform the resolution ratio of camera head being not up to The target resolution, then each pixel corresponding to the image data copied and interpolation, by the image data Corresponding resolution ratio extends to the target resolution, and the operation of the picture is shown with the image data after according to interpolation Including:
If the resolution ratio of camera head is not up to the target resolution, the yuv data are converted into rgb data, wherein, The r represents red, and the g represents green, and the b represents blue;
Corresponding each pixel of the rgb data is copied, ranks are entered to the rgb data according to copy pixel And/or row interpolation, the corresponding resolution ratio of the rgb data is extended into the target resolution;
The rgb data encodings after by interpolation are schemed into picture format jpeg data with according to the jpeg data displays Piece.
10. a kind of computer-readable recording medium, it is characterised in that be stored with place of taking pictures on the computer-readable recording medium Reason program, the processing routine of taking pictures is when executed by realizing the photographic method as any one of claim 1 to 5 The step of.
CN201710263760.5A 2017-04-20 2017-04-20 Photographic method, mobile terminal and computer-readable recording medium Pending CN106878623A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710263760.5A CN106878623A (en) 2017-04-20 2017-04-20 Photographic method, mobile terminal and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710263760.5A CN106878623A (en) 2017-04-20 2017-04-20 Photographic method, mobile terminal and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN106878623A true CN106878623A (en) 2017-06-20

Family

ID=59163722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710263760.5A Pending CN106878623A (en) 2017-04-20 2017-04-20 Photographic method, mobile terminal and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN106878623A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111279680A (en) * 2017-08-31 2020-06-12 深圳传音通讯有限公司 Square cutting photographing method, photographing system and photographing device
CN111279679A (en) * 2017-08-31 2020-06-12 深圳传音通讯有限公司 Square cutting photographing method, photographing system and photographing device
CN111405194A (en) * 2020-06-05 2020-07-10 支付宝(杭州)信息技术有限公司 Image processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110176744A1 (en) * 2010-01-20 2011-07-21 Korea University Research And Business Foundation Apparatus and method for image interpolation using anisotropic gaussian filter
CN103281486A (en) * 2013-05-22 2013-09-04 上海斐讯数据通信技术有限公司 Realizing method of photographing mode and mobile terminal
CN103745439A (en) * 2013-12-31 2014-04-23 华为技术有限公司 Method and device for amplifying image
US20150093039A1 (en) * 2013-09-09 2015-04-02 Shenzhen China Star Optoelectronics Technology Co. Ltd. Image super-resolution reconstruction system and method
CN105023241A (en) * 2015-07-29 2015-11-04 华南理工大学 Fast image interpolation method for mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110176744A1 (en) * 2010-01-20 2011-07-21 Korea University Research And Business Foundation Apparatus and method for image interpolation using anisotropic gaussian filter
CN103281486A (en) * 2013-05-22 2013-09-04 上海斐讯数据通信技术有限公司 Realizing method of photographing mode and mobile terminal
US20150093039A1 (en) * 2013-09-09 2015-04-02 Shenzhen China Star Optoelectronics Technology Co. Ltd. Image super-resolution reconstruction system and method
CN103745439A (en) * 2013-12-31 2014-04-23 华为技术有限公司 Method and device for amplifying image
CN105023241A (en) * 2015-07-29 2015-11-04 华南理工大学 Fast image interpolation method for mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111279680A (en) * 2017-08-31 2020-06-12 深圳传音通讯有限公司 Square cutting photographing method, photographing system and photographing device
CN111279679A (en) * 2017-08-31 2020-06-12 深圳传音通讯有限公司 Square cutting photographing method, photographing system and photographing device
CN111405194A (en) * 2020-06-05 2020-07-10 支付宝(杭州)信息技术有限公司 Image processing method and device

Similar Documents

Publication Publication Date Title
CN107229402A (en) Dynamic screenshotss method, device and the readable storage medium storing program for executing of terminal
CN107145293A (en) A kind of screenshot method, mobile terminal and storage medium
CN107592471A (en) A kind of high dynamic range images image pickup method and mobile terminal
CN107831946A (en) Interactive button location regulation method, mobile terminal and computer-readable recording medium
CN107682627A (en) A kind of acquisition parameters method to set up, mobile terminal and computer-readable recording medium
CN107197094A (en) One kind shooting display methods, terminal and computer-readable recording medium
CN107592460A (en) A kind of video recording method, equipment and computer-readable storage medium
CN107678829A (en) A kind of application control method and mobile terminal
CN107404618A (en) A kind of image pickup method and terminal
CN107463324A (en) A kind of image display method, mobile terminal and computer-readable recording medium
CN107506163A (en) Adjust method, terminal and the computer-readable recording medium of screen display
CN107526493A (en) A kind of small tool display methods, equipment and computer-readable recording medium
CN107239205A (en) A kind of photographic method, mobile terminal and storage medium
CN108170348A (en) A kind of thumbnail method for previewing, equipment and computer readable storage medium
CN108008991A (en) A kind of image processing method, terminal and computer-readable recording medium
CN107273433A (en) A kind of file scanning method, equipment and computer-readable recording medium
CN108307105A (en) A kind of image pickup method, terminal and computer readable storage medium
CN106878623A (en) Photographic method, mobile terminal and computer-readable recording medium
CN107888759A (en) A kind of method, equipment and computer-readable recording medium realized information and sent
CN107682541A (en) Audio control method, mobile terminal and the storage medium of screen prjection
CN107613206A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN107241504A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN107885423A (en) The processing method and mobile terminal of a kind of picture
CN107743199A (en) Image processing method, mobile terminal and computer-readable recording medium
CN107643870A (en) Multi-screen display method, mobile terminal and computer-readable recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170620

RJ01 Rejection of invention patent application after publication