CN109639983A - Photographic method, device, terminal and computer readable storage medium - Google Patents
Photographic method, device, terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN109639983A CN109639983A CN201910013723.8A CN201910013723A CN109639983A CN 109639983 A CN109639983 A CN 109639983A CN 201910013723 A CN201910013723 A CN 201910013723A CN 109639983 A CN109639983 A CN 109639983A
- Authority
- CN
- China
- Prior art keywords
- image
- camera
- depth
- shooting
- shooting 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.)
- Granted
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
- 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/80—Camera processing pipelines; Components thereof
Abstract
The application belongs to field of photographing technology, more particularly to a kind of photographic method, device, terminal and computer readable storage medium, wherein, the photographic method is applied to terminal, the terminal is provided with dual camera, the dual camera includes 3D camera and RGB camera, and the photographic method includes: to obtain the current photographing mode of terminal;If the photographing mode is the first preset mode, opens the RGB camera and obtain the first shooting image;If the photographing mode is the second preset mode, opens the 3D camera and obtain the second shooting image and the first depth image;The assemble flow for simplifying camera improves the assembly efficiency of camera;The problem of avoiding simultaneously and carry out image taking using 3D camera, the resolution ratio of image taking is caused to be unable to satisfy user demand.
Description
Technical field
The application belongs to field of photographing technology more particularly to a kind of photographic method, device, terminal and computer-readable storage
Medium.
Background technique
In computer vision system, three-dimensional scene information is all kinds of calculating such as image segmentation, target detection, object tracking
Machine vision application provides a possibility that more, and depth image (Depth map) is as a kind of universal three-dimensional scene information table
It is widely used up to mode.The gray value of each pixel of depth image can be used for characterizing certain point distance in scene
The distance of video camera.
Currently, the method for generalling use binocular stereo vision obtains depth image, this method needs to be arranged two cameras,
Also, the two cameras needs are spaced apart, while needing to be fixed with bracket, and need to demarcate it, take the photograph
As the assembly of head is more complex.
Summary of the invention
The embodiment of the present application provides a kind of photographic method, device, terminal and computer readable storage medium, can solve and obtains
The camera of depth information is taken to assemble complicated technical problem.
The embodiment of the present application first aspect provides a kind of photographic method, is applied to terminal, and the terminal is provided with double camera shootings
Head, the dual camera include 3D camera and RGB camera, and the photographic method includes:
Obtain the current photographing mode of terminal;
If the photographing mode is the first preset mode, opens the RGB camera and obtain the first shooting image;
If the photographing mode is the second preset mode, opens the 3D camera and obtain the second shooting image and the
One depth image.
The embodiment of the present application second aspect provides a kind of camera arrangement, is configured at terminal, and the terminal is provided with double camera shootings
Head, the dual camera include 3D camera and RGB camera, and the camera arrangement includes:
Acquiring unit, for obtaining the current photographing mode of terminal;
First shooting unit is opened the RGB camera and is obtained if being the first preset mode for the photographing mode
First shooting image;
Second shooting unit is opened the 3D camera and is obtained if being the second preset mode for the photographing mode
Second shooting image and the first depth image.
The embodiment of the present application third aspect provides a kind of terminal, including dual camera, memory, processor and is stored in
In memory and the computer program that can run on a processor, processor realize the step of the above method when executing computer program
Suddenly.
The embodiment of the present application fourth aspect provides a kind of computer readable storage medium, computer-readable recording medium storage
The step of having computer program, the above method is realized when computer program is executed by processor.
In the embodiment of the present application, depth image is directly acquired in image taking by the way that 3D camera is arranged, does not need to make
The acquisition of depth image is carried out with two cameras, therefore, it may not be necessary to camera be fixed with bracket, and to taking the photograph
As head is demarcated, the assemble flow of camera is simplified, the assembly efficiency of camera is improved.In addition, the application also passes through
RGB camera is set while 3D camera is set, realizes when photographing mode is the first preset mode, can pass through
RGB camera carries out the acquisition of the first shooting image, avoids and carries out image taking using 3D camera, leads to image taking
Resolution ratio is unable to satisfy the problem of user demand.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of first implementation flow schematic diagram of photographic method provided by the embodiments of the present application;
Fig. 2 is the first schematic diagram of preview interface provided by the embodiments of the present application of taking pictures;
Fig. 3 is a kind of the second implementation process schematic diagram of photographic method provided by the embodiments of the present application;
Fig. 4 is the specific implementation flow schematic diagram of photographic method step 105 provided by the embodiments of the present application;
Fig. 5 is the second schematic diagram of preview interface provided by the embodiments of the present application of taking pictures;
Fig. 6 is the structural schematic diagram of camera arrangement provided by the embodiments of the present application;
Fig. 7 is the structural schematic diagram of terminal provided by the embodiments of the present application.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and
It is not used in restriction the application.Meanwhile in the description of the present application, term " first ", " second " etc. are only used for distinguishing description, without
It can be interpreted as indication or suggestion relative importance.
Currently, the method for generalling use binocular stereo vision obtains, and this method needs to be arranged two when obtaining depth image
A camera, and the two images of Same Scene can be obtained simultaneously by the two cameras, it is looked for by Stereo Matching Algorithm
The corresponding pixel into two images then calculates parallax information according to triangle principle, and the parallax information is converted
At the depth image that can be used for characterizing object distance in scene.
In this method for obtaining depth image, the assembly needs of camera are spaced apart, while needing to use bracket
It is fixed, and need to demarcate camera, the assembly of camera is more complicated.Especially in the selection of bracket, if making
With metallic support fixing camera, it is likely that will affect the transmission of radiofrequency signal;If with non-metal frame fixing camera,
It is likely to require and just can guarantee the higher stability of camera using the biggish bracket of thickness, this is for needing to realize thin design
Terminal for, will undoubtedly increase the design difficulty of terminal structure.
In the embodiment of the present application, depth image is directly acquired in image taking by the way that 3D camera is arranged, does not need to make
The acquisition of depth image is carried out with two cameras, therefore, it may not be necessary to camera be fixed with bracket, and to taking the photograph
As head is demarcated, the assemble flow of camera is simplified, the assembly efficiency of camera is improved, terminal structure is not will increase and sets
The difficulty of meter.
In addition, in practical applications, 3D camera is exporting two-dimentional RGB image and is carrying the depth image of depth information
When, the corresponding depth accuracy of depth image is higher, and the resolution ratio decline of two-dimentional RGB image is more obvious, and is unable to satisfy user to figure
As the requirement of resolution ratio.In this regard, the embodiment of the present application is realized also by the way that RGB camera is arranged while 3D camera is arranged
When photographing mode is the first preset mode, the acquisition of the first shooting image can be carried out by RGB camera, avoid benefit
The problem of being carried out image taking with 3D camera, the resolution ratio of image taking caused to be unable to satisfy user demand.
A kind of photographic method implementation process schematic diagram provided by the embodiments of the present application, this method are applied to as shown in figure 1
Terminal can be executed by the camera arrangement configured in terminal, suitable for that need to improve the situation of camera assembly efficiency, including step
101 to step 103.
Wherein, above-mentioned terminal includes the terminal that smart phone, tablet computer, learning machine etc. are configured with camera arrangement.The end
End can be equipped with application of taking pictures, and be provided with dual camera, and the dual camera includes 3D camera and RGB camera.
The 3D camera can export two-dimentional RGB image simultaneously when shooting and carry the depth image of depth information;
The higher two-dimentional RGB image of the resolution ratio that the RGB camera can export when shooting.
Step 101, the current photographing mode of terminal is obtained.
Optionally, in some embodiments of the application, it can obtain terminal when receiving camera enabled instruction and work as
Preceding photographing mode.
For example, above-mentioned camera enabled instruction include user clicked in system desktop take pictures application icon triggering camera open
Dynamic instruction, user by the camera enabled instruction of point physical button triggering, user by the camera enabled instruction of speech trigger or
The camera enabled instruction of person's other modes triggering.
Optionally, in some embodiments of the application, it is current that terminal can also be obtained when receiving photographing instruction
Photographing mode.
For example, as shown in Fig. 2, clicking taking pictures for the triggering of control 22 of taking pictures taken pictures in preview interface 21 receiving user
When instruction, the current photographing mode of terminal is obtained;Or pass through the photographing instruction of click physical button triggering receiving user
When, obtain the current photographing mode of terminal;Or it when receiving photographing instruction of the user by speech trigger, obtains eventually
Hold current photographing mode;It is merely illustrative, in the embodiment of the present application, the triggering mode of photographing instruction is not carried out herein
It limits.
Optionally, above-mentioned photographing mode may include that the first default photographing mode, the second default photographing mode and third are pre-
If one or more in photographing mode.The first default photographing mode is the mode opening RGB camera and being shot;It is described
Second default photographing mode is the mode opening 3D camera and being shot;The third presets photographing mode and is while opening
The screening-mode of RGB camera and 3D camera.
Optionally, the screening-mode of terminal can refer to according to the setting that the user received triggers in preview interface of taking pictures
Order is configured.
For example, as shown in Fig. 2, the screening-mode of terminal can be according to the user received at 21 midpoint of preview interface of taking pictures
After hitting setting control 23, the setting instruction for the described first default photographing mode that selection selection control 25 triggers in pop-up 24,
The setting instruction for the described second default photographing mode that selection selection control 26 triggers, selection selection control 27 trigger described the
The setting of three default photographing modes instructs.
Step 102, it if the photographing mode is the first preset mode, opens the RGB camera and obtains the first shooting
Image.
In the embodiment of the present application, after obtaining the current photographing mode of terminal, if the photographing mode is first default
Mode, then it represents that user only needs to carry out the shooting of two-dimentional RGB image, therefore, can be by individually opening the RGB camera
The shooting for carrying out two-dimentional RGB image meets requirement of the user to the image of shooting high-resolution.
For example, when user needs to carry out self-timer or normal picture shooting then first can be set by photographing mode
Preset mode obtains the first shooting image to open the RGB camera when terminal receives photographing instruction, alternatively,
When carrying out image preview, the RGB camera is opened, and when receiving photographing instruction as described in RGB camera acquisition
First shooting image.
Step 103, it if the photographing mode is the second preset mode, opens the 3D camera and obtains the second shooting figure
Picture and the first depth image.
In the embodiment of the present application, when user needs while obtaining two-dimentional RGB image and carries the depth image of depth information
When, then photographing mode can be set to the second preset mode, be taken the photograph to open the 3D when terminal receives photographing instruction
Image and depth image are shot as head obtains second, alternatively, opening the 3D camera, and connecing when carrying out image preview
By the 3D camera while the second shooting image and depth image is obtained when receiving photographing instruction.
In the embodiment of the present application, by the way that the dual camera including 3D camera and RGB camera is arranged, it can be mentioned for user
For two kinds of screening-modes independently, that is, first preset mode and the second preset mode.Under both screening-modes,
Two cameras work independently, and complementation interference, when 3D camera is opened, the RGB camera is not turned on, when the RGB takes the photograph
When opening as head, the 3D camera is not turned on;Also, two opening for camera can be by the screening-mode of user's selection
It is controlled, has the characteristics that control mode is flexible, the automatic switchover of the two can be realized according to user demand.
In addition, be independent of each other since the work of the two cameras is independent mutually, therefore, the two cameras can be with
It does not need to be fixed with bracket, between the two the yet not limitation of distance, while it is also not necessary to the two cameras
It is demarcated, simplifies the assemble flow of camera, improve the assembly efficiency of camera.
Optionally, in above-mentioned steps 103, after the second shooting image of acquisition and the first depth image, may be used also
To include: to export 3-D image according to the second shooting image and first depth image.
For example, when carrying out 3D makeups, in order to make virtual dressing merge more with the user images of acquisition naturally, then may be used
The 3D camera is opened to pass through, while obtaining the second shooting image and the depth image, and export corresponding three
Tie up image.
As a kind of embodiment of the application, as shown in figure 3, it is described obtain the current photographing mode of terminal after, also
It may include step 104 to step 105.
Step 104, if the photographing mode is third preset mode, the RGB camera and the 3D are opened simultaneously
Camera, and the first shooting image, the second shooting image and first depth image are obtained respectively.
Step 105, the depth information that first depth image carries is mapped in the first shooting image, is obtained
Carry the first shooting image of depth information.
Since 3D camera itself can export two-dimentional RGB image and depth image simultaneously, it is three-dimensional needing to obtain
When image, it is only necessary to open a 3D camera and carry out image taking.But due in practical applications, 3D camera
When exporting two-dimentional RGB image and carrying the depth image of depth information, the corresponding depth accuracy of depth image is higher, two dimension
The resolution ratio decline of RGB image is more obvious, and therefore, resolution ratio is higher and depth accuracy also higher 3-D image needing to obtain
When, then it cannot directly use 3D camera directly to export two-dimentional RGB image and depth image acquisition 3-D image.
In the embodiment of the present application, by comprehensive 3D camera and the respective advantage of RGB camera, while the RGB is opened
Camera and the 3D camera obtain the first shooting image, the second shooting image and first depth image, then
The depth information that first depth image carries is mapped in the first shooting image, obtains carrying the of depth information
One shooting image, to be obtained according to the first shooting image for carrying depth information, resolution ratio is higher and depth accuracy is higher
3-D image;It avoids and carries out image taking using 3D camera, causing the resolution ratio of image taking to be unable to satisfy user needs
The problem of asking.
Since above-mentioned first camera is possible to bigger at a distance from interval between second camera, described the
The content of shooting of one shooting image and the second shooting image there may be inconsistent situation, therefore, the application's
In some embodiments, as shown in figure 4, above-mentioned steps 105, are mapped to institute for the depth information that first depth image carries
It states in the first shooting image, obtains the first shooting image for carrying depth information, may include: step 401 to step 403.
Step 401, alignment transformation and cutting processing are carried out to the first shooting image and the second shooting image, obtained
Image, and the 4th shooting figure corresponding with the second shooting image are shot to third corresponding with the first shooting image
Picture;The pixel in pixel and the 4th shooting image in the third shooting image corresponds.
For example, carrying out alignment transformation and sanction to the first shooting image and the second shooting image using alignment algorithm
Processing is cut, so that the pixel in the pixel and the 4th shooting image in third shooting image corresponds.Wherein, institute
Stating alignment algorithm can be general alignment algorithm, for example, forward direction addition algorithm and inverse combinational algorithm.
Step 402, shoot to first depth image that image is identical is aligned transformation and cutting with described second
Processing, obtains the second depth image.
Step 403, the depth information of second depth image is mapped to the third and shoots image, obtain carrying deep
The third for spending information shoots image.
Since the first depth image and the second shooting image are the image that 3D camera exports simultaneously, it claps
Take the photograph content be it is identical, therefore, after carrying out alignment transformation to the second shooting image and cutting handle to obtain the 4th shooting image,
Using with it is described second shooting image it is identical be aligned transformation and cut processing first depth image is carried out being aligned transformation
It is handled with cutting, can to obtain the second depth image and the 4th shooting image corresponds, that is, with described the
Three shooting images correspond.It is identical right with the second shooting image therefore, it is necessary to be carried out to first depth image
Neat transformation and cutting processing, obtain the second depth image, so that the depth information of second depth image may map to institute
Third shooting image is stated, the third shooting image for carrying depth information is obtained.
Optionally, described while before opening the RGB camera and the 3D camera, comprising: to image the 3D
The depth accuracy of head is adjusted to maximum value, to obtain the higher 3-D image of depth accuracy as far as possible.
Optionally, in the embodiment of above-mentioned Fig. 1 description, step 103, if the photographing mode is second default
Mode then opens the 3D camera and obtains the second shooting image and the first depth image, if may include: the mould of taking pictures
Formula is the second preset mode, then adjusts to default accuracy value the depth accuracy of the 3D camera, open the 3D and take the photograph
As head obtains the second shooting image and the first depth image.
Due to not can determine that the depth accuracy of 3D camera at this time is when the photographing mode is the second preset mode
It is no to be arranged to maximum value or other depth accuracies, therefore, when determining the photographing mode is the second preset mode, need
First the depth accuracy of the 3D camera to be adjusted to default accuracy value and then open the 3D camera acquisition second count
Take the photograph image and the first depth image.
Wherein, which can be depth essence when depth accuracy and the resolution ratio of image being made to reach equilibrium state
Degree.For example, the predetermined depth precision can be obtained according to experiment.
Optionally, it in some embodiments of the application, in above-mentioned steps 103, opens the 3D camera and obtains the
Two shooting images and the first depth image can also include: to receive depth accuracy setting instruction, be set according to the depth accuracy
It sets the corresponding depth accuracy of instruction and obtains the second shooting image and the first depth image.
For example, as shown in figure 5, can take pictures in preview interface 21 when the photographing mode is the second preset mode
Display depth precision setting item 51, and receive the slide according to user to the sliding block 52 on depth accuracy setting item 51
Instruction is arranged in the depth accuracy of generation, and instructs corresponding depth accuracy to obtain the second shooting figure according to depth accuracy setting
Picture and the first depth image, to realize the three-dimensional according to the second shooting image and first depth image output
Dynamic adjustment between the resolution ratio and depth accuracy of image, to meet the different shooting demand of user.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit
It is fixed.
Fig. 6 shows a kind of structural schematic diagram of camera arrangement 600 provided by the embodiments of the present application, and the camera arrangement is matched
It is placed in terminal, the terminal is provided with dual camera, and the dual camera includes 3D camera and RGB camera, described to take pictures
Device includes acquiring unit 601, first shooting unit 602 and second shooting unit 603.
Acquiring unit 601, for obtaining the current photographing mode of terminal;
First shooting unit 602 opens the RGB camera if being the first preset mode for the photographing mode
Obtain the first shooting image;
Second shooting unit 603 is opened the 3D camera and is obtained if being the second preset mode for the photographing mode
Take the second shooting image and the first depth image.
In some embodiments of the application, the camera arrangement 600 can also include third shooting unit, if for
The photographing mode is third preset mode, then opens the RGB camera and the 3D camera simultaneously, and obtain institute respectively
State the first shooting image, the second shooting image and first depth image;The depth that first depth image is carried
Information MAP obtains the first shooting image for carrying depth information into the first shooting image.
Optionally, the third shooting unit, be also used to it is described first shooting image and it is described second shooting image into
Row alignment transformation and cutting processing, obtain with the first shooting image corresponding third shooting image, and with described second
Shoot the corresponding 4th shooting image of image;The pixel in pixel and the 4th shooting image in the third shooting image
It corresponds;It is identical with the second shooting image to first depth image progress to be aligned transformation and cutting processing, it obtains
To the second depth image;The depth information of second depth image is mapped to the third shooting image, obtains carrying deep
The third for spending information shoots image.
Optionally, the second shooting unit, be also used to open at the same time the RGB camera and the 3D camera it
Before, the depth accuracy of the 3D camera is adjusted to maximum value.
Optionally, the second shooting unit, if being also used to the photographing mode is the second preset mode, by the 3D
The depth accuracy of camera is adjusted to default accuracy value, is opened the 3D camera and is obtained the second shooting image and first
Depth image.
Optionally, the second shooting unit is also used to obtain the second shooting image and the first depth image described
Later, according to the second shooting image and first depth image, 3-D image is exported.
It should be noted that for convenience and simplicity of description, the specific work process of the camera arrangement 600 of foregoing description,
Can be with reference to the corresponding process of method described in above-mentioned Fig. 1 to Fig. 5, details are not described herein.
As shown in fig. 7, the application provides a kind of terminal for realizing above-mentioned photographic method, which can be intelligent hand
The terminals such as machine, tablet computer, PC (PC), learning machine, comprising: processor 71, memory 72, one or more inputs are set
Standby 73 (one is only shown in Fig. 7), one or more output equipments 74 (one is only shown in Fig. 7) and dual camera 75.Processing
Device 71, memory 72, input equipment 73, output equipment 74 and dual camera 75 are connected by bus 76.The dual camera includes
3D camera and RGB camera, for according to acquisition external optical signals, generate first shooting image, second shooting image and
First depth image.
It should be appreciated that in the embodiment of the present application, alleged processor 71 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
Reason device is also possible to any conventional processor etc..
Input equipment 73 may include that dummy keyboard, Trackpad, fingerprint adopt sensor (for acquiring the finger print information of user
With the directional information of fingerprint), microphone etc., output equipment 74 may include display, loudspeaker etc..
Memory 72 may include read-only memory and random access memory, and provide instruction sum number to processor 71
According to.Part or all of memory 72 can also include nonvolatile RAM.For example, memory 72 can be with
The information of storage device type.
Above-mentioned memory 72 is stored with computer program, and above-mentioned computer program can be run on above-mentioned processor 71, example
Such as, above-mentioned computer program is the program of photographic method.Above-mentioned processor 71 realizes above-mentioned bat when executing above-mentioned computer program
According to the step in embodiment of the method, such as step 101 shown in FIG. 1 is to step 103.Alternatively, above-mentioned processor 71 execute it is above-mentioned
The function of each module/unit in above-mentioned each Installation practice, such as unit 601 to 603 shown in Fig. 6 are realized when computer program
Function.
Above-mentioned computer program can be divided into one or more module/units, and said one or multiple modules/mono-
Member is stored in above-mentioned memory 72, and is executed by above-mentioned processor 71, to complete the application.Said one or multiple moulds
Block/unit can be the series of computation machine program instruction section that can complete specific function, the instruction segment by describe it is above-mentioned based on
Implementation procedure of the calculation machine program in the above-mentioned terminal taken pictures.For example, above-mentioned computer program can be divided into acquisition
Unit, first shooting unit and second shooting unit, each unit concrete function are as follows: acquiring unit, current for obtaining terminal
Photographing mode;First shooting unit opens the RGB camera if being the first preset mode for the photographing mode
Obtain the first shooting image;Second shooting unit is opened the 3D and is taken the photograph if being the second preset mode for the photographing mode
As head obtains the second shooting image and the first depth image.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of above-mentioned apparatus is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal and method can pass through
Other modes are realized.For example, device/terminal embodiment described above is only schematical, for example, above-mentioned module or
The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units
Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute
Display or the mutual coupling or direct-coupling or communication connection discussed can be through some interfaces, device or unit
INDIRECT COUPLING or communication connection can be electrical property, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If above-mentioned integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, above-mentioned meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, above-mentioned computer program includes computer program code, above-mentioned computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Above-mentioned computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry above-mentioned computer program code
Dish, CD, computer storage, read-only memory (Read-Only Memory, ROM), random access memory (Random
Access Memory, RAM), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that above-mentioned meter
The content that calculation machine readable medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice,
It such as does not include electric carrier signal and telecommunications according to legislation and patent practice, computer-readable medium in certain jurisdictions
Signal.
Above above-described embodiment is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality
Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Comprising within the scope of protection of this application.
Claims (10)
1. a kind of photographic method, is applied to terminal, the terminal is provided with dual camera, which is characterized in that the dual camera
Including 3D camera and RGB camera, the photographic method includes:
Obtain the current photographing mode of terminal;
If the photographing mode is the first preset mode, opens the RGB camera and obtain the first shooting image;
If the photographing mode is the second preset mode, opens the 3D camera and obtain the second shooting image and first deeply
Spend image.
2. photographic method as described in claim 1, which is characterized in that after the current photographing mode of the acquisition terminal, also
Include:
If the photographing mode is third preset mode, the RGB camera and the 3D camera are opened simultaneously, and respectively
Obtain the first shooting image, the second shooting image and first depth image;
The depth information that first depth image carries is mapped in the first shooting image, obtains carrying depth information
First shooting image.
3. photographic method as claimed in claim 2, which is characterized in that the depth for carrying first depth image is believed
Breath is mapped in the first shooting image, obtains the first shooting image for carrying depth information, comprising:
Alignment transformation and cutting processing are carried out to the first shooting image and the second shooting image, obtained and described first
It shoots the corresponding third of image and shoots image, and the 4th shooting image corresponding with the second shooting image;The third
The pixel shot in the pixel in image and the 4th shooting image corresponds;
It is identical with the second shooting image to first depth image progress to be aligned transformation and cutting processing, obtain second
Depth image;
The depth information of second depth image is mapped to the third shooting image, obtains the third for carrying depth information
Shoot image.
4. photographic method as claimed in claim 2 or claim 3, which is characterized in that described while opening the RGB camera and described
Before 3D camera, comprising:
The depth accuracy of the 3D camera is adjusted to maximum value.
5. photographic method as described in claim 1, which is characterized in that if the photographing mode is the second preset mode,
It then opens the 3D camera and obtains the second shooting image and the first depth image, comprising:
If the photographing mode be the second preset mode, by the depth accuracy of the 3D camera adjust to default accuracy value it
Afterwards, it opens the 3D camera and obtains the second shooting image and the first depth image.
6. photographic method as claimed in claim 1 or 5, which is characterized in that obtain the second shooting image and first described
After depth image, comprising:
According to the second shooting image and first depth image, 3-D image is exported.
7. a kind of camera arrangement, is configured at terminal, the terminal is provided with dual camera, which is characterized in that the dual camera
Including 3D camera and RGB camera, the camera arrangement includes:
Acquiring unit, for obtaining the current photographing mode of terminal;
First shooting unit opens the RGB camera and obtains first if being the first preset mode for the photographing mode
Shoot image;
Second shooting unit opens the 3D camera and obtains second if being the second preset mode for the photographing mode
Shoot image and the first depth image.
8. camera arrangement as claimed in claim 7, which is characterized in that the camera arrangement further include:
Third shooting unit opens the RGB camera and institute if being third preset mode for the photographing mode simultaneously
3D camera is stated, and obtains the first shooting image, the second shooting image and first depth image respectively;It will be described
The depth information that first depth image carries is mapped in the first shooting image, obtains the first shooting for carrying depth information
Image.
9. a kind of terminal, including dual camera, memory, processor and storage are in the memory and can be in the processing
The computer program run on device, which is characterized in that the dual camera includes a 3D camera and a RGB camera,
The processor is realized when executing the computer program such as the step of claim 1 to 6 any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In realization is such as the step of claim 1 to 6 any one the method when the computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910013723.8A CN109639983B (en) | 2019-01-03 | 2019-01-03 | Photographing method, photographing device, terminal and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910013723.8A CN109639983B (en) | 2019-01-03 | 2019-01-03 | Photographing method, photographing device, terminal and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109639983A true CN109639983A (en) | 2019-04-16 |
CN109639983B CN109639983B (en) | 2020-09-04 |
Family
ID=66058057
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910013723.8A Active CN109639983B (en) | 2019-01-03 | 2019-01-03 | Photographing method, photographing device, terminal and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109639983B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102467341A (en) * | 2010-11-04 | 2012-05-23 | Lg电子株式会社 | Mobile terminal and method of controlling an image photographing therein |
US20150256813A1 (en) * | 2014-03-07 | 2015-09-10 | Aquifi, Inc. | System and method for 3d reconstruction using multiple multi-channel cameras |
US20160323564A1 (en) * | 2015-05-01 | 2016-11-03 | Dell Products L.P. | Dynamic Mode Switching of 2D/3D Multi-Modal Camera for Efficient Gesture Detection |
CN108764052A (en) * | 2018-04-28 | 2018-11-06 | Oppo广东移动通信有限公司 | Image processing method, device, computer readable storage medium and electronic equipment |
CN109005348A (en) * | 2018-08-22 | 2018-12-14 | Oppo广东移动通信有限公司 | The control method of electronic device and electronic device |
CN109040556A (en) * | 2018-08-22 | 2018-12-18 | Oppo广东移动通信有限公司 | Imaging device and electronic equipment |
CN208257980U (en) * | 2018-06-04 | 2018-12-18 | 盎锐(上海)信息科技有限公司 | Filming apparatus based on 2D camera and 3D camera |
-
2019
- 2019-01-03 CN CN201910013723.8A patent/CN109639983B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102467341A (en) * | 2010-11-04 | 2012-05-23 | Lg电子株式会社 | Mobile terminal and method of controlling an image photographing therein |
US20150256813A1 (en) * | 2014-03-07 | 2015-09-10 | Aquifi, Inc. | System and method for 3d reconstruction using multiple multi-channel cameras |
US20160323564A1 (en) * | 2015-05-01 | 2016-11-03 | Dell Products L.P. | Dynamic Mode Switching of 2D/3D Multi-Modal Camera for Efficient Gesture Detection |
CN108764052A (en) * | 2018-04-28 | 2018-11-06 | Oppo广东移动通信有限公司 | Image processing method, device, computer readable storage medium and electronic equipment |
CN208257980U (en) * | 2018-06-04 | 2018-12-18 | 盎锐(上海)信息科技有限公司 | Filming apparatus based on 2D camera and 3D camera |
CN109005348A (en) * | 2018-08-22 | 2018-12-14 | Oppo广东移动通信有限公司 | The control method of electronic device and electronic device |
CN109040556A (en) * | 2018-08-22 | 2018-12-18 | Oppo广东移动通信有限公司 | Imaging device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109639983B (en) | 2020-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109151329A (en) | Photographic method, device, terminal and computer readable storage medium | |
CN109120862A (en) | High-dynamic-range image acquisition method, device and mobile terminal | |
CN109040603A (en) | High-dynamic-range image acquisition method, device and mobile terminal | |
CN108564612A (en) | Model display methods, device, storage medium and electronic equipment | |
CN110288716B (en) | Image processing method, device, electronic equipment and storage medium | |
CN109166156A (en) | A kind of generation method, mobile terminal and the storage medium of camera calibration image | |
WO2021169132A1 (en) | Imaging processing method and apparatus, electronic device, and storage medium | |
CN108702457B (en) | Method, apparatus and computer-readable storage medium for automatic image correction | |
CN106791809B (en) | A kind of light measuring method and mobile terminal | |
CN108833781A (en) | Image preview method, apparatus, terminal and computer readable storage medium | |
CN114019473A (en) | Object detection method and device, electronic equipment and storage medium | |
JP7316456B2 (en) | POINT CLOUD MAP CONSTRUCTION METHOD AND DEVICE, ELECTRONIC DEVICE, STORAGE MEDIUM AND PROGRAM | |
JP2023512966A (en) | Image processing method, electronic device and computer readable storage medium | |
CN109040596A (en) | A kind of method, mobile terminal and storage medium adjusting camera | |
CN113542600A (en) | Image generation method, device, chip, terminal and storage medium | |
US20200090309A1 (en) | Method and device for denoising processing, storage medium, and terminal | |
CN113573120B (en) | Audio processing method, electronic device, chip system and storage medium | |
CN111127541A (en) | Vehicle size determination method and device and storage medium | |
CN108989666A (en) | Image pickup method, device, mobile terminal and computer-readable storage medium | |
CN114786001B (en) | 3D picture shooting method and 3D shooting system | |
CN109639983A (en) | Photographic method, device, terminal and computer readable storage medium | |
CN110168599B (en) | Data processing method and terminal | |
CN115134532A (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN110910304B (en) | Image processing method, device, electronic equipment and medium | |
CN110035217A (en) | A kind of external camera adjusting method, apparatus and external camera lens |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |