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

CN109840059A - Method and apparatus for displaying images - Google Patents

Method and apparatus for displaying images Download PDF

Info

Publication number
CN109840059A
CN109840059A CN201910086013.8A CN201910086013A CN109840059A CN 109840059 A CN109840059 A CN 109840059A CN 201910086013 A CN201910086013 A CN 201910086013A CN 109840059 A CN109840059 A CN 109840059A
Authority
CN
China
Prior art keywords
amplified
image
human body
body image
interface
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.)
Granted
Application number
CN201910086013.8A
Other languages
Chinese (zh)
Other versions
CN109840059B (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.)
Douyin Vision Co Ltd
Douyin Vision Beijing Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910086013.8A priority Critical patent/CN109840059B/en
Publication of CN109840059A publication Critical patent/CN109840059A/en
Application granted granted Critical
Publication of CN109840059B publication Critical patent/CN109840059B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Embodiment of the disclosure discloses method and apparatus for displaying images.One specific embodiment of this method includes: the image to be amplified for obtaining and currently showing;Human body image is determined from image to be amplified;Determine whether the size of human body image is less than pre-set dimension;It is less than pre-set dimension in response to determining, treats enlarged drawing and amplify, so that human body image reaches target size;Mobile amplified image to be amplified, so that the display position of amplified human body image reaches target position.The embodiment can be automatically tracked with simulating lens, improve the flexibility that character image is shown.

Description

Method and apparatus for displaying images
Technical field
Embodiment of the disclosure is related to field of computer technology, and in particular to method and apparatus for displaying images.
Background technique
With the development of computer technology, people can be used the terminal devices such as mobile phone, tablet computer carry out shooting photo, Shoot the various operations such as video, Video chat.When people are carried out self-timer or shot other people using these terminal devices, usually need Oneself or other people hand-held terminal devices are wanted, the mobile personage that is taken is followed, the character image of shooting is occupy in screen Centre.Or when terminal device is fixed on some position, the position of the fixed personage that is taken is needed, so that the figure for the personage that is taken Center as occuping screen.
Summary of the invention
Embodiment of the disclosure proposes method and apparatus for displaying images.
In a first aspect, embodiment of the disclosure provides a kind of method for displaying images, work as this method comprises: obtaining The image to be amplified of preceding display;Human body image is determined from image to be amplified;It is default to determine whether the size of human body image is less than Size;It is less than pre-set dimension in response to determining, treats enlarged drawing and amplify, so that human body image reaches target size;It moves Amplified image to be amplified is moved, so that the display position of amplified human body image reaches target position.
In some embodiments, human body image is determined from image to be amplified, comprising: treat enlarged drawing and carry out human body bone Bone critical point detection obtains skeleton key point information set;Based on skeleton key point information set, human figure is determined Picture.
In some embodiments, it is based on skeleton key point information set, determines human body image, comprising: is based on human body Bone key point information set is determined for characterizing the image of upper half of human body as human body image.
In some embodiments, it treats enlarged drawing to amplify, so that human body image reaches target size, comprising: ring Presupposition multiple should be reached in determining the amplification factor of amplified image to be amplified, and the size of amplified human body image is less than Pre-set dimension determines that human body image reaches target size.
In some embodiments, mobile amplified image to be amplified, so that the display position of amplified human body image Reach target position, comprising: human body central point is determined from amplified human body image;Mobile image to be amplified, so that human body Central point is mobile to the interface central point for showing the interface of image to be amplified;In response to determining in human body central point and interface Heart point is overlapped, and determines that the display position of amplified human body image reaches target position.
In some embodiments, in movement image to be amplified, so that human body central point is to for showing image to be amplified After the interface central point at interface is mobile, method further include: in response to the sideline and interface of the amplified image to be amplified of determination Sideline be overlapped, determine that the display position of amplified human body image reaches target position.
Second aspect, embodiment of the disclosure provide a kind of device for displaying images, which includes: to obtain list Member is configured to obtain the image to be amplified currently shown;First determination unit is configured to determine people from image to be amplified Body image;Whether the second determination unit, the size for being configured to determine human body image are less than pre-set dimension;Amplifying unit is matched It is set to and is less than pre-set dimension in response to determining, treat enlarged drawing and amplify, so that human body image reaches target size;It is mobile Unit is configured to move amplified image to be amplified, so that the display position of amplified human body image reaches target position It sets.
In some embodiments, the first determination unit includes: detection module, is configured to treat enlarged drawing and carries out human body Bone critical point detection obtains skeleton key point information set;First determining module is configured to close based on skeleton Key point information aggregate, determines human body image.
In some embodiments, the first determining module is further configured to: it is based on skeleton key point information set, It determines for characterizing the image of upper half of human body as human body image.
In some embodiments, amplifying unit is further configured to: in response to the amplified image to be amplified of determination Amplification factor reaches presupposition multiple, and the size of amplified human body image is less than pre-set dimension, determines that human body image reaches mesh Dimensioning.
In some embodiments, mobile unit includes: the second determining module, is configured to from amplified human body image Determine human body central point;Mobile module is configured to move image to be amplified, so that human body central point is to be amplified to being used to show The interface central point at the interface of image is mobile;Third determining module is configured in response to determine in human body central point and interface Heart point is overlapped, and determines that the display position of amplified human body image reaches target position.
In some embodiments, mobile unit further include: the 4th determining module is configured in response to determine amplified The sideline of image to be amplified is overlapped with the sideline at interface, determines that the display position of amplified human body image reaches target position.
The third aspect, embodiment of the disclosure provide a kind of terminal device, which includes: one or more places Manage device;Storage device is stored thereon with one or more programs;When one or more programs are held by one or more processors Row, so that one or more processors realize the method as described in implementation any in first aspect.
Fourth aspect, embodiment of the disclosure provide a kind of computer-readable medium, are stored thereon with computer program, The method as described in implementation any in first aspect is realized when the computer program is executed by processor.
The method and apparatus for displaying images that embodiment of the disclosure provides currently are shown to be amplified by acquisition Image, then human body image is determined from image to be amplified, if the size of human body image is less than pre-set dimension, treat enlarged drawing It amplifies, so that human body image reaches target size, amplified image to be amplified is finally moved, so that amplified human body The display position of image reaches target position, so as to realize in the case where not follow shot equipment, keeps human body image real When be moved to the target position on screen, automatically tracked so as to simulating lens, improve character image show it is flexible Property.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the disclosure is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the disclosure can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart of one embodiment of method for displaying images according to an embodiment of the present disclosure;
Fig. 3 is the schematic diagram of an application scenarios of method for displaying images according to an embodiment of the present disclosure;
Fig. 4 is the flow chart of another embodiment of method for displaying images according to an embodiment of the present disclosure;
Fig. 5 is the structural schematic diagram of one embodiment of device for displaying images according to an embodiment of the present disclosure;
Fig. 6 is adapted for the structural schematic diagram for realizing the terminal device of embodiment of the disclosure.
Specific embodiment
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining that correlation is open, rather than the restriction to the disclosure.It also should be noted that in order to Convenient for description, is illustrated only in attached drawing and disclose relevant part to related.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the disclosure can phase Mutually combination.The disclosure is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the method for displaying images that can apply embodiment of the disclosure or dress for displaying images The exemplary system architecture 100 set.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shooting class, view can be installed on terminal device 101,102,103 The application of frequency broadcast message class, social platform software etc..
Terminal device 101,102,103 can be hardware, be also possible to software.When terminal device 101,102,103 is hard When part, it can be the various electronic equipments with display screen.When terminal device 101,102,103 is software, may be mounted at In above-mentioned electronic equipment.Its may be implemented into multiple softwares or software module (such as provide the software of Distributed Services or Software module), single software or software module also may be implemented into.It is not specifically limited herein.
Server 105 can be to provide the server of various services, such as to 101,102,103 photographs of terminal device Image or video provide the background server supported.Background server can receive the image or video of terminal device transmission, or Person sends image or video to terminal device.
It should be noted that method for displaying images provided by embodiment of the disclosure is generally by terminal device 101, it 102,103 executes, correspondingly, device for displaying images is generally positioned in terminal device 101,102,103.
It should be noted that server can be hardware, it is also possible to software.When server is hardware, may be implemented At the distributed server cluster that multiple servers form, individual server also may be implemented into.It, can when server is software To be implemented as multiple softwares or software module (such as providing the software of Distributed Services or software module), also may be implemented At single software or software module.It is not specifically limited herein.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.It does not need in image to be amplified from long-range the case where obtaining Under, above system framework can not include server and network.
With continued reference to Fig. 2, the process of one embodiment of the method for displaying images according to the disclosure is shown 200.The method for displaying images, comprising the following steps:
Step 201, the image to be amplified currently shown is obtained.
In the present embodiment, the executing subject (such as terminal device shown in FIG. 1) of method for displaying images can be with Obtain the image to be amplified currently shown.Wherein, image to be amplified can be shows on the screen that above-mentioned executing subject includes Image, be also possible to the image shown on other electronic equipments communicated to connect with above-mentioned executing subject.
As an example, above-mentioned executing subject can be smart phone, user can be used the smart phone and carry out self-timer.To When enlarged drawing can be user's self-timer, the image that is currently shown on the screen of the smart phone.
Step 202, human body image is determined from image to be amplified.
In the present embodiment, above-mentioned executing subject can determine human body image from above-mentioned image to be amplified.Specifically, make For example, above-mentioned executing subject can use existing human body image detection method, and human body image is determined from image to be amplified. For example, existing target detection model inspection human body image can be used using human body image as detection target.Above-mentioned target inspection Survey model can be based on existing target detection network (such as SSD (Single Shot MultiBox Detector), DPM (Deformable Part Model) etc.) establish model.Target detection model can be from inputting in image therein, really Set the goal the position of image (such as human body image).In general, target detection model can be with output coordinate information, which can With the position for characterizing the human body image in image to be amplified.For example, coordinate information may include two for characterizing rectangle frame Diagonal coordinate can determine a rectangular area by two diagonal coordinates in image to be amplified, the rectangular area institute The image of covering is human body image.
In some optional implementations of the present embodiment, above-mentioned executing subject can be in accordance with the following steps to be amplified Human body image is determined in image:
Firstly, treating enlarged drawing carries out skeleton critical point detection, skeleton key point information set is obtained.Its In, skeleton key point information is used to indicate skeleton key point.Skeleton key point is the spy for characterizing human body Determine the point at position, such as the point for characterizing the positions such as the crown, elbow joint, shoulder joint.Skeleton key point information can wrap The coordinate in the coordinate system established on image to be amplified is included, which can be used for characterizing skeleton key point to be amplified Position in image.
In the present embodiment, above-mentioned executing subject can be according to the method pair of existing various determining skeleton key points Image to be amplified carries out skeleton critical point detection.For example, image to be amplified can be inputted instruction in advance by above-mentioned executing subject Experienced convolutional neural networks (Convolutional Neural Networks, CNN), obtain skeleton key point information collection It closes.Above-mentioned convolutional neural networks can be the convolutional neural networks of existing various structures, such as R-CNN (Region-CNN), STN (Spatial Transform Networks, spatial alternation network) etc..It should be noted that above-mentioned skeleton is crucial Point detecting method is the well-known technique studied and applied extensively at present, and details are not described herein.
Then, it is based on skeleton key point information set, determines human body image.Specifically, as an example, above-mentioned execution Main body can be from image to be amplified, by the skeleton key point characterized respectively including each skeleton key point information Image indicated by minimum rectangle is determined as human body image.
In some optional implementations of the present embodiment, above-mentioned executing subject can be believed based on skeleton key point Breath set, determines for characterizing the image of upper half of human body as human body image.Specifically, as an example, each skeleton Key point information has corresponding serial number, and serial number, which can be, is detecting skeleton key point information collection by above-mentioned executing subject When conjunction, what the corresponding human body of skeleton key point indicated according to each skeleton key point information determined.Technology Personnel can preset the serial number of the skeleton key point information for characterizing upper half of human body, and above-mentioned executing subject can be with It will include the corresponding skeleton key point information of these serial numbers from image to be amplified according to pre-set serial number Rectangular area (such as the region that minimum rectangle includes, or on the basis of minimum rectangle of indicated skeleton key point The region that the upper amplification obtained rectangle of presupposition multiple includes) it is determined as human body image.For example, the human body of characterization upper half of human body Bone key point information includes: the skeleton key message for being used to indicate the crown, the human body bone for being used to indicate two shoulder joint Bone key message, the skeleton key message for being used to indicate two hip joints.Above-mentioned executing subject can be according to these human bodies The serial number of bone key message determines to include human body bone indicated by the corresponding skeleton key point information of these serial numbers The rectangular area of bone key point is as human body image.
Step 203, determine whether the size of human body image is less than pre-set dimension.
In the present embodiment, above-mentioned executing subject can determine whether the size of human body image is less than pre-set dimension.Wherein, The size of image is usually characterized with pixel number, such as x × y, wherein x is horizontal pixel number, and y is longitudinal pixel number.It is above-mentioned pre- If size can be preset fixed dimension;Alternatively, above-mentioned pre-set dimension can be the size according to preset ratio-dependent, example Such as, it is assumed that for showing that the size at the interface of above-mentioned image to be amplified is m × n, preset ratio is 0.8, then pre-set dimension is 0.8m×0.8n.It should be noted that it is pre- can to determine that the size of human body image is less than when meeting at least one of following condition If size: the horizontal pixel number of human body image is less than the horizontal pixel number of pre-set dimension, and longitudinal pixel number of human body image is less than Longitudinal pixel number of pre-set dimension, the pixel number that the diagonal line of human body image includes are less than the diagonal of the rectangle of pre-set dimension characterization The pixel number that line includes.It should be appreciated that above-mentioned condition is only exemplary, it can also include other conditions in practice.
Step 204, it is less than pre-set dimension in response to determining, treats enlarged drawing and amplify, so that human body image reaches Target size.
In the present embodiment, above-mentioned executing subject can be less than pre-set dimension in response to determining the size of human body image, right Image to be amplified amplifies, so that human body image reaches target size.
Wherein, target size can be equal to above-mentioned pre-set dimension, or the ruler determined based on default amplification factor It is very little.Above-mentioned executing subject can amplify above-mentioned image to be amplified, so that human body image therein is amplified to target size. It should be noted that, when meeting at least one of following condition, determining human body during treating enlarged drawing and amplifying Image reaches target size: the horizontal pixel number of human body image and the horizontal pixel number of target size are identical, and human body image is indulged Identical as longitudinal pixel number of target size to pixel number, the pixel number and target size that the diagonal line of human body image includes characterize Rectangle the diagonal line pixel number that includes it is identical.It, can be in practice it should be appreciated that above-mentioned condition is only exemplary Including other conditions.
In some optional implementations of the present embodiment, above-mentioned executing subject can in response to determination it is amplified to The amplification factor of enlarged drawing reaches presupposition multiple, and the size of amplified human body image is less than pre-set dimension, determines human body Image reaches target size.In general, maximum can be amplified to presupposition multiple when treating enlarged drawing and amplifying.For example, default Multiple can be when shooting image, the maximum amplification of camera.When image to be amplified is amplified to presupposition multiple, if Human body image is still less than above-mentioned pre-set dimension at this time, it is determined that human body image reaches target size, i.e., human body image at this time Size is target size.By the way that presupposition multiple is arranged, it can reduce in the lesser situation of size of human body image, cause to put The degree that the clarity of human body image after big reduces.
Step 205, mobile amplified image to be amplified, so that the display position of amplified human body image reaches target Position.
In the present embodiment, above-mentioned executing subject can move amplified image to be amplified, so that amplified human body The display position of image reaches target position.
Specifically, above-mentioned target position can be the position being set in advance in the interface for showing image to be amplified. For example, target position can be a preset region in above-mentioned interface, above-mentioned executing subject can move it is amplified to Enlarged drawing determines the display position of amplified human body image so that amplified human body image is in the region at this time Reach target position.Alternatively, target position can be the whole region at above-mentioned interface, when amplified human body image is in the boundary When in face, determine that the display position of amplified human body image reaches target position.It should be noted that when above-mentioned amplified The all or part (such as half or other ratios of the area of amplified human body image) of human body image is in target position When the region of instruction, it can determine that the display position of amplified human body image reaches target position.
With continued reference to the signal that Fig. 3, Fig. 3 are according to the application scenarios of the method for displaying images of the present embodiment Figure.In the application scenarios of Fig. 3, terminal device 301 obtains the image to be amplified 302 currently shown on the screen first.Then, Terminal device 301 determines human body image 303 from image 302 to be amplified.For example, terminal device 301 is by treating enlarged drawing Skeleton critical point detection is carried out, the rectangular area including each skeleton key point is determined as human body image 303.Again Then, terminal device 301 determine human body image 303 size be less than pre-set dimension (such as shape be rectangle human body image 303 Longitudinal pixel number be less than pre-set dimension longitudinal pixel number), treat enlarged drawing 302 and amplify (the dotted line frame in figure 304 be the sideline of amplified image to be amplified) so that human body image 303 reaches target size, wherein target size can be with It is identical as pre-set dimension.Human body image 303 is amplified to the longitudinal direction that its longitudinal pixel number is equal to target size by terminal device 301 When pixel number, determine that amplified human body image reaches target size.Finally, the mobile amplified figure to be amplified of terminal device Amplified human body image is moved to the center (i.e. target position) of screen by picture.
The method provided by the above embodiment of the disclosure, by obtaining the image to be amplified that currently shows, then to be amplified Human body image is determined in image, if the size of human body image is less than pre-set dimension, is treated enlarged drawing and is amplified, to make one Body image reaches target size, finally moves amplified image to be amplified, so that the display position of amplified human body image Reach target position, so as to realize in the case where not follow shot equipment, human body image is made to be moved to screen in real time On target position, automatically tracked so as to simulating lens, improve the flexibility that character image is shown.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of method for displaying images.The use In the process 400 of the method for display image, comprising the following steps:
Step 401, the image to be amplified currently shown is obtained.
In the present embodiment, step 401 and the step 201 in Fig. 2 corresponding embodiment are almost the same, and which is not described herein again.
Step 402, human body image is determined from image to be amplified.
In the present embodiment, step 402 and the step 202 in Fig. 2 corresponding embodiment are almost the same, and which is not described herein again.
Step 403, determine whether the size of human body image is less than pre-set dimension.
In the present embodiment, step 403 and the step 203 in Fig. 2 corresponding embodiment are almost the same, and which is not described herein again.
Step 404, it is less than pre-set dimension in response to determining, treats enlarged drawing and amplify, so that human body image reaches Target size.
In the present embodiment, step 404 and the step 204 in Fig. 2 corresponding embodiment are almost the same, and which is not described herein again.
Step 405, human body central point is determined from amplified human body image.
In the present embodiment, the executing subject (such as terminal device shown in FIG. 1) of method for displaying images can be with Human body central point is determined from amplified human body image.Specifically, the shape of human body image can be rectangle, in the rectangle Heart point can be determined that human body central point.
It optionally, can be according to pre- when human body image is determined according to skeleton key point information set First skeleton key point indicated by specified skeleton key point information, determines human body central point.For example, people will be characterized The midpoint of the line of the skeleton key point of the shoulder joint of body is determined as human body central point.Alternatively, two shoulder joint will be characterized It is determined as human body central point with cornerwise intersection point of the quadrangle of two hip joints composition.
Step 406, mobile image to be amplified, so that human body central point is to the interface for showing the interface of image to be amplified Central point is mobile.
In the present embodiment, above-mentioned executing subject can move image to be amplified, so that human body central point is to for showing The interface central point at the interface of image to be amplified is mobile.Wherein, above-mentioned interface is generally rectangular in shape, the central point of the rectangle As interface central point.
Step 407, in response to determining that human body central point is overlapped with interface central point, the aobvious of amplified human body image is determined Show that position reaches target position.
In the present embodiment, above-mentioned executing subject can be in response to determining that human body central point is overlapped with interface central point, really The display position of fixed amplified human body image reaches target position.Specifically, when above-mentioned human body central point and interface central point The distance between be less than or equal to preset distance threshold when, determine that human body central point is overlapped with interface central point, at this time amplification after The display position of human body image reach target position so that amplified human body image occupy the center at above-mentioned interface.
In some optional implementations of the present embodiment, after step 407, above-mentioned executing subject can also be responded It is overlapped in the sideline for determining amplified image to be amplified with the sideline at interface, determines the display position of amplified human body image Reach target position.Specifically, amplified wait put when the sideline of amplified image to be amplified is overlapped with the sideline at interface Big image can not be further continued for moving, at this point, determining that the display position of amplified human body image reaches target position.
Figure 4, it is seen that the method for displaying images compared with the corresponding embodiment of Fig. 2, in the present embodiment Process 400 highlight according to human body central point, by amplified human body image to the interface for being used to show image to be amplified The mobile step in center.The scheme of the present embodiment description can make amplified human body image in above-mentioned interface as a result, The heart is shown, so that more accurately simulating lens automatically track, further increases the flexibility that character image is shown.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, present disclose provides one kind for showing figure One embodiment of the device of picture, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer For in various electronic equipments.
As shown in figure 5, the device for displaying images 500 of the present embodiment includes: acquiring unit 501, it is configured to obtain Take the image to be amplified currently shown;First determination unit 502 is configured to determine human body image from image to be amplified;The Whether two determination units 503, the size for being configured to determine human body image are less than pre-set dimension;Amplifying unit 504, is configured to It is less than pre-set dimension in response to determining, treats enlarged drawing and amplify, so that human body image reaches target size;Mobile unit 505, it is configured to move amplified image to be amplified, so that the display position of amplified human body image reaches target position It sets.
In the present embodiment, the available image to be amplified currently shown of acquiring unit 501.Wherein, image to be amplified Can be the image shown on the screen that above-mentioned apparatus 500 includes, be also possible to communicate to connect with above-mentioned apparatus 500 its The image that he shows on electronic equipment.
In the present embodiment, the first determination unit 502 can determine human body image from above-mentioned image to be amplified.Specifically Ground, as an example, above-mentioned first determination unit 502 can use existing human body image detection method, from image to be amplified Determine human body image.For example, existing target detection model inspection human figure can be used using human body image as detection target Picture.Above-mentioned target detection model can be based on existing target detection network (such as SSD (Single Shot MultiBox Detector), DPM (Deformable Part Model) etc.) establish model.Target detection model can be from input wherein Image in, determine the position of target image (such as human body image).In general, target detection model can with output coordinate information, The coordinate information can be used for characterizing the position of the human body image in image to be amplified.For example, coordinate information may include characterization Two diagonal coordinates of rectangle frame can determine a rectangular area by two diagonal coordinates in image to be amplified, The image that the rectangular area is covered is human body image.
In the present embodiment, the second determination unit 503 can determine whether the size of human body image is less than pre-set dimension.Its In, the size of image is usually characterized with pixel number, such as x × y, wherein x is horizontal pixel number, and y is longitudinal pixel number.It is above-mentioned Pre-set dimension can be preset fixed dimension;Alternatively, above-mentioned pre-set dimension can be the size according to preset ratio-dependent, For example, it is assumed that the size at the interface for showing above-mentioned image to be amplified is m × n, preset ratio is 0.8, then pre-set dimension For 0.8m × 0.8n.It should be noted that can determine that the size of human body image is less than when meeting at least one of following condition Pre-set dimension: the horizontal pixel number of human body image is less than the horizontal pixel number of pre-set dimension, and longitudinal pixel number of human body image is small In longitudinal pixel number of pre-set dimension, the pixel number that the diagonal line of human body image includes is less than pair of the rectangle of pre-set dimension characterization The pixel number that linea angulata includes.It should be appreciated that above-mentioned condition is only exemplary, it can also include other conditions in practice.
In the present embodiment, amplifying unit 504 can be less than pre-set dimension in response to determining the size of human body image, treat Enlarged drawing amplifies, so that human body image reaches target size.
Wherein, target size can be equal to above-mentioned pre-set dimension, or the ruler determined based on default amplification factor It is very little.Above-mentioned amplifying unit 504 can amplify above-mentioned image to be amplified, so that human body image therein is amplified to target ruler It is very little.It should be noted that, when meeting at least one of following condition, being determined during treating enlarged drawing and amplifying Human body image reaches target size: the horizontal pixel number of human body image and the horizontal pixel number of target size are identical, human body image Longitudinal pixel number it is identical as longitudinal pixel number of target size, the pixel number and target size that the diagonal line of human body image includes The pixel number that the diagonal line of the rectangle of characterization includes is identical.It should be appreciated that above-mentioned condition is only exemplary, in practice, also It may include other conditions.
In the present embodiment, mobile unit 505 can move amplified image to be amplified, so that amplified human figure The display position of picture reaches target position.
Specifically, above-mentioned target position can be the position being set in advance in the interface for showing image to be amplified. For example, target position can be a preset region in above-mentioned interface, above-mentioned mobile unit 505 can move amplified Image to be amplified determines the display position of amplified human body image so that amplified human body image is in the region at this time It sets and reaches target position.Alternatively, target position can be the whole region at above-mentioned interface, it is somebody's turn to do when amplified human body image is in When in interface, determine that the display position of amplified human body image reaches target position.It should be noted that after above-mentioned amplification The all or part (such as half or other ratios of the area of amplified human body image) of human body image be in target position When setting the region of instruction, it can determine that the display position of amplified human body image reaches target position.
In some optional implementations of the present embodiment, the first determination unit 502 may include: detection module (figure In be not shown), be configured to treat enlarged drawing carry out skeleton critical point detection, obtain skeleton key point information collection It closes;First determining module (not shown) is configured to determine human body image based on skeleton key point information set.
In some optional implementations of the present embodiment, the first determining module can be further configured to: be based on Skeleton key point information set is determined for characterizing the image of upper half of human body as human body image.
In some optional implementations of the present embodiment, amplifying unit 504 can be further configured to: in response to Determine that the amplification factor of amplified image to be amplified reaches presupposition multiple, and the size of amplified human body image is less than default Size determines that human body image reaches target size.
In some optional implementations of the present embodiment, mobile unit 505 may include: the second determining module (figure In be not shown), be configured to from amplified human body image determine human body central point;Mobile module, be configured to it is mobile to Enlarged drawing, so that human body central point is mobile to the interface central point for showing the interface of image to be amplified;Third determines mould Block (not shown) is configured in response to determine that human body central point is overlapped with interface central point, determines amplified human body The display position of image reaches target position.
In some optional implementations of the present embodiment, mobile unit 505 can also include: the 4th determining module (not shown) is configured in response to determine that the sideline of amplified image to be amplified is overlapped with the sideline at interface, determines The display position of amplified human body image reaches target position
The device provided by the above embodiment of the disclosure, by obtaining the image to be amplified that currently shows, then to be amplified Human body image is determined in image, if the size of human body image is less than pre-set dimension, is treated enlarged drawing and is amplified, to make one Body image reaches target size, finally moves amplified image to be amplified, so that the display position of amplified human body image Reach target position, so as to realize in the case where not follow shot equipment, human body image is made to be moved to screen in real time On target position, automatically tracked so as to simulating lens, improve the flexibility that character image is shown.
Below with reference to Fig. 6, it illustrates the structural representations for the terminal device 600 for being suitable for being used to realize embodiment of the disclosure Figure.Terminal device in embodiment of the disclosure can include but is not limited to such as mobile phone, laptop, digital broadcasting Receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as Vehicle mounted guidance terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Shown in Fig. 6 Terminal device is only an example, should not function to embodiment of the disclosure and use scope bring any restrictions.
As shown in fig. 6, terminal device 600 may include processing unit (such as central processing unit, graphics processor etc.) 601, random access can be loaded into according to the program being stored in read-only memory (ROM) 602 or from storage device 608 Program in memory (RAM) 603 and execute various movements appropriate and processing.In RAM 603, it is also stored with terminal device Various programs and data needed for 600 operations.Processing unit 601, ROM 602 and RAM 603 pass through the phase each other of bus 604 Even.Input/output (I/O) interface 605 is also connected to bus 604.
In general, following device can connect to I/O interface 605: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 606 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 607 of dynamic device etc.;Storage device 608 including such as memory etc.;And communication device 609.Communication device 609 It can permit terminal device 600 and wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 6, which is shown, to be had respectively The terminal device 600 of kind device, it should be understood that being not required for implementing or having all devices shown.It can substitute Implement or have more or fewer devices in ground.Each box shown in Fig. 6 can represent a device, can also be according to need Represent multiple devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 609, or from storage device 608 It is mounted, or is mounted from ROM 602.When the computer program is executed by processing unit 601, the implementation of the disclosure is executed The above-mentioned function of being limited in the method for example.It should be noted that computer-readable medium described in embodiment of the disclosure can be with It is computer-readable signal media or computer-readable medium either the two any combination.Computer-readable medium Such as may be-but not limited to-system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or Any above combination.The more specific example of computer-readable medium can include but is not limited to: lead with one or more The electrical connection of line, portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), optical memory Part, magnetic memory device or above-mentioned any appropriate combination.
In embodiment of the disclosure, computer-readable medium can be any tangible medium for including or store program, The program can be commanded execution system, device or device use or in connection.And in embodiment of the disclosure In, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, wherein holding Computer-readable program code is carried.The data-signal of this propagation can take various forms, including but not limited to electromagnetism Signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable medium with Outer any computer-readable medium, the computer-readable signal media can be sent, propagated or transmitted for being held by instruction Row system, device or device use or program in connection.The program code for including on computer-readable medium It can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. or above-mentioned any conjunction Suitable combination.
Above-mentioned computer-readable medium can be included in above-mentioned terminal device;It is also possible to individualism, and not It is fitted into the terminal device.Above-mentioned computer-readable medium carries one or more program, when said one or more When a program is executed by the terminal device, so that the terminal device: obtaining the image to be amplified currently shown;From image to be amplified Middle determining human body image;Determine whether the size of human body image is less than pre-set dimension;It is less than pre-set dimension in response to determining, treats Enlarged drawing amplifies, so that human body image reaches target size;Mobile amplified image to be amplified, so that amplified The display position of human body image reaches target position.
The behaviour for executing embodiment of the disclosure can be write with one or more programming languages or combinations thereof The computer program code of work, described program design language include object oriented program language-such as Java, Smalltalk, C++ further include conventional procedural programming language-such as " C " language or similar program design language Speech.Program code can be executed fully on the user computer, partly be executed on the user computer, as an independence Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as It is connected using ISP by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in embodiment of the disclosure can be realized by way of software, can also be passed through The mode of hardware is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor Including acquiring unit, the first determination unit, the second determination unit, amplifying unit and mobile unit.Wherein, the title of these units The restriction to the unit itself is not constituted under certain conditions, for example, acquiring unit is also described as " obtaining current aobvious The unit of the image to be amplified shown ".
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art Member it should be appreciated that embodiment of the disclosure involved in invention scope, however it is not limited to the specific combination of above-mentioned technical characteristic and At technical solution, while should also cover do not depart from foregoing invention design in the case where, by above-mentioned technical characteristic or its be equal Feature carries out any combination and other technical solutions for being formed.Such as disclosed in features described above and embodiment of the disclosure (but It is not limited to) technical characteristic with similar functions is replaced mutually and the technical solution that is formed.

Claims (14)

1. a kind of method for displaying images, comprising:
Obtain the image to be amplified currently shown;
Human body image is determined from the image to be amplified;
Determine whether the size of the human body image is less than pre-set dimension;
It is less than pre-set dimension in response to determining, the image to be amplified is amplified, so that the human body image reaches target Size;
The mobile amplified image to be amplified, so that the display position of amplified human body image reaches target position.
2. described to determine human body image from the image to be amplified according to the method described in claim 1, wherein, comprising:
Skeleton critical point detection is carried out to the image to be amplified, obtains skeleton key point information set;
Based on the skeleton key point information set, human body image is determined.
3. it is described to be based on the skeleton key point information set according to the method described in claim 2, wherein, determine people Body image, comprising:
Based on the skeleton key point information set, determine for characterizing the image of upper half of human body as human body image.
4. it is described that the image to be amplified is amplified according to the method described in claim 1, wherein, so that the human body Image reaches target size, comprising:
Reach presupposition multiple, and the ruler of amplified human body image in response to the amplification factor of the amplified image to be amplified of determination It is very little to be less than pre-set dimension, determine that the human body image reaches target size.
5. method described in one of -4 according to claim 1, wherein the movement amplified image to be amplified, so that The display position of amplified human body image reaches target position, comprising:
Human body central point is determined from the amplified human body image;
The mobile image to be amplified, so that the human body central point is to the interface for showing the interface of the image to be amplified Central point is mobile;
It is overlapped in response to the determination human body central point with the interface central point, determines the aobvious of the amplified human body image Show that position reaches target position.
6. according to the method described in claim 5, wherein, in the movement image to be amplified, so that the human body center It puts to after the interface central point movement for showing the interface of the image to be amplified, the method also includes:
It is overlapped in response to the sideline of the determination amplified image to be amplified with the sideline at the interface, after determining the amplification The display position of human body image reach target position.
7. a kind of device for displaying images, comprising:
Acquiring unit is configured to obtain the image to be amplified currently shown;
First determination unit is configured to determine human body image from the image to be amplified;
Whether the second determination unit, the size for being configured to determine the human body image are less than pre-set dimension;
Amplifying unit is configured in response to determine less than pre-set dimension, amplify to the image to be amplified, so that described Human body image reaches target size;
Mobile unit is configured to move the amplified image to be amplified, so that the display position of amplified human body image It sets and reaches target position.
8. device according to claim 7, wherein first determination unit includes:
Detection module is configured to carry out skeleton critical point detection to the image to be amplified, obtains skeleton key Point information aggregate;
First determining module is configured to determine human body image based on the skeleton key point information set.
9. device according to claim 8, wherein first determining module is further configured to:
Based on the skeleton key point information set, determine for characterizing the image of upper half of human body as human body image.
10. device according to claim 7, wherein the amplifying unit is further configured to:
Reach presupposition multiple, and the ruler of amplified human body image in response to the amplification factor of the amplified image to be amplified of determination It is very little to be less than pre-set dimension, determine that the human body image reaches target size.
11. the device according to one of claim 7-10, wherein the mobile unit includes:
Second determining module is configured to determine human body central point from the amplified human body image;
Mobile module is configured to move the image to be amplified, so that the human body central point is described wait put to being used to show The interface central point at the interface of big image is mobile;
Third determining module is configured in response to determine that the human body central point is overlapped with the interface central point, determines institute The display position for stating amplified human body image reaches target position.
12. device according to claim 11, wherein the mobile unit further include:
4th determining module is configured in response to determine the side in the sideline of the amplified image to be amplified and the interface Line is overlapped, and determines that the display position of the amplified human body image reaches target position.
13. a kind of terminal device, comprising:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 6.
14. a kind of computer-readable medium, is stored thereon with computer program, wherein the realization when program is executed by processor Such as method as claimed in any one of claims 1 to 6.
CN201910086013.8A 2019-01-29 2019-01-29 Method and apparatus for displaying image Active CN109840059B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910086013.8A CN109840059B (en) 2019-01-29 2019-01-29 Method and apparatus for displaying image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910086013.8A CN109840059B (en) 2019-01-29 2019-01-29 Method and apparatus for displaying image

Publications (2)

Publication Number Publication Date
CN109840059A true CN109840059A (en) 2019-06-04
CN109840059B CN109840059B (en) 2020-05-15

Family

ID=66884316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910086013.8A Active CN109840059B (en) 2019-01-29 2019-01-29 Method and apparatus for displaying image

Country Status (1)

Country Link
CN (1) CN109840059B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110555798A (en) * 2019-08-26 2019-12-10 北京字节跳动网络技术有限公司 Image deformation method and device, electronic equipment and computer readable storage medium
CN111240780A (en) * 2020-01-06 2020-06-05 北京奇艺世纪科技有限公司 Image display method, image display device, display terminal and readable storage medium
CN112258393A (en) * 2020-10-26 2021-01-22 珠海格力电器股份有限公司 Method, device and equipment for displaying picture

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812492A (en) * 2004-03-31 2006-08-02 富士胶片株式会社 Digital still camera, image reproducing apparatus, face image display apparatus, and methods of controlling same
CN101626450A (en) * 2008-07-11 2010-01-13 鸿富锦精密工业(深圳)有限公司 Display device and image enlargement method thereof
CN102395994A (en) * 2010-03-18 2012-03-28 松下电器产业株式会社 Omnidirectional image processing device and omnidirectional image processing method
CN102932598A (en) * 2012-11-06 2013-02-13 苏州科达科技股份有限公司 Method for intelligently tracking image on screen by camera
CN104216624A (en) * 2013-05-30 2014-12-17 联想(北京)有限公司 Display method and electronic device
US20150254856A1 (en) * 2014-03-04 2015-09-10 Samsung Electronics Co., Ltd. Smart moving object capture methods, devices and digital imaging systems including the same
CN104915109A (en) * 2014-03-11 2015-09-16 欧姆龙株式会社 Image display apparatus and image display method
CN105516591A (en) * 2015-12-11 2016-04-20 小米科技有限责任公司 Method and apparatus for photographing control of mobile terminal, and mobile terminal
CN106534590A (en) * 2016-12-27 2017-03-22 努比亚技术有限公司 Photo processing method and apparatus, and terminal
US20170180807A1 (en) * 2015-12-18 2017-06-22 Le Holdings (Beijing) Co., Ltd. Method and electronic device for amplifying video image
CN107909540A (en) * 2017-10-26 2018-04-13 深圳天珑无线科技有限公司 Image processing method, device, mobile terminal and computer-readable recording medium
CN108182031A (en) * 2017-12-28 2018-06-19 努比亚技术有限公司 A kind of photographic method, terminal and computer readable storage medium
CN108629824A (en) * 2018-04-28 2018-10-09 北京京东金融科技控股有限公司 Image generating method, device, electronic equipment and computer-readable medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812492A (en) * 2004-03-31 2006-08-02 富士胶片株式会社 Digital still camera, image reproducing apparatus, face image display apparatus, and methods of controlling same
CN101626450A (en) * 2008-07-11 2010-01-13 鸿富锦精密工业(深圳)有限公司 Display device and image enlargement method thereof
CN102395994A (en) * 2010-03-18 2012-03-28 松下电器产业株式会社 Omnidirectional image processing device and omnidirectional image processing method
CN102932598A (en) * 2012-11-06 2013-02-13 苏州科达科技股份有限公司 Method for intelligently tracking image on screen by camera
CN104216624A (en) * 2013-05-30 2014-12-17 联想(北京)有限公司 Display method and electronic device
US20150254856A1 (en) * 2014-03-04 2015-09-10 Samsung Electronics Co., Ltd. Smart moving object capture methods, devices and digital imaging systems including the same
CN104915109A (en) * 2014-03-11 2015-09-16 欧姆龙株式会社 Image display apparatus and image display method
CN105516591A (en) * 2015-12-11 2016-04-20 小米科技有限责任公司 Method and apparatus for photographing control of mobile terminal, and mobile terminal
US20170180807A1 (en) * 2015-12-18 2017-06-22 Le Holdings (Beijing) Co., Ltd. Method and electronic device for amplifying video image
CN106534590A (en) * 2016-12-27 2017-03-22 努比亚技术有限公司 Photo processing method and apparatus, and terminal
CN107909540A (en) * 2017-10-26 2018-04-13 深圳天珑无线科技有限公司 Image processing method, device, mobile terminal and computer-readable recording medium
CN108182031A (en) * 2017-12-28 2018-06-19 努比亚技术有限公司 A kind of photographic method, terminal and computer readable storage medium
CN108629824A (en) * 2018-04-28 2018-10-09 北京京东金融科技控股有限公司 Image generating method, device, electronic equipment and computer-readable medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110555798A (en) * 2019-08-26 2019-12-10 北京字节跳动网络技术有限公司 Image deformation method and device, electronic equipment and computer readable storage medium
CN110555798B (en) * 2019-08-26 2023-10-17 北京字节跳动网络技术有限公司 Image deformation method, device, electronic equipment and computer readable storage medium
CN111240780A (en) * 2020-01-06 2020-06-05 北京奇艺世纪科技有限公司 Image display method, image display device, display terminal and readable storage medium
CN112258393A (en) * 2020-10-26 2021-01-22 珠海格力电器股份有限公司 Method, device and equipment for displaying picture

Also Published As

Publication number Publication date
CN109840059B (en) 2020-05-15

Similar Documents

Publication Publication Date Title
CN109246360B (en) Prompting method and mobile terminal
CN110110787A (en) Location acquiring method, device, computer equipment and the storage medium of target
CN109840059A (en) Method and apparatus for displaying images
CN108492364A (en) The method and apparatus for generating model for generating image
CN110516678B (en) Image processing method and device
CN109754464A (en) Method and apparatus for generating information
CN109803165A (en) Method, apparatus, terminal and the storage medium of video processing
CN110059624B (en) Method and apparatus for detecting living body
CN110059623B (en) Method and apparatus for generating information
CN109683710B (en) A kind of palm normal vector determines method, apparatus, equipment and storage medium
US20220358662A1 (en) Image generation method and device
CN109828741A (en) Method and apparatus for playing audio
CN110111241A (en) Method and apparatus for generating dynamic image
WO2023151558A1 (en) Method and apparatus for displaying images, and electronic device
CN110110666A (en) Object detection method and device
CN112767288A (en) Image processing method and device, electronic equipment and storage medium
CN112270242B (en) Track display method and device, readable medium and electronic equipment
CN111586295B (en) Image generation method and device and electronic equipment
CN110189364B (en) Method and device for generating information, and target tracking method and device
CN112767541A (en) Three-dimensional reconstruction method and device, electronic equipment and storage medium
CN112257594A (en) Multimedia data display method and device, computer equipment and storage medium
CN110084306A (en) Method and apparatus for generating dynamic image
CN116360661A (en) Special effect processing method and device, electronic equipment and storage medium
CN109816791A (en) Method and apparatus for generating information
CN113238652B (en) Sight line estimation method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder