CN106210510B - Photographing method and device based on image adjustment and terminal - Google Patents
Photographing method and device based on image adjustment and terminal Download PDFInfo
- Publication number
- CN106210510B CN106210510B CN201610507430.1A CN201610507430A CN106210510B CN 106210510 B CN106210510 B CN 106210510B CN 201610507430 A CN201610507430 A CN 201610507430A CN 106210510 B CN106210510 B CN 106210510B
- Authority
- CN
- China
- Prior art keywords
- image area
- target
- adjustment
- image
- photographing
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Bioinformatics & Cheminformatics (AREA)
- General Engineering & Computer Science (AREA)
- Bioinformatics & Computational Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Processing Or Creating Images (AREA)
- Studio Devices (AREA)
Abstract
本发明公开了一种基于图像调整的拍照方法、装置及终端。从目标帧画面中获取目标图像区域,所述目标图像区域为所述目标帧画面中的目标对象对应的图像区域;根据用户指令对所述目标图像区域进行调整;如果所述目标对象的实际位置与调整结果匹配,则进行拍照。本发明实施例能够根据用户指令对目标帧画面中的目标图像区域进行调整,当目标对象的实际位置与调整结果匹配时进行拍照。本发明实施例能够通过调整目标图像区域实现在目标帧画面中虚拟的对目标对象进行调整,进而无需移动目标对象实体,省时省力,达到提高用户体验、节约调整成本的效果。同时,在目标帧画面中虚拟的对目标对象进行调整,使拍照者能够快速获取调整效果,提高拍照效率。
The present invention discloses a photographing method, device and terminal based on image adjustment. A target image area is obtained from a target frame screen, wherein the target image area is an image area corresponding to a target object in the target frame screen; the target image area is adjusted according to a user instruction; if the actual position of the target object matches the adjustment result, a photograph is taken. The embodiment of the present invention can adjust the target image area in the target frame screen according to a user instruction, and take a photograph when the actual position of the target object matches the adjustment result. The embodiment of the present invention can realize a virtual adjustment of the target object in the target frame screen by adjusting the target image area, without moving the target object entity, saving time and effort, and achieving the effect of improving user experience and saving adjustment costs. At the same time, the target object is virtually adjusted in the target frame screen, so that the photographer can quickly obtain the adjustment effect and improve the efficiency of photographing.
Description
技术领域technical field
本发明实施例涉及拍照技术,尤其涉及一种基于图像调整的拍照方法、装置及终端。Embodiments of the present invention relate to photographing technologies, and in particular, to a photographing method, device, and terminal based on image adjustment.
背景技术Background technique
随着智能手机等智能终端上的拍照功能日趋成熟,用户使用智能手机等智能终端进行拍照的频率越来越高。As the camera functions on smart terminals such as smart phones become more and more mature, users use smart terminals such as smart phones to take photos more and more frequently.
智能终端通过显示屏显示摄像头获取的帧画面,用户点击拍照按钮后将当前获取的帧画面作为一张照片进行存储。The intelligent terminal displays the frame image obtained by the camera through the display screen, and after the user clicks the photo button, the currently obtained frame image is stored as a photo.
在对可移动物体进行拍照时,通常需要对物体进行移位,以便达到更好的照片布局。然而,在调整物体进行移位时,需要用户将物体的实体进行移动后,方可获知物体移位后的布局效果,费时费力,拍照效率低。When taking pictures of movable objects, it is often necessary to shift the objects in order to achieve a better photo layout. However, when adjusting the displacement of the object, the user needs to move the entity of the object to know the layout effect after the displacement of the object, which is time-consuming and labor-intensive, and the photographing efficiency is low.
发明内容SUMMARY OF THE INVENTION
本发明提供一种基于图像调整的拍照方法、装置及终端,以实现无需移动物体实体即可获取物体移动后的布局效果,省时省力,提高拍照效率。The present invention provides a photographing method, device and terminal based on image adjustment, so as to obtain the layout effect after moving the object without moving the object entity, save time and effort, and improve photographing efficiency.
第一方面,本发明实施例提供了一种基于图像调整的拍照方法,包括:In a first aspect, an embodiment of the present invention provides a photographing method based on image adjustment, including:
从目标帧画面中获取目标图像区域,所述目标图像区域为所述目标帧画面中的目标对象对应的图像区域;Obtain a target image area from the target frame picture, and the target image area is the image area corresponding to the target object in the target frame picture;
根据用户指令对所述目标图像区域进行调整;adjusting the target image area according to user instructions;
如果所述目标对象的实际位置与调整结果匹配,则进行拍照。If the actual position of the target object matches the adjustment result, take a picture.
第二方面,本发明实施例还提供了一种基于图像调整的拍照装置,包括:In a second aspect, an embodiment of the present invention further provides a photographing device based on image adjustment, including:
图像区域获取单元,用于从目标帧画面中获取目标图像区域,所述目标图像区域为所述目标帧画面中的目标对象对应的图像区域;an image area acquisition unit, configured to acquire a target image area from a target frame picture, where the target image area is an image area corresponding to a target object in the target frame picture;
调整单元,用于根据用户指令对实施图像区域获取单元获取的所述目标图像区域进行调整;an adjustment unit, configured to adjust the target image area obtained by the image area obtaining unit according to a user instruction;
拍照单元,用于如果所述目标对象的实际位置与所述调整单元的调整结果匹配,则进行拍照。a photographing unit, configured to take a photograph if the actual position of the target object matches the adjustment result of the adjusting unit.
第三方面,本发明实施例还提供了一种终端,包括第二方面所示的基于图像调整的拍照装置。In a third aspect, an embodiment of the present invention further provides a terminal, including the image adjustment-based photographing apparatus shown in the second aspect.
本发明实施例能够根据用户指令对目标帧画面中的目标图像区域进行调整,当目标对象的实际位置与调整结果匹配时进行拍照。现有技术需要将目标对象的实体进行移动,以确定移动后的拍照效果,拍照效率低。本发明实施例能够通过调整目标图像区域实现在目标帧画面中虚拟的对目标对象进行调整,进而无需移动目标对象实体,省时省力,达到提高用户体验、节约调整成本的效果。同时,在目标帧画面中虚拟的对目标对象进行调整,使拍照者能够快速获取调整效果,提高拍照效率。The embodiment of the present invention can adjust the target image area in the target frame according to the user's instruction, and take a picture when the actual position of the target object matches the adjustment result. In the prior art, the entity of the target object needs to be moved to determine the photographing effect after the movement, and the photographing efficiency is low. The embodiment of the present invention can realize the virtual adjustment of the target object in the target frame picture by adjusting the target image area, thereby eliminating the need to move the target object entity, saving time and effort, and achieving the effects of improving user experience and saving adjustment costs. At the same time, the target object is virtually adjusted in the target frame picture, so that the photographer can quickly obtain the adjustment effect and improve the photographing efficiency.
附图说明Description of drawings
图1是本发明实施例一中的基于图像调整的拍照方法的流程图;FIG. 1 is a flowchart of a photographing method based on image adjustment in Embodiment 1 of the present invention;
图2是本发明实施例二中的基于图像调整的拍照方法的流程图;FIG. 2 is a flowchart of a photographing method based on image adjustment in Embodiment 2 of the present invention;
图3是本发明实施例二中的人体图像区域平移的示意图;Fig. 3 is the schematic diagram of the human body image area translation in the second embodiment of the present invention;
图4是本发明实施例二中的人体模型调整示意图;4 is a schematic diagram of the adjustment of the human body model in Embodiment 2 of the present invention;
图5是本发明实施例三中的基于图像调整的拍照方法的流程图;5 is a flowchart of a photographing method based on image adjustment in Embodiment 3 of the present invention;
图6是本发明实施例三中的静态模具的虚拟图像调整示意图;6 is a schematic diagram of virtual image adjustment of a static mold in Embodiment 3 of the present invention;
图7是本发明实施例四中的基于图像调整的拍照方法的流程图;7 is a flowchart of a photographing method based on image adjustment in Embodiment 4 of the present invention;
图8是本发明实施例五中的基于图像调整的拍照方法的流程图;8 is a flowchart of a photographing method based on image adjustment in Embodiment 5 of the present invention;
图9是本发明实施例六中的基于图像调整的拍照方法的流程图;9 is a flow chart of a photographing method based on image adjustment in Embodiment 6 of the present invention;
图10是本发明实施例七的基于图像调整的拍照装置的结构示意图;10 is a schematic structural diagram of a photographing device based on image adjustment according to Embodiment 7 of the present invention;
图11是本发明实施例八的移动终端的结构示意图。FIG. 11 is a schematic structural diagram of a mobile terminal according to Embodiment 8 of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.
实施例一Example 1
图1为本发明实施例一提供的基于图像调整的拍照方法的流程图,本实施例可适用于使用智能终端进行拍照的情况,该方法可以由智能手机、平板电脑等智能终端来执行,具体包括如下步骤:FIG. 1 is a flow chart of a photographing method based on image adjustment provided in Embodiment 1 of the present invention. This embodiment can be applied to a situation where an intelligent terminal is used to take a photograph. The method can be executed by an intelligent terminal such as a smartphone and a tablet computer. It includes the following steps:
步骤110、从目标帧画面中获取目标图像区域。Step 110: Acquire the target image area from the target frame picture.
其中,所述目标图像区域为所述目标帧画面中的目标对象对应的图像区域。Wherein, the target image area is an image area corresponding to the target object in the target frame picture.
将摄像头获取的帧画面实时地通过显示屏进行显示。目标帧画面可以为显示屏中显示的当前帧画面。由于摄像头获取的帧画面可能随时发生变化,因此目标帧画面还可以为拍照者在某一时刻选择的该时刻对应的帧画面。例如,如果用户在12:00对显示屏中显示的帧画面的某个目标图像区域进行了调整,则确定用户在12:00选择将12:00显示屏中显示的帧画面确定为目标帧画面。The frames captured by the camera are displayed on the display screen in real time. The target frame picture can be the current frame picture displayed on the display screen. Since the frame images acquired by the camera may change at any time, the target frame images may also be the frame images corresponding to the moment selected by the photographer at a certain moment. For example, if the user adjusts a certain target image area of the frame displayed on the display screen at 12:00, it is determined that the user chooses to determine the frame displayed on the display screen at 12:00 as the target frame at 12:00 .
首先通过图像分析从目标帧画面中查找到各物体的轮廓线,轮廓线构成的闭合区域形成第一图像区域。在进行图像分析时,可通过边界跟踪算法识别不同色块的边界,进而得到物体的轮廓线。进一步的,在确定第一图像区域后,根据目标对象的类别对得到的第一图像区域进行筛选。目标对象的类别如人物、动物、家具、汽车、飞机等。其次,用户在得到的第一图像区域中选择一个或多个第一图像区域作为目标图像区域。First, the contour lines of each object are found from the target frame picture through image analysis, and the closed area formed by the contour lines forms the first image area. During image analysis, the boundary of different color blocks can be identified by the boundary tracking algorithm, and then the outline of the object can be obtained. Further, after the first image area is determined, the obtained first image area is screened according to the category of the target object. The categories of target objects such as people, animals, furniture, cars, airplanes, etc. Secondly, the user selects one or more first image regions as target image regions in the obtained first image regions.
步骤120、根据用户指令对目标图像区域进行调整。Step 120: Adjust the target image area according to the user's instruction.
调整包括移动、旋转。如果目标图像区域为人体图像区域,则调整还包括对人体姿态的调整。当目标图像区域为多个时,可以将多个目标图像区域按照用户输入的同一个位移向量进行调整,用户也可通过单独拖拽实现对单独目标图像区域进行调整。Adjustments include movement, rotation. If the target image area is a human body image area, the adjustment also includes adjustment of the posture of the human body. When there are multiple target image areas, the multiple target image areas can be adjusted according to the same displacement vector input by the user, and the user can also adjust the individual target image areas by dragging and dropping individually.
示例性的,当用户选择了N(N为大于1的正整数)个目标图像区域后,默认为对该N个目标图像区域进行统一调整。例如,用户将手指防止在触摸显示屏显示的一个目标图像区域a上,然后将该目标图像区域a从当前位置a-1拖拽到另一位置a-2。则根据坐标a-1和a-2确定位移向量,并将N个目标图像区域中的其余N-1个目标图像区域按照该位移向量进行移动。用户通过点击“解除组合”等按钮可取消各目标图像区域进行统一调整,而后用户可对单一目标图像区域进行调整。Exemplarily, after the user selects N (N is a positive integer greater than 1) target image areas, the N target image areas are adjusted uniformly by default. For example, the user keeps his finger on a target image area a displayed on the touch screen, and then drags the target image area a from the current position a-1 to another position a-2. Then, the displacement vector is determined according to the coordinates a-1 and a-2, and the remaining N-1 target image areas in the N target image areas are moved according to the displacement vector. The user can cancel the unified adjustment of each target image area by clicking buttons such as "ungroup", and then the user can adjust a single target image area.
步骤130、如果目标对象的实际位置与调整结果匹配,则进行拍照。Step 130: If the actual position of the target object matches the adjustment result, take a photo.
如果目标图像区域有多个,则当调整后的全部目标图像区域中均存在相应目标对象,则进行拍照。If there are multiple target image areas, when there are corresponding target objects in all the adjusted target image areas, take a picture.
本实施例能够根据用户指令对目标帧画面中的目标图像区域进行调整,当目标对象的实际位置与调整结果匹配时进行拍照。现有技术需要将目标对象的实体进行移动,以确定移动后的拍照效果,拍照效率低。本实施例能够通过调整目标图像区域实现在目标帧画面中虚拟的对目标对象进行调整,进而无需移动目标对象实体,省时省力,达到提高用户体验、节约调整成本的效果。同时,在目标帧画面中虚拟的对目标对象进行调整,使拍照者能够快速获取调整效果,提高拍照效率。In this embodiment, the target image area in the target frame picture can be adjusted according to the user's instruction, and the photo is taken when the actual position of the target object matches the adjustment result. In the prior art, the entity of the target object needs to be moved to determine the photographing effect after the movement, and the photographing efficiency is low. This embodiment can realize the virtual adjustment of the target object in the target frame by adjusting the target image area, thereby eliminating the need to move the target object entity, saving time and effort, and achieving the effects of improving user experience and saving adjustment costs. At the same time, the target object is virtually adjusted in the target frame picture, so that the photographer can quickly obtain the adjustment effect and improve the photographing efficiency.
实施例二Embodiment 2
图2为本发明实施例二提供的基于图像调整的拍照方法的流程图,作为对实施例一的进一步说明,步骤110、从目标帧画面中获取目标图像区域,可通过下述方式进行实施:FIG. 2 is a flowchart of a photographing method based on image adjustment provided by Embodiment 2 of the present invention. As a further description of Embodiment 1, step 110, acquiring a target image area from a target frame picture, can be implemented in the following manner:
步骤110a、从目标帧画面中获取人体图像区域。Step 110a, acquiring a human body image area from the target frame picture.
其中,人体图像区域为目标帧画面中的人体轮廓对应的图像区域。由于人体轮廓具有特殊调整,因此可通过机器学习等方式得到人体轮廓的特征向量,根据人体轮廓的特征向量从各类物体的图像区域中查找人体图像区域。The human body image area is an image area corresponding to the human body contour in the target frame picture. Due to the special adjustment of the human body contour, the feature vector of the human body contour can be obtained through machine learning and other methods, and the human image area can be found from the image areas of various objects according to the feature vector of the human body contour.
示例性的,如图3左侧所示,步骤120a获取到3个人体图像区域,三个人体图像区域分别对应一个身高较高和两个身高较低的人物,且从左至右依次为两个身高较低的人物和身高较高的人物。用户发觉这样的站位照出的照片不好看,因此用户可通过拖拽等方式对三个人体图像区域进行移动,得到用户认为拍照效果更佳的站位,如图3右侧所示,身高较高的人物位于中间,审稿较低的人物分别位于身高较高人物的两侧。Exemplarily, as shown in the left side of FIG. 3 , in step 120a, three human body image regions are acquired, and the three human body image regions correspond to one taller and two lower tall people respectively, and the two figures are from left to right. A taller person and a taller person. The user finds that the photos taken by such a position are not good-looking, so the user can move the three human body image areas by dragging and other methods to obtain the position that the user thinks is better for taking pictures, as shown on the right side of Figure 3. The taller characters are in the middle, and the lower reviewers are on either side of the taller characters.
在实际使用中,通常使用智能手机或平板电脑对拍摄人物照片。在拍摄人物照片时,尤其是在拍摄多个人物的人物照片时,需要对多个人物的位置以及人物造型进行合理排布,以便达到更好的拍照效果。本实施例通过获取目标帧画面中的人物图像区域,实现拍照者能够对目标帧画面中的人物图像区域进行调整,实现对人物位置的虚拟调整,提高人物拍照的拍照效率。In practical use, a smartphone or tablet is usually used to take pictures of people. When taking pictures of people, especially when taking pictures of people of multiple people, it is necessary to reasonably arrange the positions and shapes of the multiple people, so as to achieve better photographing effects. In this embodiment, by acquiring the person image area in the target frame picture, the photographer can adjust the person image area in the target frame picture, realize the virtual adjustment of the person's position, and improve the photographing efficiency of the person photographing.
由于人物在进行拍照时不同的拍照姿势(又称pose)拍照出的效果差异较大,因此用户在拍照时除了需要对被拍照人物的虚拟图像(即人物图像区域)进行移动,还存在需要对被拍照人物的虚拟拍照姿势进行设计的需求。因此,仅将人体图像区域进行移动无法满足用户的上述需求。相应的,进一步的,步骤120、根据用户指令对目标图像区域进行调整,包括:Since the effect of different photographing poses (also known as poses) of the person taking pictures is quite different, the user needs to move the virtual image of the person being photographed (that is, the person image area) when taking pictures. The requirements for designing the virtual photo pose of the person being photographed. Therefore, only moving the human body image area cannot meet the above-mentioned requirements of the user. Correspondingly, further, in step 120, the target image area is adjusted according to the user's instruction, including:
步骤120a、根据用户输入的体态调整指令,对人体图像区域对应的体态进行调整。Step 120a: Adjust the posture corresponding to the human body image area according to the posture adjustment instruction input by the user.
首先为人体图像区域配置与其面积匹配的人体模型,该人体模型为具有可调整节点的模型。然后,通过改变可调整节点的位置使配置的人体模型与人体图像区域吻合。最后,接收用户针对可调整节点输入的位移指令。其中,可调整节点包括颈部节点、左右肘关节节点、左右腕关节节点、左右膝关节节点以及左右换关节节点。进一步的,可调整节点还包括手指各指节节点。First, configure the human body image area with a human body model matching its area, which is a model with adjustable nodes. Then, by changing the position of the adjustable nodes, the configured human body model is fitted to the human body image area. Finally, the displacement command input by the user for the adjustable node is received. The adjustable nodes include neck nodes, left and right elbow joint nodes, left and right wrist joint nodes, left and right knee joint nodes, and left and right swap joint nodes. Further, the adjustable nodes also include nodes of each knuckle of the finger.
进一步的,若人体图像区域未包括人体模型的全部区域,如只有上半身,则配置人体图像区域对应的人体模型,如仅配置上本身模型。Further, if the human body image area does not include all areas of the human body model, such as only the upper body, the human body model corresponding to the human body image area is configured, such as only the own model is configured.
示例性的,如图4所示,图4左侧给出了调整前某人体模型的示意图,用户可对可调整节点进行拖动,进而实现调整。图4中,圆圈代表可调节节点。图4右侧给出了调整后的人体模型示意图。进一步的,用户可先将人体图像区域进行拖拽,以便确定该被拍照对象的虚拟位置,再对该被拍照对象的虚拟人体模型上的可调节节点进行推动调整,实现设计该被拍照对象的造型。Exemplarily, as shown in FIG. 4 , a schematic diagram of a human body model before adjustment is shown on the left side of FIG. 4 , and the user can drag the adjustable nodes to realize the adjustment. In Figure 4, circles represent adjustable nodes. A schematic diagram of the adjusted human model is given on the right side of Figure 4. Further, the user can first drag the human body image area to determine the virtual position of the photographed object, and then push and adjust the adjustable nodes on the virtual human body model of the photographed object to realize the design of the photographed object. modeling.
本实施例能够在进行人物拍照时,对被拍照人物的虚拟位置以及虚拟体态进行设计(又称调整),然后根据设计得到的虚拟位置和虚拟体态进行拍照,能够避免让被拍照人物的真人到实地进行调整,大幅提高拍照的布局设计效率,提高用户体验。In this embodiment, the virtual position and virtual posture of the person to be photographed can be designed (also referred to as adjustment) when taking a picture of a person, and then the picture can be taken according to the virtual position and virtual posture obtained by the design, which can avoid letting the real person of the person to be photographed arrive. On-site adjustments are made to greatly improve the efficiency of the layout design of photos and improve the user experience.
实施例三Embodiment 3
图5为本发明实施例三提供的基于图像调整的拍照方法的流程图,作为对上述实施例的进一步说明,步骤120、根据用户指令对所述目标图像区域进行调整,可通过下述方式进行实施:FIG. 5 is a flowchart of a photographing method based on image adjustment provided by Embodiment 3 of the present invention. As a further description of the above embodiment, step 120, adjusting the target image area according to a user instruction, can be performed in the following manner Implementation:
步骤120b、根据用户输入的位移指令移动目标图像区域的位置。或者,Step 120b, move the position of the target image area according to the displacement instruction input by the user. or,
步骤120c、根据用户输入的旋转指令对目标图像区域进行旋转。Step 120c: Rotate the target image area according to the rotation instruction input by the user.
在拍摄静物时,如拍摄桌面上放置的多个物体,智能手机或平板电脑获取到各静物的图像区域后,用户可通过拖动目标图像区域或者旋转目标图像区域,以便达到更好的构图布局。在进行旋转时,可以以预设坐标点为旋转中心点进行旋转。预设坐标点可以目标区域中的任意坐标点,优选为目标区域的几何中心点。When shooting still life, such as shooting multiple objects placed on the desktop, after the smartphone or tablet has obtained the image area of each still life, the user can drag the target image area or rotate the target image area to achieve a better composition layout . When rotating, you can rotate with the preset coordinate point as the rotation center point. The preset coordinate point can be any coordinate point in the target area, preferably the geometric center point of the target area.
示例性的,如图6左侧所示,桌面上方知有两个相同的等腰直角三角形模具、一个正方形模具和一个半圆形模具,其中真方形的边长与等腰直角三角形的腰以及半圆形的半径等长,上述四个模具散放在桌面上。此时拍照出来的图像较为分散,构图不佳。用户可通过旋转和拖动上述各模具的虚拟图像区域,得到图6右侧所示的放置方式,根据图6右侧的放置方式重新摆放四个模具,达到更有的拍照效果。Exemplarily, as shown on the left side of Figure 6, there are two identical isosceles right triangle moulds, a square mould and a semicircle mould above the table top, wherein the side length of the true square is the same as the waist of the isosceles right triangle and The radius of the semi-circle is the same length, and the above four molds are scattered on the table. The images taken at this time are scattered and poorly composed. The user can obtain the placement mode shown on the right side of FIG. 6 by rotating and dragging the virtual image area of the above-mentioned molds, and rearrange the four molds according to the placement mode on the right side of FIG. 6 to achieve a better photographing effect.
本实施例能够通过移动或旋转的方式对目标图像区域进行调整,适用于静物拍摄,尤其是俯视图或仰视图的拍摄中,为用户提供更加丰富的调整场景,提高用户体验。This embodiment can adjust the target image area by moving or rotating, and is suitable for still life shooting, especially in top view or bottom view shooting, providing users with more abundant adjustment scenes and improving user experience.
实施例四Embodiment 4
图7为本发明实施例四提供的基于图像调整的拍照方法的流程图,作为对上述实施例的进一步说明,步骤110、从目标帧画面中获取目标图像区域,包括:FIG. 7 is a flowchart of a photographing method based on image adjustment provided in Embodiment 4 of the present invention. As a further description of the above-mentioned embodiment, step 110, acquiring a target image area from a target frame picture, includes:
步骤111、从目标帧画面中获取至少一个第一图像区域,第一图像区域为目标帧画面中任意物体对应的图像区域。Step 111: Acquire at least one first image area from the target frame image, where the first image area is an image area corresponding to any object in the target frame image.
步骤112、将至少一个第一图像区域进行突出显示。Step 112: Highlight at least one first image area.
将第一图像区域的边界使用闪烁的虚线或者加亮边界线等方式进行突出显示。The boundary of the first image area is highlighted by means of a blinking dashed line or a highlighted boundary line.
步骤113、根据用户输入的选择指令从至少一个第一图像区域中确定目标图像区域。Step 113: Determine a target image area from at least one first image area according to a selection instruction input by the user.
可选的,当用户在某个第一图像区域上进行点击操作时,触发选择执行,将用户点击操作所在的第一图像区域确定为目标图像区域。Optionally, when the user performs a click operation on a certain first image area, selection execution is triggered, and the first image area where the user click operation is located is determined as the target image area.
可选的,若第一图像区域既包含人体图像区域又包含非人体图像区域(又称静物图像区域),则根据用户首次选择的目标图像区域的类型为用户推荐相同类型的第一图像区域。例如,用户选额的人体图像区域,则为用户推荐其他人体图像区域。用户可拒绝推荐,并选择静物图像区域;也可从推荐的人体图像区域中选择目标区域。Optionally, if the first image area includes both a human image area and a non-human image area (also known as a still image area), a first image area of the same type is recommended for the user according to the type of the target image area first selected by the user. For example, if the user selects a human body image region, other human body image regions are recommended for the user. The user can reject the recommendation and select the still life image area; he can also select the target area from the recommended human image areas.
本实施例能够使用户在第一图像区域中选择目标图像区域,实现用户主动选择不同类别的图像区域作为目标图像区域,提高可用性,进一步提高用户体验。This embodiment enables the user to select a target image area in the first image area, so that the user can actively select different types of image areas as the target image area, thereby improving usability and further improving user experience.
实施例五Embodiment 5
图8为本发明实施例五提供的基于图像调整的拍照方法的流程图,作为对上述实施例的进一步说明,步骤130、如果目标对象的实际位置与调整结果匹配,则进行拍照,可通过下述方式进行实施:FIG. 8 is a flowchart of a photographing method based on image adjustment provided in Embodiment 5 of the present invention. As a further description of the above-mentioned embodiment, in step 130, if the actual position of the target object matches the adjustment result, photographing is performed by the following Implemented as described above:
步骤131、目标对象的实际位置与调整结果匹配,则输出匹配提示信息。Step 131: If the actual position of the target object matches the adjustment result, output matching prompt information.
可选的,通过目标图像区域的轮廓线输出匹配提示信息。例如,当匹配时,目标图像区域的轮廓线由虚线变为绿色的加粗实线。Optionally, output matching prompt information through the contour line of the target image area. For example, when matching, the outline of the target image area changes from a dashed line to a green, bold solid line.
可选的,通过文字方式输出匹配提示信息。例如,当匹配时,显示提示框,提示框中显示“设计造型已得到匹配,请确认拍照”等。Optionally, output matching prompt information in text mode. For example, when matching, a prompt box is displayed, and the prompt box displays "The design has been matched, please confirm to take a photo" and so on.
可选的,通过智能手机或平板电脑的震动功能输出匹配提示信息。Optionally, output matching prompt information through the vibration function of the smartphone or tablet.
步骤132、如果接收到用户输入的拍照指令,则进行拍照。Step 132: If a photographing instruction input by the user is received, photographing is performed.
用户获取到匹配提示信息后,触发拍照指令。可选的,通过点击拍照按钮或者通过手势触发拍照指令。After the user obtains the matching prompt information, a photographing instruction is triggered. Optionally, the photographing instruction is triggered by clicking the photographing button or by using a gesture.
本实施例能够在匹配时输出提示信息,以便用户直观快速的获取匹配效果。根据用户输入的拍照指令进行拍照,能够使用户自主进行控制,避免机器发现匹配后自动进行拍照造成误拍等问题,提高拍照行为的有效性,提高用户体验。In this embodiment, prompt information can be output during matching, so that the user can obtain the matching effect intuitively and quickly. Taking pictures according to the photographing instructions input by the user can enable the user to control independently, avoid problems such as false pictures caused by the machine automatically taking pictures after finding a match, improve the effectiveness of the photographing behavior, and improve the user experience.
实施例六Embodiment 6
图9为本发明实施例六提供的基于图像调整的拍照方法的流程图,作为对上述实施例的进一步说明,在进行拍照之前,还包括:FIG. 9 is a flowchart of a photographing method based on image adjustment provided in Embodiment 6 of the present invention. As a further description of the above-mentioned embodiment, before photographing, the method further includes:
步骤140、将至少一个预设物体的虚拟图像添加到目标帧画面中。Step 140: Add the virtual image of at least one preset object to the target frame picture.
其中,预设物体可以为目标帧画面以外的物体,虚拟图像可以为三维图像也可为二维图像。The preset object may be an object other than the target frame, and the virtual image may be a three-dimensional image or a two-dimensional image.
可选的,根据目标图像区域对应的目标对象的类型确定预设物体的类型。例如,若目标对象为人物,则预设物体的类型也为人物。Optionally, the type of the preset object is determined according to the type of the target object corresponding to the target image area. For example, if the target object is a person, the type of the preset object is also a person.
可选的,预设物体的类型与目标对象不同。例如,目标对象为人物,预设物体为静物,如道具等。Optionally, the type of the preset object is different from the target object. For example, the target object is a person, and the preset object is a still life, such as a prop.
本实施例能够将目标帧画面以外的预设物体的虚拟图像添加到目标帧画面中,提高目标帧画面的可编辑性,提高用户体验。In this embodiment, a virtual image of a preset object other than the target frame image can be added to the target frame image, thereby improving the editability of the target frame image and improving the user experience.
实施例七Embodiment 7
图10为本发明实施例七提供的基于图像调整的拍照装置的结构示意图,所述基于图像调整的拍照装置位于终端中,所述终端为智能手机、平板电脑等智能终端,该装置包括:10 is a schematic structural diagram of a photographing device based on image adjustment according to Embodiment 7 of the present invention. The photographing device based on image adjustment is located in a terminal, and the terminal is an intelligent terminal such as a smart phone and a tablet computer, and the device includes:
图像区域获取单元11,用于从目标帧画面中获取目标图像区域,所述目标图像区域为所述目标帧画面中的目标对象对应的图像区域;An image area acquisition unit 11, configured to acquire a target image area from a target frame picture, where the target image area is an image area corresponding to a target object in the target frame picture;
调整单元12,用于根据用户指令对实施图像区域获取单元11获取的所述目标图像区域进行调整;an adjustment unit 12, configured to adjust the target image area acquired by the implementation image area acquisition unit 11 according to user instructions;
拍照单元13,用于如果所述目标对象的实际位置与所述调整单元12的调整结果匹配,则进行拍照。The photographing unit 13 is configured to take a photograph if the actual position of the target object matches the adjustment result of the adjusting unit 12 .
进一步的,所述图像区域获取单元11具体用于,从目标帧画面中获取人体图像区域,所述人体图像区域为所述目标帧画面中的人体轮廓对应的图像区域。Further, the image area acquiring unit 11 is specifically configured to acquire a human body image area from the target frame picture, where the human body image area is an image area corresponding to the human body contour in the target frame picture.
进一步的,所述调整单元12具体用于,根据用户输入的体态调整指令,对所述人体图像区域对应的体态进行调整。Further, the adjustment unit 12 is specifically configured to adjust the posture corresponding to the human body image area according to the posture adjustment instruction input by the user.
进一步的,所述调整单元12具体用于:Further, the adjustment unit 12 is specifically used for:
根据用户输入的位移指令移动所述目标图像区域的位置;或者,Move the position of the target image area according to the displacement instruction input by the user; or,
根据用户输入的旋转指令对所述目标图像区域进行旋转。The target image area is rotated according to the rotation instruction input by the user.
进一步的,所述图像区域获取单元11具体用于:Further, the image area acquisition unit 11 is specifically used for:
从目标帧画面中获取至少一个第一图像区域,所述第一图像区域为所述目标帧画面中任意物体对应的图像区域;Obtain at least one first image area from the target frame picture, where the first image area is an image area corresponding to any object in the target frame picture;
将所述至少一个第一图像区域进行突出显示;highlighting the at least one first image area;
根据用户输入的选择指令从所述至少一个第一图像区域中确定目标图像区域。A target image area is determined from the at least one first image area according to a selection instruction input by the user.
进一步的,所述拍照单元13具体用于:Further, the photographing unit 13 is specifically used for:
所述目标对象的实际位置与调整结果匹配,则输出匹配提示信息;If the actual position of the target object matches the adjustment result, output matching prompt information;
如果接收到用户输入的拍照指令,则进行拍照。If a photographing instruction input by the user is received, photographing is performed.
进一步的,还包括添加单元14,Further, it also includes an adding unit 14,
所述添加单元14用于,将至少一个预设物体的虚拟图像添加到所述目标帧画面中。The adding unit 14 is configured to add a virtual image of at least one preset object to the target frame picture.
上述装置可执行本发明实施例一至实施例六所提供的方法,具备执行上述方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明实施例一至实施例六所提供的方法。The above-mentioned apparatus can execute the methods provided in Embodiments 1 to 6 of the present invention, and has corresponding functional modules and beneficial effects for executing the above-mentioned methods. For technical details not described in detail in this embodiment, reference may be made to the methods provided in Embodiments 1 to 6 of the present invention.
进一步的,本发明实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种基于图像调整的拍照方法,该方法包括:Further, an embodiment of the present invention also provides a storage medium containing computer-executable instructions, when the computer-executable instructions are executed by a computer processor for executing a photographing method based on image adjustment, the method includes:
从目标帧画面中获取目标图像区域,所述目标图像区域为所述目标帧画面中的目标对象对应的图像区域;Obtain a target image area from the target frame picture, and the target image area is the image area corresponding to the target object in the target frame picture;
根据用户指令对所述目标图像区域进行调整;adjusting the target image area according to user instructions;
如果所述目标对象的实际位置与调整结果匹配,则进行拍照。If the actual position of the target object matches the adjustment result, take a picture.
可选的,该计算机可执行指令在由计算机处理器执行时还可以用于执行本发明任意实施例所提供的基于图像调整的拍照方法的技术方案。Optionally, when executed by a computer processor, the computer-executable instructions may also be used to execute the technical solution of the image adjustment-based photographing method provided by any embodiment of the present invention.
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本发明可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。From the above description of the embodiments, those skilled in the art can clearly understand that the present invention can be realized by software and necessary general-purpose hardware, and of course can also be realized by hardware, but in many cases the former is a better embodiment . Based on such understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in a computer-readable storage medium, such as a floppy disk of a computer , read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or CD, etc., including several instructions to make a computer device (which can be a personal computer, A server, or a network device, etc.) executes the methods described in the various embodiments of the present invention.
实施例八Embodiment 8
图11为本发明实施例八提供的一种终端的结构示意图,所述终端包括实施例七所示的基于图像调整的拍照装置。在一种实现方式中终端为移动终端,如智能手机或平板电脑。该移动终端可以包括通信单元21、包括有至少一个计算机可读存储介质的存储器22、输入单元23、显示单元24、传感器25、音频电路26、WIFI(Wireless Fidelity,无线保真)模块27、包括有至少一个处理核心的处理器28、以及电源29等部件。本领域技术人员可以理解,图中示出的移动终端结构并不构成对移动终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。具体的:11 is a schematic structural diagram of a terminal according to Embodiment 8 of the present invention, where the terminal includes the image adjustment-based photographing apparatus shown in Embodiment 7. In an implementation manner, the terminal is a mobile terminal, such as a smart phone or a tablet computer. The mobile terminal may include a communication unit 21, a memory 22 including at least one computer-readable storage medium, an input unit 23, a display unit 24, a sensor 25, an audio circuit 26, a WIFI (Wireless Fidelity, wireless fidelity) module 27, including A processor 28 having at least one processing core, a power supply 29 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in the figures does not constitute a limitation on the mobile terminal, and may include more or less components than those shown in the figures, or combine some components, or arrange different components. specific:
通信单元21可用于收发信息或通话过程中,信号的接收和发送,该通信单元21可以为RF(Radio Frequency,射频)电路、路由器、调制解调器、等网络通信设备。特别地,当通信单元21为RF电路时,将基站的下行信息接收后,交由一个或者一个以上处理器28处理;另外,将涉及上行的数据发送给基站。通常,作为通信单元的RF电路包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,通信单元21还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General PacketRadio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long TermEvolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。存储器22可用于存储软件程序以及模块,处理器28通过运行存储在存储器22的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器22可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据移动终端的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器22可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器22还可以包括存储器控制器,以提供处理器28和输入单元23对存储器22的访问。The communication unit 21 can be used for sending and receiving information or receiving and sending signals during a call. The communication unit 21 can be an RF (Radio Frequency, radio frequency) circuit, a router, a modem, or other network communication equipment. In particular, when the communication unit 21 is an RF circuit, after receiving the downlink information of the base station, it is handed over to one or more processors 28 for processing; in addition, the uplink data is sent to the base station. Generally, an RF circuit as a communication unit includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier, Low Noise Amplifier) noise amplifiers), duplexers, etc. In addition, the communication unit 21 can also communicate with the network and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global system for mobile communication), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access), LTE (Long Term Evolution, Long Term Evolution), email, SMS (Short Messaging Service, Short Message Service), etc. The memory 22 can be used to store software programs and modules, and the processor 28 executes various functional applications and data processing by running the software programs and modules stored in the memory 22 . The memory 22 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data (such as audio data, phone book, etc.) created by the use of the mobile terminal, etc. Additionally, memory 22 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 22 may also include a memory controller to provide access to the memory 22 by the processor 28 and the input unit 23 .
输入单元23可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。优选地,输入单元23可包括触敏表面231以及其他输入设备232。触敏表面231,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面231上或在触敏表面231附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面231可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器28,并能接收处理器28发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面231。除了触敏表面231,输入单元23还可以包括其他输入设备232。优选地,其他输入设备232可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 23 may be used to receive input numerical or character information, and to generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Preferably, the input unit 23 may include a touch-sensitive surface 231 as well as other input devices 232 . Touch-sensitive surface 231, also known as a touch display or trackpad, can collect user touch operations on or near it (such as a user using a finger, stylus, etc., any suitable object or accessory on or on touch-sensitive surface 231). operation near the touch-sensitive surface 231), and drive the corresponding connection device according to a preset program. Optionally, the touch-sensitive surface 231 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 28, and can receive commands from the processor 28 and execute them. In addition, the touch-sensitive surface 231 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 231 , the input unit 23 may also include other input devices 232 . Preferably, other input devices 232 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
显示单元24可用于显示由用户输入的信息或提供给用户的信息以及移动终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元24可包括显示面板241,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板241。进一步的,触敏表面231可覆盖显示面板241,当触敏表面231检测到在其上或附近的触摸操作后,传送给处理器28以确定触摸事件的类型,随后处理器28根据触摸事件的类型在显示面板241上提供相应的视觉输出。虽然在图11中,触敏表面231与显示面板241是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面231与显示面板241集成而实现输入和输出功能。The display unit 24 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the mobile terminal, which may be composed of graphics, text, icons, videos and any combination thereof. The display unit 24 may include a display panel 241. Optionally, the display panel 241 may be configured in the form of an LCD (Liquid Crystal Display, liquid crystal display), an OLED (Organic Light-Emitting Diode, organic light emitting diode). Further, the touch-sensitive surface 231 may cover the display panel 241, and when the touch-sensitive surface 231 detects a touch operation on or near it, it transmits it to the processor 28 to determine the type of the touch event, and then the processor 28 determines the type of the touch event according to the touch event. Type provides corresponding visual output on display panel 241 . Although in FIG. 11 , the touch-sensitive surface 231 and the display panel 241 are used as two separate components to realize the input and input functions, in some embodiments, the touch-sensitive surface 231 and the display panel 241 may be integrated to realize the input and output functions.
移动终端还可包括至少一种传感器25,比如光传感器、运动传感器以及其他传感器。光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板241的亮度,接近传感器可在移动终端移动到耳边时,关闭显示面板241和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;移动终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile terminal may also include at least one sensor 25, such as a light sensor, a motion sensor, and other sensors. The light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 241 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 241 and/or the backlight when the mobile terminal is moved to the ear . As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that recognize the attitude of mobile phones (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. can also be configured on mobile terminals, which will not be described here. Repeat.
音频电路26、扬声器261,传声器262可提供用户与移动终端之间的音频接口。音频电路26可将接收到的音频数据转换后的电信号,传输到扬声器261,由扬声器261转换为声音信号输出;另一方面,传声器262将收集的声音信号转换为电信号,由音频电路26接收后转换为音频数据,再将音频数据输出处理器28处理后,经RF电路21以发送给比如另一移动终端,或者将音频数据输出至存储器22以便进一步处理。音频电路26还可能包括耳塞插孔,以提供外设耳机与移动终端的通信。The audio circuit 26, the speaker 261, and the microphone 262 may provide an audio interface between the user and the mobile terminal. The audio circuit 26 can convert the received audio data into an electrical signal, and transmit it to the speaker 261, and the speaker 261 converts it into a sound signal for output; on the other hand, the microphone 262 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 26 After receiving, it is converted into audio data, and then the audio data is output to the processor 28 for processing, and then sent to, for example, another mobile terminal through the RF circuit 21, or the audio data is output to the memory 22 for further processing. The audio circuit 26 may also include an earplug jack to provide communication between the peripheral headset and the mobile terminal.
为了实现无线通信,该第一移动终端上可以配置有无线通信单元27,该无线通信单元27可以为WIFI模块。WIFI属于短距离无线传输技术,移动终端通过无线通信单元27可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图中示出了无线通信单元27,但是可以理解的是,其并不属于移动终端的必须构成,完全可以根据需要在不改变公开的本质的范围内而省略。In order to realize wireless communication, a wireless communication unit 27 may be configured on the first mobile terminal, and the wireless communication unit 27 may be a WIFI module. WIFI is a short-distance wireless transmission technology, and the mobile terminal can help users to send and receive emails, browse web pages, access streaming media, etc. through the wireless communication unit 27, and it provides users with wireless broadband Internet access. Although the wireless communication unit 27 is shown in the figure, it should be understood that it does not belong to the necessary structure of the mobile terminal, and can be completely omitted as required within the scope of not changing the essence of the disclosure.
处理器28可利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器22内的软件程序和/或模块,以及调用存储在存储器22内的数据,执行移动终端的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器28可包括一个或多个处理核心;优选的,处理器28可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器28中。The processor 28 can use various interfaces and lines to connect various parts of the entire mobile phone, and execute various functions of the mobile terminal by running or executing the software programs and/or modules stored in the memory 22 and calling the data stored in the memory 22. functions and process data for overall monitoring of the phone. Optionally, the processor 28 may include one or more processing cores; preferably, the processor 28 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that the above-mentioned modulation and demodulation processor may not be integrated into the processor 28 .
移动终端还包括给各个部件供电的电源29(比如电池),优选的,电源可以通过电源管理系统与处理器28逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源29还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The mobile terminal also includes a power supply 29 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 28 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The power source 29 may also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.
需要说明的是,移动终端还可以包括摄像头、蓝牙模块等,在此不再赘述。It should be noted that, the mobile terminal may further include a camera, a Bluetooth module, etc., which will not be repeated here.
在本实施例中,所述处理器28用于:In this embodiment, the processor 28 is used for:
从目标帧画面中获取目标图像区域,目标图像区域为目标帧画面中的目标对象对应的图像区域;Obtain the target image area from the target frame picture, and the target image area is the image area corresponding to the target object in the target frame picture;
根据用户指令对目标图像区域进行调整;Adjust the target image area according to user instructions;
如果目标对象的实际位置与调整结果匹配,则进行拍照。If the actual position of the target object matches the adjustment result, take a picture.
进一步的,从目标帧画面中获取目标图像区域,包括:Further, the target image area is obtained from the target frame, including:
从目标帧画面中获取人体图像区域,人体图像区域为目标帧画面中的人体轮廓对应的图像区域。The human body image area is obtained from the target frame image, and the human body image area is the image area corresponding to the human body contour in the target frame image.
进一步的,根据用户指令对目标图像区域进行调整,包括:Further, the target image area is adjusted according to user instructions, including:
根据用户输入的体态调整指令,对人体图像区域对应的体态进行调整。According to the posture adjustment instruction input by the user, the posture corresponding to the human body image area is adjusted.
进一步的,根据用户指令对目标图像区域进行调整,包括:Further, the target image area is adjusted according to user instructions, including:
根据用户输入的位移指令移动目标图像区域的位置;或者,Move the position of the target image area according to the displacement instruction input by the user; or,
根据用户输入的旋转指令对目标图像区域进行旋转。The target image area is rotated according to the rotation instruction input by the user.
进一步的,从目标帧画面中获取目标图像区域,包括:Further, the target image area is obtained from the target frame, including:
从目标帧画面中获取至少一个第一图像区域,第一图像区域为目标帧画面中任意物体对应的图像区域;Obtain at least one first image area from the target frame, where the first image area is an image area corresponding to any object in the target frame;
将至少一个第一图像区域进行突出显示;highlighting at least one first image area;
根据用户输入的选择指令从至少一个第一图像区域中确定目标图像区域。The target image area is determined from the at least one first image area according to the selection instruction input by the user.
进一步的,如果目标对象的实际位置与调整结果匹配,则进行拍照,包括:Further, if the actual position of the target object matches the adjustment result, take a photo, including:
目标对象的实际位置与调整结果匹配,则输出匹配提示信息;If the actual position of the target object matches the adjustment result, the matching prompt information will be output;
如果接收到用户输入的拍照指令,则进行拍照。If a photographing instruction input by the user is received, photographing is performed.
进一步的,在进行拍照之前,还包括:Further, before taking pictures, it also includes:
将至少一个预设物体的虚拟图像添加到目标帧画面中。A virtual image of at least one preset object is added to the target frame.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.
Claims (15)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610507430.1A CN106210510B (en) | 2016-06-28 | 2016-06-28 | Photographing method and device based on image adjustment and terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610507430.1A CN106210510B (en) | 2016-06-28 | 2016-06-28 | Photographing method and device based on image adjustment and terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106210510A CN106210510A (en) | 2016-12-07 |
| CN106210510B true CN106210510B (en) | 2019-04-30 |
Family
ID=57464033
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610507430.1A Active CN106210510B (en) | 2016-06-28 | 2016-06-28 | Photographing method and device based on image adjustment and terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106210510B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2019057802A (en) * | 2017-09-20 | 2019-04-11 | シャープ株式会社 | Portable display device, image feeding device, display system, and program |
| CN107864299B (en) * | 2017-12-25 | 2020-08-21 | Oppo广东移动通信有限公司 | Image display method and related products |
| CN109905593B (en) * | 2018-11-06 | 2021-10-15 | 华为技术有限公司 | An image processing method and device |
| CN113284052A (en) * | 2020-02-19 | 2021-08-20 | 阿里巴巴集团控股有限公司 | Image processing method and apparatus |
| CN111479069B (en) * | 2020-04-23 | 2021-09-24 | 深圳创维-Rgb电子有限公司 | Camera control method, display terminal and computer storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103577819A (en) * | 2012-08-02 | 2014-02-12 | 北京千橡网景科技发展有限公司 | Method and equipment for assisting and prompting photo taking postures of human bodies |
| CN104717413A (en) * | 2013-12-12 | 2015-06-17 | 北京三星通信技术研究有限公司 | Shooting assistance method and equipment |
| CN105227867A (en) * | 2015-09-14 | 2016-01-06 | 联想(北京)有限公司 | A kind of image processing method and electronic equipment |
| CN105306801A (en) * | 2014-06-09 | 2016-02-03 | 中兴通讯股份有限公司 | Shooting method and device and terminal |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9832373B2 (en) * | 2014-06-24 | 2017-11-28 | Cyberlink Corp. | Systems and methods for automatically capturing digital images based on adaptive image-capturing templates |
| KR20160024143A (en) * | 2014-08-25 | 2016-03-04 | 삼성전자주식회사 | Method and Electronic Device for image processing |
-
2016
- 2016-06-28 CN CN201610507430.1A patent/CN106210510B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103577819A (en) * | 2012-08-02 | 2014-02-12 | 北京千橡网景科技发展有限公司 | Method and equipment for assisting and prompting photo taking postures of human bodies |
| CN104717413A (en) * | 2013-12-12 | 2015-06-17 | 北京三星通信技术研究有限公司 | Shooting assistance method and equipment |
| CN105306801A (en) * | 2014-06-09 | 2016-02-03 | 中兴通讯股份有限公司 | Shooting method and device and terminal |
| CN105227867A (en) * | 2015-09-14 | 2016-01-06 | 联想(北京)有限公司 | A kind of image processing method and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106210510A (en) | 2016-12-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106778585B (en) | A kind of face key point-tracking method and device | |
| CN107566721B (en) | Information display method, terminal and computer readable storage medium | |
| CN106204423B (en) | Image adjusting method and device based on augmented reality and terminal | |
| RU2632153C2 (en) | Method, device and terminal for displaying virtual keyboard | |
| CN107817939B (en) | Image processing method and mobile terminal | |
| US9740671B2 (en) | Method and apparatus of generating a webpage from an original design file comprising layers | |
| WO2019233229A1 (en) | Image fusion method, apparatus, and storage medium | |
| JP7480355B2 (en) | Method, device and electronic device for displaying unread messages | |
| CN110147805A (en) | Image processing method, device, terminal and storage medium | |
| WO2019029406A1 (en) | Emoji displaying method and apparatus, computer readable storage medium, and terminal | |
| CN106210510B (en) | Photographing method and device based on image adjustment and terminal | |
| CN104135609A (en) | A method and a device for assisting in photographing, and a terminal | |
| CN106127829B (en) | Augmented reality processing method and device and terminal | |
| CN109067981B (en) | Split-screen application switching method, device, storage medium and electronic device | |
| CN107105093A (en) | Camera control method, device and terminal based on hand trajectory | |
| CN108132752A (en) | A kind of method for editing text and mobile terminal | |
| CN103399657B (en) | The control method of mouse pointer, device and terminal unit | |
| CN108920053A (en) | A kind of alignment schemes and mobile terminal | |
| CN108958587B (en) | Split screen processing method and device, storage medium and electronic equipment | |
| CN109151367A (en) | A kind of video call method and terminal device | |
| CN108600544A (en) | A kind of Single-hand control method and terminal | |
| CN107635073A (en) | The operating method and mobile terminal of a kind of mobile terminal | |
| CN110531915A (en) | Screen operating method and terminal device | |
| WO2020155980A1 (en) | Control method and terminal device | |
| CN108228902B (en) | File display method and mobile terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |