CN106973224B - Control method, control device and electronic device for auxiliary composition - Google Patents
Control method, control device and electronic device for auxiliary composition Download PDFInfo
- Publication number
- CN106973224B CN106973224B CN201710138849.9A CN201710138849A CN106973224B CN 106973224 B CN106973224 B CN 106973224B CN 201710138849 A CN201710138849 A CN 201710138849A CN 106973224 B CN106973224 B CN 106973224B
- Authority
- CN
- China
- Prior art keywords
- image
- depth
- imaging device
- electronic device
- current
- 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.)
- Expired - Fee Related
Links
Images
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/64—Computer-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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- User Interface Of Digital Computer (AREA)
- Studio Devices (AREA)
Abstract
Description
技术领域technical field
本发明涉及成像技术,特别涉及一种辅助构图的控制方法、控制装置及电子装置。The present invention relates to imaging technology, in particular to a control method, control device and electronic device for assisting composition.
背景技术Background technique
摄影技术中构图属于比较专业的技能,很多普通消费者都不具备这方面的技能,导致图像的视觉效果差。Composition in photography is a relatively professional skill, and many ordinary consumers do not have this skill, resulting in poor visual effects of images.
发明内容SUMMARY OF THE INVENTION
本发明旨在至少解决现有技术中存在的技术问题之一。为此,本发明需要提供一种辅助构图的控制方法、控制装置及电子装置。The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the present invention needs to provide a control method, a control device and an electronic device for assisting composition.
一种辅助构图的控制方法,用于控制电子装置,所述电子装置包括成像装置、方向传感器和存储器,所述成像装置用于采集场景数据,所述场景数据包括缓存主图像,所述方向传感器用于感测所述成像装置的朝向,所述存储器存储有多种三维空间结构类型和对应的构图建议;所述控制方法包括以下步骤:A control method for assisting composition, for controlling an electronic device, the electronic device includes an imaging device, an orientation sensor and a memory, the imaging device is used for collecting scene data, the scene data includes a cached main image, the orientation sensor For sensing the orientation of the imaging device, the memory stores multiple three-dimensional spatial structure types and corresponding composition suggestions; the control method includes the following steps:
处理所述场景数据以获取所述缓存主图像的深度信息;processing the scene data to obtain depth information of the cached main image;
根据所述深度信息获取所述缓存主图像的前景部分;Acquire the foreground part of the cached main image according to the depth information;
根据所述前景部分和所述朝向确定当前三维空间结构类型;和determining a current three-dimensional spatial structure type according to the foreground portion and the orientation; and
在所述存储器寻找与所述当前三维空间结构类型对应的当前构图建议。Searching for a current composition suggestion corresponding to the current three-dimensional spatial structure type in the memory.
一种辅助构图的控制装置,用于控制电子装置,所述电子装置包括成像装置、方向传感器和存储器,所述成像装置用于采集场景数据,所述场景数据包括缓存主图像,所述方向传感器用于感测所述成像装置的朝向,所述存储器存储有多种三维空间结构类型和对应的构图建议;所述控制装置包括处理模块、获取模块、确定模块和寻找模块。A control device for assisting composition, used for controlling an electronic device, the electronic device includes an imaging device, a direction sensor and a memory, the imaging device is used for collecting scene data, the scene data includes a cached main image, the direction sensor For sensing the orientation of the imaging device, the memory stores various three-dimensional spatial structure types and corresponding composition suggestions; the control device includes a processing module, an acquisition module, a determination module and a search module.
所述处理模块用于处理所述场景数据以获取所述缓存主图像的深度信息。The processing module is configured to process the scene data to obtain the depth information of the cached main image.
所述获取模块用于根据所述深度信息获取所述缓存主图像的前景部分。The obtaining module is configured to obtain the foreground part of the cached main image according to the depth information.
所述确定模块用于根据所述前景部分和所述朝向确定当前三维空间结构类型。The determining module is configured to determine the current three-dimensional spatial structure type according to the foreground part and the orientation.
所述寻找模块用于在所述存储器寻找与所述当前三维空间结构类型对应的当前构图建议。The searching module is used for searching the memory for a current composition suggestion corresponding to the current three-dimensional spatial structure type.
一种电子装置包括成像装置、方向传感器、存储器和所述控制装置。An electronic device includes an imaging device, an orientation sensor, a memory, and the control device.
所述成像装置用于采集场景图像,所述场景图像包括缓存主图像。The imaging device is used for capturing a scene image, and the scene image includes a cached main image.
所述方向传感器用于感测所述成像装置的朝向。The orientation sensor is used to sense the orientation of the imaging device.
所述存储器存储有多种三维空间结构类型和对应的构图建议。The memory stores various three-dimensional spatial structure types and corresponding composition suggestions.
本发明实施方式的控制方法、控制装置及电子装置利用深度信息和方向传感器信息确定当前三维空间结构类型,从而获得当前三维空间结构类型对应的当前构图建议,进而可以辅助构图。The control method, control device, and electronic device of the embodiments of the present invention determine the current three-dimensional spatial structure type by using depth information and direction sensor information, thereby obtaining the current composition suggestion corresponding to the current three-dimensional spatial structure type, and then assisting the composition.
本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the present invention will be set forth, in part, from the following description, and in part will be apparent from the following description, or may be learned by practice of the invention.
附图说明Description of drawings
本发明的上述和/或附加的方面和优点从结合下面附图对实施方式的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:
图1是本发明实施方式的辅助构图的控制方法的流程示意图。FIG. 1 is a schematic flowchart of a control method for auxiliary composition according to an embodiment of the present invention.
图2是本发明实施方式的电子装置的功能模块示意图。FIG. 2 is a schematic diagram of functional modules of an electronic device according to an embodiment of the present invention.
图3是本发明实施方式的电子装置的平面示意图。3 is a schematic plan view of an electronic device according to an embodiment of the present invention.
图4是本发明某些实施方式的控制方法的流程示意图。FIG. 4 is a schematic flowchart of a control method according to some embodiments of the present invention.
图5是本发明某些实施方式的电子装置的控制装置的处理模块的功能模块示意图。5 is a functional block diagram of a processing module of a control device of an electronic device according to some embodiments of the present invention.
图6是本发明某些实施方式的控制方法的流程示意图。FIG. 6 is a schematic flowchart of a control method according to some embodiments of the present invention.
图7是本发明某些实施方式的处理模块的另一个功能模块示意图。FIG. 7 is a schematic diagram of another functional module of a processing module according to some embodiments of the present invention.
图8是本发明某些实施方式的控制方法的流程示意图。FIG. 8 is a schematic flowchart of a control method according to some embodiments of the present invention.
图9是本发明某些实施方式的控制装置的获取模块的功能模块示意图。FIG. 9 is a functional block diagram of an acquisition module of a control apparatus according to some embodiments of the present invention.
图10是本发明某些实施方式的控制方法的流程示意图。FIG. 10 is a schematic flowchart of a control method according to some embodiments of the present invention.
图11是本发明某些实施方式的控制方法的流程示意图。FIG. 11 is a schematic flowchart of a control method according to some embodiments of the present invention.
图12是本发明某些实施方式的控制装置的另一个功能模块示意图。FIG. 12 is a schematic diagram of another functional module of the control device according to some embodiments of the present invention.
图13是本发明某些实施方式的缓存主图像示意图。FIG. 13 is a schematic diagram of a cached main image according to some embodiments of the present invention.
图14是本发明某些实施方式的深度图像示意图。FIG. 14 is a schematic diagram of a depth image of some embodiments of the present invention.
图15是本发明某些实施方式的三维空间系统示意图。Figure 15 is a schematic diagram of a three-dimensional space system according to some embodiments of the present invention.
图16是本发明某些实施方式的三维空间结构示意图。FIG. 16 is a schematic diagram of a three-dimensional space structure of some embodiments of the present invention.
主要元件符号说明:Description of main component symbols:
电子装置100、控制装置10、处理模块11、第一处理单元112、第二处理单元114、第三处理单元116、第四处理单元118、获取模块13、第五处理单元132、寻找单元134、确定模块15、寻找模块17、控制模块19、成像装置20、方向传感器30、存储器40、显示器50。The
具体实施方式Detailed ways
下面详细描述本发明的实施方式,所述实施方式的实施方式在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below, and embodiments of the present invention are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, only used to explain the present invention, and should not be construed as a limitation of the present invention.
请一并参阅图1和图3,本发明实施方式的辅助构图的控制方法可以用于控制电子装置100。电子装置100包括成像装置20、方向传感器30和存储器40。成像装置20用于采集场景数据,场景数据包括缓存主图像。方向传感器30用于感测成像装置20的朝向。存储器40存储有多种三维空间结构类型和对应的构图建议。控制方法包括以下步骤:Please refer to FIG. 1 and FIG. 3 together, the control method of the auxiliary composition according to the embodiment of the present invention can be used to control the
S11:处理场景数据以获取缓存主图像的深度信息;S11: Process the scene data to obtain the depth information of the cached main image;
S13:根据深度信息获取缓存主图像的前景部分;S13: Acquire the foreground part of the cached main image according to the depth information;
S15:根据前景部分和朝向确定当前三维空间结构类型;和S15: Determine the current three-dimensional spatial structure type according to the foreground part and the orientation; and
S17:在存储器40寻找与当前三维空间结构类型对应的当前构图建议。S17: Search the
具体地,成像装置20的朝向可以理解为成像装置20的拍摄方向,例如成像装置20朝向为向下,说明成像装置20在拍摄地面的场景;成像装置20朝向为向上,说明成像装置20在拍摄天空的场景等。Specifically, the orientation of the
请一并参阅图2和图3,本发明实施方式的辅助构图的控制装置10可以用于控制电子装置100。控制装置10包括处理模块11、获取模块13、确定模块15和寻找模块17。处理模块11用于处理场景数据以获取缓存主图像的深度信息。获取模块13用于根据深度信息获取缓存主图像的前景部分。确定模块15用于根据前景部分和朝向确定当前三维空间结构类型。寻找模块17用于在存储器40寻找与当前三维空间结构类型对应的当前构图建议。Please refer to FIG. 2 and FIG. 3 together. The
也即是说,本发明实施方式的控制方法可以由本发明实施方式的控制装置10实现,其中,步骤S11可以由处理模块11实现,步骤S13可以由获取模块13实现,步骤S15可以由确定模块15实现,步骤S17可以由寻找模块17实现。That is to say, the control method of the embodiment of the present invention may be implemented by the
在某些实施方式中,本发明实施方式的控制装置10可以应用于本发明实施方式的电子装置100,或者说本发明实施方式的电子装置100可以包括本发明实施方式的控制装置10。In some embodiments, the
本发明实施方式的控制方法、控制装置10及电子装置100利用深度信息和方向传感器30信息确定当前三维空间结构类型,从而获得当前三维空间结构类型对应的当前构图建议,进而可以辅助构图。The control method,
在某些实施方式中,电子装置100包括手机或平板电脑。在本发明实施方式中,电子装置100是手机。In some embodiments, the
在某些实施方式中,成像装置20包括前置相机和/或后置相机。在本发明实施方式中,成像装置20是前置相机。In some embodiments,
请参阅图4,在某些实施方式中,场景数据包括与缓存主图像对应的深度图像,步骤S11包括以下步骤:Referring to FIG. 4, in some embodiments, the scene data includes a depth image corresponding to the cached main image, and step S11 includes the following steps:
S112:处理深度图像以获取缓存主图像的深度数据;和S112: Process the depth image to obtain the depth data of the cached main image; and
S114:处理深度数据以得到深度信息。S114: Process the depth data to obtain depth information.
请参阅图5,在某些实施方式中,场景数据包括与缓存主图像对应的深度图像,处理模块11包括第一处理单元112和第二处理单元114。第一处理单元112用于处理深度图像以获取缓存主图像的深度数据。第二处理单元114用于处理深度数据以得到深度信息。Referring to FIG. 5 , in some embodiments, the scene data includes a depth image corresponding to the cached main image, and the
也即是说,步骤S112可以由第一处理单元112实现,步骤S114可以由第二处理单元114实现。That is to say, step S112 may be implemented by the
如此,可以利用深度图像快速获得缓存主图像的深度信息。In this way, the depth information of the cached main image can be quickly obtained by using the depth image.
可以理解,缓存主图像为RGB彩色图像,深度图像中包含大量的深度数据,即包含了场景中各个人或物体的深度信息,深度信息包括深度的大小和/或范围。由于缓存主图像的色彩信息与深度图像的深度信息是一一对应的关系,因此,可获得缓存主图像的深度信息。It can be understood that the cached main image is an RGB color image, and the depth image contains a large amount of depth data, that is, the depth information of each person or object in the scene, and the depth information includes the size and/or range of the depth. Since there is a one-to-one correspondence between the color information of the cached main image and the depth information of the depth image, the depth information of the cached main image can be obtained.
在某些实施方式中,与缓存主图像对应的深度图像的获取方式包括采用结构光深度测距获取深度图像及采用飞行时间(time of flight,TOF)深度摄像头获取深度图像两种方式。In some embodiments, the acquisition method of the depth image corresponding to the cached main image includes two methods of acquiring the depth image by using structured light depth ranging and acquiring the depth image by using a time of flight (TOF) depth camera.
采用结构光深度测距获取深度图像时,成像装置20包括摄像头和投射器。When a depth image is acquired by using structured light depth ranging, the
可以理解,结构光深度测距是利用投射器将一定模式的光结构投射于物体表面,在表面形成由被测物体形状所调制的光条三维图像。光条三维图像由摄像头探测从而获得光条二维畸变图像。光条的畸变程度取决于投射器与摄像头之间的相对位置和物体表面形廓或高度。沿光条显示出的位移与物体表面的高度成比例,扭结表示了平面的变化,不连续显示表面的物理间隙。当投射器与摄像头之间的相对位置一定时,由畸变的二维光条图像坐标便可重现物体表面的三维轮廓,从而可以获取深度信息。结构光深度测距具有较高的分辨率和测量精度。It can be understood that structured light depth ranging is to use a projector to project a certain pattern of light structures on the surface of an object, and to form a three-dimensional image of a light bar on the surface that is modulated by the shape of the object to be measured. The three-dimensional image of the light strip is detected by the camera to obtain the two-dimensional distortion image of the light strip. The degree of distortion of the light bar depends on the relative position of the projector and the camera and the surface profile or height of the object. The displacement shown along the light bar is proportional to the height of the object's surface, the kinks represent changes in the plane, and the discontinuities show the physical gaps in the surface. When the relative position between the projector and the camera is fixed, the three-dimensional contour of the surface of the object can be reproduced from the coordinates of the distorted two-dimensional light bar image, so that depth information can be obtained. Structured light depth ranging has high resolution and measurement accuracy.
采用TOF深度摄像头获取深度图像时,成像装置20包括TOF深度摄像头。When the TOF depth camera is used to acquire the depth image, the
可以理解,TOF深度摄像头通过传感器记录从发光单元发出的调制红外光发射到物体,再从物体反射回来的相位变化,在一个波长的范围内根据光速,可以实时的获取整个场景深度距离。TOF深度摄像头计算深度信息时不受被摄物表面的灰度和特征的影响,且可以快速地计算深度信息,具有很高的实时性。It can be understood that the TOF depth camera records the phase change of the modulated infrared light emitted from the light-emitting unit to the object and then reflected back from the object through the sensor. According to the speed of light within a wavelength range, the depth distance of the entire scene can be obtained in real time. The TOF depth camera is not affected by the grayscale and features of the object's surface when calculating depth information, and can quickly calculate depth information with high real-time performance.
请参阅图6,在某些实施方式中,场景数据包括与缓存主图像对应的缓存副图像,步骤S11包括以下步骤:Referring to FIG. 6, in some embodiments, the scene data includes a cached sub-image corresponding to the cached main image, and step S11 includes the following steps:
S116:处理缓存主图像和缓存副图像以得到缓存主图像的深度数据;和S116: Process the cached main image and the cached sub-image to obtain the depth data of the cached main image; and
S118:处理深度数据以得到深度信息。S118: Process the depth data to obtain depth information.
请参阅图7,在某些实施方式中,场景数据包括与缓存主图像对应的缓存副图像,处理模块11包括第三处理单元116和第四处理单元118。第三处理单元116用于处理缓存主图像和缓存副图像以得到缓存主图像的深度数据。第四处理单元118用于处理深度数据以得到深度信息。Referring to FIG. 7 , in some embodiments, the scene data includes a cached secondary image corresponding to the cached main image, and the
也即是说,步骤S116可以由第三处理单元116实现,步骤S118可以由第四处理单元118实现。That is to say, step S116 may be implemented by the
如此,可以通过处理缓存主图像和缓存副图像获取缓存主图像的深度信息。In this way, the depth information of the cached main image can be obtained by processing the cached main image and the cached sub-image.
在某些实施方式中,成像装置20包括主摄像头和副摄像头。In some embodiments,
可以理解,深度信息可以通过双目立体视觉测距方法进行获取,此时场景数据包括缓存主图像和缓存副图像。其中,缓存主图像由主摄像头拍摄得到,缓存副图像由副摄像头拍摄得到。双目立体视觉测距是运用两个相同的摄像头对同一被摄物从不同的位置成像以获得被摄物的立体图像对,再通过算法匹配出立体图像对的相应像点,从而计算出视差,最后采用基于三角测量的方法恢复深度信息。如此,通过对缓存主图像和缓存副图像这一立体图像对进行匹配便可获得缓存主图像的深度信息。It can be understood that the depth information can be obtained by the binocular stereo vision ranging method, and the scene data in this case includes a cached main image and a cached sub-image. The cached main image is captured by the main camera, and the cached sub-image is captured by the sub-camera. Binocular stereo vision ranging is to use two identical cameras to image the same subject from different positions to obtain a stereo image pair of the subject, and then use an algorithm to match the corresponding image points of the stereo image pair to calculate the parallax , and finally a triangulation-based method is used to recover the depth information. In this way, the depth information of the cached main image can be obtained by matching the stereoscopic image pair of the cached main image and the cached sub-image.
请参阅图8,在某些实施方式中,步骤S13包括以下步骤:Referring to FIG. 8, in some embodiments, step S13 includes the following steps:
S132:根据深度信息获得缓存主图像的最前点;和S132: Obtain the foremost point of the cached main image according to the depth information; and
S134:寻找与最前点连续连接且深度连续变化的区域作为前景部分。S134: Find a region that is continuously connected to the frontmost point and whose depth changes continuously as a foreground part.
请参阅图9,在某些实施方式中,获取模块13包括第五处理单元132和寻找单元134。第五处理单元132用于根据深度信息获得缓存主图像的最前点。寻找单元134用于寻找与最前点连续连接且深度连续变化的区域作为前景部分。Referring to FIG. 9 , in some embodiments, the obtaining
也即是说,步骤S132可以由第五处理单元132实现,步骤S134可以由寻找单元134实现。That is to say, step S132 may be implemented by the
如此,可以获得缓存主图像物理联系的前景部分,即在现实场景中,前景部分是连接在一起的。以物理联系的前景部分作为主体,可以直观地获得前景部分的关系。In this way, it is possible to obtain the foreground parts that cache the physical connection of the main image, that is, in the real scene, the foreground parts are connected together. Taking the physically connected foreground part as the subject, the relationship of the foreground part can be obtained intuitively.
具体地,先根据深度信息获得缓存主图像中每个像素点的深度,获得深度最小的像素点作为缓存主图像的最前点,最前点相当于前景部分的开端,从最前点进行扩散,获取与最前点连续连接并且深度连续变化的区域,这些区域和最前点归并为前景区域。Specifically, the depth of each pixel in the cached main image is obtained first according to the depth information, and the pixel with the smallest depth is obtained as the frontmost point of the cached main image, and the frontmost point is equivalent to the beginning of the foreground part. Regions where the frontmost points are continuously connected and whose depth varies continuously, these regions and the frontmost points are merged into the foreground region.
需要说明的是,最前点指的是深度最小的物体对应的像素点,即物距最小或者离成像装置20最近的物体对应的像素点。邻接是指两个像素点连接在一起。深度连续变化时指邻接的两个像素点的深度差值小于预定差值,或者说深度之差小于预定差值的两个邻接的像素点的深度连续变化。It should be noted that the foremost point refers to the pixel point corresponding to the object with the smallest depth, that is, the pixel point corresponding to the object with the smallest object distance or the closest object to the
请参阅图10,在某些实施方式中,步骤S13可以包括以下步骤:Referring to FIG. 10, in some embodiments, step S13 may include the following steps:
S136:根据深度信息获得缓存主图像的最前点;和S136: obtain the foremost point of the cached main image according to the depth information; and
S138:寻找与最前点的深度之差小于预定阈值的区域作为前景部分。S138: Find a region whose depth difference from the frontmost point is smaller than a predetermined threshold as a foreground part.
如此,可以获得缓存主图像逻辑联系的前景部分,即在现实场景中,前景部分可能没有连接在一起,但是符合某种逻辑关系,比如老鹰俯冲下来抓小鸡的场景,老鹰和小鸡物理上可能没连接在一起,但是从逻辑上,可以判断它们是联系起来的。In this way, the foreground part of the logical connection of the cached main image can be obtained, that is, in the real scene, the foreground part may not be connected together, but it conforms to a certain logical relationship, such as the scene of the eagle diving down to catch the chicken, the eagle and the chicken are physically It may not be connected together, but logically, it can be judged that they are connected.
具体地,先根据深度信息获得缓存主图像的最前点,最前点相当于前景部分的开端,从最前点进行扩散,获取与最前点的深度之差小于预定阈值的区域,这些区域和最前点归并为前景区域。Specifically, first obtain the frontmost point of the cached main image according to the depth information. The frontmost point is equivalent to the beginning of the foreground part. Diffusion is performed from the frontmost point to obtain the areas whose depth difference from the frontmost point is less than a predetermined threshold. These areas are merged with the frontmost point. for the foreground area.
在某些实施方式中,预定阈值可以是由用户设置的一个值。如此,用户可根据自身的需求来确定前景部分的范围,从而获得理想的构图建议,实现理想的构图。In some embodiments, the predetermined threshold may be a value set by the user. In this way, the user can determine the range of the foreground part according to his own needs, so as to obtain an ideal composition suggestion and realize an ideal composition.
在某些实施方式中,预定阈值可以是控制装置10确定的一个值,在此不做任何限制。控制装置10确定的预定阈值可以是内部存储的一个固定值,也可以是根据不同情况,例如最前点的深度,计算出来的数值。In some embodiments, the predetermined threshold value may be a value determined by the
在某些实施方式中,步骤S13可以包括以下步骤:In some embodiments, step S13 may include the following steps:
寻找深度处于预定区间的区域作为前景部分。Look for areas where the depth is in a predetermined interval as the foreground part.
如此,可以获得深度处于合适范围的前景部分。In this way, a foreground portion whose depth is in a suitable range can be obtained.
可以理解,有些拍摄情况下,前景部分并不是最前面的部分,而是最前面部分稍微靠后一点的部分,例如,人坐在电脑后面,电脑比较靠前,但是人才是主体部分,所以将深度处于预定区间的区域作为前景部分,可以有效地避免主体选择不正确的问题。It is understandable that in some shooting situations, the foreground part is not the front part, but the front part is slightly behind. The area with the depth in the predetermined interval is used as the foreground part, which can effectively avoid the problem of incorrect subject selection.
在某些实施方式中,方向传感器30包括重力传感器,通过重力传感器可以获得成像装置20的朝向。In some embodiments, the
在某个实施例中,根据前景部分和朝向确定当前三维空间结构类型的方法如下:首先根据重力传感器得知成像装置20的朝向,从成像装置20的朝向可以反推图像的当前朝向,比如当前成像装置20朝前时,可以反推出图像呈前后分布,分析前景部分的图像内容,比如前景部分存在两个色彩特殊的物体,可以确定当前空间结构类型属于井字型。In a certain embodiment, the method for determining the current three-dimensional spatial structure type according to the foreground part and the orientation is as follows: first, the orientation of the
请一并参阅图3和图11,在某些实施方式中,电子装置100包括显示器50,控制方法包括以下步骤:Please refer to FIG. 3 and FIG. 11 together. In some embodiments, the
S19:控制显示器50显示当前构图建议。S19: Control the
请参阅图12,在某些实施方式中,控制装置10包括控制模块19。控制模块19用于控制显示器50显示当前构图建议。Referring to FIG. 12 , in some embodiments, the
也即是说,步骤S19可以由控制模块19实现。That is to say, step S19 may be implemented by the
如此,可以告知用户当前构图建议并引导用户操作电子装置100,从而遵循当前构图建议完成构图。In this way, the user can be informed of the current composition suggestion and guided to operate the
可以理解,控制装置10在获得当前构图建议后,需要告知用户以实现当前构图,通过显示器显示当前构图建议,用户可快速地理解如何操作。It can be understood that, after obtaining the current composition suggestion, the
在某些实施方式中,电子装置100包括电声器件,控制方法包括以下步骤:In some embodiments, the
控制电声器件提示当前构图建议。Control the electro-acoustic device to prompt the current composition suggestion.
如此,可以使用语音的方式提示用户如何实现构图。In this way, the user can be prompted how to realize the composition by means of voice.
请一并参阅图13-16,在一个实施例中,控制装置10控制成像装置20获得场景数据,场景数据包括如图13所示的缓存主图像和如图14所述的深度图像,根据深度图像可以获得前景部分以作为图像主体,根据前景部分和方向传感器30获得的成像装置20的朝向建立如图15所述的三维空间系统,再根据三维空间系统确定如图16所示的当前三维空间结构类型,最后从存储器40中寻找当前三维空间结构类型对应的当前构图建议,从而提示用户如何完成当前构图。Please refer to FIGS. 13-16 together. In one embodiment, the
在本发明的实施方式的描述中,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个所述特征。在本发明的实施方式的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In the description of the embodiments of the present invention, the terms "first" and "second" are only used for description purposes, and cannot be understood as indicating or implying relative importance or implying the number of indicated technical features. Thus, features defined as "first", "second" may expressly or implicitly include one or more of said features. In the description of the embodiments of the present invention, "plurality" means two or more, unless otherwise expressly and specifically defined.
在本发明的实施方式的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接或可以相互通讯;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明的实施方式中的具体含义。In the description of the embodiments of the present invention, it should be noted that, unless otherwise expressly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it may be a fixed connection or a It is a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection or can communicate with each other; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two components or two components interaction relationship. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present invention can be understood according to specific situations.
在本说明书的描述中,参考术语“一个实施方式”、“一些实施方式”、“示意性实施方式”、“示例”、“具体示例”或“一些示例”等的描述意指结合所述实施方式或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施方式或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施方式或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施方式或示例中以合适的方式结合。In the description of this specification, reference to the terms "one embodiment," "some embodiments," "exemplary embodiment," "example," "specific example," or "some examples" or the like is meant to be used in conjunction with the described embodiments. A particular feature, structure, material or characteristic described by way or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any description of a process or method in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing a specified logical function or step of the process , and the scope of the preferred embodiments of the invention includes alternative implementations in which the functions may be performed out of the order shown or discussed, including performing the functions substantially concurrently or in the reverse order depending upon the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present invention belong.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理模块的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in flowcharts or otherwise described herein, for example, may be considered an ordered listing of executable instructions for implementing the logical functions, may be embodied in any computer-readable medium, For use by an instruction execution system, apparatus or apparatus (such as a computer-based system, a system including a processing module, or other system that can fetch instructions from and execute instructions from an instruction execution system, apparatus or apparatus), or in conjunction with such instruction execution system, apparatus or equipment. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport the program for use by or in connection with an instruction execution system, apparatus, or apparatus. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections with one or more wiring (electronic devices), portable computer disk cartridges (magnetic devices), random access memory (RAM), Read Only Memory (ROM), Erasable Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program may be printed, as the paper or other medium may be optically scanned, for example, followed by editing, interpretation, or other suitable medium as necessary process to obtain the program electronically and then store it in computer memory.
应当理解,本发明的实施方式的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the embodiments of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or a combination of the following techniques known in the art: Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, Programmable Gate Arrays (PGA), Field Programmable Gate Arrays (FPGA), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those skilled in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the program can be stored in a computer-readable storage medium. When executed, one or a combination of the steps of the method embodiment is included.
此外,在本发明的各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically alone, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, and the like.
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施方式进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it should be understood that the above-mentioned embodiments are exemplary and should not be construed as limiting the present invention. Embodiments are subject to variations, modifications, substitutions and alterations.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710138849.9A CN106973224B (en) | 2017-03-09 | 2017-03-09 | Control method, control device and electronic device for auxiliary composition |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710138849.9A CN106973224B (en) | 2017-03-09 | 2017-03-09 | Control method, control device and electronic device for auxiliary composition |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106973224A CN106973224A (en) | 2017-07-21 |
CN106973224B true CN106973224B (en) | 2020-08-07 |
Family
ID=59329377
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710138849.9A Expired - Fee Related CN106973224B (en) | 2017-03-09 | 2017-03-09 | Control method, control device and electronic device for auxiliary composition |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106973224B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110115025B (en) * | 2017-03-09 | 2022-05-20 | Oppo广东移动通信有限公司 | Depth-based control method, control device and electronic device |
CN107551551B (en) * | 2017-08-09 | 2021-03-26 | Oppo广东移动通信有限公司 | Game effect construction method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1551616A (en) * | 2003-05-15 | 2004-12-01 | Lg������ʽ���� | Portable phone with camera and customizable photographic composition guidelines |
CN101540844A (en) * | 2008-03-19 | 2009-09-23 | 索尼株式会社 | Composition determination device, composition determination method, and program |
JP2012080236A (en) * | 2010-09-30 | 2012-04-19 | Hitachi Solutions Ltd | Electronic device, and method and program for displaying captured image area with information |
CN103634588A (en) * | 2012-08-27 | 2014-03-12 | 联想(北京)有限公司 | Image composition method and electronic apparatus |
CN106484086A (en) * | 2015-09-01 | 2017-03-08 | 北京三星通信技术研究有限公司 | The method shooting for auxiliary and its capture apparatus |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8224078B2 (en) * | 2000-11-06 | 2012-07-17 | Nant Holdings Ip, Llc | Image capture and identification system and process |
-
2017
- 2017-03-09 CN CN201710138849.9A patent/CN106973224B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1551616A (en) * | 2003-05-15 | 2004-12-01 | Lg������ʽ���� | Portable phone with camera and customizable photographic composition guidelines |
CN101540844A (en) * | 2008-03-19 | 2009-09-23 | 索尼株式会社 | Composition determination device, composition determination method, and program |
JP2012080236A (en) * | 2010-09-30 | 2012-04-19 | Hitachi Solutions Ltd | Electronic device, and method and program for displaying captured image area with information |
CN103634588A (en) * | 2012-08-27 | 2014-03-12 | 联想(北京)有限公司 | Image composition method and electronic apparatus |
CN106484086A (en) * | 2015-09-01 | 2017-03-08 | 北京三星通信技术研究有限公司 | The method shooting for auxiliary and its capture apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN106973224A (en) | 2017-07-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106851123B (en) | Exposure control method, exposure control device, and electronic device | |
CN106993112B (en) | Background blurring method and device based on depth of field and electronic device | |
CN106851238B (en) | Method for controlling white balance, white balance control device and electronic device | |
EP3330925B1 (en) | Method for 3d reconstruction of an environment of a mobile device, corresponding computer program product and device | |
CN106909911B (en) | Image processing method, image processing apparatus, and electronic apparatus | |
US8254667B2 (en) | Method, medium, and system implementing 3D model generation based on 2D photographic images | |
EP3248374B1 (en) | Method and apparatus for multiple technology depth map acquisition and fusion | |
US9916689B2 (en) | Apparatus and method for estimating camera pose | |
CN106851124B (en) | Image processing method and device based on depth of field and electronic device | |
CN111837158A (en) | Image processing method and device, shooting device and movable platform | |
CN106851107A (en) | Control method, control device and electronic device for switching camera auxiliary composition | |
WO2018196698A1 (en) | Photography processing method and device for camera module, and terminal apparatus | |
CN107018323B (en) | Control method, control device and electronic device | |
CN106991378B (en) | Depth-based face orientation detection method and device and electronic device | |
CN106998389A (en) | Control method, control device and electronic device for automatic composition | |
Fabbri et al. | 3D curve sketch: Flexible curve-based stereo reconstruction and calibration | |
CN107016348B (en) | Face detection method and device combined with depth information and electronic device | |
CN106875433A (en) | Control method, control device and electronic device for cropping composition | |
CN110798677A (en) | Three-dimensional scene modeling method and device, electronic device, readable storage medium and computer equipment | |
CN107025636B (en) | Image defogging method and device combined with depth information and electronic device | |
CN107016651A (en) | image sharpening method, image sharpening device and electronic device | |
CN106973224B (en) | Control method, control device and electronic device for auxiliary composition | |
CN105335959B (en) | Imaging device quick focusing method and its equipment | |
CN106997595A (en) | Image color processing method, processing device and electronic device based on depth of field | |
US11283970B2 (en) | Image processing method, image processing apparatus, electronic device, and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200807 |
|
CF01 | Termination of patent right due to non-payment of annual fee |