CN104484853A - Method and device for clipping pictures containing graphical signs - Google Patents
Method and device for clipping pictures containing graphical signs Download PDFInfo
- Publication number
- CN104484853A CN104484853A CN201410818268.6A CN201410818268A CN104484853A CN 104484853 A CN104484853 A CN 104484853A CN 201410818268 A CN201410818268 A CN 201410818268A CN 104484853 A CN104484853 A CN 104484853A
- Authority
- CN
- China
- Prior art keywords
- picture
- original picture
- original
- size
- target
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000000717 retained effect Effects 0.000 claims description 16
- 238000001514 detection method Methods 0.000 claims description 9
- 238000000605 extraction Methods 0.000 claims description 6
- 230000006835 compression Effects 0.000 description 12
- 238000007906 compression Methods 0.000 description 12
- 230000009286 beneficial effect Effects 0.000 description 8
- 238000003704 image resize Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000000429 assembly Methods 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/10—Selection of transformation methods according to the characteristics of the input images
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
本发明提供了一种对包含图形标志的图片进行裁剪的方法和装置,主要涉及互联网技术领域,主要目的在于提供一种适于裁剪包含图形标志的图片的技术方案。方法包括:对待裁剪的原始图片进行检测,检测出原始图片中包含的一个或多个图形标志的部分或全部特征;对原始图片进行裁剪得到目标图片,在目标图片中保留有至少一个图形标志的部分或全部特征。根据本发明,在检测到原始图片为包含图形标志的图片时,则要求裁剪的目标图片中包含至少一个图形标志的部分或全部技术特征;图形标志一般表示特定的意义,例如,表示商品的品牌、logo等,所以保留图形标志的特征可以使得裁剪得到的目标图片仍可以反映特定意义。
The present invention provides a method and device for clipping a picture containing a graphic symbol, mainly relates to the field of Internet technology, and the main purpose is to provide a technical solution suitable for clipping a picture containing a graphic symbol. The method includes: detecting the original picture to be cropped, detecting some or all features of one or more graphic signs contained in the original picture; cutting the original picture to obtain a target picture, and retaining at least one graphic sign in the target picture some or all of the features. According to the present invention, when it is detected that the original picture is a picture containing a graphic logo, the cropped target picture is required to contain at least part or all of the technical features of a graphic logo; graphic logos generally represent specific meanings, for example, representing the brand of a commodity , logo, etc., so retaining the characteristics of the graphic logo can make the cropped target picture still reflect a specific meaning.
Description
技术领域technical field
本发明涉及互联网技术领域,具体而言,涉及一种对包含图形标志的图片进行裁剪的装置。The invention relates to the technical field of the Internet, in particular to a device for cutting pictures containing graphic signs.
背景技术Background technique
在互联网领域,通常需要对互联网上的大量图片进行抓取。由于互联网上的图片大小各异,会导致抓取到的图片尺寸很难符合需求,此时就需要计算机自动完成对图片的裁剪,使得图片的尺寸符合需求。In the Internet field, it is usually necessary to crawl a large number of pictures on the Internet. Due to the different sizes of pictures on the Internet, it will be difficult for the size of the captured pictures to meet the requirements. At this time, the computer needs to automatically complete the cropping of the pictures so that the size of the pictures meets the needs.
对于不同的图片,由于图片中展示的内容是不同的,导致图片中需要裁剪的部分也是不同的,例如,对于包含图形标志的图片而言,如何进行裁剪使得裁剪后得到的目标图片仍起到标示作用就是一个难题。目前的采用三等分构图、黄金比例构图进行裁剪的方式,统统是对图片中的固定位置进行裁剪,对图形标志的破坏很大,这样则很难保证裁剪后的图片效果令人满意,或采用人工方式重新裁剪,效率不高。For different pictures, because the content displayed in the pictures is different, the parts that need to be cropped in the pictures are also different. Labeling is a problem. The current cropping method using thirds composition and golden ratio composition is all to crop the fixed position in the picture, which greatly damages the graphic logo, so it is difficult to ensure that the effect of the cropped picture is satisfactory, or Manual re-cutting is not efficient.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的对包含图形标志的图片进行裁剪的方法和装置。In view of the above problems, the present invention is proposed to provide a method and device for cropping a picture containing a graphic logo that overcomes the above problems or at least partially solves the above problems.
依据本发明的一个方面,提供了一种对包含图形标志的图片进行裁剪的方法,其包括:对待裁剪的原始图片进行检测,检测出所述原始图片中包含的一个或多个图形标志的部分或全部特征;对所述原始图片进行裁剪得到目标图片,在所述目标图片中保留有至少一个所述图形标志的部分或全部特征。According to one aspect of the present invention, there is provided a method for cropping a picture containing graphic signs, which includes: detecting the original picture to be cropped, and detecting the part of one or more graphic signs contained in the original picture or all of the features; cutting the original picture to obtain a target picture, in which at least one part or all of the features of the graphic sign is retained.
可选地,前述的方法,对所述原始图片进行裁剪得到目标图片,具体包括:获取所述目标图片的尺寸;根据所述目标图片的尺寸,对所述原始图片进行缩放,使所述原始图片的尺寸不超过所述目标图片的尺寸;按所述目标图片的尺寸划出裁剪区域,并将所述原始图片的图像复制到所述裁剪区域中,对所述裁剪区域进行裁剪得到所述目标图片,以保留所述原始图片中所有所述图形标志的全部特征。Optionally, in the aforementioned method, clipping the original picture to obtain the target picture specifically includes: obtaining the size of the target picture; scaling the original picture according to the size of the target picture, so that the original The size of the picture does not exceed the size of the target picture; draw a cropped area according to the size of the target picture, and copy the image of the original picture into the cropped area, and crop the cropped area to obtain the A target picture to retain all the features of all the graphic signs in the original picture.
可选地,前述的方法,还包括:检测所述原始图片的尺寸,包括所述原始图片的高度和宽度;获取所述目标图片的尺寸,具体包括:获取所述目标图片的高度和宽度;根据所述目标图片的尺寸,对所述原始图片进行缩放,具体包括:计算所述原始图片的高度与所述目标图片的高度的比值,以及计算所述原始图片的宽度与所述目标图片的宽度的比值,并将所得到的比值中的最大值作为对所述原始图片进行缩放的比例,并按所述比例对所述原始图片进行缩放。Optionally, the aforementioned method further includes: detecting the size of the original picture, including the height and width of the original picture; acquiring the size of the target picture, specifically including: acquiring the height and width of the target picture; Scaling the original picture according to the size of the target picture specifically includes: calculating the ratio of the height of the original picture to the height of the target picture, and calculating the ratio of the width of the original picture to the target picture The ratio of the widths, and the maximum value of the obtained ratios is used as a scale for scaling the original picture, and the original picture is scaled according to the scale.
可选地,前述的方法,还包括:在所述原始图片的图像无法填充满所述裁剪区域时,根据所述目标图片中保留的图形标志的背景色,对所述裁剪区域中未被所述原始图片的图像所填充的部分进行填充。Optionally, the aforementioned method further includes: when the image of the original picture cannot fill the cropping area, according to the background color of the graphic logo retained in the target picture, the Fill the portion filled by the image of the original picture.
可选地,前述的方法,在根据所述目标图片中保留的图形标志的背景色,对所述裁剪区域中未被所述原始图片的图像所填充的部分进行填充之前,还包括:按所述原始图片的边缘位置,从所述原始图片上选择待提取所述背景色所在的区域并进行颜色提取。Optionally, the aforementioned method, before filling the portion of the clipping area that is not filled by the image of the original picture according to the background color of the graphic sign retained in the target picture, further includes: The edge position of the original picture is selected, and the area where the background color is to be extracted is selected from the original picture and color extraction is performed.
可选地,前述的方法,还包括:在所述原始图片的图像无法填充满所述裁剪区域时,将所述原始图片的图像居中放置在所述裁剪区域中。Optionally, the aforementioned method further includes: centering the image of the original picture in the cropping area when the image of the original picture cannot fill the cropping area.
依据本发明的另一方面,提供了一种对包含图形标志的图片进行裁剪的装置,其包括:图形标志检测模块,用于对待裁剪的原始图片进行检测,检测出所述原始图片中包含的一个或多个图形标志的部分或全部特征;裁剪模块,用于对所述原始图片进行裁剪得到目标图片,在所述目标图片中保留有至少一个所述图形标志的部分或全部特征。According to another aspect of the present invention, there is provided a device for cropping a picture containing a graphic logo, which includes: a graphic logo detection module, configured to detect the original picture to be cropped, and detect the Some or all of the features of one or more graphic signs; a cropping module, configured to cut the original picture to obtain a target picture, in which at least one part or all of the features of the graphic signs are retained.
可选地,前述的装置,还包括:尺寸获取模块,用于获取所述目标图片的尺寸;缩放模块,用于根据所述目标图片的尺寸,对所述原始图片进行缩放,使所述原始图片的尺寸不超过所述目标图片的尺寸;裁剪模块,用于按所述目标图片的尺寸划出裁剪区域,并将所述原始图片的图像复制到所述裁剪区域中,对所述裁剪区域进行裁剪得到所述目标图片,以保留所述原始图片中所有所述图形标志的全部特征。Optionally, the aforementioned device further includes: a size acquiring module, configured to acquire the size of the target picture; a scaling module, configured to scale the original picture according to the size of the target picture, so that the original The size of the picture does not exceed the size of the target picture; the cropping module is used to draw a cropped area according to the size of the target picture, and copy the image of the original picture into the cropped area, and to the cropped area performing cropping to obtain the target picture, so as to retain all the features of all the graphic signs in the original picture.
可选地,前述的装置,还包括:尺寸检测模块,用于检测所述原始图片的尺寸,包括所述原始图片的高度和宽度;所述尺寸获取模块获取所述目标图片的高度和宽度;所述缩放模块计算所述原始图片的高度与所述目标图片的高度的比值,以及计算所述原始图片的宽度与所述目标图片的宽度的比值,并将所得到的比值中的最大值作为对所述原始图片进行缩放的比例,并按所述比例对所述原始图片进行缩放。Optionally, the aforementioned device further includes: a size detection module, configured to detect the size of the original picture, including the height and width of the original picture; the size acquisition module acquires the height and width of the target picture; The scaling module calculates the ratio of the height of the original picture to the height of the target picture, and calculates the ratio of the width of the original picture to the width of the target picture, and uses the maximum value of the obtained ratios as A scaling ratio for the original picture, and scaling the original picture according to the scaling ratio.
可选地,前述的装置,还包括:颜色填充模块,在所述原始图片的图像无法填充满所述裁剪区域时,根据所述目标图片中保留的图形标志的背景色,并按所提取的颜色对所述裁剪区域中未被所述原始图片的图像所填充的部分进行填充。Optionally, the aforementioned device further includes: a color filling module, when the image of the original picture cannot fill the cropped area, according to the background color of the graphic logo retained in the target picture, and according to the extracted The color fills the part of the clipping area that is not filled by the image of the original picture.
可选地,前述的装置,所述颜色填充模块按所述原始图片的边缘位置,从所述原始图片上选择待提取所述背景色所在的区域并进行颜色提取。Optionally, in the aforementioned device, the color filling module selects the area where the background color is to be extracted from the original picture according to the edge position of the original picture and performs color extraction.
可选地,前述的装置,所述裁剪模块在所述原始图片的图像无法填充满所述裁剪区域时,将所述原始图片的图像居中放置在所述裁剪区域中。Optionally, in the aforementioned device, the cropping module centers the image of the original picture in the cropping area when the image of the original picture cannot fill the cropping area.
根据以上技术方案,可知本发明的对包含图形标志的图片进行裁剪的方法和装置至少具有以下优点:According to the above technical solutions, it can be seen that the method and device for cutting pictures containing graphic signs of the present invention have at least the following advantages:
根据本发明的技术方案,在检测到原始图片为包含图形标志的图片时,则要求裁剪的目标图片中包含至少一个图形标志的部分或全部技术特征;图形标志一般表示特定的意义,例如,表示商品的品牌、logo等,所以保留图形标志的特征可以使得裁剪得到的目标图片仍可以反映特定意义。According to the technical solution of the present invention, when the original picture is detected as a picture containing a graphic mark, it is required to include some or all technical features of at least one graphic mark in the cropped target picture; the graphic mark generally represents a specific meaning, for example, expresses The brand, logo, etc. of the product, so retaining the characteristics of the graphic logo can make the cropped target image still reflect a specific meaning.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:
图1示出了根据本发明的一个实施例的对包含图形标志的图片进行裁剪的方法的流程图;FIG. 1 shows a flow chart of a method for cropping a picture containing a graphic logo according to an embodiment of the present invention;
图2示出了根据本发明的一个实施例的对包含图形标志的图片进行裁剪的方法的流程图;FIG. 2 shows a flowchart of a method for cropping a picture containing a graphic logo according to an embodiment of the present invention;
图3示出了根据本发明的一个实施例的对包含图形标志的图片进行裁剪的方法的流程图;FIG. 3 shows a flow chart of a method for cropping a picture containing a graphic logo according to an embodiment of the present invention;
图4示出了根据本发明的一个实施例的对包含图形标志的图片进行裁剪的方法的流程图;FIG. 4 shows a flow chart of a method for cropping a picture containing a graphic logo according to an embodiment of the present invention;
图5示出了根据本发明的一个实施例的对包含图形标志的图片进行裁剪的方法裁剪的原始图片;Fig. 5 shows the original picture cut by the method for cutting a picture containing a graphic logo according to an embodiment of the present invention;
图6示出了根据本发明的一个实施例的对包含图形标志的图片进行裁剪的方法裁剪的目标图片;Fig. 6 shows the target picture cropped by the method for cropping a picture containing a graphic logo according to an embodiment of the present invention;
图7示出了根据本发明的一个实施例的对包含图形标志的图片进行裁剪的装置的框图;Fig. 7 shows a block diagram of a device for cropping a picture containing a graphic logo according to an embodiment of the present invention;
图8示出了根据本发明的一个实施例的对包含图形标志的图片进行裁剪的装置的框图;Fig. 8 shows a block diagram of a device for cropping a picture containing a graphic logo according to an embodiment of the present invention;
图9示出了根据本发明的一个实施例的对包含图形标志的图片进行裁剪的装置的框图;Fig. 9 shows a block diagram of a device for cropping a picture containing a graphic logo according to an embodiment of the present invention;
图10示出了根据本发明的一个实施例的对包含图形标志的图片进行裁剪的装置的框图。Fig. 10 shows a block diagram of an apparatus for cropping a picture containing a graphic logo according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
如图1所述,本发明的一个实施例中提供了一种对包含图形标志的图片进行裁剪的方法,其包括:As shown in Figure 1, an embodiment of the present invention provides a method for cropping a picture containing a graphic logo, which includes:
步骤110,对待裁剪的原始图片进行检测,检测出原始图片中包含的一个或多个图形标志的部分或全部特征。在本实施例中,对于图形标志的特征不进行限制,其包括但不限于图形标志自身的颜色、形状,以及图形标志的背景色。Step 110: Detect the original picture to be cropped, and detect some or all features of one or more graphic signs contained in the original picture. In this embodiment, there is no limitation on the features of the graphic sign, which include but not limited to the color and shape of the graphic sign itself, and the background color of the graphic sign.
步骤120,对原始图片进行裁剪得到目标图片,在目标图片中保留有至少一个图形标志的部分或全部特征。在本实施例中,保留的特征与检测到的特征可以不相同。根据本实施例的技术方案,在检测到原始图片为包含图形标志的图片时,则要求裁剪的目标图片中包含至少一个图形标志的部分或全部技术特征;图形标志一般表示特定的意义,例如,表示商品的品牌等,所以保留图形标志的特征可以使得裁剪得到的目标图片仍可以反映特定意义。Step 120, cropping the original picture to obtain a target picture, in which part or all of the features of at least one graphic symbol are retained. In this embodiment, the retained features may be different from the detected features. According to the technical solution of this embodiment, when it is detected that the original picture is a picture containing a graphic mark, the cropped target picture is required to contain at least part or all of the technical features of a graphic mark; the graphic mark generally represents a specific meaning, for example, Represents the brand of the product, etc., so retaining the characteristics of the graphic logo can make the cropped target image still reflect a specific meaning.
根据图1,在某商标(图形标志)的图片上;在识别出该商标后,对该商标的图片进行裁剪时,裁剪下商标所在的区域(全部特征),或提取商标的轮廓形状(部分特征);进一步地,图片中有多个同类商标共存时,可以仅根据其中一个商品的商标进行裁剪。According to Figure 1, on the picture of a certain trademark (graphic sign); after the trademark is recognized, when cutting the picture of the trademark, the area where the trademark is located (all features) is cut out, or the contour shape of the trademark is extracted (partial feature); furthermore, when there are multiple trademarks of the same kind coexisting in the picture, it can be cropped according to the trademark of only one of the products.
如图2所述,本发明的一个实施例中提供了一种对包含图形标志的图片进行裁剪的方法,其包括:As shown in Figure 2, an embodiment of the present invention provides a method for cropping a picture containing a graphic logo, which includes:
步骤210,对待裁剪的原始图片进行检测,检测出原始图片中包含的一个或多个图形标志的部分或全部特征。Step 210: Detect the original picture to be cropped, and detect some or all features of one or more graphic signs contained in the original picture.
步骤220,获取目标图片的尺寸。Step 220, acquiring the size of the target picture.
步骤230,根据目标图片的尺寸,对原始图片进行缩放,使原始图片的尺寸不超过目标图片的尺寸。在本实施例中,使得原始图片的尺寸不超过目标图片的尺寸,有利于保留原始图片的全部特征。Step 230: Scale the original picture according to the size of the target picture so that the size of the original picture does not exceed the size of the target picture. In this embodiment, the size of the original picture does not exceed the size of the target picture, which is beneficial to retain all the features of the original picture.
步骤240,按目标图片的尺寸划出裁剪区域,并将原始图片的图像复制到裁剪区域中,对裁剪区域进行裁剪得到目标图片,以保留原始图片中所有图形标志的全部特征。根据本实施例的技术方案,通过对原始图片进行缩放后再进行裁剪,可以保留原始图片的全部图像,也即可以保存图形标志的全部特征,有利于裁剪后图片完整反映图形标志的含义。进一步地,在原始图片的图像无法填充满裁剪区域时,将原始图片的图像居中放置在裁剪区域中,这样有利于保证裁剪得到的图片呈现对称式的效果。Step 240, draw a cropped area according to the size of the target picture, copy the image of the original picture into the cropped area, and crop the cropped area to obtain the target picture, so as to retain all the features of all graphic signs in the original picture. According to the technical solution of this embodiment, by zooming the original picture and then cutting it, all the images of the original picture can be preserved, that is, all the features of the graphic mark can be preserved, which is beneficial to fully reflect the meaning of the graphic mark in the cropped picture. Further, when the image of the original picture cannot fill the cropped area, the image of the original picture is centered in the cropped area, which is beneficial to ensure that the cropped picture presents a symmetrical effect.
如图3所述,本发明的一个实施例中提供了一种对包含图形标志的图片进行裁剪的方法,其包括:As shown in Figure 3, an embodiment of the present invention provides a method for cropping a picture containing a graphic logo, which includes:
步骤310,对待裁剪的原始图片进行检测,检测出原始图片中包含的一个或多个图形标志的部分或全部特征。Step 310: Detect the original picture to be cropped, and detect some or all features of one or more graphic signs contained in the original picture.
步骤320,检测原始图片的高度和宽度。Step 320, detecting the height and width of the original picture.
步骤330,包括原始图片的高度和宽度。Step 330, including the height and width of the original picture.
步骤340,计算原始图片的高度与目标图片的高度的比值,以及计算原始图片的宽度与目标图片的宽度的比值,并将所得到的比值中的最大值作为对原始图片进行缩放的比例,并按比例对原始图片进行缩放。在本实施例中,实际上是按照最大压缩比进行缩放,这种方式能够保证在原始图片压缩后的尺寸小于目标图片的尺寸的前提下,原始图片尺寸最大,从而有利于目标图片清晰展示图形标志的特征。Step 340, calculate the ratio of the height of the original picture to the height of the target picture, and calculate the ratio of the width of the original picture to the width of the target picture, and use the maximum value of the obtained ratio as the scaling ratio of the original picture, and Scales the original image proportionally. In this embodiment, scaling is actually performed according to the maximum compression ratio. This method can ensure that the size of the original picture is the largest under the premise that the compressed size of the original picture is smaller than the size of the target picture, which is conducive to the clear display of graphics on the target picture. The characteristics of the sign.
步骤350,按目标图片的尺寸划出裁剪区域,并将原始图片的图像复制到裁剪区域中,对裁剪区域进行裁剪得到目标图片,以保留原始图片中所有图形标志的全部特征。Step 350, draw a cropped area according to the size of the target picture, copy the image of the original picture into the cropped area, and crop the cropped area to obtain the target picture, so as to retain all the features of all graphic signs in the original picture.
根据图3,设原始图片记为imagesrc,其宽和高分别为widthsrc与heightsrc,裁剪要获得的目标图片记为imagedst,其宽和高分别为widthdst与heigthdst,单位都为像素。则将原始图片按照最大压缩比进行压缩,最大压缩比计算公式为:max_scale=MAX(widthsrc/widthdst,heightsrc/heightdst)。设压缩后得到的图片为imageresize,其宽和高分别为widthresize,heightresize,则:widthresize=widthsrc/max_scale;heightresize=heightsrc/max_scale。According to Figure 3, let the original image be recorded as image src , whose width and height are width src and height src respectively, and the target image to be cropped is recorded as image dst , whose width and height are width dst and height dst respectively, and the units are both pixels. Then the original picture is compressed according to the maximum compression ratio, and the calculation formula of the maximum compression ratio is: max_scale=MAX(width src /width dst , height src /height dst ). Suppose the image obtained after compression is image resize , its width and height are respectively width resize and height resize , then: width resize = width src /max_scale; height resize = height src /max_scale.
需要说明的是,上述各个公式并不是实现本发明的唯一公式,仅作为实施例的一种实现方式。技术人员可以根据业务需要对公式做适当变形,例如增加常量或变量或系数等方式,依然落在本发明的保护范围之内。It should be noted that each of the above formulas is not the only formula for implementing the present invention, and is only used as an implementation manner of the embodiment. Technicians can make appropriate changes to the formula according to business needs, such as adding constants or variables or coefficients, etc., which still fall within the protection scope of the present invention.
如图4所述,本发明的一个实施例中提供了一种对包含图形标志的图片进行裁剪的方法,其包括:As shown in Figure 4, an embodiment of the present invention provides a method for cropping a picture containing a graphic logo, which includes:
步骤410,对待裁剪的原始图片进行检测,检测出原始图片中包含的一个或多个图形标志的部分或全部特征。Step 410: Detect the original picture to be cropped, and detect some or all features of one or more graphic signs contained in the original picture.
步骤420,获取目标图片的尺寸。Step 420, acquiring the size of the target picture.
步骤430,根据目标图片的尺寸,对原始图片进行缩放,使原始图片的尺寸不超过目标图片的尺寸。在本实施例中,使得原始图片的尺寸不超过目标图片的尺寸,有利于保留原始图片的全部特征。Step 430: Scale the original picture according to the size of the target picture so that the size of the original picture does not exceed the size of the target picture. In this embodiment, the size of the original picture does not exceed the size of the target picture, which is beneficial to retain all the features of the original picture.
步骤440,按目标图片的尺寸划出裁剪区域,并将原始图片的图像复制到裁剪区域中,对裁剪区域进行裁剪得到目标图片,以保留原始图片中所有图形标志的全部特征。Step 440, draw a cropped area according to the size of the target picture, copy the image of the original picture into the cropped area, and crop the cropped area to obtain the target picture, so as to retain all the features of all the graphic signs in the original picture.
步骤450,在原始图片的图像无法填充满裁剪区域时,按原始图片的边缘位置,从原始图片上选择待提取背景色所在的区域并进行颜色提取。在本实施例中,通常包含图形标志的原始图片边缘即为图形标志的背景。Step 450, when the image of the original picture cannot fill the clipping area, select the area where the background color is to be extracted from the original picture according to the edge position of the original picture and perform color extraction. In this embodiment, usually the edge of the original picture containing the graphic logo is the background of the graphic logo.
步骤460,根据目标图片中保留的图形标志的背景色,对裁剪区域中未被原始图片的图像所填充的部分进行填充。根据本实施例的技术方案,选择背景色进行填充,可以使得填充的颜色与复制过去的图像边缘颜色基本一致,整体性效果非常好。Step 460: According to the background color of the graphic mark retained in the target picture, fill the portion of the cropping area that is not filled by the image of the original picture. According to the technical solution of this embodiment, selecting the background color for filling can make the filled color basically consistent with the edge color of the copied image, and the overall effect is very good.
根据图4,结合前述的实施例,将imageresize的像素值拷贝到imagedst的中间时,如果imageresize的尺寸小于imagedst,即widthresize<widthdst或heightresize<heigthdst,则将缺失的像素用背景色填充。According to Fig. 4, in combination with the aforementioned embodiment, when copying the pixel value of image resize to the middle of image dst , if the size of image resize is smaller than image dst , that is, width resize <width dst or height resize <heigth dst , then the missing The pixels are filled with the background color.
根据上述两个实施例,图5所示的logo图片,其原始尺寸为194x60。现在希望获得一张100x100的图片,则需要按以下过程处理:a)首先检测出该图片为logo图片,同时确定背景色为纯白色。b)计算最大压缩比,max_sacle=MAX(192/100,60/100)=1.92。c)按最大压缩比压缩图片,压缩后的图片的长和宽分别为100、31。d)将压缩后的图片像素居中拷贝到目标图片中,并将缺失的像素用背景色填充,得到如图6所示的图片。According to the above two embodiments, the original size of the logo picture shown in FIG. 5 is 194x60. Now if you want to obtain a 100x100 picture, you need to process it according to the following process: a) First, detect that the picture is a logo picture, and at the same time determine that the background color is pure white. b) Calculate the maximum compression ratio, max_sacle=MAX(192/100,60/100)=1.92. c) Compress the picture according to the maximum compression ratio, and the length and width of the compressed picture are 100 and 31 respectively. d) Copy the compressed image pixels to the target image at the center, and fill the missing pixels with the background color to obtain the image shown in Figure 6.
如图7所述,本发明的一个实施例中提供了一种对包含图形标志的图片进行裁剪的装置,其包括:As shown in Figure 7, an embodiment of the present invention provides a device for cropping a picture containing a graphic logo, which includes:
图形标志检测模块710,对待裁剪的原始图片进行检测,检测出原始图片中包含的一个或多个图形标志的部分或全部特征。在本实施例中,对于图形标志的特征不进行限制,其包括但不限于图形标志自身的颜色、形状,以及图形标志的背景色。The graphic mark detection module 710 detects the original picture to be cropped, and detects some or all features of one or more graphic marks contained in the original picture. In this embodiment, there is no limitation on the features of the graphic sign, which include but not limited to the color and shape of the graphic sign itself, and the background color of the graphic sign.
裁剪模块720,对原始图片进行裁剪得到目标图片,在目标图片中保留有至少一个图形标志的部分或全部特征。在本实施例中,保留的特征与检测到的特征可以不相同。根据本实施例的技术方案,在检测到原始图片为包含图形标志的图片时,则要求裁剪的目标图片中包含至少一个图形标志的部分或全部技术特征;图形标志一般表示特定的意义,例如,表示商品的品牌等,所以保留图形标志的特征可以使得裁剪得到的目标图片仍可以反映特定意义。The cropping module 720 is used to crop the original picture to obtain a target picture, in which part or all of the features of at least one graphic logo are retained. In this embodiment, the retained features may be different from the detected features. According to the technical solution of this embodiment, when it is detected that the original picture is a picture containing a graphic mark, the cropped target picture is required to contain at least part or all of the technical features of a graphic mark; the graphic mark generally represents a specific meaning, for example, Represents the brand of the product, etc., so retaining the characteristics of the graphic logo can make the cropped target image still reflect a specific meaning.
根据图7,在某商标(图形标志)的图片上;在识别出该商标后,对该商标的图片进行裁剪时,裁剪下商标所在的区域(全部特征),或提取商标的轮廓形状(部分特征);进一步地,图片中有多个同类商标共存时,可以仅根据其中一个商品的商标进行裁剪。According to Fig. 7, on the picture of a certain trademark (graphic sign); after the trademark is recognized, when cutting the picture of the trademark, the area where the trademark is located (all features) is cut out, or the outline shape of the trademark is extracted (part feature); furthermore, when there are multiple trademarks of the same kind coexisting in the picture, it can be cropped according to the trademark of only one of the products.
如图8所述,本发明的一个实施例中提供了一种对包含图形标志的图片进行裁剪的装置,其包括:As shown in Figure 8, an embodiment of the present invention provides a device for cropping a picture containing a graphic logo, which includes:
图形标志检测模块810,对待裁剪的原始图片进行检测,检测出原始图片中包含的一个或多个图形标志的部分或全部特征。The graphic mark detection module 810 detects the original picture to be cropped, and detects some or all features of one or more graphic marks contained in the original picture.
尺寸获取模块820,获取目标图片的尺寸。The size obtaining module 820, obtains the size of the target picture.
缩放模块830,根据目标图片的尺寸,对原始图片进行缩放,使原始图片的尺寸不超过目标图片的尺寸。在本实施例中,使得原始图片的尺寸不超过目标图片的尺寸,有利于保留原始图片的全部特征。The scaling module 830 scales the original picture according to the size of the target picture, so that the size of the original picture does not exceed the size of the target picture. In this embodiment, the size of the original picture does not exceed the size of the target picture, which is beneficial to retain all the features of the original picture.
裁剪模块840,按目标图片的尺寸划出裁剪区域,并将原始图片的图像复制到裁剪区域中,对裁剪区域进行裁剪得到目标图片,以保留原始图片中所有图形标志的全部特征。根据本实施例的技术方案,通过对原始图片进行缩放后再进行裁剪,可以保留原始图片的全部图像,也即可以保存图形标志的全部特征,有利于裁剪后图片完整反映图形标志的含义。进一步地,在原始图片的图像无法填充满裁剪区域时,将原始图片的图像居中放置在裁剪区域中,这样有利于保证裁剪得到的图片呈现对称式的效果。The cropping module 840 draws a cropped area according to the size of the target picture, copies the image of the original picture into the cropped area, and crops the cropped area to obtain the target picture, so as to retain all the features of all graphic signs in the original picture. According to the technical solution of this embodiment, by zooming the original picture and then cutting it, all the images of the original picture can be preserved, that is, all the features of the graphic mark can be preserved, which is beneficial to fully reflect the meaning of the graphic mark in the cropped picture. Further, when the image of the original picture cannot fill the cropped area, the image of the original picture is centered in the cropped area, which is beneficial to ensure that the cropped picture presents a symmetrical effect.
如图9所述,本发明的一个实施例中提供了一种对包含图形标志的图片进行裁剪的装置,其包括:As shown in Figure 9, an embodiment of the present invention provides a device for cropping a picture containing a graphic logo, which includes:
图形标志检测模块910,对待裁剪的原始图片进行检测,检测出原始图片中包含的一个或多个图形标志的部分或全部特征。The graphic mark detection module 910 detects the original picture to be cropped, and detects some or all features of one or more graphic marks contained in the original picture.
尺寸检测模块920,检测原始图片的高度和宽度。The size detection module 920 detects the height and width of the original picture.
尺寸获取模块930,包括原始图片的高度和宽度。The size acquisition module 930 includes the height and width of the original picture.
缩放模块940,计算原始图片的高度与目标图片的高度的比值,以及计算原始图片的宽度与目标图片的宽度的比值,并将所得到的比值中的最大值作为对原始图片进行缩放的比例,并按比例对原始图片进行缩放。在本实施例中,实际上是按照最大压缩比进行缩放,这种方式能够保证在原始图片压缩后的尺寸小于目标图片的尺寸的前提下,原始图片尺寸最大,从而有利于目标图片清晰展示图形标志的特征。The scaling module 940 calculates the ratio of the height of the original picture to the height of the target picture, and calculates the ratio of the width of the original picture to the width of the target picture, and uses the maximum value of the obtained ratio as the scaling ratio of the original picture, And scale the original image proportionally. In this embodiment, scaling is actually performed according to the maximum compression ratio. This method can ensure that the size of the original picture is the largest under the premise that the compressed size of the original picture is smaller than the size of the target picture, which is conducive to the clear display of graphics on the target picture. The characteristics of the sign.
裁剪模块950,按目标图片的尺寸划出裁剪区域,并将原始图片的图像复制到裁剪区域中,对裁剪区域进行裁剪得到目标图片,以保留原始图片中所有图形标志的全部特征。The cropping module 950 draws a cropped area according to the size of the target picture, copies the image of the original picture into the cropped area, and crops the cropped area to obtain the target picture, so as to retain all the features of all graphic signs in the original picture.
根据图9,设原始图片记为imagesrc,其宽和高分别为widthsrc与heightsrc,裁剪要获得的目标图片记为imagedst,其宽和高分别为widthdst与heigthdst,单位都为像素。则将原始图片按照最大压缩比进行压缩,最大压缩比计算公式为:max_scale=MAX(widthsrc/widthdst,heightsrc/heightdst)。设压缩后得到的图片为imageresize,其宽和高分别为widthresize,heightresize,则:widthresize=widthsrc/max_scale;heightresize=heightsrc/max_scale。According to Figure 9, let the original image be recorded as image src , its width and height are width src and height src respectively, and the target image to be cropped is recorded as image dst , its width and height are width dst and height dst respectively, and the units are both pixels. Then the original picture is compressed according to the maximum compression ratio, and the calculation formula of the maximum compression ratio is: max_scale=MAX(width src /width dst , height src /height dst ). Suppose the image obtained after compression is image resize , its width and height are respectively width resize and height resize , then: width resize = width src /max_scale; height resize = height src /max_scale.
需要说明的是,上述各个公式并不是实现本发明的唯一公式,仅作为实施例的一种实现方式。技术人员可以根据业务需要对公式做适当变形,例如增加常量或变量或系数等方式,依然落在本发明的保护范围之内。It should be noted that each of the above formulas is not the only formula for implementing the present invention, and is only used as an implementation manner of the embodiment. Technicians can make appropriate changes to the formula according to business needs, such as adding constants or variables or coefficients, etc., which still fall within the protection scope of the present invention.
如图10所示,本发明的一个实施例中提供了一种对包含图形标志的图片进行裁剪的装置,其包括:As shown in FIG. 10, an embodiment of the present invention provides a device for cropping a picture containing a graphic logo, which includes:
图形标志检测模块1010,对待裁剪的原始图片进行检测,检测出原始图片中包含的一个或多个图形标志的部分或全部特征。The graphic mark detection module 1010 detects the original picture to be cropped, and detects some or all features of one or more graphic marks contained in the original picture.
尺寸获取模块1020,获取目标图片的尺寸。The size acquisition module 1020 acquires the size of the target picture.
缩放模块1030,根据目标图片的尺寸,对原始图片进行缩放,使原始图片的尺寸不超过目标图片的尺寸。在本实施例中,使得原始图片的尺寸不超过目标图片的尺寸,有利于保留原始图片的全部特征。The scaling module 1030 scales the original picture according to the size of the target picture, so that the size of the original picture does not exceed the size of the target picture. In this embodiment, the size of the original picture does not exceed the size of the target picture, which is beneficial to retain all the features of the original picture.
裁剪模块1040,按目标图片的尺寸划出裁剪区域,并将原始图片的图像复制到裁剪区域中,对裁剪区域进行裁剪得到目标图片,以保留原始图片中所有图形标志的全部特征。The cropping module 1040 draws a cropped area according to the size of the target picture, copies the image of the original picture into the cropped area, and crops the cropped area to obtain the target picture, so as to retain all the features of all the graphic signs in the original picture.
颜色填充模块1050,在原始图片的图像无法填充满裁剪区域时,按原始图片的边缘位置,从原始图片上选择待提取背景色所在的区域并进行颜色提取。在本实施例中,通常包含图形标志的原始图片边缘即为图形标志的背景。The color filling module 1050, when the image of the original picture cannot fill the clipping area, selects the area where the background color to be extracted is located from the original picture according to the edge position of the original picture and performs color extraction. In this embodiment, usually the edge of the original picture containing the graphic logo is the background of the graphic logo.
颜色填充模块1050根据目标图片中保留的图形标志的背景色,对裁剪区域中未被原始图片的图像所填充的部分进行填充。根据本实施例的技术方案,选择背景色进行填充,可以使得填充的颜色与复制过去的图像边缘颜色基本一致,整体性效果非常好。The color filling module 1050 fills the part of the clipping area that is not filled by the image of the original picture according to the background color of the graphic mark retained in the target picture. According to the technical solution of this embodiment, selecting the background color for filling can make the filled color basically consistent with the edge color of the copied image, and the overall effect is very good.
根据图10,结合前述的实施例,将imageresize的像素值拷贝到imagedst的中间时,如果imageresize的尺寸小于imagedst,即widthresize<widthdst或heightresize<heigthdst,则将缺失的像素用背景色填充。According to Fig. 10, in combination with the aforementioned embodiment, when copying the pixel value of image resize to the middle of image dst , if the size of image resize is smaller than image dst , that is, width resize <width dst or height resize <heigth dst , then the missing The pixels are filled with the background color.
根据上述两个实施例,图5所示的logo图片,其原始尺寸为194x60。现在希望获得一张100x100的图片,则需要按以下过程处理:a)首先检测出该图片为logo图片,同时确定背景色为纯白色。b)计算最大压缩比,max_sacle=MAX(192/100,60/100)=1.92。c)按最大压缩比压缩图片,压缩后的图片的长和宽分别为100、31。d)将压缩后的图片像素居中拷贝到目标图片中,并将缺失的像素用背景色填充,得到如图6所示的图片。According to the above two embodiments, the original size of the logo picture shown in FIG. 5 is 194x60. Now if you want to obtain a 100x100 picture, you need to process it according to the following process: a) First, detect that the picture is a logo picture, and at the same time determine that the background color is pure white. b) Calculate the maximum compression ratio, max_sacle=MAX(192/100,60/100)=1.92. c) Compress the picture according to the maximum compression ratio, and the length and width of the compressed picture are 100 and 31 respectively. d) Copy the compressed image pixels to the target image at the center, and fill the missing pixels with the background color to obtain the image shown in Figure 6.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的对包含图形标志的图片进行裁剪的装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the components in the device for cropping a picture containing a graphic sign according to an embodiment of the present invention Or full functionality. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
Claims (12)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410818268.6A CN104484853A (en) | 2014-12-24 | 2014-12-24 | Method and device for clipping pictures containing graphical signs |
PCT/CN2015/095862 WO2016101767A1 (en) | 2014-12-24 | 2015-11-27 | Picture cropping method and device and image detecting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410818268.6A CN104484853A (en) | 2014-12-24 | 2014-12-24 | Method and device for clipping pictures containing graphical signs |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104484853A true CN104484853A (en) | 2015-04-01 |
Family
ID=52759393
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410818268.6A Pending CN104484853A (en) | 2014-12-24 | 2014-12-24 | Method and device for clipping pictures containing graphical signs |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104484853A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016101767A1 (en) * | 2014-12-24 | 2016-06-30 | 北京奇虎科技有限公司 | Picture cropping method and device and image detecting method and device |
CN105975204A (en) * | 2016-04-28 | 2016-09-28 | 深圳市金立通信设备有限公司 | Picture processing method and terminal |
CN108898045A (en) * | 2018-04-23 | 2018-11-27 | 杭州电子科技大学 | The multi-tag image pre-processing method of gesture identification based on deep learning |
CN109727257A (en) * | 2018-12-28 | 2019-05-07 | 北京金山安全软件有限公司 | Method, device and terminal for automatically cutting picture |
CN113554015A (en) * | 2021-06-01 | 2021-10-26 | 广州图匠数据科技有限公司 | Method, terminal and storage device for identifying commodity category through LOGO |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799653A (en) * | 2012-06-29 | 2012-11-28 | 中国科学院自动化研究所 | Logo detection method based on spatial connected domain prepositioning |
CN103336954A (en) * | 2013-07-08 | 2013-10-02 | 北京捷成世纪科技股份有限公司 | Identification method and device of station caption in video |
CN103824252A (en) * | 2014-02-10 | 2014-05-28 | 安徽科大讯飞信息科技股份有限公司 | Picture processing method and system |
CN103914689A (en) * | 2014-04-09 | 2014-07-09 | 百度在线网络技术(北京)有限公司 | Picture cropping method and device based on face recognition |
CN103971087A (en) * | 2013-07-12 | 2014-08-06 | 湖南纽思曼导航定位科技有限公司 | Method and device for searching and recognizing traffic signs in real time |
CN104156413A (en) * | 2014-07-30 | 2014-11-19 | 中国科学院自动化研究所 | Trademark density based personalized trademark matching recognition method |
-
2014
- 2014-12-24 CN CN201410818268.6A patent/CN104484853A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799653A (en) * | 2012-06-29 | 2012-11-28 | 中国科学院自动化研究所 | Logo detection method based on spatial connected domain prepositioning |
CN103336954A (en) * | 2013-07-08 | 2013-10-02 | 北京捷成世纪科技股份有限公司 | Identification method and device of station caption in video |
CN103971087A (en) * | 2013-07-12 | 2014-08-06 | 湖南纽思曼导航定位科技有限公司 | Method and device for searching and recognizing traffic signs in real time |
CN103824252A (en) * | 2014-02-10 | 2014-05-28 | 安徽科大讯飞信息科技股份有限公司 | Picture processing method and system |
CN103914689A (en) * | 2014-04-09 | 2014-07-09 | 百度在线网络技术(北京)有限公司 | Picture cropping method and device based on face recognition |
CN104156413A (en) * | 2014-07-30 | 2014-11-19 | 中国科学院自动化研究所 | Trademark density based personalized trademark matching recognition method |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016101767A1 (en) * | 2014-12-24 | 2016-06-30 | 北京奇虎科技有限公司 | Picture cropping method and device and image detecting method and device |
CN105975204A (en) * | 2016-04-28 | 2016-09-28 | 深圳市金立通信设备有限公司 | Picture processing method and terminal |
CN108898045A (en) * | 2018-04-23 | 2018-11-27 | 杭州电子科技大学 | The multi-tag image pre-processing method of gesture identification based on deep learning |
CN108898045B (en) * | 2018-04-23 | 2021-05-25 | 杭州电子科技大学 | Multi-label image preprocessing method based on deep learning gesture recognition |
CN109727257A (en) * | 2018-12-28 | 2019-05-07 | 北京金山安全软件有限公司 | Method, device and terminal for automatically cutting picture |
CN113554015A (en) * | 2021-06-01 | 2021-10-26 | 广州图匠数据科技有限公司 | Method, terminal and storage device for identifying commodity category through LOGO |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104484855B (en) | The method and apparatus that picture is cut | |
WO2016101767A1 (en) | Picture cropping method and device and image detecting method and device | |
CN105488758B (en) | A kind of image-scaling method based on perception of content | |
CN104484854A (en) | Cropping method and device for people pictures | |
JP2020017999A5 (en) | ||
CN110706150A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
KR102366263B1 (en) | Digital image presentation | |
CN104933747B (en) | Vector animation is converted to the method and device of bitmaps animation | |
CN104484853A (en) | Method and device for clipping pictures containing graphical signs | |
RU2012108572A (en) | METHOD AND DEVICE FOR PROVIDING IMAGES FOR DISPLAY | |
JP2016221053A5 (en) | Image processing apparatus, X-ray diagnostic apparatus, and image processing method | |
EP2701048A1 (en) | Method and device for software interface display on terminal, and computer storage medium | |
WO2018049739A1 (en) | Method and device for storing image data | |
CN101923703A (en) | Image Adaptive Method Combining Semantic-Based Seam Cropping and Non-Uniform Mapping | |
CN107977927A (en) | Stature method of adjustment and device, computing device based on view data | |
CN110782392B (en) | Image processing method, device, electronic equipment and storage medium | |
CN106529531A (en) | Chinese chess identification system and method based on image processing | |
CN104182194A (en) | Method and system for seamless edge blending processing in projection display | |
CN108111911A (en) | Video data real-time processing method and device based on the segmentation of adaptive tracing frame | |
CN103390260A (en) | Method and device for image processing | |
CN107945151B (en) | Repositioning image quality evaluation method based on similarity transformation | |
JP2006528811A5 (en) | ||
CN109829421B (en) | Method and device for vehicle detection and computer readable storage medium | |
CN112183294B (en) | Text elimination method, device, electronic device and storage medium | |
CN106599175A (en) | Page element display processing method and page element display apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150401 |