CN107465878A - Control method and device, terminal and the readable storage medium storing program for executing of camera - Google Patents

Control method and device, terminal and the readable storage medium storing program for executing of camera Download PDF

Info

Publication number
CN107465878A
CN107465878A CN201710851432.7A CN201710851432A CN107465878A CN 107465878 A CN107465878 A CN 107465878A CN 201710851432 A CN201710851432 A CN 201710851432A CN 107465878 A CN107465878 A CN 107465878A
Authority
CN
China
Prior art keywords
camera
output image
scene
photographed scene
image
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.)
Withdrawn
Application number
CN201710851432.7A
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.)
Meizu Technology Co Ltd
Original Assignee
Meizu 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 Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201710851432.7A priority Critical patent/CN107465878A/en
Publication of CN107465878A publication Critical patent/CN107465878A/en
Withdrawn 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
    • 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
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/65Control of camera operation in relation to power supply
    • 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/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/028Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The present invention provides a kind of control method and device of camera, and applied to the terminal including at least main camera and secondary camera, the secondary camera is used for the depth of view information that photographed scene is obtained in shooting operation.The dynamic control method of the camera includes:When the main camera and the secondary camera are in focusing state, monitor whether current photographed scene changes relative to the scene in the output image of the last shooting operation;If monitoring, current photographed scene does not change, closes the secondary camera.The control method of camera provided by the invention, the image that can dynamically close secondary camera according to the change of photographed scene in shooting process export, and to reduce the power consumption during using background blurring function, and lift user experience.

Description

Control method and device, terminal and the readable storage medium storing program for executing of camera
Technical field
The present invention relates to acquisition technology field, more particularly to a kind of control method and device of camera, terminal and Readable storage medium storing program for executing.
Background technology
This part is it is intended that the embodiments of the present invention stated in claims and embodiment provide background Or context.Description herein recognizes it is prior art not because not being included in this part.
With the development of technology, the mobile phone of dual camera is more and more, at present the background blurring function of Dual-camera handset In, the effect of secondary camera is opened primarily to more accurately calculating current photographed scene by two cameras of major-minor Depth of view information, then done again according to the depth of view information that calculates background blurring.However, existing Dual-camera handset is in reality When it is background blurring during be always on the output of secondary camera image, can so increase the power consumption of camera, cause the electricity of mobile phone Amount consumption is too fast, and user experience is bad.
The content of the invention
Can in consideration of it, being necessary to provide a kind of control method and device of camera, terminal, computer installation and computer Storage medium is read, the image that can dynamically close secondary camera according to the change of photographed scene in shooting process exports, so as to The power consumption during using background blurring function is reduced, and lifts user experience.
On the one hand the embodiment of the present invention provides a kind of control method of camera, applied to including at least main camera and pair The terminal of camera, the secondary camera are used for the depth of view information that photographed scene is obtained in shooting operation.The camera Control method includes:
When the main camera and the secondary camera are in focusing state, current photographed scene is monitored relative to most Whether the scene in the output image of a nearly shooting operation changes;
If monitoring, current photographed scene does not change, closes the secondary camera.
Further, after monitoring that current photographed scene does not change and before the closing secondary camera, The control method of the camera also includes:Obtain the depth of view information associated with the output image.
Further, after the secondary camera is closed, the control method of the camera also includes:
When the main camera is again at focusing state, monitors current photographed scene and shot relative to the last time Whether the scene in the output image of operation changes;
If monitoring, current photographed scene changes, and opens the secondary camera, and controls the secondary camera Into focusing state.
Further, monitor current photographed scene is relative to the scene in the output image of the last shooting operation It is no change including:
Obtain the preview image of current photographed scene and the output image of the last shooting operation;
Calculate the similarity of the preview image and the output image;
When the similarity of the preview image and the output image reaches predetermined threshold value, current photographed scene is judged Do not changed relative to the scene in the output image of the last shooting operation;
When the similarity of the preview image and the output image is less than predetermined threshold value, current photographed scene is judged Changed relative to the scene in the output image of the last shooting operation.
Further, calculating the preview image and the similarity of the output image includes:
Calculate the overall similarity of the preview image and the output image;Or
Calculate the similarity of the background parts of the preview image and the background parts of the output image.
On the other hand the embodiment of the present invention also provides a kind of control device of camera, applied to including at least main camera With the terminal of secondary camera, the secondary camera is used for the depth of view information that photographed scene is obtained in shooting operation.The shooting The control device of head includes:
Monitoring modular, for when the main camera and the secondary camera are in focusing state, monitoring current bat Take the photograph whether scene changes relative to the scene in the output image of the last shooting operation;
Control module, for when monitoring that current photographed scene does not change, closing the secondary camera.
Further, the control device of the camera also includes acquisition module, for monitoring current shooting field After scape does not change and close before the secondary camera, obtain the depth of view information associated with the output image.
Further, the monitoring modular is additionally operable to after the secondary camera is closed, and in the main camera again Secondary when being in focusing state, monitor current photographed scene is relative to the scene in the output image of the last shooting operation It is no to change;
The control module is additionally operable to when monitoring that current photographed scene changes, and opens the secondary camera, And the secondary camera is controlled to enter focusing state.
Further, the monitoring modular is monitoring output of the current photographed scene relative to the last shooting operation When whether the scene in image changes, it is specifically used for:
Obtain the preview image of current photographed scene and the output image of the last shooting operation;
Calculate the similarity of the preview image and the output image;
When the similarity of the preview image and the output image reaches predetermined threshold value, current photographed scene is judged Do not changed relative to the scene in the output image of the last shooting operation;
When the similarity of the preview image and the output image is less than predetermined threshold value, current photographed scene is judged Changed relative to the scene in the output image of the last shooting operation.
Further, the monitoring modular is when calculating the preview image and the similarity of the output image, specifically For:
Calculate the overall similarity of the preview image and the output image;Or
Calculate the similarity of the background parts of the preview image and the background parts of the output image.
Another further aspect of the embodiment of the present invention also provides a kind of terminal, and the terminal includes processor, and the processor is used for The step of control method of any of the above-described camera being realized when performing the computer program stored in memory.
The another aspect of the embodiment of the present invention also provides a kind of computer-readable recording medium, is stored thereon with computer journey Sequence, the computer program realizes the control method of any of the above-described camera when being executed by processor the step of.
The control method of camera provided by the invention, can dynamically it be closed according to the change of photographed scene in shooting process The image output of secondary camera is closed, to reduce the power consumption during using background blurring function, and lifts user's use Experience.
Brief description of the drawings
It is required in being described below to embodiment in order to illustrate more clearly of the technical scheme of embodiment of the present invention The accompanying drawing used is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is the control method schematic flow sheet of the camera of first embodiment of the invention.
Fig. 2 is the control method schematic flow sheet of the camera of second embodiment of the invention.
Fig. 3 is the step 101 shown in Fig. 1 and the step 201 shown in Fig. 2, " the current shooting of monitoring described in 204 Whether scene changes relative to the scene in the output image of the last shooting operation " refined flow chart.
Fig. 4 is the structural representation of the control device for the camera that an embodiment of the present invention provides.
Fig. 5 is the structural representation for the terminal that an embodiment of the present invention provides.
Main element symbol description
Terminal 1
The control device 10 of camera
Monitoring modular 11
Acquisition module 12
Control module 13
Processor 20
Memory 30
Computer program 40
Main camera 50
Secondary camera 60
Following embodiment will combine above-mentioned accompanying drawing and further illustrate the present invention.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention Applying mode, the present invention will be described in detail.It should be noted that in the case where not conflicting, presently filed embodiment and reality Applying the feature in mode can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, described embodiment Only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, this area The every other embodiment that those of ordinary skill is obtained under the premise of creative work is not made, belongs to guarantor of the present invention The scope of shield.
Unless otherwise defined, all of technologies and scientific terms used here by the article is with belonging to technical field of the invention The implication that technical staff is generally understood that is identical.Term used in the description of the invention herein is intended merely to description tool The purpose of the embodiment of body, it is not intended that in the limitation present invention.
Fig. 1 be an embodiment of the present invention provide camera control method flow chart, the control of the camera Method is applied to terminal.The terminal can have shoot function such as smart mobile phone, tablet personal computer, personal digital assistant Computer equipment.It should be noted that the control method of the camera of embodiment of the present invention is not limited to shown in Fig. 1 Step and order in flow chart.According to different demands, the step in shown flow chart can increase, removes or change Sequentially.
In the present embodiment, the terminal comprises at least main camera and secondary camera, wherein, the main camera and Secondary camera is respectively used to export the image of photographed scene in shooting operation, and the secondary camera is additionally operable in shooting operation Obtain the depth of view information of photographed scene.
In one embodiment, the secondary camera can be used for coordinating the main camera to be precisely calculated current bat Take the photograph the depth of view information of scene.For example, the main camera and secondary camera difference output image, the secondary camera can be based on two The depth of view information of the definition COMPREHENSIVE CALCULATING photographed scene of object in the image that person exports respectively.
In another embodiment, the secondary camera can be used for output image, and according to the thing in the image of its output The depth of view information of the sharpness computation photographed scene of body.
It is appreciated that the terminal can also calculate the depth of view information of photographed scene using other modes, due to calculating Depth of view information is not the emphasis of technical solution of the present invention, repeats no more it here and realizes details.
As shown in figure 1, the control method of the camera may comprise steps of:
Step 101, when the main camera and the secondary camera are in focusing state, current photographed scene is monitored Whether changed relative to the scene in the output image of the last shooting operation.
Wherein, output image of the present invention refers to that the main camera and/or the secondary camera directly collect Image, be not image after treatment.The terminal can be based on the depth of view information associated with the output image to described Output image carries out background blurring processing, to obtain background blurring image.Because background blurring processing is not the technology of the present invention side The emphasis of case, it is repeated no more here and realizes details.
Step 102, if monitoring, current photographed scene does not change, closes the secondary camera.
If it is appreciated that monitor that photographed scene does not change substantially in a short time, with the last bat The depth of view information for taking the photograph the output image association of operation is exactly the depth of view information of current photographed scene, therefore is not necessarily to count again The depth of view information of current photographed scene, the image output of the secondary camera temporarily can be first closed, to save background void The power consumption of change.
It is understood that in one embodiment, in above-mentioned steps 102, monitoring that current photographed scene do not send out After changing and close before the secondary camera, can also comprise the following steps:Then obtain and associated with the output image Depth of view information.If that is, monitoring that current photographed scene does not change, acquisition associates with the output image Depth of view information, then perform again close the secondary camera the step of.In order to perform the background blurring function of the terminal. The control method of camera provided by the invention, the change of current photographed scene, and root can be monitored in real time in shooting process The image that secondary camera is dynamically closed according to the change of photographed scene exports, to reduce in the process using background blurring function In power consumption, and lift user experience.
Fig. 2 is the flow chart of the control method for the camera that second embodiment of the invention provides.Second embodiment The main distinction of the control method of camera and the control method of the camera of first embodiment is, second embodiment The step of also including obtaining the depth of view information associated with output image in the control method of camera and taken the photograph in the closing pair The step of as after head.It should be noted that in the range of the spirit or essential attributes of the embodiment of the present invention, suitable for first Each concrete scheme in embodiment can also repeat accordingly suitable for second embodiment to save space and avoiding See, just repeat no more herein.
The control method of the camera shown in Fig. 2 is applied to terminal.As shown in Fig. 2 the controlling party of the camera Method includes:
Step 201, when the main camera and the secondary camera are in focusing state, current photographed scene is monitored Whether changed relative to the scene in the output image of the last shooting operation.
Step 202, if monitoring, current photographed scene does not change, obtains the scape associated with the output image Deeply convince breath.
Step 203, the secondary camera is closed.
Step 204, when the main camera is again at focusing state, current photographed scene is monitored relative to nearest Whether the scene in the output image of shooting operation changes.
Step 205, if monitoring, current photographed scene changes, and opens the secondary camera, and described in control Secondary camera enters focusing state.
If it is appreciated that monitor that photographed scene does not change substantially in a short time, with the last bat The depth of view information for taking the photograph the output image association of operation is exactly the depth of view information of current photographed scene, therefore is not necessarily to count again The depth of view information of current photographed scene, the image output of the secondary camera temporarily can be first closed, to save background void The power consumption of change.When monitoring that photographed scene changes again, then need to recalculate depth of view information, therefore can reopen The image output of the secondary camera.
The control method of camera provided by the invention, the change of current photographed scene can be monitored in real time in shooting process Change, and the image output of secondary camera is dynamically switched according to the change of photographed scene, background blurring work(is being used to reduce Power consumption during energy, and lift user experience.
Fig. 3 is the step 101 shown in Fig. 1 and the step 201 shown in Fig. 2, " the current shooting of monitoring described in 204 Whether scene changes relative to the scene in the output image of the last shooting operation " refined flow chart.Such as Fig. 3 institutes Show, whether the current photographed scene of the monitoring changes relative to the scene in the output image of the last shooting operation Specifically include:
Step 301, the preview image of current photographed scene and the output image of the last shooting operation are obtained.
Step 302, the similarity of the preview image and the output image is calculated.
In one embodiment, calculating the preview image and the similarity of the output image includes:Described in calculating Preview image and the overall similarity of the output image, i.e. judge whether scene integrally changes.
In another embodiment, calculating the preview image and the similarity of the output image includes:Calculate institute State the similarity of the background parts of preview image and the background parts of the output image, i.e. judging the background parts of scene is It is no to change.Due to calculating depth of view information primarily to doing background blurring, if background is constant, scape need not be calculated again Deeply convince breath, therefore only can judge whether background parts change.
Step 303, judge whether the preview image and the similarity of the output image reach predetermined threshold value.Described When preview image and the similarity of the output image reach predetermined threshold value, step 304 is performed;The preview image with it is described The similarity of output image be less than or not up to predetermined threshold value when, perform step 305.
Step 304, judge current photographed scene relative to the scene in the output image of the last shooting operation not Change.
Step 305, judge that current photographed scene is sent out relative to the scene in the output image of the last shooting operation Changing.
Fig. 4 is the structural representation of the control device for the camera that an embodiment of the present invention provides, the camera Control device is applied to terminal.The control device of the camera can include one or more modules, one or more of Module be stored in the memory of terminal and be configured to by one or more processors (present embodiment be one processing Device) perform, to complete the present invention.For example, as shown in fig.4, the control device 10 of camera can include monitoring modular 11, obtain Modulus block 12 and control module 13.Module alleged by the embodiment of the present invention can complete the program segment of a specific function, than Implementation procedure of the program more suitable for description software within a processor.
It is understood that corresponding to each embodiment in the control method of above-mentioned camera, the control of the camera Device 10 processed can include part or all in each functional module shown in Fig. 4, and the function of each module 11~13 will be Introduce in detail below.It should be noted that identical noun correlation name in each embodiment of the control method of above camera Word and its specific illustrate are readily applicable to the following function introduction to each module 11~13.To save space and avoiding For the sake of repeating, just repeat no more herein.
In the present embodiment, the terminal comprises at least main camera and secondary camera, wherein, the main camera and Secondary camera is respectively used to export the image of photographed scene in shooting operation, and the secondary camera is additionally operable in shooting operation Obtain the depth of view information of photographed scene.
In one embodiment, the secondary camera can be used for coordinating the main camera to be precisely calculated current bat Take the photograph the depth of view information of scene.For example, the main camera and secondary camera difference output image, the secondary camera can be based on two The depth of view information of the definition COMPREHENSIVE CALCULATING photographed scene of object in the image that person exports respectively.
In another embodiment, the secondary camera can be used for output image, and according to the thing in the image of its output The depth of view information of the sharpness computation photographed scene of body.
It is appreciated that the terminal can also calculate the depth of view information of photographed scene using other modes, due to calculating Depth of view information is not the emphasis of technical solution of the present invention, repeats no more it here and realizes details.
The monitoring modular 11 is used for when the main camera and the secondary camera are in focusing state, and monitoring is current Photographed scene whether changed relative to the scene in the output image of the last shooting operation.
Wherein, output image of the present invention refers to that the main camera and/or the secondary camera directly collect Image, be not image after treatment.The terminal can be based on the depth of view information associated with the output image to described Output image carries out background blurring processing, to obtain background blurring image.Because background blurring processing is not the technology of the present invention side The emphasis of case, it is repeated no more here and realizes details.
The acquisition module 12 is used to monitor that current photographed scene do not change and close the secondary camera Before, the depth of view information associated with the output image is obtained.
The control module 13 is used for when monitoring that current photographed scene does not change, closes the secondary shooting Head.
The control module 13 can be additionally used in monitor current photographed scene do not change and obtain with it is described defeated Go out after the depth of view information of image association, close the secondary camera.
In the present embodiment, the monitoring modular 11 is additionally operable to after the secondary camera is closed, and in the master When camera is again at focusing state, monitor in output image of the current photographed scene relative to the last shooting operation Scene whether change.
The control module 13 is additionally operable to when monitoring that current photographed scene changes, and opens the secondary shooting Head, and control the secondary camera to enter focusing state.
If it is appreciated that monitor that photographed scene does not change substantially in a short time, with the last bat The depth of view information for taking the photograph the output image association of operation is exactly the depth of view information of current photographed scene, therefore is not necessarily to count again The depth of view information of current photographed scene, the image output of the secondary camera temporarily can be first closed, to save background void The power consumption of change.When monitoring that photographed scene changes again, then need to recalculate depth of view information, therefore can reopen The image output of the secondary camera.
In the present embodiment, the monitoring modular is monitoring current photographed scene relative to the last shooting operation Output image in scene when whether changing, be specifically used for:
Obtain the preview image of current photographed scene and the output image of the last shooting operation;
Calculate the similarity of the preview image and the output image;
When the similarity of the preview image and the output image reaches predetermined threshold value, current photographed scene is judged Do not changed relative to the scene in the output image of the last shooting operation;
When the similarity of the preview image and the output image is less than predetermined threshold value, current photographed scene is judged Changed relative to the scene in the output image of the last shooting operation.
Wherein, in one embodiment, the monitoring modular is calculating the preview image and the output image During similarity, specifically for calculating the preview image and the overall similarity of the output image, i.e. judge that scene is integrally It is no to change.
In another embodiment, the monitoring modular is similar to the output image in the calculating preview image When spending, the similarity specifically for calculating the background parts of the preview image and the background parts of the output image, i.e. sentence Whether the background parts of disconnected scene change.Due to calculate depth of view information primarily to do it is background blurring, if background is constant, Depth of view information need not be then calculated again, therefore only can judge whether background parts change.
The control device of camera provided by the invention, the change of current photographed scene can be monitored in real time in shooting process Change, and exported according to the image for alternatively switching secondary camera of photographed scene, to reduce using background blurring function During power consumption, and lift user experience.
The embodiment of the present invention also provides a kind of terminal, including memory, processor and storage on a memory and can located The computer program that runs on reason device, the camera described in above-mentioned embodiment is realized during the computing device described program Control method the step of.
Fig. 5 is the schematic diagram for the terminal that an embodiment of the present invention provides.As shown in figure 5, terminal 1 comprises at least:Processing Device 20, memory 30, be stored in the memory 30 and can be run on the processor 20 computer program 40 (such as The control program of camera), main camera 50 and secondary camera 60.
Wherein, the terminal 1 can be the meter that smart mobile phone, tablet personal computer, personal digital assistant etc. have shoot function Calculate machine equipment.It will be understood by those skilled in the art that the schematic diagram 3 is only the example of terminal 1, not structure paired terminal 1 Restriction, can include than illustrating more or less parts, either combine some parts or different parts, such as institute Input-output equipment, network access equipment, bus etc. can also be included by stating terminal 1.
The main camera 50 and the secondary camera 60 are respectively used to export the image of photographed scene in shooting operation, The secondary camera 60 is additionally operable to obtain the depth of view information of photographed scene in shooting operation.
In one embodiment, the secondary camera 60 can be used for coordinating the main camera 50 to be precisely calculated currently Photographed scene depth of view information.For example, the main camera 50 and secondary camera 60 distinguish output image, the secondary camera 60 can the depth of view information based on the definition COMPREHENSIVE CALCULATING photographed scene of the object in the image that both export respectively.
In another embodiment, the secondary camera 60 can be used for output image, and in the image according to its output The depth of view information of the sharpness computation photographed scene of object.
It is appreciated that the terminal 1 can also calculate the depth of view information of photographed scene using other modes, due to calculating Depth of view information is not the emphasis of technical solution of the present invention, repeats no more it here and realizes details.
The processor 20 is realized when performing the computer program 40 in the control method embodiment of above-mentioned camera The step of, such as step 101~103 shown in Fig. 1, step 201~205 shown in Fig. 2 or the step 301 shown in Fig. 3~ 305.The processor 20 realizes each module/unit, example in above-mentioned each device embodiments when performing the computer program 40 Such as the function of module 11~13.
Exemplary, the computer program 40 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 30, and are performed by the processor 20, to complete the present invention.Described one Individual or multiple module/units can be the series of computation machine programmed instruction section that can complete specific function, and the instruction segment is used In implementation procedure of the description computer program 40 in the terminal 1.For example, the computer program 40 can be divided Into the monitoring modular 11 in Fig. 2, acquisition module 12 and control module 13, before the concrete function of each module 11~13 refers to Specific introduction, for the sake of saving space and avoiding repetition, just repeat no more herein.
Alleged processor 20 can be CPU (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor 20 can also be any conventional processing Device etc., the processor 20 are the control centres of terminal 1 described in the control device 10/ of the camera, using various interfaces and The various pieces of the terminal 1 of control device 10/ of the whole camera of connection.
The memory 30 is used to store the computer program 40 and/or module/unit, and the processor 20 passes through fortune Row performs the computer program and/or module/unit being stored in the memory 30, and calls and be stored in the storage Data in device 30, realize the various functions of the terminal 1 of control device 10/ of the camera.The memory 30 can be wrapped mainly Storing program area and storage data field are included, wherein, storing program area can storage program area, the application needed at least one function Program (such as sound-playing function, image player function etc.) etc.;Storage data field can store to be created according to using for terminal 1 Data (such as voice data, phone directory, the data set using the control method of above-mentioned camera, obtained etc.) etc..This Outside, the memory 30 can include high-speed random access memory, can also include nonvolatile memory, such as hard disk, Internal memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) Card, flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
The embodiment of the present invention also provides a kind of computer-readable recording medium, is stored thereon with computer program, the meter Calculation machine program realizes the step of control method of the camera described in above-mentioned embodiment when being executed by processor.
If the integrated module/unit of the computer installation of 10/ terminal of control device 1/ of the camera is with software function The form of unit is realized and is used as independent production marketing or in use, can be stored in a computer read/write memory medium In.Based on such understanding, the present invention realizes all or part of flow in above-mentioned embodiment method, can also pass through calculating Machine program instructs the hardware of correlation to complete, and described computer program can be stored in a computer-readable recording medium, The computer program when being executed by processor, can be achieved above-mentioned each method embodiment the step of.Wherein, the calculating Machine program includes computer program code, and the computer program code can be source code form, object identification code form, can hold Style of writing part or some intermediate forms etc..The computer-readable recording medium can include:The computer program can be carried Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, the read-only storage of code (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, electricity Believe signal and software distribution medium etc..It should be noted that the content that the computer-readable medium includes can be according to department Legislation and the requirement of patent practice carry out appropriate increase and decrease in method administrative area, such as in some jurisdictions, according to legislation and Patent practice, computer-readable medium do not include electric carrier signal and telecommunication signal.
In several embodiments provided by the present invention, it should be understood that disclosed terminal and method, can be with Realize by another way.For example, termini embodiment described above is only schematical, for example, the module Division, only a kind of division of logic function, can there is other dividing mode when actually realizing.
In addition, each functional module in each embodiment of the present invention can be integrated in same treatment module, can also That modules are individually physically present, can also two or more modules be integrated in equal modules.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of hardware adds software function module.
It is obvious to a person skilled in the art that the embodiment of the present invention is not limited to the details of above-mentioned one exemplary embodiment, And in the case of the spirit or essential attributes without departing substantially from the embodiment of the present invention, this hair can be realized in other specific forms Bright embodiment.Therefore, no matter from the point of view of which point, embodiment all should be regarded as exemplary, and is nonrestrictive, sheet The scope of inventive embodiments is limited by appended claims rather than described above, it is intended that will fall being equal in claim All changes in the implication and scope of important document are included in the embodiment of the present invention.Should not be by any accompanying drawing mark in claim Note is considered as the involved claim of limitation.Furthermore, it is to be understood that the word of " comprising " one is not excluded for other units or step, odd number is not excluded for Plural number.Multiple units, module or the device stated in system, device or terminal claim can also be by same unit, moulds Block or device are realized by software or hardware.The first, the second grade word is used for representing title, and is not offered as any specific Order.
Finally it should be noted that embodiment of above is only to illustrate the technical scheme of the embodiment of the present invention and unrestricted, Although the embodiment of the present invention is described in detail with reference to above better embodiment, one of ordinary skill in the art should Understand, the technical scheme of the embodiment of the present invention can be modified or equivalent substitution should not all depart from the skill of the embodiment of the present invention The spirit and scope of art scheme.

Claims (10)

1. a kind of control method of camera, applied to the terminal including at least main camera and secondary camera, the secondary shooting Head is used for the depth of view information that photographed scene is obtained in shooting operation, it is characterised in that the control method of the camera includes:
When the main camera and the secondary camera are in focusing state, current photographed scene is monitored relative to nearest one Whether the scene in the output image of secondary shooting operation changes;
If monitoring, current photographed scene does not change, closes the secondary camera.
2. the control method of camera as claimed in claim 1, it is characterised in that monitoring that current photographed scene do not send out After changing and close before the secondary camera, the control method of the camera also includes:Obtain and scheme with the output As the depth of view information of association.
3. the control method of camera as claimed in claim 1 or 2, it is characterised in that after the secondary camera is closed, The control method of the camera also includes:
When the main camera is again at focusing state, current photographed scene is monitored relative to the last shooting operation Output image in scene whether change;
If monitoring, current photographed scene changes, and opens the secondary camera, and controls the secondary camera to enter Focusing state.
4. the control method of camera as claimed in claim 1 or 2, it is characterised in that it is relative to monitor current photographed scene Scene in the output image of the last shooting operation whether change including:
Obtain the preview image of current photographed scene and the output image of the last shooting operation;
Calculate the similarity of the preview image and the output image;
When the similarity of the preview image and the output image reaches predetermined threshold value, judge that current photographed scene is relative Scene in the output image of the last shooting operation does not change;
When the similarity of the preview image and the output image is less than predetermined threshold value, judge that current photographed scene is relative Scene in the output image of the last shooting operation changes.
5. the control method of camera as claimed in claim 4, it is characterised in that calculate the preview image and the output The similarity of image includes:
Calculate the overall similarity of the preview image and the output image;Or
Calculate the similarity of the background parts of the preview image and the background parts of the output image.
6. a kind of control device of camera, applied to the terminal including at least main camera and secondary camera, the secondary shooting Head is used for the depth of view information that photographed scene is obtained in shooting operation, it is characterised in that the control device of the camera includes:
Monitoring modular, for when the main camera and the secondary camera are in focusing state, monitoring current shooting field Whether scape changes relative to the scene in the output image of the last shooting operation;
Control module, for when monitoring that current photographed scene does not change, closing the secondary camera.
7. the control device of camera as claimed in claim 6, it is characterised in that the control device of the camera also includes Acquisition module, for after monitoring that current photographed scene does not change and before the closing secondary camera, obtaining The depth of view information associated with the output image.
8. the control device of camera as claimed in claims 6 or 7, it is characterised in that the monitoring modular is current in monitoring Photographed scene when whether being changed relative to the scene in the output image of the last shooting operation, be specifically used for:
Obtain the preview image of current photographed scene and the output image of the last shooting operation;
Calculate the similarity of the preview image and the output image;
When the similarity of the preview image and the output image reaches predetermined threshold value, judge that current photographed scene is relative Scene in the output image of the last shooting operation does not change;
When the similarity of the preview image and the output image is less than predetermined threshold value, judge that current photographed scene is relative Scene in the output image of the last shooting operation changes.
9. a kind of terminal, it is characterised in that the terminal includes processor, and the processor is used to perform what is stored in memory The step of control method of the camera as described in any one in claim 1-5 is realized during computer program.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that:The computer program The step of control method of the camera as described in any one in claim 1-5 is realized when being executed by processor.
CN201710851432.7A 2017-09-19 2017-09-19 Control method and device, terminal and the readable storage medium storing program for executing of camera Withdrawn CN107465878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710851432.7A CN107465878A (en) 2017-09-19 2017-09-19 Control method and device, terminal and the readable storage medium storing program for executing of camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710851432.7A CN107465878A (en) 2017-09-19 2017-09-19 Control method and device, terminal and the readable storage medium storing program for executing of camera

Publications (1)

Publication Number Publication Date
CN107465878A true CN107465878A (en) 2017-12-12

Family

ID=60551616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710851432.7A Withdrawn CN107465878A (en) 2017-09-19 2017-09-19 Control method and device, terminal and the readable storage medium storing program for executing of camera

Country Status (1)

Country Link
CN (1) CN107465878A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001211380A (en) * 2000-01-28 2001-08-03 Fuji Photo Film Co Ltd Electronic camera
CN105120135A (en) * 2015-08-25 2015-12-02 努比亚技术有限公司 Binocular camera
CN106506958A (en) * 2016-11-15 2017-03-15 维沃移动通信有限公司 A kind of method shot using mobile terminal and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001211380A (en) * 2000-01-28 2001-08-03 Fuji Photo Film Co Ltd Electronic camera
CN105120135A (en) * 2015-08-25 2015-12-02 努比亚技术有限公司 Binocular camera
CN106506958A (en) * 2016-11-15 2017-03-15 维沃移动通信有限公司 A kind of method shot using mobile terminal and mobile terminal

Similar Documents

Publication Publication Date Title
CN107591155A (en) Audio recognition method and device, terminal and computer-readable recording medium
CN109543200A (en) A kind of text interpretation method and device
CN109327627A (en) Telephone number recognition methods, device and storage medium based on block chain
CN107395990A (en) Phase focusing method and device, terminal, computer installation and readable storage medium storing program for executing
CN110266996B (en) Video conference control method and device and terminal equipment
CN107256707A (en) A kind of audio recognition method, system and terminal device
CN106528290A (en) Resource scheduling method for mobile terminal and mobile terminal
CN108762654A (en) Method, apparatus, terminal and the computer readable storage medium of text editing
CN107832291A (en) Client service method, electronic installation and the storage medium of man-machine collaboration
CN107578467A (en) A kind of medicine equipment three-dimensional modeling method and device
CN109753348A (en) The management-control method and terminal of background application
CN107783710A (en) Camera control method and device, terminal and readable storage medium storing program for executing
WO2020134547A1 (en) Fixed-point acceleration method and apparatus for data, electronic device and storage medium
CN107465878A (en) Control method and device, terminal and the readable storage medium storing program for executing of camera
CN112528049B (en) Video synthesis method, device, electronic equipment and computer readable storage medium
CN109783782A (en) Generation method, equipment, storage medium and the device of electronic contract template
WO2021051537A1 (en) Deep learning resource scheduling method and appartus, and terminal device
CN107360361A (en) A kind of reversible-light shooting personage method and device
CN110163049B (en) Face attribute prediction method, device and storage medium
JP3860098B2 (en) Information terminal equipment
WO2023036322A1 (en) Rapid authentication method based on finger vein biometric recognition technology, and device and medium
CN109120509A (en) A kind of method and device that information is collected
CN110210671A (en) Power-system short-term load forecasting method, device and terminal device
CN107465842A (en) The calling-out method and terminal device of call center
CN109120690A (en) Method and apparatus for being monitored in block chain network to energy device

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20171212