CN100361494C - Self-taking portrait photo taking method and equipment - Google Patents

Self-taking portrait photo taking method and equipment Download PDF

Info

Publication number
CN100361494C
CN100361494C CNB2005100691852A CN200510069185A CN100361494C CN 100361494 C CN100361494 C CN 100361494C CN B2005100691852 A CNB2005100691852 A CN B2005100691852A CN 200510069185 A CN200510069185 A CN 200510069185A CN 100361494 C CN100361494 C CN 100361494C
Authority
CN
China
Prior art keywords
photo
rectangle frame
person
taking pictures
width
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2005100691852A
Other languages
Chinese (zh)
Other versions
CN1708093A (en
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.)
Vimicro Corp
Original Assignee
Vimicro Corp
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 Vimicro Corp filed Critical Vimicro Corp
Priority to CNB2005100691852A priority Critical patent/CN100361494C/en
Publication of CN1708093A publication Critical patent/CN1708093A/en
Application granted granted Critical
Publication of CN100361494C publication Critical patent/CN100361494C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention relates to a self-taking portrait photo taking device which is suitable for taking a photo with a specified width and height ratio. The self-taking portrait photo taking device comprises an image capturing and displaying device, a fitting device, a rectangular frame generating device and a cutting device, wherein the image capturing and displaying device is used for obtaining a photo taking person's portrait image and displaying the obtained portrait image on the image displaying area of the device, the fitting device is used for fitting the photo taking person's head part in the portrait image, the rectangular frame generating device is used for generating a rectangular frame which is at least based on the fit photo taking person's head part, and displaying the rectangular frame on the image displaying area in a superposing mode, wherein the width-to-height ratio of the rectangular frame is equal to the specified width-to-height ratio of the photo, and the cutting device is used for cutting the obtained portrait image according to the rectangular frame. The preferable mode is that the fitting device uses an ellipse for fitting treatment, and the photo taking device also comprises a zooming device which is used for adjusting the size of the cut portrait image according to the width and height parameters of the photo.

Description

A kind of self-taking portrait photo taking method and equipment
Technical field
The present invention relates to image processing field, in particular to a kind of self-taking portrait photo taking method and equipment.
Background technology
In daily life, often need provide the portrait photo of oneself.Many times, the form of portrait photo is all had the regulation of comparison strictness, for example, it is wide that digital photos is of a size of high 370 pixels of 440 pixels, and traditional photo is of a size of 1 cun or 2 cun, eye distance photo upper edge what, face's width is in how many scopes and so on, or the like.For the photo size and the form of these strict demands, come photographing process just to seem necessary with digital photos.
At present, the certificate photo of having relatively high expectations generally can not be by in propria persona taking, and will be undertaken by the opposing party; In addition, because some filming apparatus more complicated that operates, the certificate photo that has even require the special messenger to take pictures or specify some particular organization to carry out.Now, there are many devices to have Self-timer, for example mobile phone, digital camera etc., but they generally are difficult to satisfy the various sizes requirement of portrait photo, for example, edge, the crown distance or the like to the distance on photo top, left and right sides cheek to the photo both sides; Perhaps need the digital photos that obtains is further edited, handled, for example handle with professional digital imaging processing software Adobe Photoshop etc., just can meet specific photo standard, and these follow-up editors, the work of treatment be not known usually, do not grasped usually by non-those skilled in the art.
Summary of the invention
Therefore, the objective of the invention is to provide self-taking portrait photo taking method and the equipment that a kind of easy and simple to handle, adaptability is strong, be suitable for oneself being operating as own shooting portrait photo at above-mentioned defective.
According to an aspect of the present invention, provide a kind of self-taking portrait photo taking method, the photo so that shooting has regulation the ratio of width to height comprises step:
(a) obtain by the person's of taking pictures portrait images, and it is presented on the image display area;
(b) in the portrait images obtained of match by the person's of taking pictures head;
(c) generate rectangle frame based on the quilt person of the taking pictures head of institute's match at least, and described rectangle frame is presented on the described image display area with stacked system, the width of wherein said rectangle frame and the ratio of height equal described regulation the ratio of width to height of photo; With
(d) according to the described portrait images of obtaining of described rectangle frame cutting.
Preferably, the described match of step (b) is to utilize the oval match of carrying out.
Further preferably, step (c) comprising:
According to the length of one of the minor axis of described ellipse and major axis and at least second parameter of photo determine that the width and the height of described rectangle frame, second parameter of described photo at least limit the length ratio of one of described minor axis and major axis and the corresponding edge of described rectangle frame;
On described image display area, draw rectangle frame according to determined width and height, the Width of wherein said rectangle frame is parallel in the minor axis of described ellipse and the major axis, and the short transverse of described rectangle frame is parallel to the minor axis of described ellipse and in the major axis another; With
At least determine the position of described rectangle frame based on the 3rd parameter of photo, described the 3rd parameter limits the position of described rectangle frame with respect to described ellipse.
According to a further aspect in the invention, provide a kind of self-taking portrait photo taking equipment, be applicable to and take photo, having comprised with regulation the ratio of width to height:
Image capture and display unit are used to obtain the portrait images by the person of taking pictures, and the portrait images of being obtained are presented on the image display area of this device;
The match device is used for the portrait images quilt person's of taking pictures the head that match is obtained;
The rectangle frame generating means, be used at least generating rectangle frame based on the quilt person of the taking pictures head of institute's match, and described rectangle frame is presented on the described image display area with stacked system, the width of wherein said rectangle frame and the ratio of height equal described regulation the ratio of width to height of photo; With
Scissoring device is used for according to the described portrait images of obtaining of described rectangle frame cutting.
Preferably, described image capture and display unit comprise:
Camera head is used to catch the portrait images by the person of taking pictures;
Display unit is used for being shown the portrait images of being caught to described in real time by the person of taking pictures; With
Input unit is used to import the instruction of the shown portrait images of locking, and wherein said display unit is set up according to this instruction the portrait images that is locked is presented on its image display area.
Further preferably, this equipment also comprises the mirror transformation device, and the portrait images that is used for that described camera head is caught is carried out left and right sides mirror transformation to be shown portrait images behind the mirror transformation of the left and right sides to described by the person of taking pictures on the described display unit; When described input unit was imported the instruction of the shown portrait images of described locking, described display unit was set up portrait images that will not make left and right sides mirror transformation according to this instruction and is presented on its image display area.
Preferably, described match device utilization ellipse carries out match.
Further preferably, described rectangle frame generating means is set up:
According to the length of one of the minor axis of described ellipse and major axis and at least second parameter of photo determine that the width and the height of described rectangle frame, second parameter of described photo at least limit the length ratio of one of described minor axis and major axis and the corresponding edge of described rectangle frame;
On described image display area, draw rectangle frame according to determined width and height, the Width of wherein said rectangle frame is parallel in the minor axis of described ellipse and the major axis, and the short transverse of described rectangle frame is parallel to the minor axis of described ellipse and in the major axis another; With
At least determine the position of described rectangle frame based on the 3rd parameter of photo, described the 3rd parameter limits the position of described rectangle frame with respect to described ellipse.
Preferably, this equipment also comprises device for zooming, is used for according to the width of photo and the size of the portrait images after the height parameter adjustment cutting.
The invention has the advantages that, can generate rectangle frame to satisfy particular requirement, so adaptability is strong according to different portrait photo standards.
The present invention be advantageous in that, easy and simple to handle.
Advantage of the present invention especially is, can be operating as oneself in person and take satisfactory portrait photo.
Description of drawings
With reference to accompanying drawing, can be well understood to the present invention more in conjunction with detailed description to execution mode, wherein:
Fig. 1 is that the line of pixels of according to an embodiment of the invention 640 * 480 original image lists intention;
Fig. 2 is that the line of pixels of the original image among Fig. 1 being carried out obtaining behind the mirror transformation of the left and right sides according to the present invention lists intention; With
Fig. 3 is the graphic extension schematic diagram of the rectangle frame of the ellipse of institute's match and generation according to a particular embodiment of the invention.
Embodiment
In one embodiment, according to the invention provides a kind of self-taking portrait photo taking equipment,, comprise image capture and display unit, match device, rectangle frame generating means and Scissoring device with the photo that shooting has regulation the ratio of width to height.
Image capture and display unit are used to obtain by the person's of taking pictures portrait images and with the portrait images of being obtained and are presented at its image display area.In a particular embodiment, image capture and display unit comprise camera head, display unit and input unit.Camera head is caught by the person's of taking pictures portrait images, for example, can be digital camera or mobile phone cam.Display unit for example can be common computer display or mobile phone screen, and the portrait images of being caught is presented on its image display area with to being shown the portrait images that camera head is caught in real time by the person of taking pictures.Like this, the facial pose of oneself can be adjusted according to shown image by the person of taking pictures, for example, specific requirement according to portrait photo, change to the left or to the right a bit or to camera lens near any etc., make own eyes look squarely dead ahead, ears all as seen do not have block, eyes are in same horizontal level etc.When by the person of taking pictures when adjusting to suitable attitude, the instruction that can utilize the shown portrait images of input unit input locking such as mouse for example, fixes this portrait images to lock this portrait images.Display unit will be expected that the portrait images that locks is presented on its image display area by the person of taking pictures, for the usefulness of subsequent treatment.
Because people get used to seeing own and adjusting facial pose facing to mirror, and from the image of camera head,, be reversed left to right if directly be shown on the screen to being seen by the person of taking pictures.Adjust facial pose facing to such image, will certainly make the person of taking pictures be difficult in the short time endoadaptation and come, so be necessary carrying out once left and right sides mirror transformation to the portrait images that the quilt person of taking pictures shows.Therefore, in this particular example, photographing device can also comprise a mirror transformation device, it can be computer program module that moves on CPU or the hardware module that realizes separately in the CPU outside, the portrait images that is used for that camera head is caught is carried out left and right sides mirror transformation showing portrait images behind the mirror transformation of the left and right sides to the quilt person of taking pictures on the display unit, thereby is conveniently adjusted facial pose by the person of taking pictures; On the other hand, when input unit is imported the instruction of the shown portrait images of above-mentioned locking, display unit will not do left and right sides mirror transformation, expected that the portrait images that locks is presented on its image display area by the person of taking pictures, to meet the standard of portrait photo.For instance, Fig. 1 shows one 640 * 480 original image, A1 wherein, and 1 expression the 1st row the 1st row, A1,2 expressions the 1st row the 2nd row ..., A1,640 expressions the 1st row the 640th row; A2,1 expression the 2nd row the 1st row, A2,2 expressions the 2nd row the 2nd row ..., A2,640 expressions the 2nd row the 640th row; The rest may be inferred, A480, and 1 expression the 480th row the 1st row, A480,2 expressions the 480th row the 2nd row ..., A480,640 expressions the 480th row the 640th row.Realize left and right sides mirror transformation, the pixel among Fig. 1 can be shown by arrangement mode shown in Figure 2.
Carried out match by the person's of taking pictures head in the portrait images that the match device obtains image capture and display unit.Particularly, for example, at first from the portrait images of obtaining, isolate described by the person's of taking pictures facial zone and hair zones.When taking certificate photo, background is generally all more single, and for example, a blueness or white cloth curtain so utilize the different of human face, hair etc. and background color, can be separated face and hair zones with comparalive ease.Described according to isolated facial zone and hair zones match then by the person's of taking pictures head.This can utilize human face detection tech to realize.Preferably, match device utilization ellipse carries out match.In addition, this match device can also be selected other suitable fitted shapes.
The rectangle frame generating means generates rectangle frame based on the quilt person of the taking pictures head of match device institute match at least, and described rectangle frame is presented at stacked system on the image display area of image capture and display unit, and the width of wherein said rectangle frame and the ratio of height equal described regulation the ratio of width to height of photo.Usually, described rectangle frame is positioned at described image display area, and has the size less than this image display area.After a while will be at utilizing ellipse fitting the rectangle frame generating means to be described in more detail by the situation of the person's of taking pictures head.
Scissoring device carries out cutting according to the portrait images that the rectangle frame that is generated obtains image capture and display unit, for example, is that frame crops the image section that is positioned at outer rectangular frame with the rectangle frame.
In an embodiment of the present invention, match device, rectangle frame generating means and Scissoring device can be computer program module that moves on CPU or the hardware circuit of realizing separately in the CPU outside.
In certain preferred embodiment of the present invention, this photographing device also comprises device for zooming, is used for the size according to the width of photo and the height parameter adjustment portrait images after by the Scissoring device cutting.For example by the wide of the portrait images after the cutting carried out convergent-divergent with high with identical zoom factor, with Rack and the height that meets photo.
Referring now to Fig. 3, the operation of rectangle frame generating means is described in conjunction with the example of specific portrait photo.
According to top description to the match device, learnt and can come in the match portrait photo to be figure 3 illustrates this ellipse with an ellipse by the person's of taking pictures head, suppose elliptical center be (x0, y0).It should be understood that with regard to the relative position among Fig. 3 oval trunnion axis (or minor axis) defines by the width of the person's of taking pictures head, the left and right end points of trunnion axis is represented respectively by the person's of taking pictures left cheek and right cheek; Oval vertical axes (or major axis) defines by the height of the person's of taking pictures head, and the upper and lower end points of vertical axes is represented respectively by the person's of taking pictures the crown and lower jaw.The R line that Fig. 3 also shows the A line that is positioned at oval top horizontal level, the B line that is positioned at oval bottom horizontal level, is positioned at the L line of oval left end vertical position and is positioned at oval right-hand member vertical position.In the following description, suppose the distance between L line and the R line, promptly the length of ellipse short shaft is a pixel; Distance between A line and the B line, promptly the length of transverse is the b pixel.In Fig. 3, also show by the horizontal level of the person's of taking pictures eyes, in the following description, suppose that the distance between C line and the A line is the c pixel with the C line.Need to prove, the eyes position is had under the situation of specific requirement at photo, be necessary to determine the position of the quilt person of taking pictures eyes, this can utilize the known method of this area to realize, for example, the middle and upper part of facial zone detects the position of eyes by template matching algorithm in portrait images, and then obtains the position and the centre coordinate of pupil on the image of each eye with histogrammic method, thereby determines the horizontal level of eyes.Be used for determining that the device of eyes position can be computer program module that moves or the hardware module that realizes separately in the CPU outside on CPU.
In conjunction with above-mentioned fitted ellipse the process of utilizing the rectangle frame generating means to generate rectangle frame is described now.
In general, certificate photo has some common specifications parameters, for example the width of photo, highly, the distance to the distance of photo corresponding edge, the crown to the photo top about cheek, lower jaw distance or the like to the distance of photo bottom, eyes to the photo top.
At first, determine the width and the height of rectangle frame according to the relevant parameter of the length of one of the minor axis of ellipse and major axis and photo.In one embodiment, can determine the width of rectangle frame and highly to the predetermined distance of photo both sides or by the Rack of the person's of taking pictures cheek according to the Rack of the length of regulation the ratio of width to height of photo, oval trunnion axis, photo and by the person of taking pictures left and right sides cheek.In another embodiment, can be according to length, the specified altitude of photo and other parameter of photo of regulation the ratio of width to height of photo, oval vertical axes, for example by the person's of taking pictures the crown to the predetermined distance of photo top edge, by the person's of taking pictures lower jaw to the predetermined distance of photo lower limb or by the person's of taking pictures eyes to the predetermined distance of photo top edge etc., determine the width of rectangle frame and highly.In other embodiments of the invention, can determine the width and the height of rectangle frame according to other the combination of photo parameter.
Then, on image display area according to determined rectangle frame width with highly draw rectangle frame.Be understandable that, can make in the width of rectangle frame and two axles that short transverse is parallel to described ellipse respectively one and another when drawing rectangle.In Fig. 3, the Width of rectangle frame is parallel to oval trunnion axis, and its short transverse is parallel to oval vertical axes.
At last, determine the position of described rectangle frame based on the related parameter that has of photo.Photo have related parameter for example, but be not limited to, by the Rack of the person of taking pictures cheek, by the person's of taking pictures left cheek to the predetermined distance of photo left hand edge, by the person's of taking pictures right cheek to the predetermined distance of photo right hand edge, by the person's of taking pictures the crown to the predetermined distance of photo top edge, the quilt person's of taking pictures lower jaw to the photo lower limb predetermined distance or the quilt person's of taking pictures eyes to the predetermined distance of photo top edge etc.
In a particular embodiment, suppose that certificate photo regulation digital photos size is wide for the W pixel, H pixel height; Be D1 ± d1 pixel apart from the photo both sides about cheek; The crown is no more than the H2 pixel apart from the photo top; And eyes are H1 ± h1 pixel apart from the photo top.Fig. 3 has schematically shown the rectangle that constitutes rectangle frame.In this particular example, can and be determined that to the distance D 1 ± d1 of photo both sides the width of rectangle frame is a*W/ (W-2*D1) pixel, highly is a*H/ (W-2*D1) pixel about the person's of taking pictures cheek according to Rack W, the specified altitude H of the length a of the trunnion axis of ellipse, photo, thereby the ratio that obtains a width and height equals the rectangle of ratio of the specified altitude of the Rack of photo and photo.Then, preferably, (x0 is that rectangle frame is drawn at the center y0) with the center of ellipse.Then, by along the center of the vertical axes translation rectangle frame of ellipse and based on by the person's of taking pictures the crown to the predetermined distance and the quilt person's of taking pictures the eyes of photo top edge are determined described rectangle frame to the predetermined distance of photo top edge position, if supposition rectangle frame center is (x0, y0+ Δ y), then the coordinate of the short transverse at rectangle frame center is adjusted to and makes: for the distance (be A line distance to rectangle top margin) of summit on the ellipse to the rectangle frame top margin, relational expression (1) H/2-b* (W-2D1)/(2*a)+Δ y* (W-2*D1)/a<H2 sets up; And for by the distance (be C line distance to rectangle top margin) of the position of the person of taking pictures eyes to the rectangle frame top margin, when relational expression (2) H1-h1≤H/2+ (2*c-b) * (W-2*D1)/(2*a)+Δ y* (W-2*D1)/a≤H1+h1 sets up, the position of rectangle frame meets the demands, and can determine the position of rectangle frame thus.Should be noted that, in this particular example, rectangle frame is drawn in any position that can be in image display area, also will be based on by the distance (L line and R line branch be clipped to the distance on the rectangle left side and the right) of the person of taking pictures left and right sides cheek to the photo both sides when just next determining the position of rectangle frame.
Dash area region representation among Fig. 3 is dropped in this zone with respect to rectangle frame by the person's of taking pictures head and all satisfies condition, and just the position for rectangle frame provides certain margin of tolerance.For example, in this embodiment, requiring about cheek apart from the photo both sides is D1 ± d1 pixel, but then the position of rectangle frame has the excursion of 2d1 pixel in the horizontal direction.Be understandable that, above-mentioned relation formula (1) and (2) but embodied the excursion of the position in the vertical direction of rectangle frame.
When in addition, the size of determining rectangle frame is with the position based on parameter can be different as the case may be.For example, in another embodiment, can be based on the position of being determined rectangle frame by the person's of taking pictures lower jaw to the predetermined distance of photo bottom.In addition, the photo parameter be not limited to above-mentioned those, according to circumstances can be other parameter.
More specifically, suppose a kind of portrait photo require as follows:
1. photo is level (W) 300 pixels, vertically (H) 400 pixels;
2. edge, the crown is no more than 30 pixels far from photo top (H2);
3. lower jaw is no more than 30 pixels apart from the photo bottom;
4. (D1 ± d1) is 30 ± 5 pixels apart from the photo both sides about cheek;
5. two are positioned at same horizontal line, and (H1 ± h1) is 100 ± 5 pixels on the distance picture top.
As mentioned above, can (x0 y0) be the center, draws a width and is a*300/ (300-30*2) pixel, highly is the rectangle frame of a*300/ (300-30*2) * (400/300) pixel with the center of ellipse.Determine the position of rectangle frame then based on following condition: the A line to the distance of rectangle top margin be no more than 30 pixels, B linear distance rectangle base be no more than 30 pixels and C line to the distance of rectangle top margin in the scope of [95,105] pixel.In this process, preferably by in that (x0 chooses in the scope of y0 ± h) a bit and comes the translation rectangle frame to determine the appropriate location of rectangle frame as the rectangle frame center, and wherein h can value b/2.
In addition, in this example, because the distance that arrives the photo both sides about cheek is [25,35] all meet the demands in the scope of pixel, so position in the horizontal direction, rectangle frame center can oval abscissa x0 be that the center changes in certain scope, in Fig. 3, this scope is embodied by the dash area zone that schematically marks on L line and the R line.Similarly, the center of rectangle frame neither be unique in the position of vertical direction, but the excursion of position is by the common decision in dash area zone that schematically marks on A line, B line and the C line among Fig. 3.
After generating rectangle frame, utilizing Scissoring device is that frame carries out cutting to portrait images with the rectangle frame.And ((300-30*2)/a) carries out convergent-divergent so that image reaches the size of 300 * 400 pixels with identical zoom factor with the wide of images cut (be rectangle frame in image) and height can to utilize device for zooming.The photo that like this, finally obtains will satisfy above-mentioned each requirement.
To different portrait photos, the numerical value of parameter can be different, but principle is the same.
The description intention of front only is illustrative, rather than in order to limit the present invention, numerous other alternative embodiments according to the present invention are obvious for a person skilled in the art.Those of ordinary skill in the art can be to here form and the details of disclosed embodiment are carried out many variations.For example, in the superincumbent description, for simplicity, the have related parameter and the relevant variable of photo have adopted the absolute figure representation, but be understandable that, the absolute figure representation of photo parameter and relevant variable can change into relative value representation of equal value, for example, and the Rack of photo and can be changed into the ratio of the Rack of the predetermined distance that arrived the photo both sides about the person's of taking pictures cheek and photo to the predetermined distance of photo both sides about the person's of taking pictures cheek.More specifically, for example, in an above-mentioned embodiment, the width of rectangle frame is a*W/ (W-2*D1) pixel, highly for a*H/ (W-2*D1) pixel, if they are changed into width that the relative value representation obtains rectangle frame is a* (W/H)/(W/H-2* (D1/W) * (W/H)) pixel, highly is a/ (W/H-2* (D1/W) * (W/H)) pixel, substantially be of equal value before transforming, wherein (W/H) is the ratio of width to height of photo, (D1/W) for being arrived the distance of photo left and right edges and the ratio of photo width about the person's of taking pictures cheek.Therefore, though disclose some preferred embodiment of the present invention here, it will be apparent to those skilled in the art that: the various changes that may make on form of the present invention and details do not have to break away from the shown the spirit and scope of the present invention of entire scope as following claim.

Claims (26)

1. self-taking portrait photo taking method, the photo so that shooting has regulation the ratio of width to height comprises step:
(a) obtain by the person's of taking pictures portrait images, and it is presented on the image display area;
(b) in the portrait images obtained of match by the person's of taking pictures head;
(c) generate rectangle frame based on the quilt person of the taking pictures head of institute's match at least, and described rectangle frame is presented on the described image display area with stacked system, the width of wherein said rectangle frame and the ratio of height equal described regulation the ratio of width to height of photo; With
(d) according to the described portrait images of obtaining of described rectangle frame cutting.
2. method according to claim 1 is characterized in that, step (a) comprising:
Seizure is by the person's of taking pictures portrait images;
Shown the portrait images of being caught to described in real time by the person of taking pictures; With
Lock shown portrait images, and it is presented on the image display area.
3. method according to claim 2, it is characterized in that, shown in real time by the person of taking pictures that the step of the portrait images of being caught comprises the portrait images of being caught is carried out left and right sides mirror transformation and shown portrait images behind the mirror transformation of the left and right sides to described by the person of taking pictures to described; And lock shown portrait images and with its be presented at step on the image display area comprise confirm to accept shown portrait images, and portrait images that will not make left and right sides mirror transformation be presented on the image display area.
4. method according to claim 1, it is characterized in that, step (b) comprise from the portrait images of being obtained, isolate described by the person's of taking pictures facial zone and hair zones, and described by the person's of taking pictures head according to isolated facial zone and hair zones match.
5. method according to claim 1 is characterized in that, the described match of step (b) is to utilize the oval match of carrying out.
6. method according to claim 5 is characterized in that, step (c) comprising:
According to the length of one of the minor axis of described ellipse and major axis and at least second parameter of photo determine that the width and the height of described rectangle frame, second parameter of described photo at least limit the length ratio of one of described minor axis and major axis and the corresponding edge of described rectangle frame;
On described image display area, draw rectangle frame according to determined width and height, the Width of wherein said rectangle frame is parallel in the minor axis of described ellipse and the major axis, and the short transverse of described rectangle frame is parallel to the minor axis of described ellipse and in the major axis another; With
At least determine the position of described rectangle frame based on the 3rd parameter of photo, described the 3rd parameter limits the position of described rectangle frame with respect to described ellipse.
7. method according to claim 6, it is characterized in that described second parameter and the 3rd parameter are respectively by the ratio of the Rack of the Rack of the person's of taking pictures cheek and photo, by the ratio of the person's of taking pictures left cheek to the Rack of the predetermined distance of photo left hand edge and photo, by the ratio of the person's of taking pictures right cheek to the Rack of the predetermined distance of photo right hand edge and photo, by the ratio of the person's of taking pictures the crown to the specified altitude of the predetermined distance of photo top edge and photo, by the person's of taking pictures lower jaw to the ratio of the predetermined distance of photo lower limb and the specified altitude of photo and the quilt person's of taking pictures eyes to the photo top edge predetermined distance and the ratio of the specified altitude of photo in one.
8. method according to claim 7, it is characterized in that, the width of described rectangle frame and be highly respectively a*W/ (W-2D1) and a*H/ (W-2D1), wherein W is the Rack of photo, a be being parallel to of described ellipse described rectangle frame Width the axle length, H is the specified altitude of photo, and D1 is the described predetermined distance that is clipped to photo left hand edge and right hand edge by the person's of taking pictures left and right sides cheek branch.
9. method according to claim 7 is characterized in that,
Described step of drawing rectangle frame according to determined width and height on described image display area comprises that according to determined width and height, with the center of described ellipse be that rectangle frame is drawn at the center; And
Described at least based on the 3rd parameter of photo determine the step of the position of described rectangle frame comprise by along being parallel to of described ellipse described rectangle frame short transverse the described rectangle frame of axial adjustment the center and based on by predetermined distance and the ratio of the specified altitude of the photo position of determining described rectangle frame of the person's of taking pictures the crown to the ratio of the specified altitude of the predetermined distance of photo top edge and photo and the quilt person's of taking pictures eyes to the photo top edge.
10. method according to claim 9 is characterized in that, the coordinate of the short transverse at described rectangle frame center is adjusted to and satisfies following condition:
(1) for the distance of summit on the ellipse to the rectangle frame top margin, H/2-b* (W-2D1)/(2*a)+Δ y* (W-2*D1)/a<H2 sets up; And
(2) for the distance that is arrived the rectangle frame top margin by the position of the person's of taking pictures eyes, H1-h1≤H/2+ (2*c-b) * (W-2*D1)/(2*a)+Δ y* (W-2*D1)/a≤H1+h1 sets up, wherein W is the Rack of photo, a be being parallel to of described ellipse described rectangle frame Width the axle length, H is the specified altitude of photo, D1 is the described predetermined distance that is clipped to photo left hand edge and right hand edge by the person's of taking pictures left and right sides cheek branch, H2 is by the regulation maximum allowable range of the person's of taking pictures the crown to the photo top edge, b be being parallel to of described ellipse described rectangle frame short transverse the axle length, c is by the distance on summit to the described ellipse, the position of the person's of taking pictures eyes, H1-h1 and H1+h1 be respectively by regulation minimum allowable range and the regulation maximum allowable range of the person's of taking pictures eyes to the photo top edge, and Δ y represents that the coordinate of short transverse at rectangle frame center is with respect to the increment of elliptical center at the coordinate of this direction.
11. according to the described method of arbitrary claim among the claim 7-10, it is characterized in that, utilized histogrammic method to determine by the position of the person's of taking pictures eyes.
12., it is characterized in that it is that frame crops the image section that is positioned at described outer rectangular frame that step (d) comprises with described rectangle frame according to the described method of arbitrary claim among the claim 1-3.
13., it is characterized in that this method also comprises the step according to the size of the portrait images after the width of photo and the height parameter adjustment cutting according to the described method of arbitrary claim among the claim 1-3.
14. a self-taking portrait photo taking equipment is used to take the photo with regulation the ratio of width to height, comprising:
Image capture and display unit are used to obtain the portrait images by the person of taking pictures, and the portrait images of being obtained are presented on the image display area of this device;
The match device is used for the portrait images quilt person's of taking pictures the head that match is obtained;
The rectangle frame generating means, be used at least generating rectangle frame based on the quilt person of the taking pictures head of institute's match, and described rectangle frame is presented on the described image display area with stacked system, the width of wherein said rectangle frame and the ratio of height equal described regulation the ratio of width to height of photo; With
Scissoring device is used for according to the described portrait images of obtaining of described rectangle frame cutting.
15. photographing device according to claim 14 is characterized in that, described image capture and display unit comprise:
Camera head is used to catch the portrait images by the person of taking pictures;
Display unit is used for being shown the portrait images of being caught to described in real time by the person of taking pictures; With
Input unit is used to import the instruction of the shown portrait images of locking, and wherein said display unit is set up according to this instruction the portrait images that is locked is presented on its image display area.
16. photographing device according to claim 15, it is characterized in that, also comprise the mirror transformation device, the portrait images that is used for that described camera head is caught is carried out left and right sides mirror transformation to be shown portrait images behind the mirror transformation of the left and right sides to described by the person of taking pictures on the described display unit; When described input unit was imported the instruction of the shown portrait images of described locking, described display unit was set up portrait images that will not make left and right sides mirror transformation according to this instruction and is presented on its image display area.
17. photographing device according to claim 14, it is characterized in that described match device is used for isolating from the portrait images of being obtained described by the person's of taking pictures facial zone and hair zones and described by the person's of taking pictures head according to isolated facial zone and hair zones match.
18. photographing device according to claim 14 is characterized in that, described match device utilization ellipse carries out match.
19. photographing device according to claim 18 is characterized in that, described rectangle frame generating means is set up:
According to the length of one of the minor axis of described ellipse and major axis and at least second parameter of photo determine that the width and the height of described rectangle frame, second parameter of described photo at least limit the length ratio of one of described minor axis and major axis and the corresponding edge of described rectangle frame;
On described image display area, draw rectangle frame according to determined width and height, the Width of wherein said rectangle frame is parallel in the minor axis of described ellipse and the major axis, and the short transverse of described rectangle frame is parallel to the minor axis of described ellipse and in the major axis another; With
At least determine the position of described rectangle frame based on the 3rd parameter of photo, described the 3rd parameter limits the position of described rectangle frame with respect to described ellipse.
20. photographing device according to claim 19, it is characterized in that described second parameter and the 3rd parameter are respectively by the ratio of the Rack of the Rack of the person's of taking pictures cheek and photo, by the ratio of the person's of taking pictures left cheek to the Rack of the predetermined distance of photo left hand edge and photo, by the ratio of the person's of taking pictures right cheek to the Rack of the predetermined distance of photo right hand edge and photo, by the ratio of the person's of taking pictures the crown to the specified altitude of the predetermined distance of photo top edge and photo, by the person's of taking pictures lower jaw to the ratio of the predetermined distance of photo lower limb and the specified altitude of photo and the quilt person's of taking pictures eyes to the photo top edge predetermined distance and the ratio of the specified altitude of photo in one.
21. photographing device according to claim 20, it is characterized in that, the width of described rectangle frame and be highly respectively a*W/ (W-2D1) and a*H/ (W-2D1), wherein W is the Rack of photo, a be being parallel to of described ellipse described rectangle frame Width the axle length, H is the specified altitude of photo, and D1 is the described predetermined distance that is clipped to photo left hand edge and right hand edge by the person's of taking pictures left and right sides cheek branch.
22. photographing device according to claim 20 is characterized in that, described rectangle frame generating means is that rectangle frame is drawn at the center according to determined width and height, with the center of described ellipse; And by along being parallel to of described ellipse described rectangle frame short transverse the described rectangle frame of axial adjustment the center and based on by predetermined distance and the ratio of the specified altitude of the photo position of determining described rectangle frame of the person's of taking pictures the crown to the ratio of the specified altitude of the predetermined distance of photo top edge and photo and the quilt person's of taking pictures eyes to the photo top edge.
23. method according to claim 22 is characterized in that, the coordinate of the short transverse at described rectangle frame center is adjusted to and satisfies following condition:
(1) for the distance of summit on the ellipse to the rectangle frame top margin, H/2-b* (W-2D1)/(2*a)+Δ y* (W-2*D1)/a<H2 sets up; And
(2) for the distance that is arrived the rectangle frame top margin by the position of the person's of taking pictures eyes, H1-h1≤H/2+ (2*c-b) * (W-2*D1)/(2*a)+Δ y* (W-2*D1)/a≤H1+h1 sets up, wherein W is the Rack of photo, a be being parallel to of described ellipse described rectangle frame Width the axle length, H is the specified altitude of photo, D1 is the described predetermined distance that is clipped to photo left hand edge and right hand edge by the person's of taking pictures left and right sides cheek branch, H2 is by the regulation maximum allowable range of the person's of taking pictures the crown to the photo top edge, b be being parallel to of described ellipse described rectangle frame short transverse the axle length, c is by the distance on summit to the described ellipse, the position of the person's of taking pictures eyes, H1-h1 and H1+h1 be respectively by regulation minimum allowable range and the regulation maximum allowable range of the person's of taking pictures eyes to the photo top edge, and Δ y represents that the coordinate of short transverse at rectangle frame center is with respect to the increment of elliptical center at the coordinate of this direction.
24. according to the described photographing device of arbitrary claim among the claim 20-23, it is characterized in that, also comprise and utilize histogrammic method to determine by the device of the position of the person's of taking pictures eyes.
25., it is characterized in that it is that frame crops the image section that is positioned at described outer rectangular frame that described Scissoring device is configured to described rectangle frame according to the described photographing device of arbitrary claim among the claim 14-16.
26., it is characterized in that according to the described photographing device of arbitrary claim among the claim 14-16, also comprise device for zooming, be used for according to the width of photo and the size of the portrait images after the height parameter adjustment cutting.
CNB2005100691852A 2005-05-12 2005-05-12 Self-taking portrait photo taking method and equipment Expired - Fee Related CN100361494C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100691852A CN100361494C (en) 2005-05-12 2005-05-12 Self-taking portrait photo taking method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100691852A CN100361494C (en) 2005-05-12 2005-05-12 Self-taking portrait photo taking method and equipment

Publications (2)

Publication Number Publication Date
CN1708093A CN1708093A (en) 2005-12-14
CN100361494C true CN100361494C (en) 2008-01-09

Family

ID=35581725

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100691852A Expired - Fee Related CN100361494C (en) 2005-05-12 2005-05-12 Self-taking portrait photo taking method and equipment

Country Status (1)

Country Link
CN (1) CN100361494C (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102036003B (en) * 2009-09-30 2012-07-18 佛山普立华科技有限公司 Digital camera system and certificate photo shooting method thereof
CN102157002B (en) * 2011-04-15 2015-10-28 北京帝测科技股份有限公司 A kind of method of repairing head chignon of Buddha statue
CN103209291A (en) * 2012-01-17 2013-07-17 百度在线网络技术(北京)有限公司 Method, apparatus and device for controlling automatic image shooting
CN103024271B (en) * 2012-12-14 2016-04-06 广东欧珀移动通信有限公司 The electronic equipment of the method for taking pictures on an electronic device and employing the method
CN105163017B (en) 2013-03-25 2019-04-19 北京字节跳动网络技术有限公司 A kind of self-timer image shows method and device
CN104361329B (en) * 2014-11-25 2018-08-24 成都品果科技有限公司 A kind of photo method of cutting out and system based on recognition of face
CN105389773B (en) * 2015-10-10 2019-01-25 沈阳东软医疗系统有限公司 A kind of image storage method and device
CN107172357B (en) * 2017-06-27 2020-03-06 西南大学 Quick digital photographing method for head template portrait positioning
WO2019071386A1 (en) * 2017-10-09 2019-04-18 深圳传音通讯有限公司 Image data processing method and device
CN117041443B (en) * 2023-10-09 2023-12-08 人力资源和社会保障部人事考试中心 Offline photo processing method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0395402A2 (en) * 1989-04-27 1990-10-31 Canon Kabushiki Kaisha Image processing system
US5794104A (en) * 1995-07-28 1998-08-11 Minolta Co., Ltd. Method and apparatus for image processing capable of generating multiple images of varying dimensions
US5805132A (en) * 1991-09-17 1998-09-08 Minolta Co., Ltd. Image editing apparatus capable of setting image processing region on display screen
US20040239686A1 (en) * 2003-05-22 2004-12-02 Casio Computer Co., Ltd. Data communications device, image transmission method and image transmission program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0395402A2 (en) * 1989-04-27 1990-10-31 Canon Kabushiki Kaisha Image processing system
US5805132A (en) * 1991-09-17 1998-09-08 Minolta Co., Ltd. Image editing apparatus capable of setting image processing region on display screen
US5794104A (en) * 1995-07-28 1998-08-11 Minolta Co., Ltd. Method and apparatus for image processing capable of generating multiple images of varying dimensions
US20040239686A1 (en) * 2003-05-22 2004-12-02 Casio Computer Co., Ltd. Data communications device, image transmission method and image transmission program

Also Published As

Publication number Publication date
CN1708093A (en) 2005-12-14

Similar Documents

Publication Publication Date Title
CN100361494C (en) Self-taking portrait photo taking method and equipment
US20180278737A1 (en) Portable Electronic Devices with Integrated Image/Video Compositing
US6259470B1 (en) Image capture system having virtual camera
CN102055834B (en) Double-camera photographing method of mobile terminal
JP6330036B2 (en) Image processing apparatus and image display apparatus
JPWO2008012905A1 (en) Authentication apparatus and authentication image display method
CN103024271B (en) The electronic equipment of the method for taking pictures on an electronic device and employing the method
US20150365545A1 (en) Picture Outputting Method and Apparatus
US20060120712A1 (en) Method and apparatus for processing image
CN104811684B (en) A kind of three-dimensional U.S. face method and device of image
JPWO2008126371A1 (en) Video composition method, video composition system
WO2014208052A1 (en) Image processing apparatus, image processing method, and program
WO2022161260A1 (en) Focusing method and apparatus, electronic device, and medium
CN113329172B (en) Shooting method and device and electronic equipment
EP4156082A1 (en) Image transformation method and apparatus
JPWO2014148031A1 (en) Image generating apparatus, imaging apparatus, and image generating method
WO2018166170A1 (en) Image processing method and device, and intelligent conferencing terminal
CN105472245A (en) Photographing method and electronic device
WO2018196854A1 (en) Photographing method, photographing apparatus and mobile terminal
CN106887024B (en) The processing method and processing system of photo
CN114697530B (en) Photographing method and device for intelligent view finding recommendation
JP2005142765A (en) Apparatus and method for imaging
WO2006111602A1 (en) A method for creating distorted portraits using camera with a wire frame overlay
CN107516339B (en) Information processing method and information processing device
CN106954060A (en) A kind of three-dimensional video-frequency generation method and auxiliary filming apparatus towards smart mobile phone

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080109

Termination date: 20120512