Movatterモバイル変換


[0]ホーム

URL:


CN103824252A - Picture processing method and system - Google Patents

Picture processing method and system
Download PDF

Info

Publication number
CN103824252A
CN103824252ACN201410046922.6ACN201410046922ACN103824252ACN 103824252 ACN103824252 ACN 103824252ACN 201410046922 ACN201410046922 ACN 201410046922ACN 103824252 ACN103824252 ACN 103824252A
Authority
CN
China
Prior art keywords
picture
viewing area
nucleus
divergent
convergent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410046922.6A
Other languages
Chinese (zh)
Inventor
徐正峰
郭正欧
葛勇
程坤
余飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
iFlytek Co Ltd
Original Assignee
iFlytek Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by iFlytek Co LtdfiledCriticaliFlytek Co Ltd
Priority to CN201410046922.6ApriorityCriticalpatent/CN103824252A/en
Publication of CN103824252ApublicationCriticalpatent/CN103824252A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

The invention, which belongs to the technical field of picture processing, discloses a picture processing method and system. The picture processing method comprises the following steps that: a core area of a picture is determined; isometric zooming is carried out on the picture; whether the core area of the zoomed picture is contained in a display area is examined; if so, the part, exceeding a non-core area of the display area, of the zoomed picture is clipped; and if not, the parts, exceeding the non-core area and the core area of the display area, of the zoomed picture are clipped. According to the picture processing method, picture clipping is carried out according to sizes of the determined core area of the picture and the display area, so that the core area of the picture can be clipped and be displayed at the display area, so that the picture is not distorted.

Description

Translated fromChinese
图片处理方法及系统Image processing method and system

技术领域technical field

本发明涉及图片处理技术领域,特别涉及一种图片处理方法及系统。The present invention relates to the technical field of image processing, in particular to an image processing method and system.

背景技术Background technique

随着数码技术的发展,用户能够更加便捷地进行图片拍摄、处理。用户在拍摄好图片后,往往会将图片作为电脑、手机等移动终端设备的背景进行显示。With the development of digital technology, users can take pictures and process them more conveniently. After a user takes a good picture, he often displays the picture as the background of a mobile terminal device such as a computer or a mobile phone.

现有技术中,图片的显示方式通常有缩放和平铺两种。缩放,指的是把图片缩放到控件的大小来显示,由于可能导致图片模糊或变形,主要适合于纯色图片。平铺主要有四种模式:Disabled(默认)模式,即完全按照原图片进行显示,不做任何改变;Clamp(复制边缘色彩)模式,即按照边缘色彩填充屏幕剩余部分;Repeat(重复)模式,在水平和垂直方向重复显示图片;Mirror(镜像)模式,在水平和垂直方向采用交替镜像的方式重复显示图片。因此,平铺显示主要适合于比较规则的图片。在遇到不规则图片时,直接采用缩放或平铺进行显示,将导致图片变形或不能在显示区域完全显示的情况发生。In the prior art, there are usually two ways to display pictures: zooming and tiling. Scaling refers to zooming the image to the size of the control for display. It is mainly suitable for solid color images because it may cause blurred or deformed images. There are four main modes of tiling: Disabled (default) mode, that is, display completely according to the original picture without any change; Clamp (copy edge color) mode, that is, fill the rest of the screen according to the edge color; Repeat (repeat) mode, Repeatedly display pictures in horizontal and vertical directions; Mirror (mirror) mode, repeat and display pictures in horizontal and vertical directions in an alternate mirroring manner. Therefore, tiling is mainly suitable for more regular pictures. When an irregular picture is encountered, it will be displayed directly by zooming or tiling, which will cause the picture to be deformed or not fully displayed in the display area.

发明内容Contents of the invention

本发明实施例提供了一种图片处理方法及系统,能够将图片的核心区域裁剪出来进行显示,且不发生变形。Embodiments of the present invention provide an image processing method and system, which can cut out a core area of an image for display without deformation.

本发明实施例提供如下技术方案:Embodiments of the present invention provide the following technical solutions:

一方面,提供了一种图片处理方法,包括:On the one hand, an image processing method is provided, including:

确定图片的核心区域;Determine the core area of the picture;

对所述图片进行等比例缩放;Scaling the picture proportionally;

检查缩放后的图片的核心区域是否包含在显示区域内;Check whether the core area of the zoomed picture is included in the display area;

如果是,则将缩放后的图片超出所述显示区域的非核心区域的部分进行裁剪;If so, cropping the part of the zoomed image beyond the non-core area of the display area;

如果否,则将缩放后的图片超出所述显示区域的非核心区域和核心区域都进行裁剪。If not, both the non-core area and the core area of the zoomed image beyond the display area are cropped.

优选地,所述方法还包括:向用户提供配置界面,以使用户在所述配置界面上输入四个顶点的坐标值;Preferably, the method further includes: providing a configuration interface to the user, so that the user can input the coordinate values of the four vertices on the configuration interface;

所述确定图片的核心区域,包括:将所述四个顶点的坐标值所围成的区域作为所述图片的核心区域。The determining the core area of the picture includes: taking the area enclosed by the coordinate values of the four vertices as the core area of the picture.

优选地,所述方法还包括:按照所述图片的原始大小显示所述图片;Preferably, the method further includes: displaying the picture according to its original size;

所述确定图片的核心区域,包括:获取用户在所述图片上划定的框形区域,并将所述框形区域作为所述图片的核心区域。The determining the core area of the picture includes: acquiring a frame-shaped area defined by the user on the picture, and using the frame-shaped area as the core area of the picture.

优选地,所述对图片进行等比例缩放包括:确定所述图片的缩放参数;Preferably, said scaling the pictures proportionally includes: determining the scaling parameters of the pictures;

按照所述缩放参数对所述图片进行缩放。Scale the picture according to the scaling parameter.

优选地,所述确定所述图片的缩放参数包括:Preferably, the determining the scaling parameters of the picture includes:

获取显示区域的长度和宽度;Get the length and width of the display area;

获取所述图片的长度和宽度;Obtain the length and width of the picture;

计算所述显示区域与所述图片的长度比值,以及所述显示区域与所述图片的宽度比值;calculating a length ratio between the display area and the picture, and a width ratio between the display area and the picture;

将所述长度比值和所述宽度比值中的较大值确定为所述图片的缩放参数。Determining the larger value of the length ratio and the width ratio as the scaling parameter of the picture.

优选地,在检查所述缩放后图片的核心区域是否包含在所述显示区域内之前,还包括:Preferably, before checking whether the core area of the zoomed image is included in the display area, the method further includes:

将所述缩放后图片的核心区域和所述显示区域以最大面积相重合的方式进行放置。The core area of the zoomed image and the display area are placed in such a way that the largest area overlaps.

优选地,所述方法还包括:在所述显示区域显示裁剪后的图片。Preferably, the method further includes: displaying the cropped picture in the display area.

另一方面,提供了一种图片处理系统,包括:On the other hand, an image processing system is provided, including:

确定模块,用于确定图片的核心区域;A determining module, configured to determine the core area of the picture;

缩放模块,用于对所述图片进行等比例缩放;A scaling module, configured to scale the picture proportionally;

检查模块,用于检查缩放后的图片的核心区域是否包含在显示区域内;A check module, used to check whether the core area of the zoomed picture is included in the display area;

第一裁剪模块,用于在所述检查模块检查缩放后的图片的核心区域包含在显示区域内后,将缩放后的图片超出所述显示区域的非核心区域的部分进行裁剪;A first cropping module, configured to crop the part of the zoomed picture that exceeds the non-core area of the display area after the check module checks that the core area of the zoomed picture is included in the display area;

第二裁剪模块,用于在所述检查模块检查缩放后的图片的核心区域没有包含在显示区域内后,将缩放后的图片超出所述显示区域的非核心区域和核心区域都进行裁剪。The second cropping module is configured to, after the checking module checks that the core area of the zoomed picture is not included in the display area, crop both the non-core area and the core area of the zoomed picture beyond the display area.

优选地,还包括:配置模块,用于向用户提供配置界面,以使用户在所述配置界面上输入四个顶点的坐标值;Preferably, it also includes: a configuration module, configured to provide the user with a configuration interface, so that the user can input the coordinate values of the four vertices on the configuration interface;

所述确定模块,具体用于将所述四个顶点的坐标值所围成的区域作为所述图片的核心区域。The determination module is specifically configured to use the area enclosed by the coordinate values of the four vertices as the core area of the picture.

优选地,还包括:第一显示模块,用于按照所述图片的原始大小显示所述图片;Preferably, it also includes: a first display module, configured to display the picture according to the original size of the picture;

所述确定模块,具体用于获取用户在所述图片上划定的框形区域,并将所述框形区域作为所述图片的核心区域。The determining module is specifically configured to acquire a frame-shaped area defined by the user on the picture, and use the frame-shaped area as a core area of the picture.

优选地,所述缩放模块,包括:Preferably, the scaling module includes:

参数确定单元,用于确定所述图片的缩放参数;A parameter determination unit, configured to determine the scaling parameters of the picture;

缩放单元,用于按照所述缩放参数对所述图片进行缩放。A scaling unit, configured to scale the picture according to the scaling parameter.

优选地,所述参数确定单元,包括:Preferably, the parameter determination unit includes:

尺寸获取单元,用于获取显示区域的长度和宽度;A size acquisition unit, used to acquire the length and width of the display area;

所述尺寸获取单元,还用于获取所述图片的长度和宽度;The size acquisition unit is also used to acquire the length and width of the picture;

计算单元,用于计算所述显示区域与所述图片的长度比值,以及所述显示区域与所述图片的宽度比值;a calculation unit, configured to calculate a length ratio between the display area and the picture, and a width ratio between the display area and the picture;

确定单元,用于将所述长度比值和所述宽度比值中的较大值确定为所述图片的缩放参数。A determining unit, configured to determine the larger value of the length ratio and the width ratio as the scaling parameter of the picture.

优选地,所述系统还包括:放置模块,用于将所述缩放后图片的核心区域和所述显示区域以最大面积相重合的方式进行放置。Preferably, the system further includes: a placement module, configured to place the core area of the zoomed picture and the display area in such a way that the maximum area overlaps.

优选地,所述系统还包括:第二显示模块,用于在所述显示区域显示裁剪后的图片。Preferably, the system further includes: a second display module, configured to display the cropped picture in the display area.

本发明实施例提供的图片处理方法及系统,根据确定的图片的核心区域以及显示区域的大小进行图片裁剪,能够将图片的核心区域裁剪出来,在显示区域进行显示,使图片不发生变形。The image processing method and system provided by the embodiments of the present invention cut out the image according to the determined core area of the image and the size of the display area, and can cut out the core area of the image and display it in the display area without deforming the image.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are only described in the present invention. For some embodiments of the present invention, those skilled in the art can also obtain other drawings according to these drawings.

图1是本发明实施例提供的图片处理方法的流程图;FIG. 1 is a flowchart of an image processing method provided by an embodiment of the present invention;

图2是本发明实施例提供的图片处理系统的结构示意图。FIG. 2 is a schematic structural diagram of an image processing system provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本领域技术人员更好地理解本发明实施例的方案,下面结合附图和实施方式对本发明实施例作进一步的详细说明。In order to enable those skilled in the art to better understand the solutions of the embodiments of the present invention, the embodiments of the present invention will be further described in detail below in conjunction with the drawings and implementation manners.

如图1所示,为本发明实施例提供的图片处理方法的流程图,可以包括以下步骤:As shown in Figure 1, the flow chart of the image processing method provided by the embodiment of the present invention may include the following steps:

步骤101:确定图片的核心区域;Step 101: Determine the core area of the picture;

步骤102:对图片进行等比例缩放;Step 102: scale the picture proportionally;

步骤103:检查缩放后的图片的核心区域是否包含在显示区域内;Step 103: Check whether the core area of the zoomed picture is included in the display area;

步骤104:如果是,则将缩放后的图片超出显示区域的非核心区域的部分进行裁剪;Step 104: If yes, then crop the part of the zoomed picture beyond the non-core area of the display area;

步骤105:如果否,则将缩放后的图片超出显示区域的非核心区域和核心区域都进行裁剪。Step 105: If not, crop both the non-core area and the core area of the zoomed image beyond the display area.

在本发明实施例中,可以采用不同的方式进行图片的核心区域的确定,例如,可以将用户输入的四个顶点的坐标值所围成的区域作为图片的核心区域,或者将用户划定的框形区域作为图片的核心区域。采用不同的方式进行图片的核心区域的确定,在进行图片的核心区域的确定之前,相应的图片处理方法还可以包括不同的前处理过程。例如,在将四个顶点的坐标值所围成的区域作为图片的核心区域之前,相应的图片处理方法还可以包括:向用户提供配置界面,以使用户在配置界面上输入四个顶点的坐标值。将框形区域作为图片的核心区域之前,相应的图片处理方法还可以包括:按照图片的原始大小显示图片,然后由用户在图片上划定框形区域。由于用户输入的四个顶点可以为矩形的四个顶点,用户在图片上划定的框形区域可以为矩形区域,因此,图片的核心区域可以为矩形。In the embodiment of the present invention, different ways can be used to determine the core area of the picture. For example, the area surrounded by the coordinate values of the four vertices input by the user can be used as the core area of the picture, or the area defined by the user can be The box-shaped area serves as the core area of the picture. Different methods are used to determine the core area of the picture. Before determining the core area of the picture, the corresponding picture processing method may also include different pre-processing processes. For example, before using the area enclosed by the coordinate values of the four vertices as the core area of the picture, the corresponding picture processing method may further include: providing the user with a configuration interface, so that the user inputs the coordinates of the four vertices on the configuration interface value. Before using the frame-shaped area as the core area of the picture, the corresponding picture processing method may further include: displaying the picture according to the original size of the picture, and then delineating the frame-shaped area on the picture by the user. Since the four vertices input by the user may be four vertices of a rectangle, and the frame-shaped area defined by the user on the picture may be a rectangular area, therefore, the core area of the picture may be a rectangle.

在本发明实施例中,对图片进行等比例缩放,可以先确定图片的缩放参数,然后按照缩放参数对图片进行缩放。其中,图片的缩放参数可以通过以下方式进行确定:获取显示区域的长度和宽度;获取图片的长度和宽度;计算显示区域与图片的长度比值,以及显示区域与图片的宽度比值;将长度比值和宽度比值中的较大值确定为图片的缩放参数。通过该方式所确定的缩放参数,可以保证经过缩放的图片的长度或宽度中的一个与显示区域的长度或宽度中的一个相同,长度或宽度中的另一个大于或等于显示区域的长度或宽度中的另一个,从而使得经过缩放后的图片能够完全覆盖显示区域。例如,显示区域的长度为800mm,宽度为600mm,图片的长度为500mm,宽度为300mm,则显示区域的长度和图片的长度比值为:800/500=1.6,显示区域的宽度和图片的宽度比值为:600/300=2,由于宽度比值大于长度比值,为了保证等比例放大后的图片能够将显示区域完全覆盖,因此,将宽度比值2确定为放大参数。经过放大后的图片的长度为1000mm,宽度为600mm,经过放大后的图片的长度大于显示区域的长度,经过放大后的图片的宽度和显示区域的宽度相同。In the embodiment of the present invention, to perform proportional scaling on a picture, the scaling parameters of the picture may be determined first, and then the picture is scaled according to the scaling parameters. Among them, the scaling parameters of the picture can be determined in the following ways: obtain the length and width of the display area; obtain the length and width of the picture; calculate the ratio of the length of the display area to the picture, and the ratio of the width of the display area to the picture; combine the length ratio and The larger value of the width ratio is determined as the scaling parameter of the picture. The zoom parameter determined in this way can ensure that one of the length or width of the zoomed picture is the same as the length or width of the display area, and the other of the length or width is greater than or equal to the length or width of the display area The other one, so that the scaled picture can completely cover the display area. For example, the length of the display area is 800mm, the width is 600mm, the length of the picture is 500mm, and the width is 300mm, then the ratio of the length of the display area to the length of the picture is: 800/500=1.6, the ratio of the width of the display area to the width of the picture It is: 600/300=2. Since the width ratio is greater than the length ratio, in order to ensure that the image after the proportional zoom can completely cover the display area, the width ratio of 2 is determined as the zoom parameter. The length of the enlarged picture is 1000 mm, and the width is 600 mm. The length of the enlarged picture is greater than the length of the display area, and the width of the enlarged picture is the same as the width of the display area.

按照所确定的缩放参数对图片进行等比例缩放,得到缩放后的图片,然后可以检查缩放后的图片的核心区域是否包含在显示区域内。在检查核心区域是否包含在显示区域内之前,可以将缩放后的图片的核心区域和显示区域以最大面积相重合的方式进行放置。例如,可以将核心区域的中心点和显示区域的中心点相重合进行放置,或者将核心区域的四个顶点中的一个顶点与显示区域的一个顶点相重合,其他部分核心区域和显示区域重叠放置。采用核心区域和显示区域以最大面积相重合的方式进行放置,可以便于检查核心区域是否包含在显示区域内。The picture is proportionally scaled according to the determined scaling parameter to obtain the scaled picture, and then it can be checked whether the core area of the scaled picture is included in the display area. Before checking whether the core area is included in the display area, the core area of the scaled image and the display area may be placed in a manner that the maximum area overlaps. For example, the center point of the core area can be placed coincident with the center point of the display area, or one of the four vertices of the core area can be coincident with a vertex of the display area, and the rest of the core area can be placed overlapping the display area . It is convenient to check whether the core area is included in the display area by placing the core area and the display area in such a way that the largest area overlaps.

如果缩放后的图片的核心区域包含在显示区域内,可以认为缩放后的图片的核心区域的长度和宽度分别小于或等于显示区域的长度和宽度,因此,超出显示区域的部分都是图片的非核心区域。由于缩放后的图片的长度或宽度中的一个与显示区域的长度或宽度中的一个相同,缩放后的图片的长度或宽度中的另一个大于或等于显示区域的长度或宽度中的另一个,因此,将超出显示区域的非核心区域的部分进行裁剪后,所得到的图片的长度和宽度分别与显示区域的长度和宽度相同。If the core area of the zoomed picture is included in the display area, it can be considered that the length and width of the core area of the zoomed picture are less than or equal to the length and width of the display area respectively. core zone. Since one of the length or width of the scaled picture is the same as one of the length or width of the display area, and the other of the length or width of the scaled picture is greater than or equal to the other of the length or width of the display area, Therefore, after cropping the part of the non-core area beyond the display area, the length and width of the obtained picture are respectively the same as the length and width of the display area.

如果缩放后的图片的核心区域没有包含在显示区域内,可以认为缩放后的图片的核心区域的长度或宽度中的一个与显示区域的长度或宽度中的一个相同,缩放后的图片的核心区域的长度或宽度中的另一个大于显示区域的长度或宽度中的另一个,此时,需要将超出显示区域的非核心区域和核心区域都进行裁剪,才能使缩放后的图片的长度和宽度分别和显示区域的长度和宽度相同。If the core area of the zoomed image is not included in the display area, it can be considered that the length or width of the core area of the zoomed image is the same as the length or width of the display area, and the core area of the zoomed image The other of the length or width is greater than the length or width of the display area. At this time, the non-core area and the core area beyond the display area need to be cropped to make the length and width of the zoomed image respectively Same length and width as the display area.

在本发明实施例中,对缩放后图片的核心区域和非核心区域进行裁剪,可以采用现有技术中的图片裁剪工具进行裁剪,例如,在android系统中就有相应的图片裁剪api,可以将所要裁剪图片的长度、宽度以及起点坐标输入,即可得到裁剪后的图片。对于选择何种裁剪工具,以及具体如何进行裁剪,可以采用现有技术中的裁剪工具以及裁剪方法,对此本发明实施例不做限定。In the embodiment of the present invention, the core area and the non-core area of the zoomed picture are cropped, and the image cropping tool in the prior art can be used to crop, for example, there is a corresponding image cropping api in the android system, and the Input the length, width and starting point coordinates of the image to be cropped, and the cropped image can be obtained. As for which cutting tool to choose and how to cut specifically, cutting tools and cutting methods in the prior art may be used, which is not limited in this embodiment of the present invention.

在本发明实施例中,将图片进行裁剪处理后,所得到的图片的长度和宽度与显示区域的长度和宽度分别相同,将裁剪后的图片在显示区域进行显示,能够真实地将图片的核心区域加以显示,使图片不发生变形。In the embodiment of the present invention, after the picture is cropped, the length and width of the obtained picture are the same as the length and width of the display area respectively, and the cropped picture is displayed in the display area, so that the core of the picture can be truly displayed. The area is displayed so that the picture does not deform.

本发明实施例提供的图片处理方法,根据确定的图片的核心区域以及显示区域的大小进行图片裁剪,能够将图片的核心区域裁剪出来,在显示区域进行显示,使图片不发生变形。The picture processing method provided by the embodiment of the present invention cuts out the picture according to the determined core area of the picture and the size of the display area, and can cut out the core area of the picture and display it in the display area without deforming the picture.

相应地,本发明实施例还提供一种图片处理系统,如图2所示,为本发明实施例提供的图片处理系统的结构示意图。Correspondingly, an embodiment of the present invention further provides an image processing system, as shown in FIG. 2 , which is a schematic structural diagram of the image processing system provided by the embodiment of the present invention.

在该实施例中,所述图片处理系统,可以包括:In this embodiment, the picture processing system may include:

确定模块201,用于确定图片的核心区域;Determining module 201, configured to determine the core area of the picture;

缩放模块202,用于对图片进行等比例缩放;A scaling module 202, configured to scale the picture proportionally;

检查模块203,用于检查缩放后的图片的核心区域是否包含在显示区域内;A checking module 203, configured to check whether the core area of the scaled picture is included in the display area;

第一裁剪模块204,用于检查模块检查缩放后的图片的核心区域包含在显示区域内后,将缩放后的图片超出显示区域的非核心区域的部分进行裁剪;The first cropping module 204 is used to crop the part of the zoomed picture beyond the non-core area of the display area after the core area of the zoomed picture is checked by the checking module to be included in the display area;

第二裁剪模块205,用于在检查模块检查缩放后的图片的核心区域没有包含在显示区域内后,将缩放后的图片超出显示区域的非核心区域和核心区域都进行裁剪。The second cropping module 205 is configured to, after the checking module checks that the core area of the zoomed image is not included in the display area, crop both the non-core area and the core area of the zoomed image beyond the display area.

上述系统还包括:配置模块,用于向用户提供配置界面,以使用户在配置界面上输入四个顶点的坐标值;The above system also includes: a configuration module, configured to provide the user with a configuration interface, so that the user can input the coordinate values of the four vertices on the configuration interface;

上述确定模块,具体用于将四个顶点的坐标值所围成的区域作为图片的核心区域。The above determining module is specifically configured to use the area enclosed by the coordinate values of the four vertices as the core area of the picture.

上述系统还包括:第一显示模块,用于按照图片的原始大小显示图片;The above system also includes: a first display module, configured to display the picture according to the original size of the picture;

上述确定模块,具体用于获取用户在图片上划定的框形区域,并将框形区域作为图片的核心区域。The above-mentioned determination module is specifically used to obtain the frame-shaped area defined by the user on the picture, and use the frame-shaped area as the core area of the picture.

上述缩放模块具体可以包括:The above scaling module may specifically include:

参数确定单元,用于确定图片的缩放参数;A parameter determination unit, configured to determine the scaling parameters of the picture;

缩放单元,用于按照缩放参数对图片进行缩放。The scaling unit is used to scale the picture according to the scaling parameter.

上述参数确定单元具体可以包括:The above-mentioned parameter determination unit may specifically include:

尺寸获取单元,用于获取显示区域的长度和宽度;A size acquisition unit, used to acquire the length and width of the display area;

所述尺寸获取单元,还用于获取图片的长度和宽度;The size acquisition unit is also used to acquire the length and width of the picture;

计算单元,用于计算显示区域与图片的长度比值,以及显示区域与图片的宽度比值;A calculation unit, used to calculate the ratio of the length of the display area to the picture, and the ratio of the width of the display area to the picture;

确定单元,用于将长度比值和宽度比值中的较大值确定为图片的缩放参数。The determination unit is configured to determine the larger value of the length ratio and the width ratio as the scaling parameter of the picture.

上述系统还可以进一步包括:放置模块,用于将缩放后图片的核心区域和显示区域以最大面积相重合的方式进行放置。The above-mentioned system may further include: a placement module, configured to place the core area and the display area of the zoomed image in a manner that the maximum area overlaps.

进一步地,上述系统还可以包括:第二显示模块,用于在显示区域显示裁剪后的图片。Further, the above system may further include: a second display module, configured to display the cropped picture in the display area.

本发明实施例提供的图片处理系统,根据确定的图片的核心区域以及显示区域的大小进行图片裁剪,能够将图片的核心区域裁剪出来,在显示区域进行显示,使图片不发生变形。The picture processing system provided by the embodiment of the present invention performs picture cutting according to the determined core area of the picture and the size of the display area, and can cut out the core area of the picture and display it in the display area, so that the picture does not deform.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的系统实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。例如,第一显示模块和第二显示模块,既可以在物理上集成在一个显示模块中,也可以分体为两个单独的显示模块。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to part of the description of the method embodiment. The system embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. For example, the first display module and the second display module can be physically integrated into one display module, or separated into two separate display modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.

Claims (14)

CN201410046922.6A2014-02-102014-02-10Picture processing method and systemPendingCN103824252A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201410046922.6ACN103824252A (en)2014-02-102014-02-10Picture processing method and system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410046922.6ACN103824252A (en)2014-02-102014-02-10Picture processing method and system

Publications (1)

Publication NumberPublication Date
CN103824252Atrue CN103824252A (en)2014-05-28

Family

ID=50759299

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410046922.6APendingCN103824252A (en)2014-02-102014-02-10Picture processing method and system

Country Status (1)

CountryLink
CN (1)CN103824252A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104484853A (en)*2014-12-242015-04-01北京奇虎科技有限公司Method and device for clipping pictures containing graphical signs
WO2016101767A1 (en)*2014-12-242016-06-30北京奇虎科技有限公司Picture cropping method and device and image detecting method and device
CN106157239A (en)*2015-04-222016-11-23阿里巴巴集团控股有限公司A kind of image processing method and relevant device and system
CN106296760A (en)*2015-05-212017-01-04腾讯科技(深圳)有限公司The method of cutting out of picture and device
CN108073380A (en)*2017-12-292018-05-25广东欧珀移动通信有限公司Electronic device, display control method and related product
CN108170214A (en)*2017-12-292018-06-15广东欧珀移动通信有限公司Electronic device, display control method and related product
CN108200245A (en)*2017-12-292018-06-22广东欧珀移动通信有限公司Electronic device, display control method and related product
CN109523503A (en)*2018-09-112019-03-26北京三快在线科技有限公司A kind of method and apparatus of image cropping
WO2019072149A1 (en)*2017-10-112019-04-18腾讯科技(深圳)有限公司Thumbnail generation method and apparatus, electronic device, and storage medium
CN109727257A (en)*2018-12-282019-05-07北京金山安全软件有限公司Method, device and terminal for automatically cutting picture
CN109756696A (en)*2019-01-182019-05-14苏州科达科技股份有限公司Logo addition and video conference image generation method, system, equipment and medium
CN111210387A (en)*2019-12-272020-05-29广东金赋科技股份有限公司Picture processing method
CN111813488A (en)*2020-07-222020-10-23北京达佳互联信息技术有限公司Content display method, content processing method and related equipment
CN111951273A (en)*2020-07-242020-11-17广州朗国电子科技有限公司Method, device, storage medium and terminal for cutting each angle of picture

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070065039A1 (en)*2005-09-222007-03-22Samsung Electronics Co., Ltd.Image capturing apparatus with image compensation and method thereof
CN102263928A (en)*2011-07-262011-11-30中兴通讯股份有限公司Video telephone image magnification method, terminal and video telephone system
CN102377960A (en)*2010-08-242012-03-14腾讯科技(深圳)有限公司Video picture displaying method and device
CN102722488A (en)*2011-03-302012-10-10汉王科技股份有限公司Method and apparatus for displaying electronic files
CN103365044A (en)*2012-03-302013-10-23百度在线网络技术(北京)有限公司Method for taking pictures by using camera and camera used device for taking pictures

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070065039A1 (en)*2005-09-222007-03-22Samsung Electronics Co., Ltd.Image capturing apparatus with image compensation and method thereof
CN102377960A (en)*2010-08-242012-03-14腾讯科技(深圳)有限公司Video picture displaying method and device
CN102722488A (en)*2011-03-302012-10-10汉王科技股份有限公司Method and apparatus for displaying electronic files
CN102263928A (en)*2011-07-262011-11-30中兴通讯股份有限公司Video telephone image magnification method, terminal and video telephone system
CN103365044A (en)*2012-03-302013-10-23百度在线网络技术(北京)有限公司Method for taking pictures by using camera and camera used device for taking pictures

Cited By (21)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2016101767A1 (en)*2014-12-242016-06-30北京奇虎科技有限公司Picture cropping method and device and image detecting method and device
CN104484853A (en)*2014-12-242015-04-01北京奇虎科技有限公司Method and device for clipping pictures containing graphical signs
CN106157239A (en)*2015-04-222016-11-23阿里巴巴集团控股有限公司A kind of image processing method and relevant device and system
CN106157239B (en)*2015-04-222019-11-08阿里巴巴集团控股有限公司A kind of image processing method and relevant device and system
CN106296760A (en)*2015-05-212017-01-04腾讯科技(深圳)有限公司The method of cutting out of picture and device
WO2019072149A1 (en)*2017-10-112019-04-18腾讯科技(深圳)有限公司Thumbnail generation method and apparatus, electronic device, and storage medium
CN109947972A (en)*2017-10-112019-06-28腾讯科技(深圳)有限公司Reduced graph generating method and device, electronic equipment, storage medium
CN108200245A (en)*2017-12-292018-06-22广东欧珀移动通信有限公司Electronic device, display control method and related product
CN108170214A (en)*2017-12-292018-06-15广东欧珀移动通信有限公司Electronic device, display control method and related product
CN108073380A (en)*2017-12-292018-05-25广东欧珀移动通信有限公司Electronic device, display control method and related product
CN108073380B (en)*2017-12-292021-09-14Oppo广东移动通信有限公司Electronic device, display control method and related product
CN109523503A (en)*2018-09-112019-03-26北京三快在线科技有限公司A kind of method and apparatus of image cropping
US20210201445A1 (en)*2018-09-112021-07-01Beijing Sankuai Online Technology Co., LtdImage cropping method
WO2020052523A1 (en)*2018-09-112020-03-19北京三快在线科技有限公司Method and apparatus for cropping image
CN109727257A (en)*2018-12-282019-05-07北京金山安全软件有限公司Method, device and terminal for automatically cutting picture
CN109756696A (en)*2019-01-182019-05-14苏州科达科技股份有限公司Logo addition and video conference image generation method, system, equipment and medium
CN109756696B (en)*2019-01-182020-11-06苏州科达科技股份有限公司Station caption adding method, video conference image generating method, system, device and medium
CN111210387A (en)*2019-12-272020-05-29广东金赋科技股份有限公司Picture processing method
CN111210387B (en)*2019-12-272023-07-25广东金赋科技股份有限公司Picture processing method
CN111813488A (en)*2020-07-222020-10-23北京达佳互联信息技术有限公司Content display method, content processing method and related equipment
CN111951273A (en)*2020-07-242020-11-17广州朗国电子科技有限公司Method, device, storage medium and terminal for cutting each angle of picture

Similar Documents

PublicationPublication DateTitle
CN103824252A (en)Picture processing method and system
EP3486760B1 (en)Preview picture presentation method, device and terminal
CN103500066B (en) A screenshot device and method suitable for touch screen devices
CN110100251B (en) Apparatus, method, and computer-readable storage medium for processing documents
EP2709057A2 (en)System, method and computer program product for image processing, in particular for introducing blurring effects to an image
CN111223047B (en)Image display method and electronic equipment
WO2016124122A1 (en)Method and apparatus for zooming picture and switching played contents of handheld electronic device
CN105933601A (en)Method, apparatus, and computer program product for presenting burst images
TWI777098B (en)Method, apparatus and electronic device for image processing and storage medium thereof
CN105930052B (en)A kind of screenshot method and device
WO2014146561A1 (en)Thumbnail generating method and system
WO2017080158A1 (en)Image processing method, equipment and system
WO2017032233A1 (en)Image generation method and device
CN104836957A (en)Photo shooting processing method and device
CN107390986A (en)A kind of mobile terminal cuts out figure control method, storage device and mobile terminal
CN105430269B (en)A kind of photographic method and device applied to mobile terminal
WO2014101570A1 (en)Application text adjusting method, device, and terminal
CN110709813B (en)Image display method, device, cradle head and storage medium
CN104093061B (en)Content sharing method and device
WO2022001648A1 (en)Image processing method and apparatus, and device and medium
TWI603225B (en)Viewing angle adjusting method and apparatus of liquid crystal display
CN101557453A (en)Image acquisition device and picture arrangement method thereof
CN105094614B (en)Method for displaying image and device
CN104049843B (en) An information processing method and electronic device
WO2017000647A1 (en)Image display method and device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information

Address after:Wangjiang Road high tech Development Zone Hefei city Anhui province 230088 No. 666

Applicant after:Iflytek Co., Ltd.

Address before:Wangjiang Road high tech Development Zone Hefei city Anhui province 230088 No. 666

Applicant before:Anhui USTC iFLYTEK Co., Ltd.

CORChange of bibliographic data
RJ01Rejection of invention patent application after publication

Application publication date:20140528

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp