CN112584236B - Image erasing method and device, electronic equipment and storage medium - Google Patents

Image erasing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112584236B
CN112584236B CN202011643114.XA CN202011643114A CN112584236B CN 112584236 B CN112584236 B CN 112584236B CN 202011643114 A CN202011643114 A CN 202011643114A CN 112584236 B CN112584236 B CN 112584236B
Authority
CN
China
Prior art keywords
camera
erasing
target
frame data
instruction
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.)
Active
Application number
CN202011643114.XA
Other languages
Chinese (zh)
Other versions
CN112584236A (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.)
Mihoyo Technology Shanghai Co ltd
Original Assignee
Mihoyo Technology Shanghai 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 Mihoyo Technology Shanghai Co ltd filed Critical Mihoyo Technology Shanghai Co ltd
Priority to CN202011643114.XA priority Critical patent/CN112584236B/en
Publication of CN112584236A publication Critical patent/CN112584236A/en
Application granted granted Critical
Publication of CN112584236B publication Critical patent/CN112584236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • A63F13/525Changing parameters of virtual cameras
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • A63F13/525Changing parameters of virtual cameras
    • A63F13/5252Changing parameters of virtual cameras using two or more virtual cameras concurrently or sequentially, e.g. automatically switching between fixed virtual cameras when a character changes room or displaying a rear-mirror view in a car-driving game
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4781Games
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/53Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing
    • A63F2300/538Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing for performing operations on behalf of the game client, e.g. rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the invention discloses an image erasing method, an image erasing device, electronic equipment and a storage medium, wherein the method comprises the following steps: when receiving an instruction for switching from the current camera to other cameras, sending a calling instruction to a target erasing camera; starting the target erasing camera based on the calling instruction, and erasing the cached frame data based on the target erasing camera when the cached frame data display is finished. The technical scheme of the embodiment of the invention solves the problems that the video frame data in the display memory are overlapped to cause screen splash when the camera is switched in the prior art, and the mobile terminal is stuck and crashed when the camera is installed on the mobile terminal, so that the corresponding images can be displayed when the camera is switched, and meanwhile, the stuck and the crashing of the mobile terminal can be avoided, thereby improving the technical effect of user experience.

Description

Image erasing method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of games, in particular to an image erasing method and device, electronic equipment and a storage medium.
Background
In the game scene, a game interface is drawn by a game camera. The game cameras are generally different in function, and need a plurality of cameras, each of which needs a plurality of cameras. The system comprises a game interface camera, a plot camera and a 3D scene camera. For example, based on the scenario, the camera can select different shooting angles according to the scenario; the 3D scene camera is used to shoot a 3D scene, select a specific angle and distance from the constructed 3D scene, and display the shot scene (image) on the display interface according to the game interface camera corresponding to the main screen.
In the actual application process, a game application is usually installed on the mobile terminal, and most of the pictures displayed on the mobile terminal are constructed by a camera in the game. During the picture shot switching, there may be camera switching.
When the cameras are switched, the problems of excessive staggered contents and screen splash of a display screen are easy to occur, namely, when the cameras for constructing pictures are switched, the problems of screen splash are caused by display and memory superposition; furthermore, when the performance of the mobile terminal used by the user is poor, the mortgage downtime is more likely to flash off, so that the technical problem of poor user experience is caused.
Disclosure of Invention
The invention provides an image erasing method, an image erasing device, electronic equipment and a storage medium, which can delete cached video frame data when a camera corresponding to a display interface is switched, so that the problems of screen splash, blockage and flash retreat are avoided, and the technical effect of user experience is improved.
In a first aspect, an embodiment of the present invention provides an image erasing method, where the method includes:
when an instruction for switching from the current camera to other cameras is received, a calling instruction is sent to a target erasing camera;
and starting the target erasing camera based on the calling instruction, and erasing the cached frame data based on the target erasing camera.
In a second aspect, an embodiment of the present invention further provides an image erasing apparatus, including:
the calling instruction sending module is used for sending a calling instruction to the target erasing camera when receiving an instruction for switching from the current camera to other cameras;
and the erasing module is used for starting the target erasing camera based on the calling instruction and erasing the cached frame data based on the target erasing camera.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device to store one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the image erasing method according to any of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the image erasing method according to any of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, when the switching from the current camera to other cameras is detected, the starting instruction can be sent to the target erasing camera, so that the target erasing camera can delete the video frame data cached in the display memory, the problems that in the prior art, when the cameras are switched, the cached video frame data in the display memory are overlapped, and therefore, a screen is not displayed, and the technical problems that when a game is installed on a mobile terminal, the mobile terminal is stuck, down and back flashing exist are solved, the corresponding image can be displayed when the cameras are switched, meanwhile, the problems that the mobile terminal is stuck and back flashing exist can be avoided, and further, the technical effect of user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flow chart illustrating an image erasing method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an image erasing method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an image erasing apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow chart of an image erasing method according to an embodiment of the present invention, which is applicable to a situation that a target erasing camera can be called to erase buffered frame data stored in a video memory when a camera is switched in a game scene.
Before the technical solution of the present embodiment is described, an application scenario may be exemplarily described. The scene in the game and the image displayed on the display interface can be constructed by a plurality of cameras, for example, the near view and the far view can adopt different cameras to shoot corresponding images, and after the images are shot, the images can be sent to the camera corresponding to the main screen, so that the camera corresponding to the main screen can display the images on the display interface. In the process of practical application, there is a case where the camera is switched at the time of image display. When the camera lens is switched, the buffered frame data in the display memory may be superimposed, that is, the buffered frame data stored in the display card is more, which may cause a problem of screen blooming. In order to avoid the problem, an erasing camera can be arranged, so that when the switching of the camera is detected, the erasing camera is called to erase the cache frame data stored in the display memory, and the technical problem that the mobile phone is flashed off due to the fact that a display screen is displayed or the number of data stored in the display memory is large is avoided.
As shown in fig. 1, the method of this embodiment includes:
and S110, when receiving an instruction of switching from the current camera to other cameras, sending a calling instruction to the target erasing camera.
The display interface may display a corresponding video frame, where the video frame may be shot by the camera a or shot by the camera B. The camera corresponding to the video frame displayed on the display interface can be used as the current camera. The other cameras are any cameras other than the current camera and the erasing camera. And generating a switching instruction when detecting a key triggering scene switching or detecting that the scene is to be switched. The target erasure camera is a camera used to erase buffered frame data. The benefits of setting up a target erasure camera are: the buffered video frame data may be deleted based on the erasure of the camera upon a camera switch.
Specifically, the camera switching instruction may be generated when an operation of triggering switching of the current camera to the other camera is detected, or when switching from the current camera to the other camera is detected. When receiving a switching instruction, the switched-to camera can be called, and meanwhile, a calling instruction can be sent to a target erasing camera, so that the target erasing camera is called to erase the buffered frame data buffered during camera switching.
Illustratively, the target erasing camera is a, the current camera is B, and the switched-to camera is C, and when an operation triggering switching from the current camera B to the other camera C is detected, a camera switching instruction may be generated. When a camera switching instruction is received, a call instruction can be sent to other cameras C, and at the same time, a call instruction can be sent to the target erasing camera a, so that the target erasing camera a can erase the buffered video frame data, that is, the frame data in the game scene.
Before the buffered frame data is erased based on the erasing camera, a target erasing camera can be created, and the attribute parameters of the target erasing camera are set, so that the target erasing camera executes a corresponding data erasing task based on the set attribute parameters.
Optionally, a target erasing camera manager in the target project, and managing the attribute information based on the target erasing camera manager; creating at least one target erasing camera to erase the buffered frame data based on the at least one camera according to the attribute information.
The target project may be a game project, that is, a created game code, and the whole code of the game may be taken as the game project, that is, the target project. An object-erasing camera manager, for example, a FreshCameraMgr manager class, can be created within the gaming project, based on which attribute information of the erasing camera can be managed. Meanwhile, a target erasing camera may be created for erasing the picture contents. When the target erasing camera runs, the canvas content can be erased frame by frame, the erasing frequency can be understood as 60 frames per second, the game interface camera draws 60 times, and the target erasing camera can also be erased 60 times. The target attribute information may include the depth value of the target erasure camera, i.e., the lowest depth; it may also include setting the camera clear mode to SolidColor. Meanwhile, the background color of the object-erasing camera may be set to a solid color, for example, black. The purpose of setting the background color as the pure color is to avoid the problems of display leakage and upper penetration when the target erasing camera works.
Specifically, at least one globally usable target erasure camera may be created in advance, and a manager of the target erasure cameras may be created at the same time. Meanwhile, it is possible to set the attribute information of the target erasing camera and manage the set attribute information based on the target erasing camera manager.
For example, referring to fig. 2, an erasing camera may be created, and the attribute information of the erasing camera includes a camera refresh parameter, i.e., a clearing mode; the depth of the camera, the depth value may be-1. The manager of the target erasing camera also comprises an interface and an ID (identity) of the erasing camera and the calling camera which are independently used globally, the camera is called based on the camera calling interface, and the target erasing camera can be called based on the ID.
In this embodiment, when receiving an instruction to switch from the current camera to another camera, sending a call instruction to the target erasing camera includes: when a switching instruction for switching from the current video camera to other video cameras is received, a camera interface corresponding to the target erasing video camera is called, and a calling instruction is sent to the target erasing video camera based on the camera interface.
The camera interface may be an interface for calling the target to erase the camera. The camera may be invoked based on the camera interface. In order to call the target erasing camera, the target erasing camera may also be called according to the ID of the target erasing camera. The calling instruction is an instruction corresponding to the target erasing camera, and the target erasing camera can be called based on the calling instruction.
Specifically, when an instruction for switching from the current video camera to another video camera is received, the manager for the target erasing video camera may call the camera interface of the target video camera, and send a call instruction to the ID of the target erasing video camera.
And S120, starting the target erasing camera based on the calling instruction, and erasing the cached frame data based on the target erasing camera.
The video memory may also be referred to as a frame buffer. The video memory can be used for storing rendering data processed or to be extracted by the video card chip, namely the video memory is a component used for storing image information to be processed. The buffered frame data may store data in a video memory.
It should be noted that, since the target erasing camera is required to erase the buffered frame data during the camera switching, the target erasing camera can be earlier than the camera operating time to which the camera is switched. Of course, the system may also work simultaneously with the switched camera, as long as the buffered frame data stored in the graphics card can be deleted.
Specifically, after the target erasing camera receives the call instruction, the target erasing camera may be started. When the target erasing camera works, the frame data buffered in the display memory can be erased.
In this embodiment, the erasing the buffered frame data based on the target erasing camera includes: erasing the buffered frame data according to attribute information corresponding to the target erasure camera.
The attribute information may be parameter information of a preset target erasing camera.
Specifically, the target erasing camera erases the cached frame data according to preset attribute information.
On the basis of the above technical solution, the erasing the cached frame data according to the attribute information corresponding to the target erasing camera includes: and erasing full-screen data based on the depth value in the target erasing camera, erasing the cached frame data based on an erasing parameter, and setting the erased background as a preset color according to the background parameter.
Wherein the preset color may be black. The advantage of setting to black is that, avoids the display to deposit and reveals, leads to the problem that the image worn the group. Full screen data may be erased based on the depth value.
Specifically, after the target erasing camera is called, the target erasing camera may erase full-screen data in the display memory according to preset attribute information, for example, according to a depth value in the attribute information; the erased background color may be set to a preset color, such as black, according to the background parameter in the attribute information.
On the basis of the above technical solution, the attribute information further includes a task execution duration, and the erasing of the cached frame data based on the target erasing camera includes: determining the working time of the target erasing camera according to the preset task execution time; and based on the working duration, erasing the cached frame data in the working duration, wherein the task execution duration can be the working duration of the erasing camera, namely the preset duration. The duration of operation may be one minute, two minutes, five minutes, etc., i.e., the target-erasing camera may be operated at all times.
Specifically, after the target erasing camera is called, the operation of erasing the cached frame data can be continuously executed according to the preset task execution duration, namely the target erasing camera duration, until the actual erasing duration reaches the preset duration.
For example, if the target erasing camera is continuously working, when a camera switching instruction is received, the buffered frame data can be erased directly based on the erasing camera; if the continuous working time of the target erasing camera is 2min, the target erasing camera can continuously work for 2min after being started, namely the target erasing camera can continuously work for two minutes to delete the cached frame data in the display memory. At this time, the technical effect that can be achieved is that no screen is needed. Meanwhile, when the mobile terminal plays the game, the problems of display memory shackle, jamming or flash back can be avoided.
According to the technical scheme of the embodiment of the invention, when the current camera is switched to other cameras, the starting instruction can be sent to the target erasing camera, so that the target erasing camera can delete the video frame data cached in the display memory, the problems that in the prior art, when the cameras are switched, the video frame data cached in the display memory are overlapped, and therefore the screen is blurred, and when a game is installed on a mobile terminal, the technical problems of jamming, downtime and backslash of the mobile terminal exist are solved, the corresponding images can be displayed when the cameras are switched, meanwhile, the problems of jamming and backslash of the mobile terminal can be avoided, and further, the technical effect of user experience is improved.
Example two
As an alternative embodiment of the foregoing embodiment, fig. 2 is a schematic diagram of an image erasing method according to a second embodiment of the present invention. The same or corresponding terms as those of the above-described embodiments will not be described again.
As shown in fig. 2, when it is detected that the camera corresponding to the main interface is switched to the camera corresponding to the game level main interface, or the camera corresponding to the game level main interface is switched to the camera corresponding to the main interface in the game level, that is, as long as the camera switching is detected, the camera erasing system provided in this embodiment, that is, the camera system corresponding to the target camera erasing system, may be called to execute the present technical solution.
The erasing camera system comprises a target erasing camera, an erasing camera attribute information manager and a result corresponding to the erasing camera during working. The camera refresh parameters, camera depth, and camera duration of the target erase camera may be set. The erasure camera attribute information manager includes an independent globally used erasure camera and a camera interface (onrfreshmera ()) that calls the independent uniquely erasure camera. Erasing the display result of the camera after working based on the target can be the effect of no screen splash, no jamming and no flash back.
According to the technical scheme of the embodiment of the invention, when the switching from the current camera to other cameras is detected, the starting instruction can be sent to the target erasing camera, so that the target erasing camera can delete the video frame data cached in the display memory, the problems that in the prior art, when the cameras are switched, the cached video frame data in the display memory are overlapped, and therefore, a screen is not displayed, and the technical problems that when a game is installed on a mobile terminal, the mobile terminal is stuck, down and back flashing exist are solved, the corresponding image can be displayed when the cameras are switched, meanwhile, the problems that the mobile terminal is stuck and back flashing exist can be avoided, and further, the technical effect of user experience is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an image erasing apparatus according to a third embodiment of the present invention, the apparatus including: the command sending module 310 and the erasing module 320 are called.
The calling instruction sending module 310 is configured to send a calling instruction to a target erasing camera when receiving an instruction to switch from a current camera to another camera; the erasing module 320 is configured to start the target erasing camera based on the call instruction, and erase the cached frame data based on the target erasing camera.
According to the technical scheme of the embodiment of the invention, when the switching from the current camera to other cameras is detected, the starting instruction can be sent to the target erasing camera, so that the target erasing camera can delete the video frame data cached in the display memory, the problems that in the prior art, when the cameras are switched, the cached video frame data in the display memory are overlapped, and therefore, a screen is not displayed, and the technical problems that when a game is installed on a mobile terminal, the mobile terminal is stuck, down and back flashing exist are solved, the corresponding image can be displayed when the cameras are switched, meanwhile, the problems that the mobile terminal is stuck and back flashing exist can be avoided, and further, the technical effect of user experience is improved.
On the basis of the above technical solution, the apparatus further includes: the attribute information management module is used for erasing a camera manager on a target in a target project and managing the attribute information based on the target erasing camera manager; and the creating unit is used for creating at least one target erasing camera so as to erase the cached frame data according to the attribute information based on the at least one target erasing camera.
On the basis of the foregoing technical solutions, the calling instruction sending module 310 is further configured to call a camera interface corresponding to the target erasing camera when a switching instruction for switching from the current camera to another camera is received, and send a calling instruction to the target erasing camera based on the camera interface.
On the basis of the above technical solutions, the erasing module is further configured to erase the cached frame data according to the attribute information corresponding to the target erasing camera.
On the basis of the technical solutions, the attribute information includes a camera erasing parameter, a camera depth value and a camera background parameter, and the erasing module is further configured to erase full-screen data based on the target erasing depth value in the camera, erase the cached frame data based on the erasing parameter, and set the erased background to a preset color according to the background parameter.
On the basis of the above technical solutions, the attribute information further includes a task execution duration, and the target erasure is further configured to: determining the working time of the target erasing camera according to the preset task execution time; and based on the working duration, erasing the cached frame data in the working duration.
On the basis of the above technical solutions, the apparatus further includes: the attribute information editing module is used for erasing a camera manager on a target in a target project and managing the attribute information based on the target erasing camera manager; and the camera creating module is used for creating at least one target erasing camera so as to erase the cached frame data based on the at least one camera according to the attribute information.
The image erasing device provided by the embodiment of the invention can execute the image erasing method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the present invention.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary electronic device 40 suitable for use in implementing embodiments of the present invention. The electronic device 40 shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 4, electronic device 40 is embodied in the form of a general purpose computing device. The components of the electronic device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 that couples the various system components (including the system memory 402 and the processing unit 401).
Bus 403 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 40 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 40 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 404 and/or cache memory 405. The electronic device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 by one or more data media interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 407 generally perform the functions and/or methodologies of embodiments of the invention as described.
The electronic device 40 may also communicate with one or more external electronic devices 409 (e.g., keyboard, pointing device, display 410, etc.), with one or more devices that enable a user to interact with the electronic device 40, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 40 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interface 411. Also, the electronic device 40 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 412. As shown, the network adapter 412 communicates with the other modules of the electronic device 40 over the bus 403. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 401 executes various functional applications and data processing, such as implementing an image erasing method provided by an embodiment of the present invention, by running a program stored in the system memory 402.
EXAMPLE five
Fifth, an embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform an image erasing method.
The method comprises the following steps: when receiving an instruction for switching from the current camera to other cameras, sending a calling instruction to a target erasing camera;
starting the target erasing camera based on the calling instruction, and erasing the cached frame data based on the target erasing camera when the cached frame data display is finished.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing description is only exemplary of the invention and that the principles of the technology may be employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. An image erasing method, comprising:
when receiving an instruction for switching from the current camera to other cameras, sending a calling instruction to a target erasing camera;
starting the target erasing camera based on the calling instruction, and erasing cache frame data based on the target erasing camera;
wherein the erasing the buffered frame data based on the target erasure camera comprises:
erasing the cached frame data according to attribute information corresponding to the target erasure camera, wherein the attribute information comprises camera erasure parameters, camera depth values and camera background parameters;
and erasing full-screen data based on the depth value in the target erasing camera, erasing the cached frame data based on an erasing parameter, and setting the erased background as a preset color according to the background parameter.
2. The method of claim 1, wherein sending a call instruction to a target erasing camera when receiving an instruction to switch from a current camera to another camera comprises:
when a switching instruction for switching from the current video camera to other video cameras is received, a camera interface corresponding to the target erasing video camera is called, and a calling instruction is sent to the target erasing video camera based on the camera interface.
3. The method of claim 1, wherein the attribute information further includes a task execution duration, and wherein erasing buffered frame data based on the target erasure camera includes:
determining the working time of the target erasing camera according to the preset task execution time;
and based on the working duration, erasing the cached frame data in the working duration.
4. The method of claim 1, further comprising:
a target-erasure camera manager within the target project, the attribute information managed based on the target-erasure camera manager;
creating at least one target erasing camera to erase the buffered frame data based on the at least one camera according to the attribute information.
5. An image erasing apparatus, comprising:
the calling instruction sending module is used for sending a calling instruction to the target erasing camera when receiving an instruction for switching from the current camera to other cameras;
the erasing module is used for starting the target erasing camera based on the calling instruction and erasing the cached frame data based on the target erasing camera when the cached frame data display is finished;
the erasing module is specifically configured to erase the cached frame data according to attribute information corresponding to the target erasing camera, where the attribute information includes a camera erasing parameter, a camera depth value, and a camera background parameter;
and erasing full-screen data based on the depth value in the target erasing camera, erasing the cached frame data based on an erasing parameter, and setting the erased background as a preset color according to the background parameter.
6. The apparatus of claim 5, further comprising:
the attribute information management module is used for erasing a camera manager on a target in a target project and managing the attribute information based on the target erasing camera manager;
and the creating unit is used for creating at least one target erasing camera so as to erase the cached frame data according to the attribute information based on the at least one target erasing camera.
7. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the image erasing method of any of claims 1-4.
8. A storage medium containing computer executable instructions for performing the image erasing method of any of claims 1-4 when executed by a computer processor.
CN202011643114.XA 2020-12-30 2020-12-30 Image erasing method and device, electronic equipment and storage medium Active CN112584236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011643114.XA CN112584236B (en) 2020-12-30 2020-12-30 Image erasing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011643114.XA CN112584236B (en) 2020-12-30 2020-12-30 Image erasing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112584236A CN112584236A (en) 2021-03-30
CN112584236B true CN112584236B (en) 2022-10-14

Family

ID=75144504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011643114.XA Active CN112584236B (en) 2020-12-30 2020-12-30 Image erasing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112584236B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1845064A (en) * 2005-04-08 2006-10-11 佳能株式会社 Information processing method and apparatus
JP2011212282A (en) * 2010-03-31 2011-10-27 Kyoraku Sangyo Kk Game machine
CN106056655A (en) * 2016-09-06 2016-10-26 珠海金山网络游戏科技有限公司 Editable virtual camera system and method
WO2019184498A1 (en) * 2018-03-28 2019-10-03 上海掌门科技有限公司 Video interactive method, computer device and storage medium
CN111556283A (en) * 2020-03-18 2020-08-18 深圳市华橙数字科技有限公司 Monitoring camera management method and device, terminal and storage medium
CN111589146A (en) * 2020-04-27 2020-08-28 腾讯科技(深圳)有限公司 Prop operation method, device, equipment and storage medium based on virtual environment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5227910B2 (en) * 2009-07-21 2013-07-03 株式会社コナミデジタルエンタテインメント Video game apparatus, game image display method, and game image display program
CN108989580A (en) * 2018-10-25 2018-12-11 努比亚技术有限公司 Camera switching method, mobile terminal and readable storage medium storing program for executing
CN111679738B (en) * 2020-05-29 2023-06-23 阿波罗智联(北京)科技有限公司 Screen switching method and device, electronic equipment and storage medium
CN111803946B (en) * 2020-07-22 2024-02-09 网易(杭州)网络有限公司 Method and device for switching lenses in game and electronic equipment
CN111773709B (en) * 2020-08-14 2024-02-02 网易(杭州)网络有限公司 Scene map generation method and device, computer storage medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1845064A (en) * 2005-04-08 2006-10-11 佳能株式会社 Information processing method and apparatus
JP2011212282A (en) * 2010-03-31 2011-10-27 Kyoraku Sangyo Kk Game machine
CN106056655A (en) * 2016-09-06 2016-10-26 珠海金山网络游戏科技有限公司 Editable virtual camera system and method
WO2019184498A1 (en) * 2018-03-28 2019-10-03 上海掌门科技有限公司 Video interactive method, computer device and storage medium
CN111556283A (en) * 2020-03-18 2020-08-18 深圳市华橙数字科技有限公司 Monitoring camera management method and device, terminal and storage medium
CN111589146A (en) * 2020-04-27 2020-08-28 腾讯科技(深圳)有限公司 Prop operation method, device, equipment and storage medium based on virtual environment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"VirtualCamera虚拟相机详解(一)";大智_洪流学堂;《CSDN》;20200209;全文 *

Also Published As

Publication number Publication date
CN112584236A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
US20220139352A1 (en) Method and Device for Image Composition, Electronic Device and Storage Medium
CN110047123B (en) Map rendering method, map rendering device, storage medium and computer program product
CN112685762B (en) Image processing method and device with privacy protection function, electronic equipment and medium
CN113115095B (en) Video processing method, video processing device, electronic equipment and storage medium
EP4174771A1 (en) Implementation method and apparatus for behavior analysis of moving target, and electronic device
CN113244612A (en) Locking mark display method and device, storage medium and electronic equipment
CN114979753A (en) Screen recording method, device, equipment and medium
CN110876086B (en) Bullet screen generation adjusting method, device, equipment and storage medium
CN103136176A (en) Method for inserting content in edited document and electronic equipment
CN112584236B (en) Image erasing method and device, electronic equipment and storage medium
CN112584237B (en) Image erasing method and device, electronic equipment and storage medium
CN111143602B (en) Case clue association method, system, electronic equipment and storage medium
CN112584235B (en) Image erasing method and device, electronic equipment and storage medium
CN109859328B (en) Scene switching method, device, equipment and medium
CN115866314A (en) Video playing method and device
CN112843695B (en) Method and device for shooting image, electronic equipment and storage medium
CN112367295B (en) Plug-in display method and device, storage medium and electronic equipment
CN110933455B (en) Video screening method and device, electronic equipment and storage medium
CN112843736A (en) Method and device for shooting image, electronic equipment and storage medium
CN109242763B (en) Picture processing method, picture processing device and terminal equipment
CN111292392A (en) Unity-based image display method, apparatus, device and medium
CN110838083A (en) Watermark adding method, device, equipment and storage medium
US11886893B2 (en) Method and device for capturing screen and terminal
CN112288774B (en) Mobile detection method, mobile detection device, electronic equipment and storage medium
CN112860372B (en) Method and device for shooting image, electronic 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