Nothing Special   »   [go: up one dir, main page]

CN104504649A - Picture cutting method and device - Google Patents

Picture cutting method and device Download PDF

Info

Publication number
CN104504649A
CN104504649A CN201410841791.0A CN201410841791A CN104504649A CN 104504649 A CN104504649 A CN 104504649A CN 201410841791 A CN201410841791 A CN 201410841791A CN 104504649 A CN104504649 A CN 104504649A
Authority
CN
China
Prior art keywords
picture
cutting
cut
content information
clipping region
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
CN201410841791.0A
Other languages
Chinese (zh)
Inventor
李旭斌
陈世佳
文石磊
秦首科
张泽明
韩友
江焱
陈志扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201410841791.0A priority Critical patent/CN104504649A/en
Publication of CN104504649A publication Critical patent/CN104504649A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20112Image segmentation details
    • G06T2207/20132Image cropping

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a picture cutting method. The picture cutting method includes acquiring a to-be-cut picture; recognizing the to-be-cut picture to acquire picture content information of the to-be-cut picture; determining a target cutting area according to the picture content information; cutting the to-be-cut picture according to the target cutting area to generate a cut picture. In the method, the target cutting area is determined according to the picture content information to automatically generate the cut picture in target size, so that picture cutting quality is guaranteed; in the whole cutting process, manual operation steps are reduced, manual cutting cost is lowered, and an automated picture cutting function is realized. The invention further discloses a picture cutting device.

Description

The method of cutting out of picture and device
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of method of cutting out and device of picture.
Background technology
Because picture can transmit more information by own content to user, so increasing picture is used in internet web page.As the founder of Internet service, how exhibiting pictures and present picture to attract user on the webpage of limited size is the problem that the countless head of a station think deeply.And in practical problems, direct problems faced how to produce the picture meeting scale size to be placed on reserved web placement.Such as, the reserved advertisement position of most of website is fixed measure, and how when a given pictures, generate the cutting figure meeting size, this is also not easy.
In correlation technique, mainly generate the cutting figure meeting size by following several method:
(1) former figure is directly zoomed to target length and width yardstick;
(2) crop partial content, make former figure length breadth ratio consistent with target length breadth ratio, thus realize equal proportion convergent-divergent;
(3) by cutting manually.
But above-mentioned several method Problems existing is:
(1) first method difficulty is minimum, but cutting effect is also the poorest, such as, often occurs that picture is stretched the situation of fuzzy, compression deformation etc., if particularly there is face in picture, then situation is worse;
(2) second method is not easy to cause distortion, but there is picture key message by the possibility dismissed, and such as, under the scheme of cutting placed in the middle, if the right and left exists face, then may dismiss the situation of half face;
(3) picture quality cut out by the third method is best, but obviously, during picture set face to face to substantial amounts, the efficiency of cutting is manually low and need a large amount of manpower financial capacity to support.
Summary of the invention
Object of the present invention is intended to solve one of technical matters in correlation technique at least to a certain extent.
For this reason, first object of the present invention is the method for cutting out proposing a kind of picture.The method according to picture content information determination target clipping region automatically to generate the cutting picture of target size, ensure the quality of cutting out picture, and in whole cutting process, decrease manual steps, reduce artificial cutting cost, achieve the automation function of sanction figure.
Second object of the present invention is the Scissoring device proposing a kind of picture.
To achieve these goals, the method for cutting out of the picture of first aspect present invention embodiment, comprising: obtain pre-cut picture; The picture content information obtaining described pre-cut picture is identified to described pre-cut picture; According to described picture content information determination target clipping region; And according to described target clipping region, cutting is carried out to generate cutting picture to described pre-cut picture.
The method of cutting out of the picture of the embodiment of the present invention, can first obtain pre-cut picture, the picture content information obtaining pre-cut picture can be identified afterwards to pre-cut picture, and according to picture content information determination target clipping region, and according to target clipping region, cutting is carried out to generate cutting picture to pre-cut picture, namely according to picture content information determination target clipping region automatically to generate the cutting picture of target size, ensure the quality of cutting out picture, and in whole cutting process, decrease manual steps, reduce artificial cutting cost, achieve the automation function of sanction figure.
To achieve these goals, the Scissoring device of the picture of second aspect present invention embodiment, comprising: the first acquisition module, for obtaining pre-cut picture; Second acquisition module, for identifying to described pre-cut picture the picture content information obtaining described pre-cut picture; First determination module, for according to described picture content information determination target clipping region; And cutting module, for carrying out cutting to generate cutting picture according to described target clipping region to described pre-cut picture.
The Scissoring device of the picture of the embodiment of the present invention, pre-cut picture is obtained by the first acquisition module, second acquisition module identifies to pre-cut picture the picture content information obtaining pre-cut picture, first determination module is according to picture content information determination target clipping region, cutting module carries out cutting to generate cutting picture according to target clipping region to pre-cut picture, namely according to picture content information determination target clipping region automatically to generate the cutting picture of target size, ensure the quality of cutting out picture, and in whole cutting process, decrease manual steps, reduce artificial cutting cost, achieve the automation function of sanction figure.
The aspect that the present invention adds and advantage will part provide in the following description, and part will become obvious from the following description, or be recognized by practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or additional aspect and advantage will become obvious and easy understand from the following description of the accompanying drawings of embodiments, wherein,
Fig. 1 is the process flow diagram of the method for cutting out of picture according to an embodiment of the invention;
Fig. 2 is the process flow diagram of the method for cutting out of picture in accordance with another embodiment of the present invention;
Fig. 3 is the process flow diagram of the method for cutting out of picture according to another embodiment of the present invention;
Fig. 4 is the structural representation of the Scissoring device of picture according to an embodiment of the invention;
Fig. 5 is the structural representation of the second acquisition module of picture according to an embodiment of the invention;
Fig. 6 is the structural representation of the first determination module of picture according to an embodiment of the invention;
Fig. 7 is the structural representation of the Scissoring device of picture in accordance with another embodiment of the present invention;
Fig. 8 is the structural representation of the Scissoring device of picture according to another embodiment of the present invention.
Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Be exemplary below by the embodiment be described with reference to the drawings, be intended to for explaining the present invention, and can not limitation of the present invention be interpreted as.
Because picture can transmit more information by own content to user, so increasing picture is used in internet web page.As the founder of Internet service, how exhibiting pictures and present picture attract user on the webpage of limited size is the problem that the countless head of a station think deeply.And in practical problems, direct problems faced how to produce the picture meeting scale size to be placed on reserved web placement.Such as, the reserved advertisement position of most of website is fixed measure, and how when a given figure, generate the cutting figure meeting size, this is also not easy.Traditional method or by cutting manually, or direct convergent-divergent (but it can cause picture to be out of shape), or cut away partial content equal proportion convergent-divergent (but it may cut face or main information, causes cutting figure to lose meaning) again.But these methods in efficiency, and all there is unavoidable problem in reliability.
For this reason, the present invention proposes a kind of method of cutting out and device of picture, by the picture content information in deep excavation picture, by the integration to picture content information, achieve the cutting figure automatically generating a load target size, do not lose the main information of former figure simultaneously as far as possible.
Below with reference to the accompanying drawings method of cutting out and the device of the picture of the embodiment of the present invention are described.
The embodiment of the present invention proposes a kind of method of cutting out of picture, comprising: obtain pre-cut picture; The picture content information obtaining pre-cut picture is identified to pre-cut picture; According to picture content information determination target clipping region; And according to target clipping region, cutting is carried out to generate cutting picture to pre-cut picture.
Fig. 1 is the process flow diagram of the method for cutting out of picture according to an embodiment of the invention.As shown in Figure 1, the method for cutting out of this picture can comprise:
S101, obtains pre-cut picture.
S102, identifies to pre-cut picture the picture content information obtaining pre-cut picture.
Be to be understood that, because picture is likely splicing picture, splicing picture can understand a large figure be spliced by multiple independently picture, and probably there is in each independently picture content information, therefore, in the process of picture content information obtaining pre-cut picture, first can identify whether this pre-cut picture is splicing picture, if so, then need to identify each independently picture.Specifically, in an embodiment of the present invention, first can judge whether pre-cut picture is splicing picture, and wherein, splicing picture has at least two sub-pictures.If judge that pre-cut picture is not splicing picture, then the image identification method by presetting identifies to pre-cut picture the picture content information obtaining pre-cut picture; If judge that pre-cut picture is splicing picture, image identification method then by presetting identifies with selected optimum sub-pictures to splicing picture, and using optimum sub-pictures as pre-cut picture, and using the picture content information of the picture content information of optimum sub-pictures as pre-cut picture.Wherein, in an embodiment of the present invention, the image identification method preset can include but not limited in recognition of face, Text region, foreground-background identification and body region identification etc. one or more.Wherein, body region identification can be understood is general target detection block technology.Should be appreciated that recognition of face here, Text region, foreground-background identification and general target detection block technology are prior art, the concrete implementation procedure identified does not repeat them here.
More specifically, can first identify to judge whether pre-cut picture is splicing picture to pre-cut picture by spliced map recognition methods (or spliced map detection method), wherein, splicing picture can be regarded as has at least two sub-pictures, if not, then by methods such as recognition of face, Text region, foreground-background identification and body region identifications, the picture content information obtaining pre-cut picture is identified to pre-cut picture; If, then by methods such as recognition of face, Text region, foreground-background identification and body region identifications, the sub-pictures of often opening in this splicing picture is identified, to obtain the picture content information of each sub-pictures, and from splicing picture, select a sub-pictures as optimum sub-pictures according to picture content information, and the picture content information of selected sub-pictures (i.e. optimum sub-pictures) is as the picture content information of pre-cut picture.
Be appreciated that, in an embodiment of the present invention, selected optimum sub-pictures should be the subgraph that quantity of information is larger, such as, carrys out selected optimum sub-pictures by following some rule following: containing maximum face, to account for subgraph area containing a small amount of word, prospect and body region all larger etc.
It should be noted that, in one embodiment of the invention, also by judging to splice the length and width of often the opening sub-pictures whether closely target length and width in picture, if so, then can directly using the sub-pictures of closely target length and width as optimum sub-pictures.
S103, according to picture content information determination target clipping region.
Specifically, in an embodiment of the present invention, first can be screened picture content information by picture trimming algorithm, be met pre-conditioned picture content information.Afterwards, pre-conditioned picture content information alternatively clipping region, region corresponding on pre-cut picture will can be met.Finally, length and width adjustment and boundary adjustment are carried out to candidate clipping region, using the candidate clipping region after adjustment as target clipping region.
Wherein, in an embodiment of the present invention, meet pre-conditioned picture content information and can be regarded as the main information and foreground information etc. that face is maximum, word is minimum, maximum.
More specifically, by picture trimming algorithm find cover face at most, to cover word minimum, and cover a candidate clipping region of maximum main body and foreground area, such as, this region starts most can for covering the maximum body region of face, then carry out length and width adjustment, then carry out boundary adjustment to hide face and character area, finally determine candidate clipping region.
S104, carries out cutting to generate cutting picture according to target clipping region to pre-cut picture.
Particularly, after determining target clipping region, target clipping region can be extracted and adjusted (as convergent-divergent etc.) to the size required to generate cutting picture.
Should be appreciated that the cutting picture of high-quality should be the face information retained in former figure, containing foreground area, body region, should not contain a large amount of words etc.This is because: (1) face information is very important in a figure, is mainly manifested in two aspects: 1) retaining face information during sanction figure, can to play bonus point important; 2) can provide during sanction figure and forbid sanction figure scope, thus avoid occurring face cropped fall the situation of half.(2) generally, high-quality cutting figure should containing a large amount of word, and reason is that word is not easy to be contained in cutting picture by complete packet, and another, word is easy to cause fuzzy in convergent-divergent process.(3) quantity of information of foreground area is more important, therefore cuts out graph region and more easily obtain significant result within the scope of prospect.(4) when lacking cutting information, blindly should not carry out cutting, body region recognition technology contributes to guiding sanction figure position, and the body region recognition technology in the embodiment of the present invention is from general target detection block technology.
The method of cutting out of the picture of the embodiment of the present invention, can first obtain pre-cut picture, the picture content information obtaining pre-cut picture can be identified afterwards to pre-cut picture, and according to picture content information determination target clipping region, and according to target clipping region, cutting is carried out to generate cutting picture to pre-cut picture, namely according to picture content information determination target clipping region automatically to generate the cutting picture of target size, ensure the quality of cutting out picture, and in whole cutting process, decrease manual steps, reduce artificial cutting cost, achieve the automation function of sanction figure.
Fig. 2 is the process flow diagram of the method for cutting out of picture in accordance with another embodiment of the present invention.
In order to the quality of the legitimacy and picture that ensure picture, in an embodiment of the present invention, first can carry out screening and filtering to former figure, as to damage picture, picture length and width do not meet the picture of minimum requirement, and the picture that mission requirements filters (feel sick figure etc. for such as pornographic figure, low-quality spirogram) carries out identifying and filtering.Particularly, as shown in Figure 2, the method for cutting out of this picture can comprise:
S201, obtains former figure, and judges whether former figure meets cutting condition.
It should be noted that, in an embodiment of the present invention, meet cutting condition can include but not limited to picture without damage, picture length and width meet minimum requirement, image content legalizes (namely not comprising Pornograph, inferior quality content, content of feeling sick etc.).
S202, if judge that former figure meets cutting condition, then using former figure as pre-cut picture.
S203, obtains pre-cut picture;
S204, identifies to pre-cut picture the picture content information obtaining pre-cut picture.
S205, according to picture content information determination target clipping region.
S206, carries out cutting to generate cutting picture according to target clipping region to pre-cut picture.
The method of cutting out of the picture of the embodiment of the present invention, can obtain former figure, and judges whether former figure meets cutting condition, if meet, then using former figure as pre-cut picture, ensure that the legitimacy of pre-cut picture and the quality of pre-cut picture.
Fig. 3 is the process flow diagram of the method for cutting out of picture according to another embodiment of the present invention.
In order to assess the quality of cutting picture, in an embodiment of the present invention, according to actual needs, the cutting picture of multiple candidate can be produced, by carrying out reliability estimating to multiple candidate's cutting picture.Particularly, as shown in Figure 3, the method for cutting out of this picture can comprise:
S301, obtains former figure, and judges whether former figure meets cutting condition.
S302, if judge that former figure meets cutting condition, then using former figure as pre-cut picture.
S303, obtains pre-cut picture;
S304, identifies to pre-cut picture the picture content information obtaining pre-cut picture.
S305, determines multiple target clipping region according to picture content information.
Particularly, according to actual needs, by picture trimming algorithm, picture content information can be screened, obtain multiplely meeting pre-conditioned picture content information.Afterwards, pre-conditioned picture content information region corresponding on pre-cut picture can be met as multiple candidate clipping region using multiple.Finally, respectively length and width adjustment and boundary adjustment are carried out to multiple candidate clipping region, using the multiple candidate clipping regions after adjustment as multiple target clipping region.
S306, carries out cutting to generate multiple cutting picture according to multiple target clipping region to pre-cut picture.
S307, carries out reliability estimating to multiple cutting picture and sorts.
Particularly, first can carry out reliability estimating to multiple cutting picture, reliability estimating comprises face number by cutting picture, comprises word number, comprises foreground area, comprises the informix investigations such as main body area, deformation extent.Afterwards, the sequence can carrying out from high to low to multiple cutting picture according to the degree of confidence obtained.Thus, can be user and provide multiple cutting picture, and each cutting picture is with degree of confidence, user can select the cutting picture of oneself demand according to degree of confidence.
The method of cutting out of the picture of the embodiment of the present invention, can be according to actual needs, produce the cutting picture of multiple candidate, by carrying out reliability estimating to multiple candidate's cutting picture, thus provide multiple cutting picture for user, and each cutting picture is with degree of confidence, user can select the cutting picture of oneself demand according to degree of confidence.
In order to realize above-described embodiment, the invention allows for a kind of Scissoring device of picture, comprising: the first acquisition module, for obtaining pre-cut picture; Second acquisition module, for identifying to pre-cut picture the picture content information obtaining pre-cut picture; First determination module, for according to picture content information determination target clipping region; And cutting module, for carrying out cutting to generate cutting picture according to target clipping region to pre-cut picture.
Fig. 4 is the structural representation of the Scissoring device of picture according to an embodiment of the invention.As shown in Figure 4, the Scissoring device of this picture can comprise: the first acquisition module 10, second acquisition module 20, first determination module 30 and cutting module 40.
Particularly, the first acquisition module 10 can be used for obtaining pre-cut picture.
Second acquisition module 20 can be used for the picture content information identifying to obtain pre-cut picture to pre-cut picture.Be to be understood that, because picture is likely splicing picture, splicing picture can understand a large figure be spliced by multiple independently picture, and probably there is in each independently picture content information, therefore, in the process of picture content information obtaining pre-cut picture, first can identify whether this pre-cut picture is splicing picture, if so, then need to identify each independently picture.Specifically, in one embodiment of the invention, as shown in Figure 5, the second acquisition module 20 can comprise judging unit 21 and acquiring unit 22.
Particularly, judging unit 21 can be used for judging whether pre-cut picture is splicing picture, and wherein, splicing picture has at least two sub-pictures.When acquiring unit 22 can be used for for judging that at judging unit 21 pre-cut picture is not splicing picture, by the image identification method preset, the picture content information obtaining pre-cut picture is identified to pre-cut picture.Wherein, in an embodiment of the present invention, preset image identification method can include but not limited in recognition of face, Text region, foreground-background identification and body region identification etc. one or more.Wherein, body region identification can be understood is general target detection block technology.Should be appreciated that recognition of face here, Text region, foreground-background identification and general target detection block technology are prior art, the concrete implementation procedure identified does not repeat them here.
In an embodiment of the present invention, acquiring unit 22 is also used in judging unit 21 and judges that pre-cut picture is when splicing picture, identify with selected optimum sub-pictures by the image identification method preset to splicing picture, and using optimum sub-pictures as pre-cut picture, and using the picture content information of the picture content information of optimum sub-pictures as pre-cut picture.
More specifically, judging unit 21 identifies to judge whether pre-cut picture is splicing picture to pre-cut picture by spliced map recognition methods (or spliced map detection method), wherein, splicing picture can be regarded as has at least two sub-pictures, if not, then acquiring unit 22 identifies to pre-cut picture the picture content information obtaining pre-cut picture by methods such as recognition of face, Text region, foreground-background identification and body region identifications; If, then acquiring unit 22 identifies the sub-pictures of often opening in this splicing picture by methods such as recognition of face, Text region, foreground-background identification and body region identifications, to obtain the picture content information of each sub-pictures, and from splicing picture, select a sub-pictures as optimum sub-pictures according to picture content information, and the picture content information of selected sub-pictures (i.e. optimum sub-pictures) is as the picture content information of pre-cut picture.
Be appreciated that, in an embodiment of the present invention, selected optimum sub-pictures should be the subgraph that quantity of information is larger, such as, acquiring unit 22 carrys out selected optimum sub-pictures by following some rule following: containing maximum face, to account for subgraph area containing a small amount of word, prospect and body region all larger etc.
It should be noted that, in one embodiment of the invention, acquiring unit 22 also by judging to splice the length and width of often the opening sub-pictures whether closely target length and width in picture, if so, then can directly using the sub-pictures of closely target length and width as optimum sub-pictures.
First determination module 30 can be used for according to picture content information determination target clipping region.Specifically, in one embodiment of the invention, as shown in Figure 6, the first determination module 30 can comprise screening unit 31, first determining unit 32 and the second determining unit 33.
Particularly, screening unit 31 can be used for being screened picture content information by picture trimming algorithm, is met pre-conditioned picture content information.First determining unit 32 can be used for meeting pre-conditioned picture content information alternatively clipping region, region corresponding on pre-cut picture.Second determining unit 33 can be used for carrying out length and width adjustment and boundary adjustment to candidate clipping region, using the candidate clipping region after adjustment as target clipping region.Wherein, in an embodiment of the present invention, meet pre-conditioned picture content information and can be regarded as the main information and foreground information etc. that face is maximum, word is minimum, maximum.
More specifically, by picture trimming algorithm find cover face at most, to cover word minimum, and cover a candidate clipping region of maximum main body and foreground area, such as, this region starts most can for covering the maximum body region of face, then carry out length and width adjustment, then carry out boundary adjustment to hide face and character area, finally determine candidate clipping region.
Cutting module 40 can be used for carrying out cutting to generate cutting picture according to target clipping region to pre-cut picture.More specifically, cutting module 40, after the first determination module 30 determines target clipping region, can extract target clipping region and be adjusted (as convergent-divergent etc.) to the size required to generate cutting picture.
Should be appreciated that the cutting picture of high-quality should be the face information retained in former figure, containing foreground area, body region, should not contain a large amount of words etc.This is because: (1) face information is very important in a figure, is mainly manifested in two aspects: 1) retaining face information during sanction figure, can to play bonus point important; 2) can provide during sanction figure and forbid sanction figure scope, thus avoid occurring face cropped fall the situation of half.(2) generally, high-quality cutting figure should containing a large amount of word, and reason is that word is not easy to be contained in cutting picture by complete packet, and another, word is easy to cause fuzzy in convergent-divergent process.(3) quantity of information of foreground area is more important, therefore cuts out graph region and more easily obtain significant result within the scope of prospect.(4) when lacking cutting information, blindly should not carry out cutting, body region recognition technology contributes to guiding sanction figure position, and the body region recognition technology in the embodiment of the present invention is from general target detection block technology.
Further, in order to the quality of the legitimacy and picture that ensure picture, first can carry out screening and filtering to former figure, as to damage picture, picture length and width do not meet the picture of minimum requirement, and the picture that mission requirements filters (feel sick figure etc. for such as pornographic figure, low-quality spirogram) carries out identifying and filtering.Particularly, in one embodiment of the invention, as shown in Figure 7, the Scissoring device of this picture also can comprise: judge module 50 and the second determination module 60.
Particularly, judge module 50 is used in before the first acquisition module 10 obtains pre-cut picture, obtains former figure, and judges whether former figure meets cutting condition.Second determination module 60 is used in judge module 50 when judging that former figure meets cutting condition, using former figure as pre-cut picture.It should be noted that, in an embodiment of the present invention, meet cutting condition can include but not limited to picture without damage, picture length and width meet minimum requirement, image content legalizes (namely not comprising Pornograph, inferior quality content, content of feeling sick etc.).
Further, in order to assess the quality of cutting picture, according to actual needs, the cutting picture of multiple candidate can be produced, by carrying out reliability estimating to multiple candidate's cutting picture.Particularly, in one embodiment of the invention, the first determination module 30 can have for: determine multiple target clipping region according to shown picture content information.Cutting module 40 can be specifically for: carry out cutting to generate multiple cutting picture according to multiple target clipping region to pre-cut picture.In an embodiment of the present invention, as shown in Figure 8, the Scissoring device of this picture also can comprise confidence estimation module 70, and confidence estimation module 70 can be used for multiple cutting picture is carried out to reliability estimating and sorts.
More specifically, the first determination module 30 can according to actual needs, be screened picture content information by picture trimming algorithm, obtains multiplely meeting pre-conditioned picture content information.Afterwards, pre-conditioned picture content information region corresponding on pre-cut picture can be met as multiple candidate clipping region using multiple.Finally, respectively length and width adjustment and boundary adjustment are carried out to multiple candidate clipping region, using the multiple candidate clipping regions after adjustment as multiple target clipping region.Cutting module 40 carries out cutting to generate multiple cutting picture according to multiple target clipping region to pre-cut picture.
Confidence estimation module 70 first can carry out reliability estimating to multiple cutting picture, and reliability estimating comprises face number by cutting picture, comprises word number, comprises foreground area, comprises the informix investigations such as main body area, deformation extent.Afterwards, the sequence can carrying out from high to low to multiple cutting picture according to the degree of confidence obtained.Thus, can be user and provide multiple cutting picture, and each cutting picture is with degree of confidence, user can select the cutting picture of oneself demand according to degree of confidence.
The Scissoring device of the picture of the embodiment of the present invention, pre-cut picture is obtained by the first acquisition module, second acquisition module identifies to pre-cut picture the picture content information obtaining pre-cut picture, first determination module is according to picture content information determination target clipping region, cutting module carries out cutting to generate cutting picture according to target clipping region to pre-cut picture, namely according to picture content information determination target clipping region automatically to generate the cutting picture of target size, ensure the quality of cutting out picture, and in whole cutting process, decrease manual steps, reduce artificial cutting cost, achieve the automation function of sanction figure.
In describing the invention, it is to be appreciated that term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or the implicit quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise at least one this feature.In describing the invention, the implication of " multiple " is at least two, such as two, three etc., unless otherwise expressly limited specifically.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), erasablely edit ROM (read-only memory) (EPROM or flash memory), fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanning to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer memory.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
In the description of this instructions, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not must for be identical embodiment or example.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this instructions or example and different embodiment or example can carry out combining and combining by those skilled in the art.
Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.

Claims (12)

1. a method of cutting out for picture, is characterized in that, comprises the following steps:
Obtain pre-cut picture;
The picture content information obtaining described pre-cut picture is identified to described pre-cut picture;
According to described picture content information determination target clipping region; And
According to described target clipping region, cutting is carried out to generate cutting picture to described pre-cut picture.
2. the method for cutting out of picture as claimed in claim 1, is characterized in that, before described acquisition pre-cut picture, also comprise:
Obtain former figure, and judge whether described former figure meets cutting condition;
If judge that described former figure meets described cutting condition, then using described former figure as described pre-cut picture.
3. the method for cutting out of picture as claimed in claim 1, is characterized in that, describedly comprises the picture content information that described pre-cut picture identifies to obtain described pre-cut picture:
Judge whether described pre-cut picture is splicing picture, and wherein, described splicing picture has at least two sub-pictures;
If judge that described pre-cut picture is not described splicing picture, then the image identification method by presetting identifies to described pre-cut picture the picture content information obtaining described pre-cut picture;
If judge that described pre-cut picture is described splicing picture, image identification method then by presetting identifies with selected optimum sub-pictures to described splicing picture, and using described optimum sub-pictures as described pre-cut picture, and using the picture content information of the picture content information of described optimum sub-pictures as described pre-cut picture.
4. the method for cutting out of picture as claimed in claim 3, is characterized in that, described default image identification method comprise in recognition of face, Text region, foreground-background identification and body region identification one or more.
5. the method for cutting out of picture as claimed in claim 1, is characterized in that, describedly comprises according to described picture content information determination target clipping region:
By picture trimming algorithm, described picture content information is screened, be met pre-conditioned picture content information;
Pre-conditioned picture content information alternatively clipping region, region corresponding on described pre-cut picture is met by described; And
Length and width adjustment and boundary adjustment are carried out to described candidate clipping region, using the candidate clipping region after adjustment as described target clipping region.
6. the method for cutting out of picture as claimed in claim 1, is characterized in that,
Describedly to comprise according to described picture content information determination target clipping region:
Multiple target clipping region is determined according to described picture content information;
Describedly according to described target clipping region, cutting is carried out to described pre-cut picture and comprises to generate cutting picture:
According to described multiple target clipping region, cutting is carried out to generate multiple cutting picture to described pre-cut picture;
Described method also comprises:
Described multiple cutting picture is carried out reliability estimating and sorted.
7. a Scissoring device for picture, is characterized in that, comprising:
First acquisition module, for obtaining pre-cut picture;
Second acquisition module, for identifying to described pre-cut picture the picture content information obtaining described pre-cut picture;
First determination module, for according to described picture content information determination target clipping region; And
Cutting module, for carrying out cutting to generate cutting picture according to described target clipping region to described pre-cut picture.
8. the Scissoring device of picture as claimed in claim 7, is characterized in that, also comprise:
Judge module, before obtaining pre-cut picture at described first acquisition module, obtains former figure, and judges whether described former figure meets cutting condition;
Second determination module, during for judging that described former figure meets described cutting condition at described judge module, using described former figure as described pre-cut picture.
9. the Scissoring device of picture as claimed in claim 7, it is characterized in that, described second acquisition module comprises:
Judging unit, for judging whether described pre-cut picture is splicing picture, and wherein, described splicing picture has at least two sub-pictures;
Acquiring unit, during for judging that described pre-cut picture is not described splicing picture at described judging unit, identifies to described pre-cut picture the picture content information obtaining described pre-cut picture by the image identification method preset;
When described acquiring unit is also for judging that described pre-cut picture is described splicing picture at described judging unit, identify with selected optimum sub-pictures by the image identification method preset to described splicing picture, and using described optimum sub-pictures as described pre-cut picture, and using the picture content information of the picture content information of described optimum sub-pictures as described pre-cut picture.
10. the Scissoring device of picture as claimed in claim 9, is characterized in that, described default image identification method comprise in recognition of face, Text region, foreground-background identification and body region identification one or more.
The Scissoring device of 11. pictures as claimed in claim 7, it is characterized in that, described first determination module comprises:
Screening unit, for being screened described picture content information by picture trimming algorithm, is met pre-conditioned picture content information;
First determining unit, for meeting pre-conditioned picture content information alternatively clipping region, region corresponding on described pre-cut picture by described; And
Second determining unit, for carrying out length and width adjustment and boundary adjustment to described candidate clipping region, using the candidate clipping region after adjustment as described target clipping region.
The Scissoring device of 12. pictures as claimed in claim 7, is characterized in that,
Described first determination module have for: determine multiple target clipping region according to shown picture content information;
Described cutting module specifically for: according to described multiple target clipping region, cutting is carried out to generate multiple cutting picture to described pre-cut picture;
Described device also comprises:
Confidence estimation module, for carrying out reliability estimating to described multiple cutting picture and sort.
CN201410841791.0A 2014-12-30 2014-12-30 Picture cutting method and device Pending CN104504649A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410841791.0A CN104504649A (en) 2014-12-30 2014-12-30 Picture cutting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410841791.0A CN104504649A (en) 2014-12-30 2014-12-30 Picture cutting method and device

Publications (1)

Publication Number Publication Date
CN104504649A true CN104504649A (en) 2015-04-08

Family

ID=52946043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410841791.0A Pending CN104504649A (en) 2014-12-30 2014-12-30 Picture cutting method and device

Country Status (1)

Country Link
CN (1) CN104504649A (en)

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105263049A (en) * 2015-10-28 2016-01-20 努比亚技术有限公司 Video cropping device based on frame coordinate, method and mobile terminal
CN105426047A (en) * 2015-11-17 2016-03-23 小米科技有限责任公司 Thumbnail display method and device
CN105528786A (en) * 2015-12-04 2016-04-27 小米科技有限责任公司 Image processing method and device
CN106157239A (en) * 2015-04-22 2016-11-23 阿里巴巴集团控股有限公司 A kind of image processing method and relevant device and system
CN106296760A (en) * 2015-05-21 2017-01-04 腾讯科技(深圳)有限公司 The method of cutting out of picture and device
CN106485534A (en) * 2015-08-25 2017-03-08 阿里巴巴集团控股有限公司 The generation method of advertisement and device in webpage
CN107622497A (en) * 2017-09-29 2018-01-23 广东欧珀移动通信有限公司 Image cropping method, apparatus, computer-readable recording medium and computer equipment
CN108062739A (en) * 2017-11-02 2018-05-22 广东数相智能科技有限公司 A kind of picture intelligence method of cutting out and device based on body position
CN108154464A (en) * 2017-12-06 2018-06-12 中国科学院自动化研究所 The method and device of picture automatic cutting based on intensified learning
CN108268488A (en) * 2016-12-30 2018-07-10 百度在线网络技术(北京)有限公司 The recognition methods of webpage master map and device
CN108460817A (en) * 2018-01-23 2018-08-28 维沃移动通信有限公司 A kind of pattern splicing method and mobile terminal
CN108764243A (en) * 2018-05-30 2018-11-06 北京奇艺世纪科技有限公司 A kind of image processing method and device
CN108805190A (en) * 2018-05-30 2018-11-13 北京奇艺世纪科技有限公司 A kind of image processing method and device
CN109523503A (en) * 2018-09-11 2019-03-26 北京三快在线科技有限公司 A kind of method and apparatus of image cropping
CN110580678A (en) * 2019-09-10 2019-12-17 北京百度网讯科技有限公司 image processing method and device
CN110750664A (en) * 2019-10-15 2020-02-04 腾讯科技(深圳)有限公司 Picture display method and device
CN111062279A (en) * 2019-12-04 2020-04-24 深圳先进技术研究院 Picture processing method and picture processing device
CN111179153A (en) * 2018-11-13 2020-05-19 奇酷互联网络科技(深圳)有限公司 Picture clipping method, mobile terminal and device with storage function
CN111461965A (en) * 2020-04-01 2020-07-28 北京字节跳动网络技术有限公司 Picture processing method and device, electronic equipment and computer readable medium
CN111461969A (en) * 2020-04-01 2020-07-28 北京字节跳动网络技术有限公司 Method, device, electronic equipment and computer readable medium for processing picture
CN111461968A (en) * 2020-04-01 2020-07-28 北京字节跳动网络技术有限公司 Picture processing method and device, electronic equipment and computer readable medium
CN111460219A (en) * 2020-04-01 2020-07-28 百度在线网络技术(北京)有限公司 Video processing method and device and short video platform
CN111461967A (en) * 2020-04-01 2020-07-28 北京字节跳动网络技术有限公司 Picture processing method, device, equipment and computer readable medium
CN111986207A (en) * 2019-05-24 2020-11-24 百度在线网络技术(北京)有限公司 Picture cropping method and terminal
CN112215648A (en) * 2020-10-12 2021-01-12 上海酷量信息技术有限公司 Picture processing system and method suitable for multiple advertisement platforms
CN112541919A (en) * 2020-12-29 2021-03-23 申建常 Picture segmentation processing method and processing system
CN113965749A (en) * 2020-12-14 2022-01-21 深圳市云数链科技有限公司 Video transmission method and system for static camera
CN115082673A (en) * 2022-06-14 2022-09-20 阿里巴巴(中国)有限公司 Image processing method, device, equipment and storage medium
WO2023045641A1 (en) * 2021-09-27 2023-03-30 腾讯科技(深圳)有限公司 Image cropping method and apparatus, and computer device and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914689A (en) * 2014-04-09 2014-07-09 百度在线网络技术(北京)有限公司 Picture cropping method and device based on face recognition

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914689A (en) * 2014-04-09 2014-07-09 百度在线网络技术(北京)有限公司 Picture cropping method and device based on face recognition

Cited By (49)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106157239B (en) * 2015-04-22 2019-11-08 阿里巴巴集团控股有限公司 A kind of image processing method and relevant device and system
CN106157239A (en) * 2015-04-22 2016-11-23 阿里巴巴集团控股有限公司 A kind of image processing method and relevant device and system
CN106296760A (en) * 2015-05-21 2017-01-04 腾讯科技(深圳)有限公司 The method of cutting out of picture and device
CN106485534A (en) * 2015-08-25 2017-03-08 阿里巴巴集团控股有限公司 The generation method of advertisement and device in webpage
CN105263049B (en) * 2015-10-28 2019-10-29 努比亚技术有限公司 A kind of video Scissoring device, method and mobile terminal based on frame coordinate
CN105263049A (en) * 2015-10-28 2016-01-20 努比亚技术有限公司 Video cropping device based on frame coordinate, method and mobile terminal
CN105426047A (en) * 2015-11-17 2016-03-23 小米科技有限责任公司 Thumbnail display method and device
CN105426047B (en) * 2015-11-17 2018-09-18 小米科技有限责任公司 Thumbnail methods of exhibiting and device
CN105528786A (en) * 2015-12-04 2016-04-27 小米科技有限责任公司 Image processing method and device
CN105528786B (en) * 2015-12-04 2019-10-01 小米科技有限责任公司 Image processing method and device
US10534972B2 (en) 2015-12-04 2020-01-14 Xiaomi Inc. Image processing method, device and medium
CN108268488A (en) * 2016-12-30 2018-07-10 百度在线网络技术(北京)有限公司 The recognition methods of webpage master map and device
CN107622497B (en) * 2017-09-29 2020-03-27 Oppo广东移动通信有限公司 Image cropping method and device, computer readable storage medium and computer equipment
CN107622497A (en) * 2017-09-29 2018-01-23 广东欧珀移动通信有限公司 Image cropping method, apparatus, computer-readable recording medium and computer equipment
CN108062739A (en) * 2017-11-02 2018-05-22 广东数相智能科技有限公司 A kind of picture intelligence method of cutting out and device based on body position
CN108154464B (en) * 2017-12-06 2020-09-22 中国科学院自动化研究所 Method and device for automatically clipping picture based on reinforcement learning
CN108154464A (en) * 2017-12-06 2018-06-12 中国科学院自动化研究所 The method and device of picture automatic cutting based on intensified learning
CN108460817B (en) * 2018-01-23 2022-04-12 维沃移动通信有限公司 Jigsaw puzzle method and mobile terminal
CN108460817A (en) * 2018-01-23 2018-08-28 维沃移动通信有限公司 A kind of pattern splicing method and mobile terminal
CN108805190A (en) * 2018-05-30 2018-11-13 北京奇艺世纪科技有限公司 A kind of image processing method and device
CN108805190B (en) * 2018-05-30 2021-06-22 北京奇艺世纪科技有限公司 Image processing method and device
CN108764243A (en) * 2018-05-30 2018-11-06 北京奇艺世纪科技有限公司 A kind of image processing method and device
CN109523503A (en) * 2018-09-11 2019-03-26 北京三快在线科技有限公司 A kind of method and apparatus of image cropping
WO2020052523A1 (en) * 2018-09-11 2020-03-19 北京三快在线科技有限公司 Method and apparatus for cropping image
CN111179153A (en) * 2018-11-13 2020-05-19 奇酷互联网络科技(深圳)有限公司 Picture clipping method, mobile terminal and device with storage function
CN111179153B (en) * 2018-11-13 2023-06-09 奇酷互联网络科技(深圳)有限公司 Picture clipping method, mobile terminal and device with storage function
CN111986207A (en) * 2019-05-24 2020-11-24 百度在线网络技术(北京)有限公司 Picture cropping method and terminal
CN111986207B (en) * 2019-05-24 2023-09-05 百度在线网络技术(北京)有限公司 Picture cutting method and terminal
CN110580678A (en) * 2019-09-10 2019-12-17 北京百度网讯科技有限公司 image processing method and device
CN110750664A (en) * 2019-10-15 2020-02-04 腾讯科技(深圳)有限公司 Picture display method and device
WO2021109863A1 (en) * 2019-12-04 2021-06-10 深圳先进技术研究院 Photo processing method and photo processing apparatus
CN111062279A (en) * 2019-12-04 2020-04-24 深圳先进技术研究院 Picture processing method and picture processing device
CN111062279B (en) * 2019-12-04 2023-06-06 深圳先进技术研究院 Photo processing method and photo processing device
CN111461965B (en) * 2020-04-01 2023-03-21 抖音视界有限公司 Picture processing method and device, electronic equipment and computer readable medium
CN111460219A (en) * 2020-04-01 2020-07-28 百度在线网络技术(北京)有限公司 Video processing method and device and short video platform
CN111461969A (en) * 2020-04-01 2020-07-28 北京字节跳动网络技术有限公司 Method, device, electronic equipment and computer readable medium for processing picture
CN111460219B (en) * 2020-04-01 2023-07-14 百度在线网络技术(北京)有限公司 Video processing method and device and short video platform
CN111461965A (en) * 2020-04-01 2020-07-28 北京字节跳动网络技术有限公司 Picture processing method and device, electronic equipment and computer readable medium
CN111461967B (en) * 2020-04-01 2023-06-27 抖音视界有限公司 Picture processing method, device, equipment and computer readable medium
CN111461967A (en) * 2020-04-01 2020-07-28 北京字节跳动网络技术有限公司 Picture processing method, device, equipment and computer readable medium
CN111461968A (en) * 2020-04-01 2020-07-28 北京字节跳动网络技术有限公司 Picture processing method and device, electronic equipment and computer readable medium
CN111461969B (en) * 2020-04-01 2023-04-07 抖音视界有限公司 Method, device, electronic equipment and computer readable medium for processing picture
CN111461968B (en) * 2020-04-01 2023-05-23 抖音视界有限公司 Picture processing method, device, electronic equipment and computer readable medium
CN112215648A (en) * 2020-10-12 2021-01-12 上海酷量信息技术有限公司 Picture processing system and method suitable for multiple advertisement platforms
CN113965749A (en) * 2020-12-14 2022-01-21 深圳市云数链科技有限公司 Video transmission method and system for static camera
CN112541919A (en) * 2020-12-29 2021-03-23 申建常 Picture segmentation processing method and processing system
WO2023045641A1 (en) * 2021-09-27 2023-03-30 腾讯科技(深圳)有限公司 Image cropping method and apparatus, and computer device and storage medium
CN115082673A (en) * 2022-06-14 2022-09-20 阿里巴巴(中国)有限公司 Image processing method, device, equipment and storage medium
CN115082673B (en) * 2022-06-14 2024-06-25 阿里巴巴(中国)有限公司 Image processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104504649A (en) Picture cutting method and device
CN112532897B (en) Video clipping method, device, equipment and computer readable storage medium
CN104244024A (en) Video cover generation method and device and terminal
CN105047198A (en) Voice error correction processing method and apparatus
CN103544140A (en) Data processing method, display method and corresponding devices
CN105389361A (en) Search recommendation method and apparatus
CN108304368B (en) Text information type identification method and device, storage medium and processor
CN105491126A (en) Service providing method and service providing device based on artificial intelligence
CN111432138B (en) Video splicing method and device, computer readable medium and electronic equipment
CN104461545A (en) Method and device of providing contents in mobile terminals to users
CN104503994A (en) Information recommendation method and device based on input method
CN114359590A (en) NFT image work infringement detection method and device and computer storage medium
CN112199582A (en) Content recommendation method, device, equipment and medium
CN104375977A (en) Answer message processing method and device for question-answer communities
CN113010736B (en) Video classification method and device, electronic equipment and storage medium
CN104504104A (en) Picture material processing method and device for search engine, and search engine
CN106446291B (en) Picture content page providing method and device based on artificial intelligence
CN112287800A (en) Advertisement video identification method and system under no-sample condition
CN117641073A (en) Video cover generation method, device, equipment and storage medium
CN110347983B (en) Training sample storage method and device, electronic equipment and storage medium
US9772983B2 (en) Automatic color selection
CN117237843A (en) Video highlight extraction method and device, computer equipment and storage medium
CN113888567B (en) Training method of image segmentation model, image segmentation method and device
CN112508284B (en) Display material pretreatment method, display material throwing system, display material throwing device and display material pretreatment equipment
CN115019138A (en) Video subtitle erasing, model training and interaction method, device and storage medium

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

Application publication date: 20150408

RJ01 Rejection of invention patent application after publication