CN110536022A - A kind of image pickup method, device and computer storage medium and terminal device - Google Patents

A kind of image pickup method, device and computer storage medium and terminal device Download PDF

Info

Publication number
CN110536022A
CN110536022A CN201910873638.9A CN201910873638A CN110536022A CN 110536022 A CN110536022 A CN 110536022A CN 201910873638 A CN201910873638 A CN 201910873638A CN 110536022 A CN110536022 A CN 110536022A
Authority
CN
China
Prior art keywords
camera module
value
parameter
camera
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910873638.9A
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.)
Realme Chongqing Mobile Communications Co Ltd
Original Assignee
Realme Chongqing Mobile Communications 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 Realme Chongqing Mobile Communications Co Ltd filed Critical Realme Chongqing Mobile Communications Co Ltd
Priority to CN201910873638.9A priority Critical patent/CN110536022A/en
Publication of CN110536022A publication Critical patent/CN110536022A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the present application discloses a kind of image pickup method, device and computer storage medium and terminal device, this method comprises: calling the corresponding application program of macro mode, whether the first camera module of detection is abnormal;Wherein, first camera module includes macro head;When detecting that first camera module is when in an abnormal state, the second camera module is opened;Wherein, second camera module is different from first camera module;Parameter configuration is carried out to second camera module according to preset parameter value, is shot according to the second camera module postponed;Wherein, the preset parameter value is to be simulated to obtain to the microshot of first camera module according to second camera module.

Description

A kind of image pickup method, device and computer storage medium and terminal device
Technical field
This application involves field of camera technology more particularly to a kind of image pickup method, device and computer storage medium and ends End equipment.
Background technique
With the development of terminal technology, more and more users like using camera function entrained by mobile terminal.Mesh Before, demand of the user to camera shooting more refines, and mobile terminal derives binocular camera or even three mesh, four from monocular cam The camera module of mesh or more;And camera module is also more segmented, and is taken the photograph from the common main camera of colour to black and white pair As head, wide-angle pair camera or microspur pair camera etc..
When making mobile terminal too close at a distance from subject to shoot small items, at this time mobile terminal It needs to be shot using microspur mould group.However in the mobile terminal of mainstream microspur mould group may existing defects, such as Support fool proof operation, break down and cause macro mode unavailable etc., easily cause customer complaint.
Summary of the invention
The embodiment of the present application provides a kind of image pickup method, device and computer storage medium and terminal device, not only may be used To mitigate the shooting demand of user, customer complaint is reduced;But also the failure rate of terminal device can be reduced, so as to promote terminal The product quality of equipment.
The technical solution of the embodiment of the present application is achieved in that
In a first aspect, the embodiment of the present application provides a kind of image pickup method, this method comprises:
The corresponding application program of macro mode is called, whether the first camera module of detection is abnormal;Wherein, the first camera module Including macro head;
When detecting that the first camera module is when in an abnormal state, the second camera module is opened;Wherein, the second camera module It is different from the first camera module;
Parameter configuration is carried out to the second camera module according to preset parameter value, is carried out according to the second camera module postponed Shooting;Wherein, preset parameter value is to be simulated to obtain to the microshot of the first camera module according to the second camera module.
Second aspect, the embodiment of the present application provide a kind of filming apparatus, which includes: call unit, detection Unit, opening unit, configuration unit and shooting unit, wherein
Call unit is configured to call the corresponding application program of macro mode;
Whether abnormal detection unit is configured to the first camera module of detection;Wherein, the first camera module includes macro Head;
Opening unit is configured to detect that the first camera module is when in an abnormal state when detection unit, opens second and takes the photograph As mould group;Wherein, the second camera module is different from the first camera module;
Configuration unit is configured to carry out parameter configuration to the second camera module according to preset parameter value;
Shooting unit is configured to be shot according to the second camera module postponed;Wherein, preset parameter value is basis Second camera module is simulated to obtain to the microshot of the first camera module.
The third aspect, the embodiment of the present application provide a kind of filming apparatus, which includes: memory and processing Device;Wherein,
Memory, for storing the computer program that can be run on a processor;
Processor, for executing method as described in relation to the first aspect when running the computer program.
Fourth aspect, the embodiment of the present application provide a kind of computer storage medium, which is stored with Photographing program realizes method as described in relation to the first aspect when photographing program is executed by least one processor.
5th aspect, the embodiment of the present application provide a kind of terminal device, which includes at least such as second aspect Or filming apparatus described in the third aspect.
A kind of image pickup method, device provided by the embodiment of the present application and computer storage medium and terminal device, pass through The corresponding application program of macro mode is called, whether the first camera module of detection is abnormal, which includes that microspur is taken the photograph As head;When detecting that the first camera module is when in an abnormal state, the second camera module is opened, the second camera module is taken the photograph with first As mould group is different;Then parameter configuration is carried out to second camera module according to preset parameter value, according to second postponed Camera module is shot;Wherein, preset parameter value be according to the second camera module to the microshot of the first camera module into Row simulation obtains;In this way, when terminal device is in macro mode, if including at the first camera module of macro head In abnormality, can at this time be shot by the second camera module of calling, while in order to enable the second camera module energy The corresponding microshot effect of the first camera module is enough simulated, the second camera module can also be matched according to preset parameter value It sets, which is to be simulated according to the second camera module to the microshot of the first camera module, so The shooting demand that user can be mitigated, reduces customer complaint;In addition, can not make since terminal device also solves the first camera module Abnormal phenomenon improves the product quality of terminal device, and improve use to reduce the failure rate of terminal device The usage experience at family.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of image pickup method provided by the embodiments of the present application;
Fig. 2 is the flow diagram of another image pickup method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another image pickup method provided by the embodiments of the present application;
Fig. 4 is the flow diagram of another image pickup method provided by the embodiments of the present application;
Fig. 5 is the flow diagram of another image pickup method provided by the embodiments of the present application;
Fig. 6 is a kind of composed structure schematic diagram of filming apparatus provided by the embodiments of the present application;
Fig. 7 is a kind of specific hardware structure schematic diagram of filming apparatus provided by the embodiments of the present application;
Fig. 8 is a kind of composed structure schematic diagram of terminal device provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element The explanation for being conducive to the application, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal device can be implemented in a variety of manners.For example, terminal device described in the embodiment of the present application can wrap Include such as mobile phone, tablet computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable media player (Portable Media Player, PMP), navigation device, wearable set The fixed terminals such as the mobile terminal apparatus such as standby, digital camera, DV, and number TV, desktop computer Equipment, the embodiment of the present application are not especially limited.
In practical application, when making distance of the terminal device away from subject too close in order to shoot small items, this When terminal device need to be shot using microspur mould group.The terminal device of mainstream does not support super microspur coke section at present, For example the super microspur coke section of 3~4cm is not supported although a small number of terminal devices can support the super microspur coke section Fool proof operation, in this way when microspur module group aging or damage and other reasons are not available, it will lead to macro mode not It can use, it is easy to cause unnecessary customer complaint;In addition, the failure rate of the terminal device of multi-cam mould group is also relatively high, sternly User experience is affected again.
The embodiment of the present application provides a kind of image pickup method, and this method is applied to filming apparatus, which is located at eventually In end equipment.By calling the corresponding application program of macro mode, whether the first camera module of detection is abnormal, the first camera shooting mould Group includes macro head;When detecting that the first camera module is when in an abnormal state, the second camera module, the second camera shooting are opened Mould group is different from the first camera module;Parameter configuration is carried out to second camera module according to preset parameter value, according to configuration The second camera module afterwards is shot;Wherein, preset parameter value is according to the second camera module to the micro- of the first camera module It is simulated to obtain away from shooting;In this way, when terminal device is in macro mode, if including the first of macro head to take the photograph Picture mould group is in abnormality, at this time can be by calling the second camera module be shot, while in order to enable second takes the photograph As mould group can simulate the corresponding microshot effect of the first camera module, the second camera module can also be according to preset parameter value It is configured, which is to be simulated to obtain to the microshot of the first camera module according to the second camera module , the shooting demand of user can be so mitigated, customer complaint is reduced;In addition, since terminal device also solves the first camera shooting mould The unusable abnormal phenomenon of group improves the product quality of terminal device to reduce the failure rate of terminal device, and Improve the usage experience of user.
Each embodiment of the application is described in detail below in conjunction with attached drawing.
In the embodiment of the application, referring to Fig. 1, it illustrates a kind of streams of image pickup method provided by the embodiments of the present application Journey schematic diagram.As shown in Figure 1, this method may include:
S101: calling the corresponding application program of macro mode, and whether the first camera module of detection is abnormal;Wherein, described One camera module includes macro head;
It should be noted that the application program is mounted in terminal device, can be called under external trigger signal and Starting, such as user can trigger enabling signal by the shooting button on pressing terminal device, so that terminal device tune With the application program;Or user can also choose microspur option by the select button on terminal device, so that terminal Equipment can call the application program, so that terminal device enters macro mode.
It should also be noted that, macro mode is for shooting with terminal device apart from very close object, to the object Details sufficiently shown.In this way, the use of the first camera module can be triggered under macro mode.Wherein, the first camera shooting mould It include macro head in group, in this way, to be also referred to as microspur mould group, super microspur mould group or the limit micro- for the first camera module Away from mould group.In the embodiment of the present application, the burnt section of the first camera module is generally 3~4cm, but the embodiment of the present application is not made specifically It limits.
In this way, after the use for triggering the first camera module, it is also necessary to whether abnormal detect the first camera module;When When one camera module is in normal condition, it can at this time open the first camera module and be clapped by first camera module It takes the photograph;And when the first camera module it is when in an abnormal state, at this time fail to open the first camera module, need to be implemented step at this time S102。
S102: when detecting that first camera module is when in an abnormal state, the second camera module is opened;Wherein, institute It is different from first camera module to state the second camera module;
It should be noted that the second camera module is different from the first camera module, i.e. do not include in the second camera module Macro head.In the embodiment of the present application, the second camera module can be main camera module, be also possible to secondary camera mould Group, or even can also be binocular camera mould group or wide-angle camera mould group etc..Usually, the second camera module can be with Refer to main camera module, but the embodiment of the present application is not especially limited.
In this way, it is unusable to show the first camera module when the first camera module is when in an abnormal state, at this time may be used To call the second camera module, the first original camera module is substituted using the second camera module and is shot, to solve The unusable abnormal phenomenon of first camera module.
S103: parameter configuration is carried out to second camera module according to preset parameter value, is taken the photograph according to second postponed As mould group is shot;Wherein, the preset parameter value is according to second camera module to first camera module Microshot is simulated to obtain.
It should be noted that preset parameter value is to be carried out according to the second camera module to the microshot of the first camera module What simulation obtained.In this way, being shot according to the second camera module postponed, can make captured by the second camera module Image can simulate the corresponding microshot effect of the first camera module.
It should also be noted that, the parameter of the second camera module can be burnt section parameter, specifically, by the second camera module Burnt section parameter configuration be microspur limiting value (such as 7cm);The parameter of second camera module can also be imaging parameters, specifically Ground can configure the imaging parameters of the second camera module to be preset to picture value, and the picture value that is preset to here can be according to Two camera modules simulate the microshot of the first camera module.Wherein, imaging parameters may include but unlimited In auto-focusing (Automatic Focus, AF) parameter, automatic exposure (Automatic Exposure, AE) parameter, automatic white Balance (Automatic White Balance, AWB) parameter and image signal process (Image Signal Processor, ISP) parameter etc..
In this way, showing the first camera module cannot call, and adjust at this time when the first camera module is when in an abnormal state The first original camera module is substituted with the second camera module, can at this time open the second camera module, and according to pre- Setting parameter value carries out parameter configuration to the second camera module, is then shot according to the second camera module postponed, so The shooting demand for having mitigated user to a certain extent reduces customer complaint, while being also possible that captured by the second camera module Image can simulate the corresponding microshot effect of the first camera module.
A kind of image pickup method is present embodiments provided, by calling the corresponding application program of macro mode, detection first is taken the photograph Whether picture mould group is abnormal, which includes macro head;When detecting that the first camera module is in abnormality When, the second camera module is opened, the second camera module is different from the first camera module;It is taken the photograph according to preset parameter value to described second As mould group progress parameter configuration, shot according to the second camera module postponed;Wherein, preset parameter value is according to second Camera module is simulated to obtain to the microshot of the first camera module;In this way, when terminal device is in macro mode, such as Fruit includes that the first camera module of macro head is in abnormality, at this time can by call the second camera module into Row shooting, and the second camera module is configured according to preset parameter value, and the second camera module can be enabled to simulate the The corresponding microshot effect of one camera module, can also mitigate the shooting demand of user, reduce customer complaint;In addition, due to end End equipment also solves the unusable abnormal phenomenon of the first camera module, to reduce the failure rate of terminal device, is promoted The product quality of terminal device, and improve the usage experience of user.
In another embodiment of the application, referring to fig. 2, it illustrates another image pickup methods provided by the embodiments of the present application Flow diagram.As shown in Fig. 2, this method may include:
S201: the corresponding application program of macro mode is called;
It should be noted that the application program is mounted in terminal device, can be called under external trigger signal and Starting, such as user can trigger enabling signal by the shooting button on pressing terminal device, so that terminal device tune With the application program;Or user can also choose microspur option by the select button on terminal device, so that terminal Equipment can call the application program, so that terminal device enters macro mode.
S202: whether the first camera module of detection is abnormal;
It should be noted that the second camera module is different from the first camera module, i.e. the first camera module includes that microspur is taken the photograph As head, without including macro head in the second camera module.In the embodiment of the present application, the first camera module is usually microspur mould Group, the second camera module are usually main camera module.
S203: when detecting that first camera module is when in an abnormal state, the second camera module is opened, and according to pre- Setting parameter value carries out parameter configuration to the second camera module, is shot according to the second camera module postponed;
S204: when detecting that first camera module is in normal condition, the first camera module is opened, by described First camera module is shot.
It should be noted that the use of the first camera module can be triggered after step S202, first is detected at this time and is taken the photograph As whether mould group is abnormal;When detecting that the first camera module is when in an abnormal state, it is at this time fail to open the first camera module, Step S203 is executed at this time;And when detecting that the first camera module is in normal condition, it can at this time open the first camera shooting Mould group executes step S204 at this time.
In this way, when detecting that the first camera module is in normal condition, showing the first camera shooting mould under macro mode Group can at this time open the first camera module, and shot by the first camera module with normal call;When detecting First camera module is when in an abnormal state, and showing the first camera module cannot call, and calls the second camera module at this time It substitutes the first original camera module, can at this time open the second camera module, and according to preset parameter value to second Camera module carries out parameter configuration, is then shot according to the second camera module postponed, is so delayed to a certain extent With the shooting demand of user, reduce customer complaint, while being also possible that image captured by the second camera module can simulate The corresponding microshot effect of first camera module, to improve the usage experience of terminal device.
A kind of image pickup method is present embodiments provided, the specific implementation of previous embodiment is elaborated, therefrom As can be seen that by the technical solution of previous embodiment, when terminal device is in macro mode, if including macro First camera module of head is in abnormality, can at this time be shot by the second camera module of calling, while in order to The second camera module is enabled to simulate the corresponding microshot effect of the first camera module, the second camera module can also be according to Preset parameter value is configured, which is to be carried out according to the second camera module to the microshot of the first camera module What simulation obtained, the shooting demand of user can be so mitigated, customer complaint is reduced;In addition, since terminal device also solves The unusable abnormal phenomenon of one camera module improves the product of terminal device to reduce the failure rate of terminal device Quality, and improve the usage experience of user.
In the another embodiment of the application, whether it is in abnormality for the first camera module, detection the can be passed through Whether the macro head in one camera module is opened to determine, can also by the imaging of the first camera module whether extremely come It determines.Therefore, in some embodiments, referring to Fig. 3, it illustrates the streams of another image pickup method provided by the embodiments of the present application Journey schematic diagram.As shown in figure 3, whether abnormal for the first camera module of detection, this method may include: after S201
S301: whether the macro head in the first camera module of detection is opened;
That is, whether it is in abnormality for the first camera module, it can be by the first camera module of detection Macro head whether open to determine.
S302: when the macro head is fail to open, determine that first camera module is in abnormality.
That is, can determine that the first camera module is in abnormal when detecting that macro head is fail to open State;And when detecting that macro head can be normally-open, it is contemplated that the first camera module may be blocked and lead It is abnormal to cause imaging, so that the first camera module is in abnormality, at this time also needs further to detect the first camera shooting mould Whether the imaging of group there is exception.Therefore, in some embodiments, after S301, this method can also include:
S303: when the macro head is opened, whether the imaging for detecting first camera module there is exception;
S304: when the imaging of first camera module occurs abnormal, determine that first camera module is in abnormal State.
Further, in some embodiments, after S303, this method can also include:
S305: when the imaging of first camera module does not occur abnormal, determine that first camera module is in just Normal state.
It should be noted that whether being in abnormality for the first camera module, detection the first camera shooting mould can be passed through Whether whether the macro head in group is opened to determine, can also be determined extremely by the imaging of the first camera module, this Application embodiment is not especially limited.
It should also be noted that, the macro head in the first camera module can be normally-open, but because block Etc. reasons and to cause the imaging of the first camera module to occur abnormal.Specifically, (such as the main camera shooting of the second camera module can be passed through Head mould group) confirm that imaging exception is not to be caused by completely black or extremely partially dark scene, it at this time shows first and takes the photograph Picture mould group is in abnormality, the second camera module can be called at this time, so that terminal device is switched to by the first camera module Second camera module is shot.
A kind of image pickup method is present embodiments provided, the specific implementation of previous embodiment is elaborated, therefrom As can be seen that by the technical solution of previous embodiment, when terminal device is in macro mode, if including macro First camera module of head is in abnormality, can at this time be shot by the second camera module of calling, while in order to The second camera module is enabled to simulate the corresponding microshot effect of the first camera module, the second camera module can also be according to Preset parameter value is configured, which is to be carried out according to the second camera module to the microshot of the first camera module What simulation obtained, the shooting demand of user can be so mitigated, customer complaint is reduced;In addition, since terminal device also solves The unusable abnormal phenomenon of one camera module improves the product of terminal device to reduce the failure rate of terminal device Quality, and improve the usage experience of user.
It, can be according to default during being shot using the second camera module in the another embodiment of the application Parameter value carries out parameter configuration to the second camera module, for example can be microspur pole by the burnt section parameter configuration of the second camera module The imaging parameters of second camera module can also be configured to be preset to picture value by limit value (such as 7cm), so that the second camera shooting Mould group can simulate the corresponding microshot effect of the first camera module.
Optionally, in some embodiments, referring to fig. 4, it illustrates another shooting sides provided by the embodiments of the present application The flow diagram of method.As shown in figure 4, for S103, which may include:
S401: being microspur limiting value, institute by the burnt section parameter configuration of second camera module under the macro mode Stating preset parameter value includes the microspur limiting value;
It should be noted that usual value is 7cm to infinite point for for the burnt section of current main-stream terminal device. And microspur limiting value is for indicating burnt segment value corresponding when the microspur ability of the second camera module reaches capacity, also referred to as pole Limit nearly coke number;In the embodiment of the present application, microspur limiting value is usually set to 7cm, but the embodiment of the present application is not especially limited.
S402: it is shot according to the second camera module postponed.
It should be noted that when terminal device is in macro mode, if there is exception in the first camera module, at this time The second camera module can be called;It and is microspur limiting value by the burnt section parameter configuration of the second camera module under macro mode And locked, so that the burnt section with the second camera module postponed is locked in microspur limiting value (such as 7cm), then basis is matched The second camera module postponed is shot.Here, in shooting process, the embodiment of the present application be suitable for picture, image or The generation and preview of video.
In addition, the first not all camera module is all fixed-focus in terminal device in the embodiment of the present application;When When the burnt section parameter of one camera module is non-fixed-focus, it is equally applicable to image pickup method provided by the embodiment of the present application.
Illustratively, the first camera module is only by taking GC mould group as an example, which is microspur fixed-focus mould group, and burnt section parameter It is configured to 4cm.In this way, under macro mode, it is assumed that the first camera module (such as GC mould group) is in abnormality, and utilizes the There is clarity deficiency under the scene of part in photo captured by two camera modules (such as main camera module).Specifically Ground, when burnt section parameter configuration be 3~5cm shooting distance when, if image captured by the first camera module be clearly, and Be using image captured by the second camera module it is fuzzy, at this time the embodiment of the present application can mitigate use to a certain extent The shooting demand at family;When burnt section parameter configuration is the shooting distance of 5~7cm, if image captured by the first camera module Fuzzy, and using image captured by the second camera module be also it is fuzzy, at this time the embodiment of the present application can be effective Solve the problems, such as this;When burnt section parameter configuration is shooting distance of the 7cm to infinity, both processing sides can be at this time used Formula exits macro mode or does not lock burnt section;End is improved so as to mitigate the shooting demand of user to reduce customer complaint The usage experience of end equipment.
Optionally, in some embodiments, referring to Fig. 5, it illustrates another shooting sides provided by the embodiments of the present application The flow diagram of method.As shown in figure 5, for S103, which may include:
S501: under the macro mode, the imaging parameters of second camera module are configured to be preset to picture value, institute It states preset parameter value and is preset to picture value including described;
S502: it is shot according to the second camera module postponed;
It should be noted that being preset to picture value can be microshot according to the second camera module to the first camera module It is simulated.It is preset to a set of customized parameter of the picture value as the second camera module, can be used to implement the second camera shooting Mould group simulates the corresponding microshot effect of the first camera module.
It should also be noted that, imaging parameters include at least one of following: AF parameter, AE parameter, AWB parameter and ISP ginseng Number;Here, AF parameter, AE parameter and AWB parameter may be collectively referred to as 3A parameter.Accordingly, being preset to picture value may include having one 3A parameter value and ISP parameter value are covered, and 3A parameter value includes AF parameter value, AE parameter value and AWB parameter value.Wherein, AF parameter Adjust the camera focal length in the second camera module mainly to obtain clearly image, AE parameter is primarily to make second Sensor devices in camera module obtain suitable light exposure, and AWB parameter is primarily to make white object in any light source Under all shown as white, ISP parameter is mainly that the signal exported to front-end image sensor carries out post-processing, such as linearly It corrects, cause the processing such as removal, increase acutance.
In this way, if exception occurs in the first camera module, can at this time be called when terminal device is in macro mode Second camera module;And the imaging parameters of the second camera module are configured to be preset to picture value under macro mode and (can be The a set of 3A parameter value and ISP parameter value individually customized) it is corresponded to so that the second camera module can simulate the first camera module Microshot effect.
Further, in some embodiments, after S502, this method can also include:
S503: when closing the corresponding application program of the macro mode, by second camera module configured at As parameter reverts to original value by the picture value that is preset to.
It should be noted that original value refers to imaging parameters (such as 3A parameter and ISP parameter) institute of the second camera module Corresponding initial value or default value.
In this way, when terminal device closes the corresponding application program of macro mode, i.e., terminal device exit macro mode or Person close microspur option, at this time be directed to the second camera module imaging parameters, it is also necessary to by be preset to picture value revert to it is original Value, convenient for the subsequent normal call for being directed to the second camera module.
Optionally, in some embodiments, after S103, this method can also include:
Size adjusting is carried out to image captured by second camera module, obtains target image;Wherein, the target The corresponding picture size of image is in picture size range captured by first camera module.
It should be noted that the image can also be directed to after obtaining captured image using the second camera module It is compressed or is expanded, to obtain target image, and the corresponding picture size of the target image is in the first camera shooting mould Within the scope of group picture size generated.
Optionally, in some embodiments, after S103, this method can also include:
Processing is sharpened to image captured by second camera module, obtains target image.
It should be noted that can be after obtaining captured image using the second camera module for the image Size adjusting is first carried out, then further Edge contrast;It is also possible to be sharpened processing, the application directly against the image Embodiment is not especially limited.
It should also be noted that, the Edge contrast can carry out intelligent selection according to the clarity of image.Wherein, threshold is preset Whether value needs to be sharpened processing for indicating whether the clarity of image meets the requirements.In this way, if image it is clear Degree is lower than preset threshold, and the clarity for showing image is relatively low, i.e., image is fuzzy, at this time needs to carry out the image strong Edge contrast;If the clarity of image is higher than preset threshold, the clarity for showing image is satisfactory, at this time needs Weak Edge contrast or not Edge contrast are carried out to the image, to meet the shooting demand of user to a certain extent.
On the whole, it is shot using the second camera module, in addition to that can match the burnt section parameter of the second camera module It is set to microspur limiting value (such as 7cm), the imaging parameters of the second camera module can also be configured to be preset to except picture value, Image captured by second camera module can be carried out to size adjusting or be sharpened to handle to enhance the clarity of image, Possibly even these steps are performed simultaneously or any combination executes, the embodiment of the present application is not especially limited.
A kind of image pickup method is present embodiments provided, the specific implementation of previous embodiment is elaborated, therefrom As can be seen that by the technical solution of previous embodiment, when terminal device is in macro mode, if including macro First camera module of head is in abnormality, can at this time be shot by the second camera module of calling, while in order to The second camera module is enabled to simulate the corresponding microshot effect of the first camera module, the second camera module can also be according to Preset parameter value is configured, which is to be carried out according to the second camera module to the microshot of the first camera module What simulation obtained, the shooting demand of user can be so mitigated, customer complaint is reduced;In addition, since terminal device also solves The unusable abnormal phenomenon of one camera module improves the product of terminal device to reduce the failure rate of terminal device Quality, and improve the usage experience of user.
Based on the identical inventive concept of previous embodiment, referring to Fig. 6, it illustrates a kind of bats provided by the embodiments of the present application Take the photograph the composed structure schematic diagram of device 60.As shown in fig. 6, the filming apparatus 60 may include call unit 601, detection unit 602, opening unit 603, configuration unit 604 and shooting unit 605, wherein
The call unit 601 is configured to call the corresponding application program of macro mode;
Whether abnormal the detection unit 602 is configured to the first camera module of detection;Wherein, first camera module Including macro head;
The opening unit 603 is configured to detect that first camera module is in abnormal when the detection unit 602 When state, the second camera module is opened;Wherein, second camera module is different from first camera module;
The configuration unit 604 is configured to carry out parameter configuration to second camera module according to preset parameter value;
The shooting unit 605 is configured to be shot according to the second camera module postponed;Wherein, described default Parameter value is to be simulated to obtain to the microshot of first camera module according to second camera module.
In the above scheme, the opening unit 603 is additionally configured to detect described first when the detection unit 602 When camera module is in normal condition, first camera module is opened;
The shooting unit 605 is additionally configured to be shot by first camera module.
In the above scheme, the detection unit 602 is additionally configured to detect the macro in first camera module Whether head is opened;And when the macro head is fail to open, determine that first camera module is in abnormality.
In the above scheme, the detection unit 602 is additionally configured to when the macro head is opened, described in detection Whether the imaging of the first camera module there is exception;And when the imaging of first camera module occurs abnormal, determine institute It states the first camera module and is in abnormality.
In the above scheme, the configuration unit 604, concrete configuration are to take the photograph under the macro mode by described second As mould group burnt section parameter configuration be microspur limiting value, the preset parameter value includes the microspur limiting value.
In the above scheme, the configuration unit 604, concrete configuration are to take the photograph under the macro mode by described second As the imaging parameters of mould group are configured to be preset to picture value, the preset parameter value includes described being preset to picture value.
In the above scheme, the imaging parameters include at least one of following: AF parameter, AE parameter, AWB parameter and ISP Parameter.
In the above scheme, referring to Fig. 6, the filming apparatus 60 can also include recovery unit 606, be configured to when closing When the corresponding application program of the macro mode, the imaging parameters that second camera module is configured are by the default imaging Value reverts to original value.
In the above scheme, referring to Fig. 6, the filming apparatus 60 can also include adjustment unit 607, be configured to described Image captured by second camera module carries out size adjusting, obtains target image;Wherein, the corresponding image of the target image Size is in picture size range captured by first camera module.
In the above scheme, referring to Fig. 6, the filming apparatus 60 can also include sharpening unit 608, be configured to described Image captured by second camera module is sharpened processing, obtains target image.
It is to be appreciated that in the present embodiment, " unit " can be partial circuit, segment processor, subprogram or soft Part etc., naturally it is also possible to be module, can also be non-modularization.And each component part in the present embodiment can collect It is physically existed alone at each unit in one processing unit, is also possible to, it can also be integrated with two or more units In a unit.Above-mentioned integrated unit both can take the form of hardware realization, can also be using software function module Form is realized.
If the integrated unit realizes that being not intended as independent product is sold in the form of software function module Or in use, can store in a computer readable storage medium, based on this understanding, the technical side of the present embodiment Substantially all or part of the part that contributes to existing technology or the technical solution can be produced case in other words with software The form of product embodies, which is stored in a storage medium, including some instructions are used so that one Platform computer equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute sheet The all or part of the steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk Etc. the various media that can store program code.
Therefore, a kind of computer storage medium is present embodiments provided, which is stored with photographing program, Image pickup method described in any one of previous embodiment is realized when the photographing program is executed by least one processor.
Based on the composition and computer storage medium of above-mentioned filming apparatus 60, referring to Fig. 7, it illustrates the application implementations The specific hardware structure for the filming apparatus 60 that example provides, may include: communication interface 701, memory 702 and processor 703;Respectively A component is coupled by bus system 704.It is understood that bus system 704 is for realizing the connection between these components Communication.Bus system 704 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But For the sake of clear explanation, various buses are all designated as bus system 704 in Fig. 7.Wherein, communication interface 701, for During being received and sent messages between other ext nal network elements, signal is sended and received;
Memory 702, for storing the computer program that can be run on processor 703;
Processor 703, for executing when running the computer program:
The corresponding application program of macro mode is called, whether the first camera module of detection is abnormal;Wherein, first camera shooting Mould group includes macro head;
When detecting that first camera module is when in an abnormal state, the second camera module is opened;Wherein, described second Camera module is different from first camera module;
Parameter configuration is carried out to second camera module according to preset parameter value, according to the second camera module postponed It is shot;Wherein, the preset parameter value is clapped according to microspur of second camera module to first camera module It takes the photograph and is simulated to obtain.
It is appreciated that the memory 702 in the embodiment of the present application can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 702 of system and method described herein be intended to include but be not limited to these and it is any The memory of other suitable types.
And processor 703 may be a kind of IC chip, the processing capacity with signal.During realization, on Each step for stating method can be completed by the integrated logic circuit of the hardware in processor 703 or the instruction of software form. Above-mentioned processor 703 can be general processor, digital signal processor (Digital Signal Processor, DSP), Specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor are patrolled Collect device, discrete hardware components.It may be implemented or execute disclosed each method, step and the logical box in the embodiment of the present application Figure.General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with the application The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and execute completion, or use decoding processor In hardware and software module combination execute completion.Software module can be located at random access memory, and flash memory, read-only memory can In the storage medium of this fields such as program read-only memory or electrically erasable programmable memory, register maturation.The storage Medium is located at memory 702, and processor 703 reads the information in memory 702, and the step of the above method is completed in conjunction with its hardware Suddenly.
It is understood that these embodiments described herein can with hardware, software, firmware, middleware, microcode or A combination thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general place It manages in device, controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof. It for software implementations, can be herein described to realize by executing the module (such as process, function etc.) of herein described function Technology.Software code is storable in memory and is executed by processor.Memory can in the processor or handled It is realized outside device.
Optionally, as another embodiment, processor 703 is additionally configured to when running the computer program, is executed Method described in any one of previous embodiment.
Referring to Fig. 8, it illustrates a kind of composed structure schematic diagrames of terminal device 80 provided by the embodiments of the present application.Such as figure Shown in 8, terminal device 80 at least may include having in the first camera module 801, the second camera module 802 and previous embodiment to appoint Filming apparatus 60 described in one;Wherein, the first camera module 801 includes macro head 8011.Here, the first camera shooting mould Group 801 and the second camera module 802 are different, for example the first camera module 801 can be microspur mould group, the second camera module 802 can based on camera module.
It should be noted that in this application, the terms "include", "comprise" or its any other variant are intended to non- It is exclusive to include, so that the process, method, article or the device that include a series of elements not only include those elements, It but also including other elements that are not explicitly listed, or further include solid by this process, method, article or device Some elements.In the absence of more restrictions, the element limited by sentence " including one ... ", it is not excluded that wrapping Include in process, method, article or the device of the element that there is also other identical elements.
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Disclosed method in several embodiments of the method provided herein, in the absence of conflict can be any group It closes, obtains new embodiment of the method.
Disclosed feature in several product embodiments provided herein, in the absence of conflict can be any group It closes, obtains new product embodiments.
Disclosed feature in several methods provided herein or apparatus embodiments, in the absence of conflict can be with Any combination obtains new embodiment of the method or apparatus embodiments.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application should be based on the protection scope of the described claims.

Claims (14)

1. a kind of image pickup method, which is characterized in that the described method includes:
The corresponding application program of macro mode is called, whether the first camera module of detection is abnormal;Wherein, first camera module Including macro head;
When detecting that first camera module is when in an abnormal state, the second camera module is opened;Wherein, second camera shooting Mould group is different from first camera module;
Parameter configuration is carried out to second camera module according to preset parameter value, is carried out according to the second camera module postponed Shooting;Wherein, the preset parameter value be according to second camera module to the microshot of first camera module into Row simulation obtains.
2. the method according to claim 1, wherein in the first camera module of the detection whether after exception, The method also includes:
When detecting that first camera module is in normal condition, first camera module is opened, passes through described first Camera module is shot.
3. the method according to claim 1, wherein described detect that first camera module is in abnormal shape State, comprising:
Whether the macro head detected in first camera module is opened;
When the macro head is fail to open, determine that first camera module is in abnormality.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
When the macro head is opened, whether the imaging for detecting first camera module there is exception;
When the imaging of first camera module occurs abnormal, determine that first camera module is in abnormality.
5. the method according to claim 1, wherein it is described according to preset parameter value to second camera module Carry out parameter configuration, comprising:
It is microspur limiting value, the default ginseng by the burnt section parameter configuration of second camera module under the macro mode Numerical value includes the microspur limiting value.
6. the method according to claim 1, wherein it is described according to preset parameter value to second camera module Carry out parameter configuration, comprising:
Under the macro mode, configure the imaging parameters of second camera module to be preset to picture value, the default ginseng Numerical value is preset to picture value described in including.
7. according to the method described in claim 6, it is characterized in that, the imaging parameters include at least one of following: automatic right Burnt AF parameter, automatic exposure AE parameter, automatic white balance AWB parameter and image signal process ISP parameter.
8. according to the method described in claim 6, being clapped it is characterized in that, matching the second camera module postponed in the basis After taking the photograph, the method also includes:
When the corresponding application program of the closing macro mode, the imaging parameters that second camera module is configured are by institute It states and is preset to picture value and reverts to original value.
9. being clapped the method according to claim 1, wherein matching the second camera module postponed in the basis After taking the photograph, the method also includes:
Size adjusting is carried out to image captured by second camera module, obtains target image;Wherein, the target image Corresponding picture size is in picture size range captured by first camera module.
10. being carried out the method according to claim 1, wherein matching the second camera module postponed in the basis After shooting, the method also includes:
Processing is sharpened to image captured by second camera module, obtains target image.
11. a kind of filming apparatus, which is characterized in that the filming apparatus includes call unit, detection unit, opening unit, matches Set unit and shooting unit, wherein
The call unit is configured to call the corresponding application program of macro mode;
Whether abnormal the detection unit is configured to the first camera module of detection;Wherein, first camera module includes microspur Camera;
The opening unit is configured to detect that first camera module is when in an abnormal state when the detection unit, open Open the second camera module;Wherein, second camera module is different from first camera module;
The configuration unit is configured to carry out parameter configuration to second camera module according to preset parameter value;
The shooting unit is configured to be shot according to the second camera module postponed;Wherein, the preset parameter value is The microshot of first camera module is simulated to obtain according to second camera module.
12. a kind of filming apparatus, which is characterized in that the filming apparatus includes: memory and processor;Wherein,
The memory, for storing the computer program that can be run on the processor;
The processor, for executing side as described in any one of claim 1 to 10 when running the computer program Method.
13. a kind of computer storage medium, which is characterized in that the computer storage medium is stored with photographing program, the bat It takes the photograph when program is executed by least one processor and realizes method as described in any one of claim 1 to 10.
14. a kind of terminal device, which is characterized in that the terminal device includes at least the shooting as described in claim 11 or 12 Device.
CN201910873638.9A 2019-09-16 2019-09-16 A kind of image pickup method, device and computer storage medium and terminal device Pending CN110536022A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910873638.9A CN110536022A (en) 2019-09-16 2019-09-16 A kind of image pickup method, device and computer storage medium and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910873638.9A CN110536022A (en) 2019-09-16 2019-09-16 A kind of image pickup method, device and computer storage medium and terminal device

Publications (1)

Publication Number Publication Date
CN110536022A true CN110536022A (en) 2019-12-03

Family

ID=68669048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910873638.9A Pending CN110536022A (en) 2019-09-16 2019-09-16 A kind of image pickup method, device and computer storage medium and terminal device

Country Status (1)

Country Link
CN (1) CN110536022A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114726950A (en) * 2022-02-28 2022-07-08 荣耀终端有限公司 Opening method and device of camera module
CN116866545A (en) * 2023-06-30 2023-10-10 荣耀终端有限公司 Mapping relation adjustment method, equipment and storage medium of camera module

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131423A (en) * 2016-07-27 2016-11-16 宇龙计算机通信科技(深圳)有限公司 A kind of photographic method, device and terminal
CN106210666A (en) * 2016-08-30 2016-12-07 国网安徽省电力公司亳州供电公司 A kind of photographic head failover device and method
CN106791366A (en) * 2016-11-25 2017-05-31 努比亚技术有限公司 A kind of microshot method and terminal
WO2018056589A1 (en) * 2016-09-22 2018-03-29 Samsung Electronics Co., Ltd. Method and electronic device for calibration of stereo camera
CN108933903A (en) * 2018-08-14 2018-12-04 奇酷互联网络科技(深圳)有限公司 Processing method, intelligent terminal and the device with store function of camera failure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131423A (en) * 2016-07-27 2016-11-16 宇龙计算机通信科技(深圳)有限公司 A kind of photographic method, device and terminal
CN106210666A (en) * 2016-08-30 2016-12-07 国网安徽省电力公司亳州供电公司 A kind of photographic head failover device and method
WO2018056589A1 (en) * 2016-09-22 2018-03-29 Samsung Electronics Co., Ltd. Method and electronic device for calibration of stereo camera
CN106791366A (en) * 2016-11-25 2017-05-31 努比亚技术有限公司 A kind of microshot method and terminal
CN108933903A (en) * 2018-08-14 2018-12-04 奇酷互联网络科技(深圳)有限公司 Processing method, intelligent terminal and the device with store function of camera failure

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114726950A (en) * 2022-02-28 2022-07-08 荣耀终端有限公司 Opening method and device of camera module
CN116866545A (en) * 2023-06-30 2023-10-10 荣耀终端有限公司 Mapping relation adjustment method, equipment and storage medium of camera module

Similar Documents

Publication Publication Date Title
US9667888B2 (en) Image capturing apparatus and control method thereof
CN107950018B (en) Image generation method and system, and computer readable medium
EP3200446A1 (en) Method and apparatus for generating high dynamic range image
CN110493538A (en) Image processing method, device, storage medium and electronic equipment
CN104618643B (en) A kind of image pickup method and device
US20170163902A1 (en) Method and electronic device for generating high dynamic range image
CN105141832B (en) One kind focusing abnormality eliminating method and mobile terminal
CN105721741B (en) Photographic device, image processing apparatus and image capture method
CN105007431A (en) Picture shooting method based on various shooting scenes and terminal
EP3062513B1 (en) Video apparatus and photography method thereof
CN104469001A (en) Mobile phone with photographing stabilization function and stabilization method in photographing process of mobile phone
CN104994274A (en) Rapid photographing method based on mobile terminal and mobile terminal
CN110266966A (en) Image generating method and device, electronic equipment, computer readable storage medium
CN110536022A (en) A kind of image pickup method, device and computer storage medium and terminal device
CN105306830B (en) A kind of camera control method and device
US9674496B2 (en) Method for selecting metering mode and image capturing device thereof
CN105812672A (en) Method and device for photographing processing
CN106303243A (en) A kind of photographic method, device and terminal
US7684688B2 (en) Adjustable depth of field
US20140168454A1 (en) Image Capture Device and Anti-shake Control Method Thereof
CN110300268A (en) Camera switching method and equipment
CN105007410A (en) Large viewing angle camera control method and user terminal
JP5917040B2 (en) Image processing apparatus and image processing method
CN110691191A (en) Image blurring method and device, computer storage medium and terminal equipment
US9581882B2 (en) Image capturing device and auto-focus method thereof

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

RJ01 Rejection of invention patent application after publication