CN106851107A - Switch control method, control device and the electronic installation of camera assisted drawing - Google Patents

Switch control method, control device and the electronic installation of camera assisted drawing Download PDF

Info

Publication number
CN106851107A
CN106851107A CN201710138683.0A CN201710138683A CN106851107A CN 106851107 A CN106851107 A CN 106851107A CN 201710138683 A CN201710138683 A CN 201710138683A CN 106851107 A CN106851107 A CN 106851107A
Authority
CN
China
Prior art keywords
depth
master image
image
foreground
caching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710138683.0A
Other languages
Chinese (zh)
Inventor
孙剑波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710138683.0A priority Critical patent/CN106851107A/en
Publication of CN106851107A publication Critical patent/CN106851107A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Landscapes

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

Abstract

The invention discloses a kind of control method for switching camera assisted drawing.Control method includes:Contextual data is processed to obtain current foreground type;Current composition suggestion corresponding with current foreground type is found in memory;Meet the scene image that current composition is advised to obtain with control wide-angle camera or focal length camera imaging.Additionally, the invention also discloses a kind of control device and electronic installation.Control method of the invention, control device and electronic installation determine current foreground type using depth information, so as to obtain the corresponding current composition of current foreground type and advise and control wide-angle camera or focal length camera imaging is to obtain the suitable scene image of composition.

Description

Switch control method, control device and the electronic installation of camera assisted drawing
Technical field
The present invention relates to imaging technique, more particularly to a kind of control method, control device for switching camera assisted drawing And electronic installation.
Background technology
Composition belongs to the professional technical ability of comparing in camera technique, and many ordinary consumers do not possess the technical ability of this respect, Do not know how that adjustment camera lens direction or camera lens are inaccurate towards adjustment, cause the poor visual effect of image.
The content of the invention
It is contemplated that at least solving one of technical problem present in prior art.Therefore, the present invention needs offer one Plant control method, control device and the electronic installation of switching camera assisted drawing.
A kind of control method for switching camera assisted drawing, for controlling electronic installation, the electronic installation to include into As device and memory, the imaging device includes wide-angle camera and focal length camera, and the imaging device is used to gather field Scape data, the memory storage has various foreground types and corresponding composition to advise;The control method is comprised the following steps:
The contextual data is processed to obtain current foreground type;
Current composition corresponding with the current foreground type is found in the memory to advise;With
Control the wide-angle camera or the focal length camera imaging and meet the field that the current composition is advised obtaining Scape image.
A kind of control device for switching camera assisted drawing, for controlling electronic installation, the electronic installation to include into As device and memory, the imaging device includes rotating camera, and the imaging device is used to gather contextual data, described to deposit Reservoir be stored with various foreground types and corresponding composition suggestion;The control device includes processing module, finds module and control Molding block.
The processing module is used to process the contextual data to obtain current foreground type.
The searching module is used to finding current composition corresponding with the current foreground type in the memory advises.
The control module is used to controlling the wide-angle camera or the focal length camera imaging meeting described obtaining The scene image of current composition suggestion.
A kind of electronic installation includes imaging device, memory and the control device.
The imaging device includes wide-angle camera and focal length camera, and the imaging device is used to gather contextual data, The contextual data includes caching master image.
The memory storage has various foreground types and corresponding composition to advise.
Control method of the invention, control device and electronic installation determine current foreground type using depth information, so that The corresponding current composition of current foreground type is obtained to advise and control wide-angle camera or focal length camera imaging is to obtain composition Suitable scene image.
Additional aspect of the invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by practice of the invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from description of the accompanying drawings below to implementation method is combined Obtain substantially and be readily appreciated that, wherein:
Fig. 1 is the schematic flow sheet of the control method of the switching camera assisted drawing of embodiment of the present invention.
Fig. 2 is the floor map of the electronic installation of embodiment of the present invention.
Fig. 3 is the schematic flow sheet of the control method of some implementation methods of the invention.
Fig. 4 is the high-level schematic functional block diagram of the control device of some implementation methods of the invention.
Fig. 5 is the schematic flow sheet of the control method of some implementation methods of the invention.
Fig. 6 is the high-level schematic functional block diagram of the processing module of the control device of some implementation methods of the invention.
Fig. 7 is the schematic flow sheet of the control method of some implementation methods of the invention.
Fig. 8 is the high-level schematic functional block diagram of the processing unit of some implementation methods of the invention.
Fig. 9 is the schematic flow sheet of the control method of some implementation methods of the invention.
Figure 10 is another high-level schematic functional block diagram of the processing unit of some implementation methods of the invention.
Figure 11 is the schematic flow sheet of the control method of some implementation methods of the invention.
Figure 12 is the high-level schematic functional block diagram of the acquiring unit of some implementation methods of the invention.
Figure 13 is the schematic flow sheet of the control method of some implementation methods of the invention.
Figure 14 is the schematic flow sheet of the control method of some implementation methods of the invention.
Figure 15 is another high-level schematic functional block diagram of the processing module of some implementation methods of the invention.
Figure 16 is the schematic diagram of the caching master image of some implementation methods of the invention.
Figure 17 is the schematic diagram of the current composition suggestion of some implementation methods of the invention.
Figure 18 is the schematic diagram of the scene image of some implementation methods of the invention.
Main element symbol description:
Electronic installation 100, control device 10, processing module 12, the treatment subelement 1222, second of processing unit 122, first The treatment treatment of subelement the 1224, the 3rd subelement 1226, fourth process subelement 1228, treatment of acquiring unit the 124, the 5th are single Unit 1242, searching subelement 1244, determining unit 126, determination subelement 1262, searching module 14, control module 16, cutting mould Block 18, imaging device 20, wide-angle camera 22, focal length camera 24, memory 30.
Specific embodiment
Embodiments of the present invention are described below in detail, the implementation method of the implementation method is shown in the drawings, wherein Same or similar label represents same or similar element or the element with same or like function from start to finish.Lead to below It is exemplary to cross the implementation method being described with reference to the drawings, and is only used for explaining the present invention, and it is not intended that to limit of the invention System.
Also referring to Fig. 1 and Fig. 2, the control method of the switching camera assisted drawing of embodiment of the present invention can be used In control electronic installation 100.Electronic installation 100 includes imaging device 20 and memory 30.Imaging device 20 includes wide-angle imaging First 22 and focal length camera 24.Imaging device 20 is used to gather contextual data.Memory 30 is stored with various foreground types and right The composition answered is advised.Control method is comprised the following steps:
S12:Contextual data is processed to obtain current foreground type;
S14:Current composition suggestion corresponding with current foreground type is found in memory 30;With
S16:Control wide-angle camera 22 or focal length camera 24 are imaged the scene graph for meeting current composition suggestion to obtain Picture.
Referring to Fig. 2, the control device 10 of the switching camera assisted drawing of embodiment of the present invention can be used for Control electronic installation 100.Control device 10 includes processing module 12, finds module 14 and control module 16.Processing module 12 is used In treatment contextual data obtaining current foreground type.Finding module 14 is used to be found and current foreground type pair in memory 30 The current composition answered is advised.Control module 16 be used for control wide-angle camera 22 or focal length camera 24 to be imaged with obtain meet work as The scene image of preceding composition suggestion.
In other words, the control method of embodiment of the present invention can be real by the control device 10 of embodiment of the present invention It is existing, wherein, step S12 can be realized by processing module 12, and step S14 can be realized by searching module 14, and step S16 can be by Control module 16 is realized.
In some embodiments, the control device 10 of embodiment of the present invention can apply to embodiment of the present invention Electronic installation 100, the electronic installation 100 of embodiment of the present invention can the control device including embodiment of the present invention in other words 10。
The control method of embodiment of the present invention, control device 10 and electronic installation 100 are determined current using depth information Foreground type, so as to obtain the corresponding current composition of current foreground type and advise and control wide-angle camera 22 or focal length camera 24 are imaged to obtain the suitable scene image of composition.
In some embodiments, electronic installation 100 includes mobile phone or panel computer.In embodiments of the present invention, electricity Sub-device 100 is mobile phone.
In some embodiments, imaging device 20 includes preposition dual camera or rearmounted dual camera, does not appoint herein What is limited.In embodiments of the present invention, imaging device 20 is preposition dual camera.
In some embodiments, the angle of visual field of wide-angle camera 22 is 70-90 degree, and the angle of visual field of focal length camera 24 is 20-60 degree.
It is appreciated that wide-angle camera 22 refers to the camera using wide-angle lens, it is general with shorter focal length and compared with The big angle of visual field.The angle of visual field of the wide-angle camera 22 of embodiment of the present invention is 80 degree or so.
It is appreciated that focal length camera 24 refers to the camera using telephoto lens, it is general with focal length more long and compared with The small angle of visual field.The angle of visual field of the focal length camera 24 of embodiment of the present invention is 20 degree or so.
In some embodiments, control device 10 can control wide-angle camera 22 to be imaged to obtain caching master image, Because the angle of visual field of wide-angle camera 22 is than larger, in this way, more scene informations can be obtained.According to the content of foreground part The ratio for accounting for caching master image with foreground part can determine foreground type, for example, the ratio of caching master image is accounted in foreground part More than the first switching threshold, such as during a quarter, control device 10 can control wide-angle camera 22 to be imaged to obtain wide-angle Scene image;When the ratio for accounting for caching master image in foreground part is less than the first switching threshold, the control of control device 10 focal length is taken the photograph It is imaged to obtain focal length scene image as first 24.
It is appreciated that the size of the first switching threshold can need to be configured according to user, for example user wishes prospect Part accounts for the ratio of scene image than larger, then can set the first switching threshold must be than larger, such as larger than a quarter;With Family wish foreground part account for scene image ratio it is smaller, then can the first switching threshold be set smaller, such as less than 1/8th.It should be noted that if the first switching threshold sets too big, the control focal length of control device 10 camera 24 is imaged When be easily caused foreground part and take whole focal length scene image;If the first switching threshold sets too small, control device 10 is controlled Wide-angle camera processed 22 is easily caused foreground part when being imaged to account for wide-angle scene image scaled too small, causes foreground part not dashed forward Go out.
In some embodiments, control device 10 can control focal length camera 24 to be imaged to obtain caching master image, Because the focal length of focal length camera 24 is long, in this way, the blur-free imaging of the larger object of object distance can be obtained.According to foreground portion The ratio that the content and foreground part divided account for caching master image can determine foreground type, for example, account for caching master map in foreground part When the ratio of picture is more than the second switching threshold, such as 1/2nd, control device can control wide-angle camera 22 to be imaged to obtain Obtain wide-angle scene image;When the ratio for accounting for caching master image in foreground part is less than the second switching threshold, control device 10 is controlled Focal length camera 24 is imaged to obtain focal length scene image.
It is appreciated that the size of the second switching threshold can need to be configured according to user, for example user wishes prospect Part accounts for the ratio of scene image than larger, then can by the second switching threshold set must than larger, such as larger than 1/2nd;With Family wish foreground part account for scene image ratio it is smaller, then can the second switching threshold be set smaller, such as less than A quarter.It should be noted that if the second switching threshold sets too big, the control focal length of control device 10 camera 24 is imaged When be easily caused foreground part and take whole focal length scene image;If the second switching threshold sets too small, control device 10 is controlled Wide-angle camera processed 22 is easily caused foreground part when being imaged to account for wide-angle scene image scaled too small, causes foreground part not dashed forward Go out.
Fig. 3 is referred to, in some embodiments, control method is comprised the following steps:
S18:Cutting scene image meets the cutting image that current composition is advised to obtain.
Fig. 4 is referred to, in some embodiments, control device 10 includes cutting module 18.Cutting module 18 is used to cut out Cut scene image and meet the cutting image that current composition is advised obtaining.
In other words, step S18 can be realized by cutting module 18.
In this way, the cutting image for more conforming to composition suggestion can be obtained.
It is appreciated that the scene image of wide-angle camera 22 or focal length camera 24 may not also meet current composition building View, such as the foreground part of focal length scene image or smaller, by cutting redundancy section, can obtain and more conform to composition The cutting image of suggestion.
Fig. 5 is referred to, in some embodiments, contextual data includes caching master image, and step S12 includes following step Suddenly:
S122:Treatment contextual data caches the depth information of master image to obtain;
S124:The foreground part of master image is cached according to Depth Information Acquistion;With
S126:Current foreground type is determined according to foreground part.
Fig. 6 is referred to, in some embodiments, contextual data includes caching master image.Processing module 12 includes treatment Unit 122, acquiring unit 124 and determining unit 126.Processing unit 122 is used to process contextual data to obtain caching master image Depth information.Acquiring unit 124 is used to be cached according to Depth Information Acquistion the foreground part of master image.Determining unit 126 is used In determining current foreground type according to foreground part.
In other words, step S122 can be realized that step S124 can be realized by acquiring unit 124 by processing unit 122, Step S126 can be realized by determining unit 126.
In this way, the foreground part of caching master image can be obtained and based on foreground part, so as to obtain current prospect Type.
Fig. 7 is referred to, in some embodiments, contextual data includes depth image corresponding with caching master image, step Rapid S122 is comprised the following steps:
S1222:Treatment depth image caches the depth data of master image to obtain;With
S1224:Depth data is processed to obtain depth information.
Fig. 8 is referred to, in some embodiments, contextual data includes depth image corresponding with caching master image, place Reason unit 122 includes the first treatment subelement 1222 and second processing subelement 1224.First treatment subelement 1222 is used to locate Reason depth image caches the depth data of master image to obtain.Second processing subelement 1224 is used to process depth data to obtain Depth information.
In other words, step S1222 can realize that step S1224 can be by second by the first treatment subelement 1222 Reason subelement 1224 is realized.
So, it is possible to use depth image quickly obtains the depth information of caching master image.
It is appreciated that caching master image is RGB color image, substantial amounts of depth data is included in depth image, that is, included The depth information of each personal or object in scene, depth information includes the size and/or scope of depth.Due to caching master image Color information is one-to-one relation with the depth information of depth image, therefore, the depth information of caching master image can be obtained.
In some embodiments, the acquisition modes of depth image corresponding with caching master image include using structure optical depth Degree range finding obtains depth image and obtains depth image two using flight time (time of flight, TOF) depth camera The mode of kind.
When obtaining depth image using structure light Range finder, imaging device 20 includes camera and the projector.
It is appreciated that structure light Range finder is that the photo structure of certain pattern is projeced into body surface using the projector, The striation 3-D view modulated by testee shape is formed on surface.Striation 3-D view is detected so as to obtain by camera Striation two dimension fault image.The distortion degree of striation depends on the relative position and body surface shape between the projector and camera Wide or height.The displacement shown along striation is highly proportional to body surface, and kink illustrates the change of plane, discontinuously The physical clearance of display surface.When the timing of relative position one between the projector and camera, by the two-dimentional optical strip image for distorting The three-D profile of coordinate just reproducible body surface, such that it is able to obtain depth information.Structure light Range finder has higher Resolution ratio and certainty of measurement.
When obtaining depth image using TOF depth cameras, imaging device 20 includes TOF depth cameras.
It is appreciated that the modulation infrared light emission that is sent from luminescence unit by sensor record of TOF depth cameras to Object, then the phase place change reflected from object, according to the light velocity in the range of a wavelength, can in real time obtain whole Scene depth distance.TOF depth cameras are not influenceed when calculating depth information by the gray scale and feature on object surface, and can Rapidly to calculate depth information, with real-time very high.
Fig. 9 is referred to, in some embodiments, contextual data includes caching sub-picture corresponding with caching master image, Step S122 is comprised the following steps:
S1226:Treatment caches master image and caching sub-picture to obtain caching the depth data of master image;With
S1228:Depth data is processed to obtain depth information.
Figure 10 is referred to, in some embodiments, contextual data includes caching sub-picture corresponding with caching master image, Processing unit 122 includes the 3rd treatment subelement 1226 and fourth process subelement 1228.3rd treatment subelement 1226 is used for Treatment caches master image and caching sub-picture to obtain caching the depth data of master image.Fourth process subelement 1228 is used to locate Depth data is managed to obtain depth information.
In other words, step S1226 can be realized that step S1228 can be by the everywhere by the 3rd treatment subelement 1226 Reason subelement 1228 is realized.
In this way, the depth information of caching master image can be obtained by processing caching master image and caching sub-picture.
In some embodiments, imaging device 20 includes main camera and secondary camera.
It is appreciated that depth information can be obtained by binocular stereo vision distance-finding method, now contextual data bag Include caching master image and caching sub-picture.Wherein, caching master image is shot by main camera and obtained, and caching sub-picture is imaged by pair Head shoots and obtains.Binocular stereo vision range finding is that same object is imaged from different positions with two identical cameras To obtain the stereo pairs of object, then go out the corresponding picture point of stereo pairs by algorithmic match, so as to calculate parallax, Depth information is finally recovered using the method based on triangulation.In this way, by caching master image and caching sub-picture this Stereo pairs are matched the depth information that just can obtain caching master image.
Figure 11 is referred to, in some embodiments, step S124 is comprised the following steps:
S1242:The First Point of caching master image is obtained according to depth information;With
S1244:The region with First Point adjoining and depth consecutive variations is found as foreground part.
Figure 12 is referred to, in some embodiments, acquiring unit 124 includes the 5th treatment subelement 1242 and finds son Unit 1244.5th treatment subelement 1242 is used to be obtained according to depth information the First Point of caching master image.Find subelement 1244 are used to find the region with First Point adjoining and depth consecutive variations as foreground part.
In other words, step S1242 can realize that step S1244 can be by finding son by the 5th treatment subelement 1242 Unit 1244 is realized.
In this way, the foreground part of caching master image physical link can be obtained, i.e., in reality scene, foreground part is to connect It is connected together.Using the foreground part of physical link as main body, the relation of foreground part can be intuitively obtained.
Specifically, the depth of each pixel in caching master image is first obtained according to depth information, depth minimum is obtained Pixel is diffused equivalent to the beginning of foreground part as the First Point for caching master image, First Point from First Point, obtains With First Point adjoining and the region of depth consecutive variations, these regions and First Point merger are foreground area.
It should be noted that First Point refer to the minimum corresponding pixel of object of depth, i.e. object distance it is minimum or from The corresponding pixel of the nearest object of imaging device 20.Adjoining refers to that two pixels link together.During depth consecutive variations Refer to that the depth difference of two adjacent pixels is less than predetermined difference value, two adjoinings of the difference of depth less than predetermined difference value in other words Pixel depth consecutive variations.
Figure 13 is referred to, in some embodiments, step S124 may comprise steps of:
S1246:The First Point of caching master image is obtained according to depth information;With
S1248:The difference of the depth of searching and First Point is less than the region of predetermined threshold as foreground part.
In this way, the foreground part of caching master image logical communication link can be obtained, i.e., in reality scene, foreground part may It is not attached to together, but meets certain logical relation, such as eagle dives and grabs the scene of chicken, eagle and chicken thing May not linked together in reason, but logically, it can be determined that they are connected.
Specifically, the First Point of caching master image is first obtained according to depth information, First Point is opened equivalent to foreground part End, is diffused from First Point, and the difference of the depth of acquisition and First Point is less than the region of predetermined threshold, these regions and First Point Merger is foreground area.
In some embodiments, predetermined threshold can be the value set by user.In this way, user can be according to itself Demand determine the scope of foreground part, so as to obtain preferable composition suggestion, realize preferable composition.
In some embodiments, predetermined threshold can be the value that control device 10 determines, not do any limit herein System.The predetermined threshold that control device 10 determines can be a fixed value of storage inside, or according to different situations, example Such as the depth of First Point, the numerical value for calculating.
In some embodiments, step S124 may comprise steps of:
Find depth and be in the region of predetermined interval as foreground part.
In this way, the foreground part that depth is in OK range can be obtained.
It is appreciated that in the case of some shootings, foreground part is not the part of foremost, but foremost part is somewhat Part more rearward, for example, people is sitting in behind computer, computer is earlier, but the talent is main part, so by depth Region in predetermined interval can be effectively prevented from the incorrect problem of main body'choice as foreground part.
Figure 14 is referred to, in some embodiments, step S126 is comprised the following steps:
S1262:The size of size, shape according to foreground part and the background parts of caching master image, shape and/or position Put matching relationship and determine foreground type.
Figure 15 is referred to, in some embodiments, determining unit 126 includes determination subelement 1262.Determination subelement 1262 are used to be coordinated according to the size of foreground part, the size of shape and the background parts of caching master image, shape and/or position Relation determines foreground type.
In other words, step S1262 can be realized by determination subelement 1262.
In this way, foreground type can be determined with the matching relationship of background parts by foreground part or foreground part.
It is appreciated that main part of the foreground part as image, it is determined that during foreground type, can be as topmost Determinant, the i.e. feature such as the size of Utilization prospects part, shape, content determine foreground type.
In some embodiments, in order to improve the quality of composition, it is determined that during foreground type, background portion can also be referred to Point or foreground part and background parts matching relationship, so as to obtain more accurate foreground type, and then obtain more satisfactory Composition suggestion.
Also referring to Figure 16-18, in one embodiment, the control imaging device 20 of control device 10 is imaged to obtain such as Caching master image and depth image (not shown) shown in Figure 16, the treatment according to depth information can obtain caching master image Foreground image is horse, and current foreground type, such as Ma Zhanhuan in Figure 16 can be determined according to the ratio that horse accounts for caching master image The ratio of master image is deposited less than a quarter, causes main body not protrude.According to this foreground type, close-coupled structure can be selected Figure, as shown in figure 17, the control focal length of control device 10 camera 24 is imaged to obtain scene image as shown in figure 18.
In the description of embodiments of the present invention, term " first ", " second " are only used for describing purpose, without being understood that To indicate or implying relative importance or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", One or more feature can be expressed or be implicitly included to the feature of " second ".In embodiments of the present invention In description, " multiple " is meant that two or more, unless otherwise expressly limited specifically.
, it is necessary to illustrate in the description of embodiments of the present invention, unless otherwise clearly defined and limited, term " installation ", " connected ", " connection " should be interpreted broadly, for example, it may be fixedly connected, or be detachably connected, or one The connection of body ground;Can mechanically connect, or electrically connect or can mutually communicate;Can be joined directly together, it is also possible to logical Intermediary is crossed to be indirectly connected to, can be two element internals connection or two interaction relationships of element.For ability For the those of ordinary skill in domain, above-mentioned term specifically containing in embodiments of the present invention can be as the case may be understood Justice.
In the description of this specification, reference term " implementation method ", " some implementation methods ", " schematically implementation The description of mode ", " example ", " specific example " or " some examples " etc. means to combine the tool that the implementation method or example are described Body characteristicses, structure, material or feature are contained at least one implementation method of the invention or example.In this manual, Schematic representation to above-mentioned term is not necessarily referring to identical implementation method or example.And, the specific features of description, knot Structure, material or feature can in an appropriate manner be combined in one or more any implementation methods or example.
Any process described otherwise above or method description in flow chart or herein is construed as, and expression includes It is one or more for realizing specific logical function or process the step of the module of code of executable instruction, fragment or portion Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussion suitable Sequence, including function involved by basis by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Represent in flow charts or logic and/or step described otherwise above herein, for example, being considered use In the order list of the executable instruction for realizing logic function, in may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processing module or other can be from instruction The system of execution system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or Equipment and use.For the purpose of this specification, " computer-readable medium " can be it is any can include, store, communicating, propagating or Transmission procedure is used for instruction execution system, device or equipment or with reference to these instruction execution systems, device or equipment Device.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Connected up with one or more Electrical connection section (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can thereon print described program or other are suitable Medium, because optical scanner for example can be carried out by paper or other media, then enters edlin, interpretation or if necessary with it His suitable method is processed electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of embodiments of the present invention can be with hardware, software, firmware or combinations thereof come real It is existing.In the above-described embodiment, multiple steps or method can be with storages in memory and by suitable instruction execution system The software or firmware of execution is realized.If for example, being realized with hardware, with another embodiment, ability can be used Any one of following technology known to domain or their combination are realized:With for realizing logic function to data-signal The discrete logic of logic gates, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method is carried The rapid hardware that can be by program to instruct correlation is completed, and described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
Additionally, each functional unit in various embodiments of the present invention can be integrated in a processing module, also may be used Being that unit is individually physically present, it is also possible to which two or more units are integrated in a module.It is above-mentioned integrated Module can both be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The integrated module If realized in the form of using software function module and as independent production marketing or when using, it is also possible to which storage is in a calculating In machine read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..
Although embodiments of the invention have been shown and described above, it is to be understood that above-described embodiment is example Property, it is impossible to limitation of the present invention is interpreted as, one of ordinary skill in the art within the scope of the invention can be to above-mentioned Implementation method is changed, changes, replacing and modification.

Claims (19)

1. a kind of control method for switching camera assisted drawing, for controlling electronic installation, it is characterised in that electronics dress Put including imaging device and memory, the imaging device includes wide-angle camera and focal length camera, the imaging device is used In collection contextual data, the memory storage has various foreground types and corresponding composition to advise;The control method includes Following steps:
The contextual data is processed to obtain current foreground type;
Current composition corresponding with the current foreground type is found in the memory to advise;With
Control the wide-angle camera or the focal length camera imaging and meet the scene graph that the current composition is advised obtaining Picture.
2. control method as claimed in claim 1, it is characterised in that the contextual data includes caching master image, the place The step of contextual data is managed to obtain current foreground type comprises the following steps:
The contextual data is processed to obtain the depth information of the caching master image;
The foreground part of master image is cached according to the Depth Information Acquistion;With
Current foreground type is determined according to the foreground part.
3. control method as claimed in claim 2, it is characterised in that the contextual data includes and the caching master image pair The depth image answered, the treatment contextual data with obtain it is described caching master image depth information the step of include it is following Step:
The depth image is processed to obtain the depth data of the caching master image;With
The depth data is processed to obtain the depth information.
4. control method as claimed in claim 2, it is characterised in that the contextual data includes and the caching master image pair The caching sub-picture answered, the treatment contextual data with obtain it is described caching master image depth information the step of include with Lower step:
Treatment is described to be cached master image and the caching sub-picture to obtain the depth data of the caching master image;With
The depth data is processed to obtain the depth information.
5. control method as claimed in claim 2, it is characterised in that described that master is cached according to the Depth Information Acquistion The step of foreground part of image, comprises the following steps:
The First Point of the caching master image is obtained according to the depth information;With
The region with First Point adjoining and depth consecutive variations is found as the foreground part.
6. control method as claimed in claim 2, it is characterised in that described that current prospect class is determined according to the foreground part The step of type, comprises the following steps:
The size of size, shape according to the foreground part and the background parts of the caching master image, shape and/or position Matching relationship determines the foreground type.
7. control method as claimed in claim 1, it is characterised in that the control method is comprised the following steps:
Cut the scene image and meet the cutting image that the current composition is advised obtaining.
8. a kind of control device for switching camera assisted drawing, for controlling electronic installation, it is characterised in that electronics dress Put including imaging device and memory, the imaging device includes rotating camera, the imaging device is used to gather scene number According to the memory storage has various foreground types and corresponding composition to advise;The control device includes:
Processing module, the processing module is used to process the contextual data to obtain current foreground type;
Module is found, the searching module is used to find current composition corresponding with the current foreground type in the memory Suggestion;With
Control module, the control module is used to control the wide-angle camera or the focal length camera imaging to be met The scene image of the current composition suggestion.
9. control device as claimed in claim 8, it is characterised in that the contextual data includes caching master image, the place Reason module includes:
Processing unit, the processing unit is used to process the contextual data to obtain the depth information of the caching master image;
Acquiring unit, the acquiring unit is used to be cached according to the Depth Information Acquistion foreground part of master image;With
Determining unit, the determining unit is used to determine current foreground type according to the foreground part.
10. control device as claimed in claim 9, it is characterised in that the contextual data includes and the caching master image Corresponding depth image, the processing unit includes:
First treatment subelement, the first treatment subelement is used to process the depth image to obtain the caching master image Depth data;With
Second processing subelement, the second processing subelement is used to process the depth data to obtain the depth information.
11. control devices as claimed in claim 9, it is characterised in that the contextual data includes and the caching master image Corresponding caching sub-picture, the processing unit includes:
3rd treatment subelement, it is described 3rd treatment subelement be used for process it is described caching master image and the caching sub-picture with Obtain the depth data of the caching master image;With
Fourth process subelement, the fourth process subelement is used to process the depth data to obtain the depth information.
12. control devices as claimed in claim 9, it is characterised in that the acquiring unit includes:
5th treatment subelement, the 5th treatment subelement is used to obtain the caching master image according to the depth information First Point;With
Subelement is found, the searching subelement is used to find and First Point adjoining and the region conduct of depth consecutive variations The foreground part.
13. control devices as claimed in claim 9, it is characterised in that the determining unit includes:
Determination subelement, the determination subelement is for the size according to the foreground part, shape and the caching master image The size of background parts, shape and/or position matching determine the foreground type.
14. control devices as claimed in claim 9, it is characterised in that the control device includes:
Module is cut, the cutting module meets the cutting of the current composition suggestion for cutting the scene image to obtain Image.
A kind of 15. electronic installations, it is characterised in that including:
Imaging device, the imaging device includes wide-angle camera and focal length camera, and the imaging device is used to gather scene Data, the contextual data includes caching master image;
Memory, the memory storage has various foreground types and corresponding composition to advise;With
Control device as described in claim 8-14 any one.
16. electronic installations as claimed in claim 15, it is characterised in that the electronic installation includes mobile phone or panel computer.
17. electronic installations as claimed in claim 15, it is characterised in that the imaging device includes main camera and secondary shooting Head.
18. electronic installations as claimed in claim 15, it is characterised in that the imaging device includes camera and the projector.
19. electronic installations as claimed in claim 15, it is characterised in that the imaging device includes TOF depth cameras.
CN201710138683.0A 2017-03-09 2017-03-09 Switch control method, control device and the electronic installation of camera assisted drawing Pending CN106851107A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710138683.0A CN106851107A (en) 2017-03-09 2017-03-09 Switch control method, control device and the electronic installation of camera assisted drawing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710138683.0A CN106851107A (en) 2017-03-09 2017-03-09 Switch control method, control device and the electronic installation of camera assisted drawing

Publications (1)

Publication Number Publication Date
CN106851107A true CN106851107A (en) 2017-06-13

Family

ID=59144316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710138683.0A Pending CN106851107A (en) 2017-03-09 2017-03-09 Switch control method, control device and the electronic installation of camera assisted drawing

Country Status (1)

Country Link
CN (1) CN106851107A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107493427A (en) * 2017-07-31 2017-12-19 广东欧珀移动通信有限公司 Focusing method, device and the mobile terminal of mobile terminal
CN107547798A (en) * 2017-08-09 2018-01-05 广东欧珀移动通信有限公司 Shooting focusing control method, device and terminal device
CN109005348A (en) * 2018-08-22 2018-12-14 Oppo广东移动通信有限公司 The control method of electronic device and electronic device
CN109218572A (en) * 2017-07-05 2019-01-15 北京臻迪科技股份有限公司 A kind of image-pickup method, system and unmanned plane
CN111183632A (en) * 2018-10-12 2020-05-19 华为技术有限公司 Image capturing method and electronic device
CN111277760A (en) * 2020-02-28 2020-06-12 Oppo广东移动通信有限公司 Shooting composition method, terminal and storage medium
CN111935393A (en) * 2020-06-28 2020-11-13 百度在线网络技术(北京)有限公司 Shooting method, shooting device, electronic equipment and storage medium
WO2022206783A1 (en) * 2021-03-31 2022-10-06 华为技术有限公司 Photography method and apparatus, and electronic device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188423A (en) * 2011-12-27 2013-07-03 富泰华工业(深圳)有限公司 Camera shooting device and camera shooting method
CN104333748A (en) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 Method, device and terminal for obtaining image main object
CN105894016A (en) * 2016-03-29 2016-08-24 联想(北京)有限公司 Image processing method and electronic device
CN106034206A (en) * 2015-03-17 2016-10-19 联想(北京)有限公司 Electronic equipment and image display method
CN106210512A (en) * 2016-06-30 2016-12-07 维沃移动通信有限公司 A kind of photographic head changing method and mobile terminal
CN106454139A (en) * 2016-12-22 2017-02-22 广东欧珀移动通信有限公司 Shooting method and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188423A (en) * 2011-12-27 2013-07-03 富泰华工业(深圳)有限公司 Camera shooting device and camera shooting method
CN104333748A (en) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 Method, device and terminal for obtaining image main object
CN106034206A (en) * 2015-03-17 2016-10-19 联想(北京)有限公司 Electronic equipment and image display method
CN105894016A (en) * 2016-03-29 2016-08-24 联想(北京)有限公司 Image processing method and electronic device
CN106210512A (en) * 2016-06-30 2016-12-07 维沃移动通信有限公司 A kind of photographic head changing method and mobile terminal
CN106454139A (en) * 2016-12-22 2017-02-22 广东欧珀移动通信有限公司 Shooting method and mobile terminal

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218572A (en) * 2017-07-05 2019-01-15 北京臻迪科技股份有限公司 A kind of image-pickup method, system and unmanned plane
CN107493427A (en) * 2017-07-31 2017-12-19 广东欧珀移动通信有限公司 Focusing method, device and the mobile terminal of mobile terminal
CN107547798A (en) * 2017-08-09 2018-01-05 广东欧珀移动通信有限公司 Shooting focusing control method, device and terminal device
CN109005348A (en) * 2018-08-22 2018-12-14 Oppo广东移动通信有限公司 The control method of electronic device and electronic device
CN111183632A (en) * 2018-10-12 2020-05-19 华为技术有限公司 Image capturing method and electronic device
CN111277760A (en) * 2020-02-28 2020-06-12 Oppo广东移动通信有限公司 Shooting composition method, terminal and storage medium
WO2021169669A1 (en) * 2020-02-28 2021-09-02 Oppo广东移动通信有限公司 Photography composition method, terminal, and storage medium
CN111935393A (en) * 2020-06-28 2020-11-13 百度在线网络技术(北京)有限公司 Shooting method, shooting device, electronic equipment and storage medium
WO2022206783A1 (en) * 2021-03-31 2022-10-06 华为技术有限公司 Photography method and apparatus, and electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
CN106851107A (en) Switch control method, control device and the electronic installation of camera assisted drawing
CN106851123A (en) Exposal control method, exposure-control device and electronic installation
US9569873B2 (en) Automated iterative image-masking based on imported depth information
CN106875433A (en) Cut control method, control device and the electronic installation of composition
CN106998389A (en) Control method, control device and the electronic installation of auto composition
CN105979165A (en) Blurred photos generation method, blurred photos generation device and mobile terminal
CN108733208A (en) The I-goal of smart machine determines method and apparatus
KR101394809B1 (en) A method and systems for obtaining an improved stereo image of an object
US20110222734A1 (en) Methods for evaluating distances in a scene and apparatus and machine readable medium using the same
CN113196007B (en) Camera system applied to vehicle
CN106851238A (en) Method for controlling white balance, white balance control device and electronic installation
CN106851124A (en) Image processing method, processing unit and electronic installation based on the depth of field
CN104333748A (en) Method, device and terminal for obtaining image main object
CN105578019A (en) Image extraction system capable of obtaining depth information and focusing method
CN107241549A (en) The imaging method and imaging device of dual camera
CN107016651A (en) Image sharpening method, image sharpening device and electronic installation
CN105335959A (en) Quick focusing method and device for imaging apparatus
CN114788254B (en) Auxiliary focusing method, device and system
CN105574875A (en) Fish-eye image dense stereo algorithm based on polar curve geometry
JPH08242469A (en) Image pickup camera
CN106973224A (en) Control method, control device and the electronic installation of assisted drawing
CN106997595A (en) Color of image processing method, processing unit and electronic installation based on the depth of field
CN107018322A (en) Control method, control device and the electronic installation of rotating camera assisted drawing
Chen et al. Making in‐Front‐of Cars Transparent: Sharing First‐Person‐Views via Dashcam
KR102298047B1 (en) Method of recording digital contents and generating 3D images and apparatus using the same

Legal Events

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

Application publication date: 20170613