FIELD OF THE TECHNOLOGY

This application relates to the field of computer technologies, including an image processing method and apparatus, a storage medium, and a computer device.

BACKGROUND OF THE DISCLOSURE

With the development of computer technologies, image processing technologies can be increasingly improved. A user may process an image through professional image processing software to better present the processed image. The user may further add a material provided by the image processing software to the image through the image processing software, so that the processed image can convey more information.

However, in a related image processing manner, the user needs to open a material library of the image processing software, browse the material library, select a suitable material from the material library, adjust a position of the material in the image, to determine the modification, and complete image processing. Therefore, the related image processing manner needs a lot of manual operations, which is time-consuming, resulting in low efficiency of the image processing process.

SUMMARY

Exemplary embodiments of the disclosure can provide an image processing method and apparatus, a storage medium, and a computer device, that can resolve the inefficiencies of related image processing processes.

In an embodiment of the disclosure, an image processing method can include obtaining image frames acquired from a real scene, and playing the obtained image frames one by one according to an acquisition time sequence. Further, the method can include determining a position corresponding to a target object in the real scene in a case that a trajectory formed by a movement of the target object in a plurality of the obtained image frames meets a trigger condition, rendering a virtual entry in a currently played image frame according to the position, and displaying virtual content in the virtual entry.

Additionally, aspects of the disclosure can provide an image processing apparatus that can include an obtaining module that is configured to obtain image frames acquired from a real scene, and a playing module that is configured to play the obtained image frames one by one according to an acquisition time sequence. The apparatus can further include a determining module that is configured to determine a position corresponding to a target object in the real scene in a case that a trajectory formed by a movement of the target object in a plurality of the obtained image frames meets a trigger condition, and a rendering module that is configured to render a virtual entry in a currently played image frame according to the position, and display virtual content in the virtual entry.

Further embodiments can provide a non-transitory computer-readable storage medium that stores a computer program that, when executed by a processor, causes the processor to perform the following operations of obtaining image frames acquired from a real scene, and playing the obtained image frames one by one according to an acquisition time sequence. Additionally, the processor can perform the operations of determining a position corresponding to a target object in the real scene in a case that a trajectory formed by a movement of the target object in a plurality of the obtained image frames meets a trigger condition, rendering a virtual entry in a currently played image frame according to the position, and displaying virtual content in the virtual entry.

Exemplary embodiments can include a computer device having a memory and a processor. The memory can store a computer program that, when executed by the processor, causes the processor to perform the following operations of obtaining image frames acquired from a real scene, playing the obtained image frames one by one according to an acquisition time sequence, and determining a position corresponding to a target object in the real scene in a case that a trajectory formed by a movement of the target object in a plurality of the obtained image frames meets a trigger condition. The processor can further perform the operations of rendering a virtual entry in a currently played image frame according to the position, and displaying virtual content in the virtual entry.

In the foregoing image processing method and apparatus, storage medium, and computer device, on the one hand, the image frames reflecting the real scene are played, so that the played image frames can reflect the real scene. On the other hand, the position corresponding to the target object in the real scene is automatically determined when the trajectory formed by the movement of the target object in the image frame acquired from the real scene meets the trigger condition, to render the virtual entry in the currently played image frame according to the determined position and display the virtual content in the virtual entry. In this way, the virtual content of the virtual world can be automatically displayed in the virtual entry, and real content of the real world can be automatically displayed outside the virtual entry, thereby avoiding complicated steps of manual operations and greatly improving the image processing efficiency.

