CN106101525A - Application call dual camera carries out the method and device shot - Google Patents
Application call dual camera carries out the method and device shot Download PDFInfo
- Publication number
- CN106101525A CN106101525A CN201610378483.8A CN201610378483A CN106101525A CN 106101525 A CN106101525 A CN 106101525A CN 201610378483 A CN201610378483 A CN 201610378483A CN 106101525 A CN106101525 A CN 106101525A
- Authority
- CN
- China
- Prior art keywords
- photographic head
- application program
- image information
- calling
- shooting
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
Abstract
The invention provides a kind of method that application call dual camera carries out shooting and a kind of application call dual camera carries out the device that shoots, the method includes: when the trigger action that application program calls two photographic head simultaneously being detected, and whether detection application program possesses the authority calling each photographic head;If application program possesses the authority calling each photographic head, then open two photographic head with two corresponding interfaces of photographic head and shoot simultaneously by calling simultaneously.Shoot with two photographic head corresponding interfaces two photographic head of unlatching by calling simultaneously simultaneously, can synchronization get two photographic head synchronization acquistions to the image information being associated, for meet user intentionally get two photographic head synchronization acquistions to the composograph of image provide premise, and call simultaneously two interfaces can make user save open twice photographic head and perform twice shooting operation time cost, simplify operating steps.
Description
Technical field
The present invention relates to mobile terminal device technical field, specifically, the present invention relates to a kind of application call double
Photographic head carries out the method that shoots and a kind of application call dual camera carries out the device that shoots.
Background technology
Along with science and technology constantly develops, intelligent terminal has been provided with the most comprehensive function, simultaneously as take pictures into
As reaching its maturity of technology, it is increasingly becoming one of focus of intelligent terminal function., the intelligence that currently there are is eventually
The imaging technique level of taking pictures of end equipment basically reaches the rank of slr camera, but compared with slr camera, intelligent terminal sets
Standby portability and ease of use advantages are obvious, and intelligent terminal has become as user and captures a big profit of " the most beautiful " moment
Device, it addition, the image information that can also shooting be obtained by the wireless communication module of intelligent terminal shares society at any time
Handing over network, the experience that is used interchangeably of user is greatly improved.
Existing intelligent terminal is generally of two photographic head, and that two photographic head are the most not same
Shi Kaiqi also controls its technical scheme simultaneously shot.User needs to apply two photographic head same in some special scenes
Shi Jinhang shoots operation, such as, when collective beating is according to souvenir, need user's handheld intelligent terminal device to perform shooting behaviour
Make, and other users in addition to this user may stand in the Farm Planning shooting souvenir with photographic head certain distance, at this
During, the user performing shooting operation is difficult to combine the image information of oneself with other users simultaneously, thus leads
Cause collective beating and lack a member, therefore, if former and later two photographic head in intelligent terminal can be opened perform bat simultaneously according to souvenir
Take the photograph operation and just can avoid above-mentioned sorry.
Summary of the invention
For overcoming above-mentioned technical problem or solving above-mentioned technical problem at least in part, the special techniques below scheme that proposes:
One embodiment of the present of invention proposes a kind of method that application call dual camera carries out shooting, including:
When the trigger action that application program calls two photographic head simultaneously being detected, whether detection application program possesses is called
The authority of each photographic head;
If application program possesses the authority calling each photographic head, then by calling connect corresponding with two photographic head simultaneously
Mouth is opened two photographic head and is shot simultaneously.
Preferably, whether detection application program possesses the authority calling each photographic head, including:
Preset permissions list corresponding with application program is inquired about, with detect application program whether possess call each
The authority of photographic head.
Alternatively, the method also includes:
During set up applications, obtain each photographic head of application call authority, and record with application
In the corresponding preset permissions list of program.
Preferably, shoot with two photographic head corresponding interfaces two photographic head of unlatching by calling simultaneously simultaneously,
Including:
Two photographic head are opened with two corresponding interfaces of photographic head by calling simultaneously;
When detecting that the shooting carrying out shooting by two photographic head instructs, control two photographic head simultaneously and perform shooting
Operation.
Alternatively, by calling with after two photographic head corresponding interfaces two photographic head of unlatching simultaneously, also include:
Interface of corresponding with each photographic head finding a view carries out Display on the same screen.
Alternatively, the method also includes:
Based on default picture processing mode, two photographic head are shot the image information obtained simultaneously to locate accordingly
Manage and show.
It is preferably based on default picture processing mode two photographic head are shot the image information obtained simultaneously to carry out phase
The process answered also shows, including at least one situation following:
Two photographic head are shot the image information obtained store respectively simultaneously, and carry out split screen or full frame the most aobvious
Show;
Two photographic head are shot the image information obtained simultaneously and carries out synthesis process, and the image information after synthesis is entered
Row storage and display.
Alternatively, two photographic head are shot the image information obtained simultaneously and carries out synthesis process, including:
Two photographic head are shot simultaneously the first image information got and the second image information store respectively to respectively
In the corresponding buffer area of photographic head;
First image information of storage and the second image information in buffer area are carried out synthesis process.
Another embodiment of the present invention proposes the device that a kind of application call dual camera carries out shooting, including:
Detection module, during for trigger action that application program calls two photographic head being detected simultaneously, detection application journey
Whether sequence possesses the authority calling each photographic head;
Taking module, for when application program possesses the authority calling each photographic head, takes the photograph with two by calling simultaneously
Open two photographic head as the corresponding interface of head to shoot simultaneously.
Preferably, detection module, should with detection for inquiring about in preset permissions list corresponding with application program
The authority calling each photographic head whether is possessed by program.
Alternatively, this device also includes:
Logging modle, for during set up applications, obtains the authority of each photographic head of application call, and
Record is in preset permissions list corresponding with application program.
Preferably, taking module includes:
Photographic head opens unit, for by calling and two photographic head corresponding interfaces two photographic head of unlatching simultaneously;
Shooting control unit, for when detecting that the shooting carrying out shooting by two photographic head instructs, controlling simultaneously
Two photographic head perform shooting operation.
Alternatively, this device also includes:
Display module, for will corresponding with each photographic head find a view, interface carries out Display on the same screen.
Alternatively, this device also includes:
Processing module, for shooting, by two photographic head, the image information obtained based on default picture processing mode simultaneously
Process accordingly and show.
Preferably, processing module stores respectively for two photographic head are shot the image information obtained simultaneously, and
Carry out split screen or full frame alternately display;And/or
Two photographic head are shot the image information obtained simultaneously and carries out synthesis process, and the image information after synthesis is entered
Row storage and display.
Preferably, processing module includes:
Information memory cell, for shooting the first image information got and the second image letter simultaneously by two photographic head
Breath stores respectively to buffer area corresponding with each photographic head;
Information synthesis unit, for carrying out the first image information of storage and the second image information in buffer area at synthesis
Reason.
Technical scheme solves opens two photographic head the problem carrying out shooting operation simultaneously.First, inspection
When measuring the trigger action that application program calls two photographic head simultaneously, whether detection application program possesses is called each photographic head
Authority, if application program does not possess the authority calling each photographic head, then can affect calling and opening operation of two photographic head;
Subsequently, if application program possesses the authority calling each photographic head, then by calling and two corresponding interfaces of photographic head simultaneously
Open two photographic head to shoot simultaneously, can synchronization get two photographic head synchronization acquistions to the figure being associated
As information, for meet user intentionally get two photographic head synchronization acquistions to the composograph of image provide premise,
And call simultaneously two interfaces can make user save open twice photographic head and perform twice shooting operation time cost, letter
Change operating steps.Further, user is when opening two photographic head and carrying out shooting operation simultaneously, and two photographic head photograph
There is relatedness between image information, therefore, automatically two photographic head are shot the image information obtained simultaneously and close
One-tenth processes, and the image information after synthesis is stored and shown so that user saves to manually select and image information carried out
The time cost that synthesis processes, thus meet the demand relevant to photographic head application of user individual, improve real-time
Experience, and add user experience.
Aspect and advantage that the present invention adds will part be given in the following description, and these will become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or that add aspect and advantage will become from the following description of the accompanying drawings of embodiments
Substantially with easy to understand, wherein:
Fig. 1 is the flow process signal of the method that the application call dual camera of one embodiment of the invention carries out shooting
Figure;
Fig. 2 be a preferred embodiment of the invention find a view interface corresponding with each photographic head is carried out with shielding displaying
Effect schematic diagram;
Fig. 3 is two photographic head are shot the image information obtained simultaneously synthesizing of another preferred embodiment of the present invention
Process the schematic diagram of the display effect obtained;
Fig. 4 is the structural representation that the application call dual camera of another embodiment of the present invention carries out the device shot
Figure.
Detailed description of the invention
Embodiments of the invention are described below in detail, and the example of described embodiment is shown in the drawings, the most from start to finish
Same or similar label represents same or similar element or has the element of same or like function.Below with reference to attached
The embodiment that figure describes is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative used herein " ", "
Individual ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that use in the description of the present invention arranges
Diction " including " refers to there is described feature, integer, step, operation, element and/or assembly, but it is not excluded that existence or adds
Other features one or more, integer, step, operation, element, assembly and/or their group.It should be understood that when we claim unit
Part is " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or can also exist
Intermediary element.Additionally, " connection " used herein or " coupling " can include wireless connections or wireless couple.Used herein arrange
Diction "and/or" includes that one or more list the whole of item or any cell being associated combines with whole.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, and all terms used herein (include technology art
Language and scientific terminology), have with the those of ordinary skill in art of the present invention be commonly understood by identical meaning.Also should
Be understood by, those terms defined in such as general dictionary, it should be understood that have with in the context of prior art
The meaning that meaning is consistent, and unless by specific definitions as here, otherwise will not use idealization or the most formal implication
Explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal unit " had both included wireless communication
The equipment of number receptor, it only possesses the equipment of wireless signal receiver of non-emissive ability, includes again receiving and launching hardware
Equipment, its have on bidirectional communication link, can carry out two-way communication reception and launch hardware equipment.This equipment
May include that honeycomb or other communication equipments, it has single line display or multi-line display or does not has multi-line to show
The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), it can
Process with combine voice, data, fax and/or its communication ability;PDA (Personal Digital Assistant, individual
Digital assistants), it can include the access of radio frequency receiver, pager, the Internet/intranet, web browser, notepad, day
Go through and/or GPS (Global Positioning System, global positioning system) receptor;Conventional laptop and/or palm
Type computer or other equipment, its have and/or include the conventional laptop of radio frequency receiver and/or palmtop computer or its
His equipment." terminal " used herein above, " terminal unit " can be portable, can transport, be arranged on the vehicles (aviation,
Sea-freight and/or land) in, or be suitable for and/or be configured at local runtime, and/or with distribution form, operate in the earth
And/or any other position operation in space." terminal " used herein above, " terminal unit " can also is that communication terminal, on
Network termination, music/video playback terminal, such as, can be PDA, MID (Mobile Internet Device, mobile Internet
Equipment) and/or there is the mobile phone of music/video playing function, it is also possible to it is the equipment such as intelligent television, Set Top Box.
Fig. 1 is the flow process signal of the method that the application call dual camera of one embodiment of the invention carries out shooting
Figure.
Step S110: when the trigger action that application program calls two photographic head simultaneously being detected, detection application program is
No possess the authority calling each photographic head.
Wherein, application program calls the trigger action of two photographic head simultaneously can be that user is in the application to simultaneously
Open the selection operation of the virtual triggering button of two photographic head, it is also possible to be that application program detects that two photographic head synchronize to hold
During the trigger action of row shoot function, automatically initiate the trigger action simultaneously calling two photographic head, to this embodiment of the present invention
It is not construed as limiting.
It addition, dual camera can be separately mounted on front side of terminal unit and two photographic head of rear side, it is also possible to be same
Time be arranged on two photographic head on rear side of terminal unit, this embodiment of the present invention is also not construed as limiting.
Alternatively, the method that application call dual camera carries out shooting also includes: in the process of set up applications
In, obtain the authority of each photographic head of application call, and record in preset permissions list corresponding with application program.
Specifically, can ask the user whether to allow during set up applications this application program obtain call with
Function privilege that each photographic head is relevant or allow according to preset configuration parameter acquiescence during set up applications should
Application program obtains and calls the function privilege relevant to each photographic head, calls and respectively if be detected that allow application program to obtain
The confirmation of the function privilege that individual photographic head is relevant, then this application program obtains the authority calling each photographic head, and should
Authority records is in pre-set list corresponding with application program.
Such as, in android system, the end that application program may access can be shown during set up applications
Specific function on end equipment or information, and ask the user whether the specific function allowing this application program to access on terminal unit
Or information, wherein, specific function or information are the bundle of permissions in android system.Once detect that user allows application program
When accessing the operation of certain bundle of permissions, this application program just can call any one authority in the bundle of permissions allowing to access,
It addition, certain bundle of permissions of the application program access that user has been allowed, it is not necessary to again ask the user whether to allow this authority
The renewal of each authority in group.If be detected that application program possesses the authority calling each photographic head, then this application program can
To carry out shooting photo and the operation of shooting video by each photographic head.
In android system, by the authority that acquisition of such as issuing orders is relevant to photographic head:
<uses-permission android:name="android.permission.CAMERA"/>;
<uses-feature android:name="android.hardware.camera"/>;
<uses-feature android:name="android.hardware.camera.autofocus"/>;
<uses-permission android:name=" android.permission.WRITE_EXTERN AL_
STORAGE"/>。
Preferably, whether detection application program possesses the step of the authority calling each photographic head and includes: with application journey
The corresponding preset permissions list of sequence is inquired about, whether possesses and call the authority of each photographic head detecting application program.
It is it should be noted that if the application program of detection is mounted application program, then initial at this application program
Inquired during installation whether user allows this application program to obtain the authority calling the function relevant to photographic head, should installing
During application program, when detecting that the power of the function relevant to photographic head is called in the application program acquisition that allows that user inputs
During the confirmation of limit, preset permissions list corresponding with this application program records this application program and possesses and call each photographic head
Authority, therefore, when whether subsequent detection application program possesses the authority calling each photographic head, can with application program
Corresponding preset permissions list is inquired about, calls the authority of each photographic head determining whether application program possesses.
Step S120: if application program possesses the authority calling each photographic head, then by calling and two shootings simultaneously
The corresponding interface of head is opened two photographic head and is shot simultaneously.
Preferably, open what two photographic head shot simultaneously with two corresponding interfaces of photographic head by calling simultaneously
Step includes step S121 and step S122: step S121: by calling and two corresponding interfaces of photographic head open two simultaneously
Individual photographic head;Step S122: when detecting that the shooting carrying out shooting by two photographic head instructs, simultaneously control two shootings
Head performs shooting operation.
Such as, in android system, first, the Intent of definition application.Intent is for assisting application journey
Mutual and the mechanism of communication between sequence, Intent is responsible for the action of once-through operation in application program, action are related to data, added
Data are described, and android system can find the assembly of correspondence according to the description of Intent, and passes to Intent adjust
Assembly to complete calling of assembly between application program.It addition, Intent can be not only used for the group between application program
Calling of part, it is also possible to mutual between Activity and Service within application program.Therefore, it can will
Intent is as the medium of communication between different assemblies, to provide the relevant information of the assembly mutually called.It follows that it is permissible
Make the assembly that this application program can be relevant to photographic head carry out communication by the Intent of definition application, and complete to adjust
Operation with two photographic head.
Subsequently, corresponding Action is implemented, to open two by the Intent corresponding Intent Filter with definition
Photographic head.
Finally, when detecting that the shooting carrying out shooting by two photographic head instructs, control two photographic head simultaneously and hold
Row shooting operation.
Specifically, by completing corresponding Action such as " MediaStore.ACTION_IMAGE_CA PTURE "
Action, transmits corresponding data such as image information, performs shooting operation controlling two photographic head simultaneously, and obtains and shoot
The image information arrived.
Instruct furthermore it is possible to generate, through but not limited in the following manner, the shooting carrying out shooting by two photographic head:
(1) the shooting physical button that system of pressing is predetermined;Such as, button CAPTURE is set as being clapped by two photographic head
The button taken the photograph, when detecting that can generate, when user presses CAPTURE button, the shooting carrying out shooting by two photographic head refers to
Order.
(2) existing physical button is pressed with the key mode that system is predetermined;Such as, make a reservation for press volume increase subtract simultaneously
Little button can generate the shooting carrying out shooting by two photographic head and instruct, when detecting that user presses sound simultaneously more than 3 seconds
Amount can generate the shooting carrying out shooting by two photographic head and instruct when increasing reduction button more than 3 seconds.
(3) virtual key that execution carries out shooting is triggered by two photographic head, when detecting that user presses by two
The shooting carrying out shooting by two photographic head can be generated when photographic head carries out the virtual key shot instruct.
Alternatively, after by calling and to open two photographic head with two corresponding interfaces of photographic head simultaneously, the present invention
Scheme also includes: interface of corresponding with each photographic head finding a view carries out Display on the same screen.
As in figure 2 it is shown, be the interface of corresponding with each photographic head finding a view of a preferred embodiment of the invention carry out with
The effect schematic diagram that screen is shown.Specifically, the personage that can capture corresponding with each photographic head, the optics of scenery picture
Signal is converted into the electrical signal that may be used for carrying out real-time exhibition at the human-computer interaction interface of terminal unit.
Alternatively, the present invention program also includes: shot by two photographic head based on default picture processing mode simultaneously
To image information process accordingly and show.
It is preferably based on default picture processing mode two photographic head are shot the image information obtained simultaneously to carry out phase
The process answered the step carrying out showing include but not limited to scenario described below:
(1) two photographic head are shot the image information obtained to store respectively simultaneously, and carry out split screen or full frame friendship
For display.
Specifically, when controlling two photographic head execution shooting operations simultaneously, get the image information of shooting, and should
Image information is stored respectively in predetermined buffer area corresponding with each photographic head, meanwhile, it is also possible to will shoot simultaneously
The image information obtained carries out split screen or full frame alternately display.It should be noted that can be by the screen of terminal unit according in advance
Fixed ratio is divided into upper and lower or left and right two pieces of viewing areas, to show shooting the image information obtained simultaneously at two pieces respectively
Show and region carries out split screen display available;Alternatively, it is also possible to image information shooting obtained with predetermined frequency carry out full frame alternately
Display.
Above-mentioned a kind of situation is directly to be shown shooting the image information obtained simultaneously in a particular manner, displaying
Being the unlinkability separated between image information, following a kind of situation is then closed shooting the image information obtained simultaneously
One-tenth processes.Usually, user when opening two photographic head and carrying out shooting operation simultaneously, the image letter that two photographic head photograph
There is relatedness between breath, therefore, it can that two photographic head are shot the image information obtained simultaneously and carry out synthesis process,
And the image information after synthesis is stored and shows.
(2) two photographic head are shot the image information obtained simultaneously and carries out synthesis process, and by the image letter after synthesis
Breath stores and shows.
Preferably, two photographic head are shot the image information obtained simultaneously and carry out the step of synthesis process and include: first,
Two photographic head are shot simultaneously the first image information got and the second image information store respectively to each photographic head phase
In the buffer area answered;Subsequently, the first image information of storage and the second image information in buffer area are carried out synthesis process.Such as figure
Shown in 3, it is two photographic head are shot the image information obtained simultaneously carrying out synthesis process of another preferred embodiment of the present invention
The schematic diagram of the display effect obtained.
Specifically, two photographic head can be shot the first image information got and the second image information difference simultaneously
Store to buffer area corresponding with each photographic head;Subsequently, by the first image information and the second image information according to predetermined rule
Then it is overlapped operation.Certainly, except above-mentioned simple overlap-add operation mode, it is also possible to carry out the first figure by certain algorithm
As the synthesis of information and the second image information processes: comprehensive first image information and the analysis of the second image information, extraction, edge
Detection and treatment technology, become new image by certain algorithm by the first image information and the second image information fusion and believe
Breath.Wherein, the main thought of image information fusion is that the image information multiple shootings obtained by a mathematical model is carried out
Corresponding process is with one image meeting particular demands and application of comprehensive one-tenth.
Technical scheme solves opens two photographic head the problem carrying out shooting operation simultaneously.First, inspection
When measuring the trigger action that application program calls two photographic head simultaneously, whether detection application program possesses is called each photographic head
Authority, if application program does not possess the authority calling each photographic head, then can affect calling and opening operation of two photographic head;
Subsequently, if application program possesses the authority calling each photographic head, then by calling and two corresponding interfaces of photographic head simultaneously
Open two photographic head to shoot simultaneously, can synchronization get two photographic head synchronization acquistions to the figure being associated
As information, for meet user intentionally get two photographic head synchronization acquistions to the composograph of image provide premise,
And call simultaneously two interfaces can make user save open twice photographic head and perform twice shooting operation time cost, letter
Change operating steps.Further, user is when opening two photographic head and carrying out shooting operation simultaneously, and two photographic head photograph
There is relatedness between image information, therefore, automatically two photographic head are shot the image information obtained simultaneously and close
One-tenth processes, and the image information after synthesis is stored and shown so that user saves to manually select and image information carried out
The time cost that synthesis processes, thus meet the demand relevant to photographic head application of user individual, improve real-time
Experience, and add user experience.
Fig. 4 is the structural representation that the application call dual camera of another embodiment of the present invention carries out the device shot
Figure.
When detection module 410 detects the trigger action that application program calls two photographic head simultaneously, detect application program
Whether possesses the authority calling each photographic head.
Wherein, application program calls the trigger action of two photographic head simultaneously can be that user is in the application to simultaneously
Open the selection operation of the virtual triggering button of two photographic head, it is also possible to be that application program detects that two photographic head synchronize to hold
During the trigger action of row shoot function, automatically initiate the trigger action simultaneously calling two photographic head, to this embodiment of the present invention
It is not construed as limiting.
It addition, dual camera can be separately mounted on front side of terminal unit and two photographic head of rear side, it is also possible to be same
Time be arranged on two photographic head on rear side of terminal unit, this embodiment of the present invention is also not construed as limiting.
Alternatively, the device that application call dual camera carries out shooting also includes logging modle: installing application journey
During sequence, logging modle obtains the authority of each photographic head of application call, and records corresponding with application program pre-
Put in permissions list.
Specifically, can ask the user whether to allow during set up applications this application program obtain call with
Function privilege that each photographic head is relevant or allow according to preset configuration parameter acquiescence during set up applications should
Application program obtains and calls the function privilege relevant to each photographic head, calls and respectively if be detected that allow application program to obtain
The confirmation of the function privilege that individual photographic head is relevant, then this application program obtains the authority calling each photographic head, and should
Authority records is in pre-set list corresponding with application program.
Such as, in android system, the end that application program may access can be shown during set up applications
Specific function on end equipment or information, and ask the user whether the specific function allowing this application program to access on terminal unit
Or information, wherein, specific function or information are the bundle of permissions in android system.Once detect that user allows application program
When accessing the operation of certain bundle of permissions, this application program just can call any one authority in the bundle of permissions allowing to access,
It addition, certain bundle of permissions of the application program access that user has been allowed, it is not necessary to again ask the user whether to allow this authority
The renewal of each authority in group.If be detected that application program possesses the authority calling each photographic head, then this application program can
To carry out shooting photo and the operation of shooting video by each photographic head.
In android system, by the authority that acquisition of such as issuing orders is relevant to photographic head:
<uses-permission android:name="android.permission.CAMERA"/>;
<uses-feature android:name="android.hardware.camera"/>;
<uses-feature android:name="android.hardware.camera.autofocus"/>;
<uses-permission android:name=" android.permission.WRITE_EXTERN AL_
STORAGE"/>。
Preferably, detection module 410 specifically for inquiring about in preset permissions list corresponding with application program, with
Whether detection application program possesses the authority calling each photographic head.
It is it should be noted that if the application program of detection is mounted application program, then initial at this application program
Inquired during installation whether user allows this application program to obtain the authority calling the function relevant to photographic head, should installing
During application program, when detecting that the power of the function relevant to photographic head is called in the application program acquisition that allows that user inputs
During the confirmation of limit, preset permissions list corresponding with this application program records this application program and possesses and call each photographic head
Authority, therefore, when whether subsequent detection application program possesses the authority calling each photographic head, can with application program
Corresponding preset permissions list is inquired about, calls the authority of each photographic head determining whether application program possesses.
Taking module 420 when application program possesses call the authority of each photographic head time, by calling and two shootings simultaneously
The corresponding interface of head is opened two photographic head and is shot simultaneously.
Preferably, taking module 420 includes that photographic head opens unit and shooting control unit: photographic head is opened unit and passed through
Call simultaneously and open two photographic head with two corresponding interfaces of photographic head;Carry out shooting by two photographic head when detecting
During shooting instruction, shooting control unit controls two photographic head simultaneously and performs shooting operation.
Such as, in android system, first, the Intent of definition application.Intent is for assisting application journey
Mutual and the mechanism of communication between sequence, Intent is responsible for the action of once-through operation in application program, action are related to data, added
Data are described, and android system can find the assembly of correspondence according to the description of Intent, and passes to Intent adjust
Assembly to complete calling of assembly between application program.It addition, Intent can be not only used for the group between application program
Calling of part, it is also possible to mutual between Activity and Service within application program.Therefore, it can will
Intent is as the medium of communication between different assemblies, to provide the relevant information of the assembly mutually called.It follows that it is permissible
Make the assembly that this application program can be relevant to photographic head carry out communication by the Intent of definition application, and complete to adjust
Operation with two photographic head.
Subsequently, corresponding Action is implemented, to open two by the Intent corresponding Intent Filter with definition
Photographic head.
Finally, when detecting that the shooting carrying out shooting by two photographic head instructs, shooting control unit controls simultaneously
Two photographic head perform shooting operation.
Specifically, by completing corresponding Action such as " MediaStore.ACTION_IMAGE_CA PTURE "
Action, transmits corresponding data such as image information, performs shooting operation controlling two photographic head simultaneously, and obtains and shoot
The image information arrived.
Instruct furthermore it is possible to generate, through but not limited in the following manner, the shooting carrying out shooting by two photographic head:
(1) the shooting physical button that system of pressing is predetermined;Such as, button CAPTURE is set as being clapped by two photographic head
The button taken the photograph, when detecting that can generate, when user presses CAPTURE button, the shooting carrying out shooting by two photographic head refers to
Order.
(2) existing physical button is pressed with the key mode that system is predetermined;Such as, make a reservation for press volume increase subtract simultaneously
Little button can generate the shooting carrying out shooting by two photographic head and instruct, when detecting that user presses sound simultaneously more than 3 seconds
Amount can generate the shooting carrying out shooting by two photographic head and instruct when increasing reduction button more than 3 seconds.
(3) virtual key that execution carries out shooting is triggered by two photographic head, when detecting that user presses by two
The shooting carrying out shooting by two photographic head can be generated when photographic head carries out the virtual key shot instruct.
Alternatively, after taking module, the device of the embodiment of the present invention also includes display module: display module will with often
Individual photographic head interface of finding a view accordingly carries out Display on the same screen.
As in figure 2 it is shown, be the interface of corresponding with each photographic head finding a view of a preferred embodiment of the invention carry out with
The effect schematic diagram that screen is shown.Specifically, the personage that can capture corresponding with each photographic head, the optics of scenery picture
Signal is converted into the electrical signal that may be used for carrying out real-time exhibition at the human-computer interaction interface of terminal unit.
Alternatively, the device of the embodiment of the present invention also includes processing module: processing module is based on default picture processing side
Two photographic head are shot the image information obtained simultaneously process accordingly and show by formula.
Preferably, processing module specifically for but be not limited to scenario described below:
(1) two photographic head are shot the image information obtained to store respectively simultaneously, and carry out split screen or full frame friendship
For display.
Specifically, when controlling two photographic head execution shooting operations simultaneously, get the image information of shooting, and should
Image information is stored respectively in predetermined buffer area corresponding with each photographic head, meanwhile, it is also possible to will shoot simultaneously
The image information obtained carries out split screen or full frame alternately display.It should be noted that can be by the screen of terminal unit according in advance
Fixed ratio is divided into upper and lower or left and right two pieces of viewing areas, to show shooting the image information obtained simultaneously at two pieces respectively
Show and region carries out split screen display available;Alternatively, it is also possible to image information shooting obtained with predetermined frequency carry out full frame alternately
Display.
Above-mentioned a kind of situation is directly to be shown shooting the image information obtained simultaneously in a particular manner, displaying
Being the unlinkability separated between image information, following a kind of situation is then closed shooting the image information obtained simultaneously
One-tenth processes.Usually, user when opening two photographic head and carrying out shooting operation simultaneously, the image letter that two photographic head photograph
There is relatedness between breath, therefore, it can that two photographic head are shot the image information obtained simultaneously and carry out synthesis process,
And the image information after synthesis is stored and shows.
(2) two photographic head are shot the image information obtained simultaneously and carries out synthesis process, and by the image letter after synthesis
Breath stores and shows.
Preferably, processing module includes information memory cell and information synthesis unit: information memory cell is by two shootings
Head shoots the first image information got simultaneously and the second image information stores respectively to buffer area corresponding with each photographic head
In;First image information of storage and the second image information in buffer area are carried out synthesis process by information synthesis unit.Such as Fig. 3 institute
Show, be another preferred embodiment of the present invention two photographic head are shot simultaneously the image information obtained carry out synthesis process obtain
The schematic diagram of display effect.
Specifically, two photographic head can be shot the first image information got and the second image information difference simultaneously
Store to buffer area corresponding with each photographic head;Subsequently, by the first image information and the second image information according to predetermined rule
Then it is overlapped operation.Certainly, except above-mentioned simple overlap-add operation mode, it is also possible to carry out the first figure by certain algorithm
As the synthesis of information and the second image information processes: comprehensive first image information and the analysis of the second image information, extraction, edge
Detection and treatment technology, become new image by certain algorithm by the first image information and the second image information fusion and believe
Breath.Wherein, the main thought of image information fusion is that the image information multiple shootings obtained by a mathematical model is carried out
Corresponding process is with one image meeting particular demands and application of comprehensive one-tenth.
Technical scheme solves opens two photographic head the problem carrying out shooting operation simultaneously.First, inspection
When measuring the trigger action that application program calls two photographic head simultaneously, whether detection application program possesses is called each photographic head
Authority, if application program does not possess the authority calling each photographic head, then can affect calling and opening operation of two photographic head;
Subsequently, if application program possesses the authority calling each photographic head, then by calling and two corresponding interfaces of photographic head simultaneously
Open two photographic head to shoot simultaneously, can synchronization get two photographic head synchronization acquistions to the figure being associated
As information, for meet user intentionally get two photographic head synchronization acquistions to the composograph of image provide premise,
And call simultaneously two interfaces can make user save open twice photographic head and perform twice shooting operation time cost, letter
Change operating steps.Further, user is when opening two photographic head and carrying out shooting operation simultaneously, and two photographic head photograph
There is relatedness between image information, therefore, automatically two photographic head are shot the image information obtained simultaneously and close
One-tenth processes, and the image information after synthesis is stored and shown so that user saves to manually select and image information carried out
The time cost that synthesis processes, thus meet the demand relevant to photographic head application of user individual, improve real-time
Experience, and add user experience.
Those skilled in the art of the present technique are appreciated that the present invention includes relating to perform in operation described herein
One or more equipment.These equipment can be required purpose and specialized designs and manufacture, or can also include general
Known device in computer.These equipment have storage computer program within it, and these computer programs are optionally
Activate or reconstruct.Such computer program can be stored in equipment (such as, computer) computer-readable recording medium or be stored in
In being suitable to store e-command and be coupled to any kind of medium of bus respectively, described computer-readable medium include but not
Be limited to any kind of dish (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only
Read memorizer), RAM (Random Access Memory, memorizer immediately), EPROM (Erasable Programmable
Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable
Programmable Read-Only Memory, EEPROM), flash memory, magnetic card or light line card
Sheet.It is, computer-readable recording medium includes by equipment (such as, computer) with the form storage that can read or any Jie of transmission information
Matter.
Those skilled in the art of the present technique be appreciated that can with computer program instructions realize these structure charts and/or
The combination of the frame in each frame in block diagram and/or flow graph and these structure charts and/or block diagram and/or flow graph.This technology is led
Field technique personnel be appreciated that these computer program instructions can be supplied to general purpose computer, special purpose computer or other
The processor of programmable data processing method realizes, thus by computer or the process of other programmable data processing methods
Device performs the scheme specified in structure chart disclosed by the invention and/or block diagram and/or the frame of flow graph or multiple frame.
Those skilled in the art of the present technique be appreciated that the various operations discussed in the present invention, method, in flow process
Step, measure, scheme can be replaced, changed, combined or deleted.Further, there is discussed in the present invention each
Other steps in kind operation, method, flow process, measure, scheme can also be replaced, changed, reset, decomposed, combined or deleted.
Further, of the prior art have and the step in the various operations disclosed in the present invention, method, flow process, measure, scheme
Can also be replaced, changed, reset, decomposed, combined or deleted.
The above is only the some embodiments of the present invention, it is noted that for the ordinary skill people of the art
For Yuan, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (10)
1. the method that an application call dual camera carries out shooting, it is characterised in that including:
When the trigger action that application program calls two photographic head simultaneously being detected, detect described application program and whether possess and call
The authority of each photographic head;
If described application program possesses the authority calling each photographic head, then by calling connect corresponding with two photographic head simultaneously
Mouth is opened two photographic head and is shot simultaneously.
Method the most according to claim 1, it is characterised in that whether the described application program of described detection possesses is called each
The authority of photographic head, including:
Preset permissions list corresponding with described application program is inquired about, to detect whether described application program possesses tune
Authority with each photographic head.
Method the most according to claim 1 and 2, it is characterised in that also include:
Installing during described application program, obtaining the authority of each photographic head of described application call, and record with
In the corresponding preset permissions list of described application program.
Method the most according to claim 1, it is characterised in that open with two corresponding interfaces of photographic head by calling simultaneously
Open two photographic head to shoot simultaneously, including:
Two photographic head are opened with two corresponding interfaces of photographic head by calling simultaneously;
When detecting that the shooting carrying out shooting by two photographic head instructs, control two photographic head simultaneously and perform shooting behaviour
Make.
Method the most according to claim 1, it is characterised in that described by calling connect corresponding with two photographic head simultaneously
After mouth opens two photographic head, also include:
Interface of corresponding with each photographic head finding a view carries out Display on the same screen.
Method the most according to claim 1, it is characterised in that described method also includes:
Based on default picture processing mode, two photographic head are shot the image information obtained simultaneously to process accordingly also
Show.
Method the most according to claim 6, it is characterised in that described based on default picture processing mode by two shootings
Head shoots the image information obtained simultaneously and processes accordingly and show, including at least one situation following:
Two photographic head are shot the image information obtained store respectively simultaneously, and carry out split screen or full frame alternately display;
Two photographic head are shot the image information obtained simultaneously and carries out synthesis process, and the image information after synthesis is deposited
Storage and display.
Method the most according to claim 7, it is characterised in that the described image obtained that simultaneously shot by two photographic head is believed
Breath carries out synthesis process, including:
Two photographic head are shot simultaneously the first image information got and the second image information store respectively to each shooting
In the corresponding buffer area of head;
Described first image information stored in buffer area and described second image information are carried out synthesis process.
9. the device that an application call dual camera carries out shooting, it is characterised in that including:
Detection module, during for trigger action that application program calls two photographic head being detected simultaneously, detects described application journey
Whether sequence possesses the authority calling each photographic head;
Taking module, for when described application program possesses the authority calling each photographic head, takes the photograph with two by calling simultaneously
Open two photographic head as the corresponding interface of head to shoot simultaneously.
Device the most according to claim 9, it is characterised in that described detection module for described application program phase
The preset permissions list answered is inquired about, whether possesses and call the authority of each photographic head detecting described application program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610378483.8A CN106101525A (en) | 2016-05-31 | 2016-05-31 | Application call dual camera carries out the method and device shot |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610378483.8A CN106101525A (en) | 2016-05-31 | 2016-05-31 | Application call dual camera carries out the method and device shot |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106101525A true CN106101525A (en) | 2016-11-09 |
Family
ID=57229745
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610378483.8A Pending CN106101525A (en) | 2016-05-31 | 2016-05-31 | Application call dual camera carries out the method and device shot |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106101525A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106603847A (en) * | 2016-12-19 | 2017-04-26 | 宇龙计算机通信科技(深圳)有限公司 | Sharing method and sharing device of media file |
CN107426502A (en) * | 2017-09-19 | 2017-12-01 | 北京小米移动软件有限公司 | Image pickup method and device, electronic equipment |
CN108289167A (en) * | 2017-12-27 | 2018-07-17 | 努比亚技术有限公司 | A kind of the shooting interface adjusting method and mobile terminal of mobile terminal |
CN108419016A (en) * | 2018-04-17 | 2018-08-17 | 北京小米移动软件有限公司 | Image pickup method, device and terminal |
CN109729270A (en) * | 2018-12-30 | 2019-05-07 | 联想(北京)有限公司 | A kind of control method, device and electronic equipment |
CN110996000A (en) * | 2019-12-16 | 2020-04-10 | 深圳市本牛科技有限责任公司 | Method and device for simultaneously shooting from multiple angles |
CN110996001A (en) * | 2019-12-16 | 2020-04-10 | 深圳市本牛科技有限责任公司 | Multi-image parallel shooting processing method |
CN111083095A (en) * | 2018-10-19 | 2020-04-28 | 连株式会社 | Method, computer device and computer program for providing authentication data |
CN111897603A (en) * | 2020-07-23 | 2020-11-06 | 上海瑾盛通信科技有限公司 | Data distribution method and device, electronic equipment and storage medium |
CN113038004A (en) * | 2021-02-26 | 2021-06-25 | 展讯通信(天津)有限公司 | Multi-window image previewing method and device, computer equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080084482A1 (en) * | 2006-10-04 | 2008-04-10 | Sony Ericsson Mobile Communications Ab | Image-capturing system and method |
CN102938825A (en) * | 2012-11-12 | 2013-02-20 | 北京小米科技有限责任公司 | Method and device for shooting pictures and recording videos |
CN103024272A (en) * | 2012-12-14 | 2013-04-03 | 广东欧珀移动通信有限公司 | Double camera control device, method and system of mobile terminal and mobile terminal |
CN103916582A (en) * | 2013-01-07 | 2014-07-09 | 华为技术有限公司 | Image processing method and device |
CN103926785A (en) * | 2014-04-30 | 2014-07-16 | 广州视源电子科技股份有限公司 | Method and device for realizing double cameras |
CN103945045A (en) * | 2013-01-21 | 2014-07-23 | 联想(北京)有限公司 | Method and device for data processing |
CN104580910A (en) * | 2015-01-09 | 2015-04-29 | 宇龙计算机通信科技(深圳)有限公司 | Image synthesis method and system based on front camera and rear camera |
CN104717414A (en) * | 2013-12-12 | 2015-06-17 | 腾讯科技(深圳)有限公司 | Photo processing method and device |
-
2016
- 2016-05-31 CN CN201610378483.8A patent/CN106101525A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080084482A1 (en) * | 2006-10-04 | 2008-04-10 | Sony Ericsson Mobile Communications Ab | Image-capturing system and method |
CN102938825A (en) * | 2012-11-12 | 2013-02-20 | 北京小米科技有限责任公司 | Method and device for shooting pictures and recording videos |
CN103024272A (en) * | 2012-12-14 | 2013-04-03 | 广东欧珀移动通信有限公司 | Double camera control device, method and system of mobile terminal and mobile terminal |
CN103916582A (en) * | 2013-01-07 | 2014-07-09 | 华为技术有限公司 | Image processing method and device |
CN103945045A (en) * | 2013-01-21 | 2014-07-23 | 联想(北京)有限公司 | Method and device for data processing |
CN104717414A (en) * | 2013-12-12 | 2015-06-17 | 腾讯科技(深圳)有限公司 | Photo processing method and device |
CN103926785A (en) * | 2014-04-30 | 2014-07-16 | 广州视源电子科技股份有限公司 | Method and device for realizing double cameras |
CN104580910A (en) * | 2015-01-09 | 2015-04-29 | 宇龙计算机通信科技(深圳)有限公司 | Image synthesis method and system based on front camera and rear camera |
Non-Patent Citations (1)
Title |
---|
胡文等: "《Android嵌入式系统程序开发 基于Cortex-A8(第2版)》", 31 August 2015 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106603847A (en) * | 2016-12-19 | 2017-04-26 | 宇龙计算机通信科技(深圳)有限公司 | Sharing method and sharing device of media file |
CN107426502A (en) * | 2017-09-19 | 2017-12-01 | 北京小米移动软件有限公司 | Image pickup method and device, electronic equipment |
CN107426502B (en) * | 2017-09-19 | 2020-03-17 | 北京小米移动软件有限公司 | Shooting method and device, electronic equipment and storage medium |
CN108289167A (en) * | 2017-12-27 | 2018-07-17 | 努比亚技术有限公司 | A kind of the shooting interface adjusting method and mobile terminal of mobile terminal |
CN108419016A (en) * | 2018-04-17 | 2018-08-17 | 北京小米移动软件有限公司 | Image pickup method, device and terminal |
CN108419016B (en) * | 2018-04-17 | 2022-03-11 | 北京小米移动软件有限公司 | Shooting method and device and terminal |
CN111083095A (en) * | 2018-10-19 | 2020-04-28 | 连株式会社 | Method, computer device and computer program for providing authentication data |
CN111083095B (en) * | 2018-10-19 | 2024-03-15 | 连株式会社 | Method for providing authentication data, computer device and storage medium |
US11153473B2 (en) | 2018-12-30 | 2021-10-19 | Lenovo (Beijing) Co., Ltd. | Control method, device and electronic apparatus for image acquisition |
CN109729270A (en) * | 2018-12-30 | 2019-05-07 | 联想(北京)有限公司 | A kind of control method, device and electronic equipment |
CN110996001A (en) * | 2019-12-16 | 2020-04-10 | 深圳市本牛科技有限责任公司 | Multi-image parallel shooting processing method |
CN110996000A (en) * | 2019-12-16 | 2020-04-10 | 深圳市本牛科技有限责任公司 | Method and device for simultaneously shooting from multiple angles |
CN111897603A (en) * | 2020-07-23 | 2020-11-06 | 上海瑾盛通信科技有限公司 | Data distribution method and device, electronic equipment and storage medium |
CN111897603B (en) * | 2020-07-23 | 2024-02-09 | 上海瑾盛通信科技有限公司 | Data distribution method, device, electronic equipment and storage medium |
CN113038004A (en) * | 2021-02-26 | 2021-06-25 | 展讯通信(天津)有限公司 | Multi-window image previewing method and device, computer equipment and storage medium |
CN113038004B (en) * | 2021-02-26 | 2022-09-23 | 展讯通信(天津)有限公司 | Multi-window image previewing method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106101525A (en) | Application call dual camera carries out the method and device shot | |
CN103631471B (en) | Media interaction method, device and system, and subscriber equipment | |
CN103973544B (en) | Audio communication method, speech playing method and device | |
KR20080010362A (en) | Photographing apparatus and photographing method | |
KR102036054B1 (en) | Method for recoding a video in the terminal having a dual camera and device thereof | |
CN105075237A (en) | Image processing apparatus, image processing method, and program | |
JP2006203600A (en) | Imaging apparatus, image processor, image processing system, and image processing method and program | |
CN107360400A (en) | A kind of kinescope method and recording apparatus for smart machine camera | |
CN105554372A (en) | Photographing method and device | |
CN112261218A (en) | Video control method, video control device, electronic device, and readable storage medium | |
JP2021015493A (en) | Communication terminal, method for controlling communication terminal, and communication system | |
US20180242027A1 (en) | System and method for perspective switching during video access | |
CN110086991A (en) | Image pickup method, device, portable terminal and the storage medium of terminal detection image | |
CN106803879A (en) | Cooperate with filming apparatus and the method for finding a view | |
CN107395982A (en) | Photographic method and device | |
CN104869283B (en) | A kind of image pickup method and electronic equipment | |
CN111818382B (en) | Screen recording method and device and electronic equipment | |
WO2021237592A1 (en) | Anchor point information processing method, apparatus and device and storage medium | |
JP2010068247A (en) | Device, method, program and system for outputting content | |
CN115396684B (en) | Wheat connecting display method and device, electronic equipment and computer readable medium | |
KR100981043B1 (en) | System and method for remote lecture using chroma-key | |
JP2019135609A (en) | Character input support system, character input support control device, and character input support program | |
WO2017146224A1 (en) | Photographing system and data generation method | |
CN107026981A (en) | image preview method, device and mobile terminal | |
CN113596329A (en) | Photographing method and photographing apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161109 |
|
RJ01 | Rejection of invention patent application after publication |