Method, device, electronic device and computer-readable storage medium for displaying an object
The object display method allows users to easily generate dynamic video effects by identifying and combining virtual objects in real-time, addressing the challenge of fixed post-production special effects in creative self-portrait videos.
Patent Information
- Application Number
- JP2022522321
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-10-14
- Filing Date
- 2020-08-04
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2040-08-04
AI Technical Summary
General users face challenges in easily and quickly generating video special effects for their creative self-portrait videos, as current methods require post-production and fixed special effects that cannot be easily modified.
An object display method that identifies target objects in a video image and combines virtual objects based on their distance, allowing real-time creation of special effects by displaying first and second objects with specific shapes at predefined positions, merging them when close, and adjusting their states based on distance thresholds.
Enables quick and dynamic generation of video effects without the need for post-production, allowing users to create interactive and changing special effects in real-time.
Smart Images

Figure 0007560207000001 
Figure 0007560207000002 
Figure 0007560207000003
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED PATENT APPLICATIONS This application claims priority to a Chinese patent application filed on October 14, 2019, bearing application number 201910974919.3, and entitled "METHING AND DEVICE FOR DISPLAYING OBJECTS, ELECTRONIC DEVICE, AND COMPUTER-READABLE STORAGE MEDIUM," the entire contents of which are incorporated herein by reference.
[0002] The present invention relates to the technical field of image processing, and in particular to a method, device, electronic device and computer-readable storage medium for displaying an object. [Background technology]
[0003] With the development of computer networks and the widespread use of smartphones, general users are no longer satisfied with expressing their emotions only through monotonous images and text. Videos can embody richer contents and formats and can give users an intuitive feeling, so they are increasingly popular among users, and general users are becoming more likely to create original videos. However, original selfie videos tend to be dull in their expression method, and video special effects are more commonly applied to film works, and the content expression forms are also diverse, so video special effects can be seen to support and guarantee the success of film works.
[0004] However, since the production of video special effects is currently completed through post-production after shooting a video, the displayed special effects are fixed and can only be played according to a preset temporal logic until the end. In addition, since the post-production requirements are high, general users cannot quickly generate or create special effects or complex special effects. Therefore, how to easily and quickly generate video effects is a technical problem that needs to be solved as soon as possible. Summary of the Invention
[0005] The following Summary of the Invention is intended to explain the ideas of the present invention in a simplified form, which will be described in detail in the following embodiments. This Summary of the Invention is not intended to identify essential or necessary features of the technical configuration to be protected, nor is it intended to limit the scope of protection of the technical configuration to be protected.
[0006] In a first aspect, a method for displaying an object according to an embodiment of the present disclosure includes: receiving a video image; identifying a target object in the motion image; displaying a first object having a first shape at a first location in the motion image in response to the identified first target object; displaying a second object having a second shape at a second location in the motion image in response to the identified second target object; and if a distance between the first target object and the second target object is less than a first threshold, combining the first object and the second object such that the first object and the second object form a third shape, the third shape being formed by a combination of the first shape and the second shape.
[0007] In a second aspect, a display device for an object according to an embodiment of the present disclosure includes: an image receiving means for receiving a moving image; a target object identification means for identifying a target object in the motion picture images; a first object display means for displaying a first object having a first shape at a first position in the motion image in response to the identified first target object; second object display means for displaying a second object having a second shape at a second position on the motion image in response to the identified second target object; and a combining means for combining the first object and the second object when a distance between the first target object and the second target object is less than a first threshold value, such that the first object and the second object form a third shape, the third shape being formed by a combination of the first shape and the second shape.
[0008] In a third aspect, an electronic device according to an embodiment of the present disclosure includes: At least one processor; a memory in communication with the at least one processor, the memory storing instructions for execution by the at least one processor; The instructions, when executed by the at least one processor, cause the at least one processor to perform the method for displaying an object in the first aspect above.
[0009] In a fourth aspect, a non-transitory computer-readable storage medium according to an embodiment of the present disclosure includes: Computer instructions are stored to cause a computer to carry out the method of displaying objects in the first aspect above.
[0010] This application discloses a method, an apparatus, an electronic device and a computer-readable storage medium for displaying an object. The method includes the steps of receiving a moving image, identifying a target object in the moving image, displaying a first object having a first shape at a first position in the moving image according to the identified first target object, displaying a second object having a second shape at a second position in the moving image according to the identified second target object, and combining the first object and the second object so that the first object and the second object form a third shape when a distance between the first target object and the second target object is less than a first threshold, and the third shape is formed by a combination of the first shape and the second shape. The above method solves the technical problem that the prior art cannot easily and quickly generate moving effects.
[0011] The above is an outline of the technical configuration of the present invention. In the following, the present invention will be described in detail with reference to preferred embodiments and drawings in order to provide a more detailed understanding of the technical configuration of the present invention, to fully implement the present invention according to the contents of this specification, and to allow the above-mentioned and other objects, features, and effects of the present invention to be more easily understood. [Brief description of the drawings]
[0012] The above and other objects, features, and advantages of the present invention will become apparent from the drawings and the following embodiments. In the drawings, the same or similar reference numerals represent the same or similar components. Note that the drawings are schematic and the actual objects and components are not necessarily drawn to scale. [Figure 1] 1 is a flowchart of an embodiment of a method for displaying objects according to the present disclosure. [Diagram 2] 11 is a flowchart of a specific embodiment of step S103 in the embodiment of the object display method according to the present disclosure. [Diagram 3]11 is a flowchart of a further embodiment of a method for displaying objects according to the present disclosure; [Figure 4] 11 is a flowchart of an embodiment of an object state change in an embodiment of a method for displaying an object according to the present disclosure. [Diagram 5] FIG. 2 is a diagram showing the structure of an embodiment of an object display device according to an embodiment of the present disclosure. [Figure 6] 1 is a diagram showing a structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, the present disclosure will be described with reference to the drawings and examples. The drawings show some examples of the present disclosure, but the present disclosure can be realized in various forms and is not limited to the described examples. On the contrary, these examples are for appropriate and complete understanding of the present disclosure. Note that the drawings and examples of the present disclosure are illustrative and are not intended to limit the scope of protection of the present disclosure.
[0014] It should be noted that in the methods of the present disclosure, the steps described in the embodiments may be performed in different orders and / or in parallel. Also, the embodiments of the methods may additionally perform certain steps and / or omit certain steps. The present disclosure is not limited thereto.
[0015] As used in this disclosure, the term "including" and variations thereof are intended to mean the open "including" or "including but not limited to." The term "based on" means "based at least in part on." The term "in one embodiment" means "at least one embodiment." The term "in another embodiment" means "at least one other embodiment." Relevant definitions of other terms are provided below.
[0016] In addition, the terms "first" and "second" in this disclosure are intended to distinguish different devices, modules, and units, and do not limit the order or dependency of steps performed by those devices, modules, and units.
[0017] In addition, the terms "one" and "plurality" in this disclosure are merely examples of the quantity of items and do not limit the quantity of items. Unless otherwise specified, a person skilled in the art can understand the terms "one" and "plurality" in this disclosure to mean "one or multiple items."
[0018] In the embodiments of the present disclosure, the information or names of the information that multiple devices interact with are intended to explain the present disclosure and are not intended to limit the scope of the information or information.
[0019] 1 is a flowchart of an embodiment of an object display method according to an embodiment of the present disclosure, the object display method according to an embodiment of the present disclosure is implemented by an object display device, which can be realized by software or a combination of software and hardware, and which can be integrated and provided in a device (e.g., an object display server or an object display terminal device) in an object display system. As shown in FIG. 1, the method includes the following steps S101 to S105.
[0020] In step S101, a video image is received.
[0021] Optionally, in this step, the received video image is a video image received from an image sensor. The image sensor is a device for capturing an image, and representative image sensors include a camera, a camera, and an image capture device. In this embodiment, the image sensor can be a camera in a terminal device (e.g., a front camera or a rear camera in a smartphone), and the image captured by the camera can be displayed on a display screen of the smartphone. In this step, the video image captured by the image sensor is received and used as a display background image of the object.
[0022] Optionally, in this step, the received moving image is a moving image file received from a storage device. The moving image file is a moving image that is shot in advance and stored in the storage device. Optionally, the storage device is a local storage or a network storage. In this step, the moving image file transmitted from the storage device is received and displayed on the display device of the device as a display background image of the object.
[0023] In this step, the video image can include a human face, and optionally, at least one frame of the multiple image frames in the video image includes a human face. Typically, a user operates the camera of a mobile terminal device to take a video of himself / herself, and the video image captured by the camera includes the user's face. Or, the video image file includes an image of a human face.
[0024] In step S102, a target object in the video image is identified.
[0025] The target object is any predefined object that needs to be identified from the video image, and a representative target object may be a human face.
[0026] Any target identification algorithm can be used to identify a target object in a video image. Typically, it is based on deep learning, for example. If the target object is a human face, an image with a human face can be used to train a neural network, and the trained neural network can classify each image frame in the video image to determine whether the image frame contains a human face, and if the image frame contains a human face, a face detection algorithm can be used to detect the face key points and determine the face position. Alternatively, an image with a bounding box of a human face marked can be used to train a neural network, and the trained neural network can perform regression of the bounding box for each image frame in the video image to reduce the range of the human face, and then a face detection algorithm can be used to detect the face key points and determine the face position. Alternatively, an image with a bounding box of a human face marked can be used to train a neural network, and the trained neural network can perform regression of the human face key points for each image frame in the video image to determine whether the image frame contains a human face and the position of the human face key points.
[0027] It should be noted that the above-mentioned human faces and identification methods are merely examples and are not intended to limit the present disclosure. In practice, a target object and an identification algorithm suitable for that target object can be pre-selected based on the effect and scene to be achieved.
[0028] In step S103, a first object having a first shape is displayed at a first position in the video image in response to the identified first target object.
[0029] The object is a virtual element for displaying on an actual video image, and a representative virtual element can be a mapping, which can be a static mapping or a mapping of a sequence frame.
[0030] In this step, if a first target object is identified in the video image, a first object corresponding to the first target object is obtained, and the first object is displayed at a first position in the video image, and the first object has a first shape. Optionally, a correspondence relationship between a target object and an object is preset, and if a target object appears in the video image, an object corresponding to the target object is obtained from the correspondence relationship, and the correspondence relationship can be stored in a profile, and the target object to be identified, the type of object, and the correspondence relationship between the target object and the object can be arranged according to the profile.
[0031] As shown in FIG. 2, in this step, the step of displaying the first object at a first position of the video image according to the identified first target object includes the following steps S201 to S203.
[0032] In step S201, according to an identified first target object, a tracking point of the first target object is obtained.
[0033] In step S202, the first position is calculated based on the tracking point of the first target object.
[0034] In step S203, the first object is displayed at the first position.
[0035] In the above steps, when the first target object is identified, the key points of the first target object are also detected, and the details can be seen in the description of step S102. One or more of the key points are set in advance as the tracking points of the first target object, or the tracking points are determined based on one or more of the key points, and the tracking points are used to determine the display position of the first object. In step S202, the first position is calculated based on the tracking points of the first target object. Optionally, the first target object is a human face. Optionally, the tracking points are points on an extension line of a connecting line between a nose tip key point and an edge key point of the human face, and are located outside the area of the human face. The extension ratio is preset, and the length extending from the edge point toward the outside is calculated according to this ratio to obtain the tracking points. In step S203, a specific point of the first object is superimposed on the tracking points, and the first object is displayed at the first position. Optionally, the specific point of the first object is a center point of the first object, and the position of the center point is set as the position of the tracking point to display the first object at the first position, so that when the position of the first target object in different image frames is changed, the first object is also changed, thereby achieving the effect that the first object moves following the target object.
[0036] Optionally, the step of acquiring the tracking point of the first target object according to the identified first target object includes: determining the position of the first target object in the video image according to the identified first target object; and acquiring the tracking point of the first target object based on the position of the first target object in the video image. In this embodiment, if the first target object is identified, first determine the position of the first target object in the video image, and optionally determine whether the first target object is located on the left side or the right side in the video image, and acquire the tracking point of the first target object based on the position of the first target object in the video image. Optionally, if the first target object is a human face and it is determined that the first target object is located on the left side of the video image, acquire the edge key point of the right side of the human face and the nose tip key point of the human face in the video image, so that the tracking point is located on the right side of the human face (with respect to the observation viewing angle). Similarly, if it is determined that the first target object is located on the right side of the video image, obtain the left edge key point of the human face and the nose tip key point of the human face in the video image so that the tracking point is located on the left side of the human face.
[0037] In the present disclosure, the first object has a first shape. Optionally, the first shape can be a portion of a complete shape, such as a portion of a circle, a portion of a heart, a portion of a rectangle, etc., or a portion of an irregular shape, such as a portion of a cloud, a portion of a mountain, etc.
[0038] It should be noted that the above-mentioned selection of target objects and key points and calculation of tracking points are merely examples and do not limit the present disclosure. In practice, any method of calculating target objects, key points and tracking points can be applied to the technical configuration of the present disclosure.
[0039] In step S104, a second object having a second shape is displayed at a second position in the video image in response to the identified second target object.
[0040] Optionally, the step of displaying a second object at a second position in the video image in response to the identified second target object includes the steps of obtaining a tracking point of the second target object in response to the identified second target object, calculating the second position based on the tracking point of the second target object, and displaying the second object at the second position.
[0041] Optionally, the step of obtaining a tracking point of the second target object in response to the identified second target object includes the step of determining a position of the second target object in the video image in response to the identified second target object, and the step of obtaining a tracking point of the second target object based on the position of the second target object in the video image.
[0042] Optionally, the second shape is a complementary shape to the first shape, for example if the first shape is half a heart, the second shape is the other half of a heart.
[0043] The specific embodiment of the above selective step is the same as the selective step of the first target object and the first object in step S103, so the description thereof will be omitted.
[0044] In step S105, if the distance between the first target object and the second target object is less than a first threshold, the first object and the second object are merged so that the first object and the second object form a third shape.
[0045] Optionally, the distance between the first target object and the second target object is less than a first threshold value includes: obtaining a first anchor of the first target object; obtaining a second anchor of the second target object; calculating a first distance between the first anchor and the second anchor; and if the first distance is less than a first threshold value, determining that the distance between the first target object and the second target object is less than a first threshold value. Optionally, the anchor can be a key point of the target object or a point calculated by a key point of the target object, and typically, the anchor is a nose tip key point of a human face, or the anchor is a center point of a triangle formed by an eye key point and a nose tip key point of a human face. When the anchor coordinates are obtained after obtaining the anchor, the first distance is calculated based on the coordinates of the first anchor and the coordinates of the second anchor, the first distance represents the distance between the first target object and the second target object, and when the first distance is smaller than a preset first threshold, the distance between the first target object and the second target object is smaller than the first threshold.
[0046] Optionally, combining the first object and the second object such that the first object and the second object form a third shape includes combining the first shape of the first object and the second shape of the second object along complementary positions to form a third shape. Typically, the first shape and the second shape can be complementary half heart shapes, and when it is determined that the distance between the first target object and the second target object is less than a first threshold, the two complementary half heart shapes are combined along their complementary positions to form one complete heart shape.
[0047] According to the technical configuration described in the above steps, by calculating the distance between two target objects in an image and combining both objects, it is possible to create special effects in a video without shooting the video in advance and render it in real time into any video.
[0048] Furthermore, as shown in FIG. 3, after step S105, the following steps S301 to S302 are included.
[0049] In step S301, if the distance between the first target object and the second target object is smaller than a second threshold, the first object and the second object are made to disappear.
[0050] In step S302, a first sequence frame including a third object having a third shape is displayed.
[0051] In step S301, based on the method of step S105, continue to calculate a first distance between a first anchor and a second anchor, and if the first distance is smaller than a second threshold, determine that the distance between the first target object and the second target object is smaller than a second threshold, and control the first object and the second object to disappear, and the disappearance can be achieved by not rendering the first object and the second object, and can be achieved by setting the transparency of the first object and the second object to 1 to make them transparent and invisible.
[0052] In step S302, a first sequence frame is obtained, and the first sequence frame is displayed at the position where the first object and the second object are lost. The first sequence frame includes a third object having a first shape, specifically, the first sequence frame includes a third object, and each frame in the first sequence frame represents a state change of the third object, typically, the third object is a virtual heart shape, and the first sequence frame represents a dynamic change of the virtual heart shape, such as from small to large, from white to red, etc. In other words, the first sequence frame represents a change state of the third object formed by combining the first object and the second object.
[0053] Furthermore, as shown in FIG. 4, after step S104, the following steps S401 to S403 are included.
[0054] In step S401, the distance between the first target object and the second target object is calculated.
[0055] In step S402, transformation parameters of the first object and the second object are obtained based on the distance.
[0056] In step S403, the display states of the first object and the second object are changed based on the change parameters.
[0057] In step S401, the distance between the first target object and the second target object can be calculated similarly using the method described in step S105, so the description thereof will be omitted.
[0058] In step S402, a change parameter associated with the distance is obtained, and the change parameter may be a preset correspondence, for example, a first value of the distance corresponds to a first color value, and a second value of the distance corresponds to a second color value, thereby controlling a color change of the object according to the distance.
[0059] In step S403, the display state of the first object and the second object is changed according to the change parameter. Typically, the change parameter determines the color of the first object and the second object, and the color of the first object and the second object is changed according to the change parameter.
[0060] The above steps change the display state of an object according to the distance between two target objects. Typically, the first target object and the second target object are human faces, and the first object and the second object are two half hearts that are complementary to each other, and when the two human faces are close to each other, the color of the corresponding object is obtained according to the distance. For example, the closer the distance is, the darker the color is, such as from light pink to crimson, and thus the color corresponds to the distance between the human faces, and the image is rendered in real time, and there is no need to post-produce different forms for each object in the frame image.
[0061] The present disclosure discloses a method, an apparatus, an electronic device, and a computer-readable storage medium for displaying an object. The method for displaying the object includes the steps of receiving a video image including a plurality of image frames, displaying a first object having a first shape at a first position of the video image according to an identified first target object, displaying a second object having a second shape at a second position of the video image according to an identified second target object, and, if a distance between the first target object and the second target object is less than a first threshold, combining the first object and the second object so that the first object and the second object form a third shape. The above method solves the technical problem that the prior art cannot easily and quickly generate a video effect.
[0062] Although the steps in the embodiments of the above method are described in the above order throughout the text, those skilled in the art may understand that the steps in the embodiments of the present disclosure do not necessarily follow the above order, that is, they may follow other orders such as reverse order, parallel order, cross order, etc. Based on the above steps, those skilled in the art may also add other steps, and these modifications and equivalent replacement methods also fall within the scope of protection of the present disclosure, and therefore the description thereof will be omitted.
[0063] 5 is a diagram showing the structure of an embodiment of an object display device according to an embodiment of the present disclosure. As shown in FIG. 5, the device 500 includes an image receiving means 501, a target object identifying means 502, a first object display means 503, a second object display means 504, and a combining means 505.
[0064] The image receiving means 501 receives a moving image.
[0065] A target object identification means 502 identifies a target object in the video image.
[0066] A first object display means 503 displays a first object having a first shape at a first position in the video image in response to the identified first target object.
[0067] A second object display means 504 displays a second object having a second shape at a second position in the video image in response to the identified second target object.
[0068] A combining means 505 combines the first object and the second object when a distance between the first target object and the second target object is less than a first threshold, so that the first object and the second object form a third shape, and the third shape is formed by a combination of the first shape and the second shape.
[0069] Furthermore, the display device 500 of the object disappearance control means for disappearing the first object and the second object when the distance between the first object and the second object is less than a second threshold; a sequence frame display means for displaying a first sequence frame including a third object having a third shape; It further comprises:
[0070] Furthermore, the first object display means 503 a first tracking point acquisition unit for acquiring a tracking point of the first target object in response to the identified first target object; a first position calculation unit for calculating the first position based on the tracking point of the first target object; a first object display unit for displaying the first object at the first location; It further comprises:
[0071] Furthermore, the first tracking point acquisition unit includes: a first target object position determiner for determining a position of the first target object in the video image in response to the identified first target object; a first tracking point acquisition unit for acquiring a tracking point of the first target object based on a position of the first target object in the video image; It further comprises:
[0072] Furthermore, the second object display means 504 a second tracking point acquisition unit for acquiring a tracking point of the second target object in response to the identified second target object; a second position calculation unit for calculating the second position based on the tracking point of the second target object; a second object display unit for displaying the second object at the second location; It further comprises:
[0073] Furthermore, the second tracking point acquisition unit: a second target object position determiner for determining a position of the second target object in the motion image in response to the identified second target object; a second tracking point acquisition unit for acquiring a tracking point of the second target object based on a position of the second target object in the video image; It further comprises:
[0074] Furthermore, the display device 500 of the object distance calculation means for calculating a distance between the first target object and the second target object; a change parameter acquisition means for acquiring change parameters of the first object and the second object based on the distance; a display state changing means for changing a display state of the first object and the second object based on the change parameter; It further comprises:
[0075] The device shown in Fig. 5 can execute the method of the embodiment shown in Fig. 1 to Fig. 4, and for the parts not described in detail in this embodiment, the description of the embodiment shown in Fig. 1 to Fig. 4 can be referred to. Since the description of the implementation process and technical effects of this technical configuration can be referred to in the description of the embodiment shown in Fig. 1 to Fig. 4, the description thereof will be omitted.
[0076] FIG. 6 is a diagram showing the structure of an electronic device applied to an embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a personal digital assistant (PDA), a tablet computer (PAD), a portable media player (PMP), an in-vehicle terminal (e.g., an in-vehicle navigation terminal), etc., and a fixed terminal such as a digital television, a desktop computer, etc. The electronic device shown in FIG. 6 is merely an example and does not limit the function and the scope of use of the embodiment of the present disclosure.
[0077] 6, the electronic device 600 may include a processing device (e.g., a CPU, a GPU, etc.) 601 that performs various appropriate operations and processes based on programs stored in a read-only memory (ROM) 602 or programs uploaded from a storage device 608 to a random access memory (RAM) 603. The RAM 603 also stores various programs and data necessary for the operation of the electronic device 600. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0078] Typically, input devices 606 such as a touch screen, a touch panel, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc., output devices 607 such as a liquid crystal display, a speaker, a vibrator, etc., storage devices 608 such as a tape, a hard disk, etc., and a communication device 609 can be connected to the I / O interface 605. The communication device 609 can enable wireless or wired data exchange between the electronic device 600 and other devices. Although FIG. 6 shows the electronic device 600 having various devices, it is not required that all of these devices are included. Instead, more or fewer devices may be included.
[0079] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowcharts can be realized by a software program. For example, a software program product according to an embodiment of the present disclosure includes a software program stored in a non-transitory computer-readable storage medium, and the software program includes program code for performing the method shown in the flowchart. In such an embodiment, the software program can be downloaded and installed from the Internet via the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the software program is executed by the processing device 601, it performs the above-mentioned functions defined in the method according to the embodiment of the present disclosure.
[0080] In addition, the computer-readable medium in this disclosure can be a computer-readable signal medium, a computer-readable storage medium, or a combination thereof. The computer-readable storage medium can be, but is not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination thereof. More specific examples of the computer-readable storage medium can include, but are not limited to, a portable computer magnetic disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable read-only memory (EPROM or flash memory), an optical fiber, a compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or a combination thereof, electrically connected by one or more conductors. In this disclosure, the computer-readable storage medium can be a tangible medium that contains or stores a program, and the program can be used in a system, apparatus, or device that is executed by instructions, or a combination thereof. In this disclosure, a computer-readable signal medium can be a data signal propagating in baseband or as part of a carrier wave, the data signal carrying computer-readable program code. Such a data signal can take various forms, such as, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, capable of sending, propagating, or transmitting a program used in a system, apparatus, or device executed by instructions, or any combination thereof. The program code contained in the computer-readable medium can be transmitted by any suitable medium (e.g., electrical wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above).
[0081] In one embodiment, the clients and servers communicate via any now known or later developed network protocol, such as Hypertext Transfer Protocol (HTTP), and may be interconnected with any type or medium of digital data communication (e.g., a communications network), including a local area network (LAN), a wide area network (WAN), an extranet (e.g., the Internet), an end-to-end network (e.g., an ad hoc end-to-end network), and any now known or later developed network.
[0082] The computer-readable medium may be included in the electronic device, or may exist independently of the electronic device.
[0083] The computer-readable medium has one or more programs stored thereon, and when the one or more programs are executed by the electronic device, the electronic device receives a video image, identifies a target object in the video image, displays a first object having a first shape at a first position in the video image in response to the identified first target object, displays a second object having a second shape at a second position in the video image in response to the identified second target object, and if a distance between the first target object and the second target object is less than a first threshold, combines the first object and the second object so that the first object and the second object form a third shape, and the third shape is formed by a combination of the first shape and the second shape.
[0084] The computer program code for carrying out the operations of the present disclosure can be compiled in one or more programming languages or combinations thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as C or similar programming languages. The program code can be executed entirely on the user computer, partially on the user computer, or as a single software package, or partially on the user computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user computer by any type of network, such as a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., connected by the Internet using an Internet Service Provider).
[0085] The flowcharts and block diagrams in the drawings illustrate possible system architectures, functions, and operations of the systems, methods, and software program products of the embodiments of the present disclosure. In this regard, each block in the flowcharts and block diagrams may represent a module, program segment, or part of code, which includes executable instructions for implementing one or more predetermined logic functions. Of course, in some embodiments, the functions described in the blocks may be implemented in a different order from the order described in the drawings. For example, two connected blocks may actually be executed essentially in parallel, or may be executed in a reverse order, depending on the functions to be implemented. It should be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a system using dedicated hardware that executes a predetermined function or operation, or by a combination of dedicated hardware and computer instructions.
[0086] The units described in the embodiments of the present disclosure may be realized by software or hardware, and the names of the units do not limit the units themselves in some cases.
[0087] At least a portion of the functionality described in this disclosure may be performed by one or more hardware logic components, including, but not limited to, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0088] In the general context of this disclosure, a machine-readable medium may be a tangible medium of expression, and may include or store a program for use in or in conjunction with a system, apparatus, or device that is executed by instructions. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable storage medium may be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination thereof. More specific examples of machine-readable storage media may include portable computer magnetic disks, hard disks, random access memories (RAMs), read-only memories (ROMs), erasable read-only memories (EPROMs or flash memories), optical fibers, compact disk read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or combinations thereof, electrically connected by one or more wires.
[0089] A method for displaying an object according to one or more embodiments of the present disclosure includes: receiving a video image; identifying a target object in the motion image; displaying a first object having a first shape at a first location in the motion image in response to the identified first target object; displaying a second object having a second shape at a second location in the motion image in response to the identified second target object; if a distance between the first target object and the second target object is less than a first threshold, combining the first object and the second object such that the first object and the second object form a third shape, the third shape being formed by a combination of the first shape and the second shape; Includes.
[0090] Furthermore, the method comprises: making the first object and the second object disappear if the distance between the first object and the second object is less than a second threshold; displaying a first sequence of frames including a third object having a third shape; Further includes:
[0091] Further, the step of displaying a first object having a first shape at a first position in the video image in response to the identified first target object includes: responsive to the identified first target object, obtaining a tracking point of the first target object; calculating the first position based on the tracking points of the first target object; displaying the first object at the first location; Further includes:
[0092] Furthermore, the step of acquiring a tracking point of the first target object in response to the identified first target object includes: determining a position of the first target object in the motion image in response to the identified first target object; obtaining a tracking point of the first target object based on a position of the first target object in the video image; Further includes:
[0093] Furthermore, the step of displaying a second object at a second location in the video image in response to the identified second target object further comprises: In response to the identified second target object, acquiring a tracking point of the second target object; calculating the second position based on the tracking point of the second target object; displaying the second object at the second location; Further includes:
[0094] Furthermore, the step of acquiring a tracking point of the second target object in response to the identified second target object includes: determining a position of the second target object in the motion image in response to the identified second target object; obtaining a tracking point of the second target object based on a position of the second target object in the video image; Further includes:
[0095] Further, after the step of displaying a second object having a second shape at a second position in the video image in response to the identified second target object, calculating a distance between the first target object and the second target object; obtaining transformation parameters of the first object and the second object based on the distance; changing a display state of the first object and the second object based on the change parameter; Further includes:
[0096] A display device for an object according to one or more embodiments of the present disclosure, comprising: an image receiving means for receiving a moving image; a target object identification means for identifying a target object in the motion picture images; a first object display means for displaying a first object having a first shape at a first position in the motion image in response to the identified first target object; second object display means for displaying a second object having a second shape at a second position on the motion image in response to the identified second target object; a combining means for combining the first object and the second object when a distance between the first target object and the second target object is less than a first threshold value, the first object and the second object forming a third shape, the third shape being formed by a combination of the first shape and the second shape; Equipped with.
[0097] Furthermore, the display device of the object comprises: disappearance control means for disappearing the first object and the second object when the distance between the first object and the second object is less than a second threshold; a sequence frame display means for displaying a first sequence frame including a third object having a third shape; It further comprises:
[0098] Furthermore, the first object display means a first tracking point acquisition unit for acquiring a tracking point of the first target object in response to the identified first target object; a first position calculation unit for calculating the first position based on the tracking point of the first target object; a first object display unit for displaying the first object at the first location; It further comprises:
[0099] Furthermore, the first tracking point acquisition unit includes: a first target object position determiner for determining a position of the first target object in the video image in response to the identified first target object; a first tracking point acquisition unit for acquiring a tracking point of the first target object based on a position of the first target object in the video image; It further comprises:
[0100] Furthermore, the second object display means a second tracking point acquisition unit for acquiring a tracking point of the second target object in response to the identified second target object; a second position calculation unit for calculating the second position based on the tracking point of the second target object; a second object display unit for displaying the second object at the second location; It further comprises:
[0101] Furthermore, the second tracking point acquisition unit: a second target object position determiner for determining a position of the second target object in the motion image in response to the identified second target object; a second tracking point acquisition unit for acquiring a tracking point of the second target object based on a position of the second target object in the video image; It further comprises:
[0102] Furthermore, the display device of the object comprises: distance calculation means for calculating a distance between the first target object and the second target object; a change parameter acquisition means for acquiring change parameters of the first object and the second object based on the distance; a display state changing means for changing a display state of the first object and the second object based on the change parameter; It further comprises:
[0103] The electronic device of the object according to one or more embodiments of the present disclosure includes: At least one processor; a memory in communication with the at least one processor, the memory storing instructions for execution by the at least one processor; When the instructions are executed by the at least one processor, the at least one processor performs any one of the above-mentioned methods for displaying the object.
[0104] A non-transitory computer-readable storage medium according to one or more embodiments of the present disclosure, comprising: Computer instructions are stored to cause a computer to carry out any one of the methods for displaying said objects described above.
[0105] The above describes the embodiments of the present invention and the technical configurations used therein. As will be understood by those skilled in the art, the scope of the present invention is not limited to the technical configurations formed by the combination of the above technical features, but may further include other technical configurations formed by the combination of the above technical features or similar technical features within the scope of the present disclosure. For example, the present invention may further include technical configurations formed by the above technical features and similar technical features (not limited to only them) related to the embodiments of the present disclosure.
Claims
1. receiving a video image; identifying target objects in the video images, the target objects including a first target object and a second target object; a step of acquiring a tracking point of the first target object according to the identified first target object, calculating a first position based on the tracking point of the first target object, and displaying a first object having a first shape at the first position of the video image, wherein the tracking point of the first target object is a point on an extension line of a connecting line between a key point of the first target object and a key point on an edge, the tracking point of the first target object is located outside a region of the first target object, and the key point of the first target object is located inside the region of the first target object; a step of acquiring a tracking point of the second target object according to the identified second target object, calculating a second position based on the tracking point of the second target object, and displaying a second object having a second shape at the second position of the video image, wherein the second shape is a shape complementary to the first shape, the tracking point of the second target object is a point on an extension line of a connecting line between a key point of the second target object and a key point on an edge, the tracking point of the second target object is located outside an area of the second target object, and the key point of the second target object is located inside the area of the second target object; and if a distance between the first target object and the second target object is less than a first threshold, combining the first object and the second object so that the first object and the second object form a third shape, the third shape being formed by a combination of the first shape and the second shape.
2. making the first object and the second object disappear if the distance between the first object and the second object is less than a second threshold; 2. The method of claim 1, further comprising the step of: displaying a first sequence of frames including a third object having a third shape.
3. The step of acquiring a tracking point of the first target object in response to the identified first target object includes: determining a position of the first target object in the motion image in response to the identified first target object; The method of claim 1 , further comprising: acquiring a tracking point of the first target object based on a position of the first target object in the video image.
4. In response to the identified second target object, acquiring a tracking point of the second target object includes: determining a position of the second target object in the motion image in response to the identified second target object; The method of claim 1 , further comprising: acquiring a tracking point of the second target object based on a position of the second target object in the video image.
5. after the step of displaying a second object having a second shape at a second position in the motion image in response to the identified second target object; calculating a distance between the first target object and the second target object; obtaining transformation parameters of the first object and the second object based on the distance; The method for displaying objects according to claim 1 , further comprising the step of changing display states of the first object and the second object based on the change parameter.
6. an image receiving means for receiving a moving image; a target object identification means for identifying a target object in the video image, the target object including a first target object and a second target object; a first object display means for acquiring a tracking point of the first target object according to the identified first target object, calculating a first position based on the tracking point of the first target object, and displaying a first object having a first shape at the first position of the video image, the tracking point of the first target object being a point on an extension line of a connecting line between a key point of the first target object and a key point on an edge, the tracking point of the first target object being located outside a region of the first target object, and the key point of the first target object being located inside the region of the first target object; a second object display means for acquiring a tracking point of the second target object according to the identified second target object, calculating a second position based on the tracking point of the second target object, and displaying a second object having a second shape at the second position of the video image, the second shape being complementary to the first shape, the tracking point of the second target object being a point on an extension of a connecting line between a key point of the second target object and a key point on an edge, the tracking point of the second target object being located outside a region of the second target object, and the key point of the second target object being located inside the region of the second target object; and a combining means for combining the first object and the second object when the distance between the first target object and the second target object is smaller than a first threshold, so that the first object and the second object form a third shape, the third shape being formed by a combination of the first shape and the second shape.
7. a memory for storing computer readable instructions; a processor for executing the computer readable instructions; An electronic device which, when the processor is operated, realizes the object display method according to any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium having computer-readable instructions stored thereon, A non-transitory computer-readable storage medium, the computer-readable instructions being executable by a computer to cause the computer to perform the method for displaying objects according to any one of claims 1 to 5.
Citation Information
Patent Citations
Child image generation device
JP2005107848A
Image composition apparatus
JP2006048415A
Imaging apparatus, program, information storage medium and imaging method
JP2012034242A
Image creating apparatus, method, and program
JP2012039410A
Photographing apparatus and moving image data recording method
JP2013247457A
