Data processing method, device, storage medium and electronic device
By receiving the trigger signal of data display and sending it to the big data center for matching, the problem of low data processing efficiency in the prior art is solved, and more efficient data processing is achieved.
Patent Information
- Application Number
- CN202110887672.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-03
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2041-08-03
AI Technical Summary
Existing data processing methods occupy a large amount of memory during the instantiation process, seriously affecting the data processing efficiency.
By receiving the trigger signal of data display, a data request is generated and sent to the big data center, and the display data stored in the big data center is used to match the display data and object identifiers, reducing the local data generation process, and directly rendering the feedback display data.
It reduces the process of displaying data generation, saves processing time, reduces local memory usage, and improves data processing efficiency.
Smart Images

Figure CN113609194B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a data processing method, device, storage medium, and electronic device. Background Art
[0002] With the development of animation technology, the expressiveness of images has been greatly improved. For example, in the process of video or game production, the image effects can be improved and displayed by using data processing technology.
[0003] In the process of game production, the data processing method is mainly to create multiple instantiated objects according to the target object (such as characters, pets, etc.), store the instantiated objects in a preset position, and take out an instantiated object from the preset position for display at regular intervals.
[0004] However, the above data processing method occupies a large amount of memory during the instantiation process, which seriously affects the data processing efficiency. Summary of the invention
[0005] Embodiments of the present invention provide a data processing method, device, storage medium and electronic device to improve data processing efficiency.
[0006] In a first aspect, an embodiment of the present invention provides a data processing method, including:
[0007] Receiving a trigger signal for data display, wherein the trigger signal includes an object identifier and configuration information for display;
[0008] generating a data request based on the trigger signal, and sending the data request to a big data center, wherein the big data center stores display data uploaded by different terminals and object identifiers and configuration information corresponding to each display data, and is used to respond to the data request and determine the display data corresponding to the data request in the stored display data;
[0009] Receive the display data fed back by the big data center, and render the display data.
[0010] In a second aspect, an embodiment of the present invention further provides a data processing device, including:
[0011] A trigger signal receiving module, used to receive a trigger signal for data display, wherein the trigger signal includes an object identifier and configuration information for display;
[0012] a display data determination module, configured to generate a data request based on the trigger signal, and send the data request to a big data center, wherein the big data center stores display data uploaded by different terminals and object identifiers and configuration information corresponding to each display data, and is configured to respond to the data request and determine the display data corresponding to the data request in the stored display data;
[0013] The display data rendering module is used to receive the display data fed back by the big data center and render the display data.
[0014] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0015] one or more processors;
[0016] a storage device for storing one or more programs,
[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement any data processing method described in the embodiments of the present invention.
[0018] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute any of the data processing methods described in the embodiments of the present invention.
[0019] The present invention receives a trigger signal for data display, wherein the trigger signal includes an object identifier and configuration information for display, generates a data request based on the trigger signal, and sends the data request to a big data center, so that the data request matches the display data stored in the big data center with the object identifier and configuration information corresponding to each display data, determines the display data corresponding to the data request, reduces the display data generation process, and saves processing time; further, by receiving the display data fed back by the big data center, the display data can be directly rendered, which reduces the occupancy of local memory and improves the efficiency of data processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required to describe the embodiments. Obviously, the drawings introduced are only drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 It is a flowchart of a data processing method provided by Embodiment 1 of the present invention;
[0022] Figure 2 It is a flowchart of a data processing method provided by Embodiment 2 of the present invention;
[0023] Figure 3 It is a flowchart of a data processing method provided by Embodiment 3 of the present invention;
[0024] Figure 4 is a structural schematic diagram of a data processing device provided by Embodiment 4 of the present invention;
[0025] Figure 5 It is a structural schematic diagram of an electronic device provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION
[0026] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention.
[0027] It should also be noted that, for ease of description, only the part relevant to the present invention but not all content is shown in the accompanying drawings. It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processing or methods depicted as flow charts. Although the flow chart describes each operation (or step) as sequential processing, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. When its operation is completed, the processing can be terminated, but it can also have additional steps not included in the accompanying drawings. The processing can correspond to methods, functions, procedures, subroutines, subprograms, etc.
[0028] Embodiment 1
[0029] Figure 1 This is a flowchart of a data processing method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case where data is automatically generated and retrieved during the screen display process. The method can be executed by the data processing device provided in the embodiment of the present invention. The device can be implemented by software and / or hardware. The device can be configured on an electronic computing device, such as a terminal and / or a server. Specifically, it includes the following steps:
[0030] S110: Receive a trigger signal for data display, wherein the trigger signal includes an object identifier and configuration information for display.
[0031] Among them, the trigger signal can be generated by operating the game interface control or a signal input by an input device such as a keyboard or a mouse. There are many types of trigger signals, for example, special effect trigger signals, afterimage trigger signals, interface display trigger signals, etc. The object identifier can be one or more display object identifiers that need to be displayed in the display screen. In some embodiments, the object identifier is unique, and each object identifier corresponds to a unique object. In other embodiments, the target object identifier can be a type identifier of the target object, and each template object type corresponds to a unique identifier.
[0032] For example, in a game scenario, the object identifier may include but is not limited to the character identifier, mount identifier, etc. in the game. The character identifier may include but is not limited to information such as a mage, a warrior, or a doctor; the mount identifier may include but is not limited to information such as a deer, a bear, or a horse.
[0033] The configuration information may be information about each configurable object on the display object, and the configurable objects include but are not limited to props, equipment, fashion, hair accessories, skin, etc. For example, in some embodiments, the configuration information may be the shape, color, or special effects of a weapon or fashion. In another embodiment, the configuration information may be the identifier of each configurable object, which is a unique identifier of the object. The configuration information is determined by identifying the identifier of the object that has been configured on the display object.
[0034] S120. Generate a data request based on the trigger signal, and send the data request to a big data center.
[0035] The big data center stores display data uploaded by different terminals and object identifiers and configuration information corresponding to each display data, and is used to respond to the data request and determine the display data corresponding to the data request in the stored display data.
[0036] It should be noted that the data request includes the object identification and configuration information corresponding to the trigger signal. When the trigger signal is received, the data request can be immediately triggered to achieve a quick response. The data request can also be generated by multiple trigger signals. For example, when a preset number of trigger signals are received, the data request is triggered. The advantage of this setting is that while ensuring a quick data response, the number of data transmissions is also reduced, saving system resources.
[0037] The big data center stores multiple display data, each of which corresponds to an object identifier and configuration information. The big data center receives a data request, performs matching based on the object identifier and configuration information in the data request as an index, determines the display data that matches successfully, and feeds the display data back to the terminal.
[0038] In some embodiments, the display data of the big data center is uploaded by different terminals, and the uploaded display data and the corresponding object identifier and configuration information are associated and stored. Optionally, when the uploaded display data is received, it is determined whether there is stored display data based on the index information of the display data. If so, the display data is discarded, and if not, the display data is stored. It should be noted that the index information of the display data is not limited to the object identifier and configuration information, and can also include display angles and data types, which are not limited to this.
[0039] In some embodiments, the display data stored in the big data center includes different types of display data, including but not limited to display data for texture refinement, stereo enhancement, afterimage effect and screen display, and the big data center may be a database created to store different types of display data, and the database to be stored is determined based on the type of uploaded display data. Accordingly, the big data center receives a data request, and matches the display data in the corresponding database based on the data type of the data request, wherein the data type of the data request is determined based on a trigger signal. By storing display data of different data types separately, it is convenient to match the display data in a targeted manner, avoid interference from other data types, and improve matching efficiency.
[0040] S130: Receive display data fed back by the big data center, and render the display data.
[0041] The display data is a binary file of the object to be displayed, which may include but is not limited to image frames, sequence frame animations, etc. In the game scene, the display data may specifically include but is not limited to afterimage image frames, afterimage sequence frame animations, window sequence frame animations, etc.
[0042] In some embodiments, the current display position of the display data can be determined according to the current position of the display object, a display billboard can be created at the current display position, and the display data can be rendered on the display billboard. The current display position refers to the position in the display image where the effect is displayed, which can be one or more positions. In another embodiment, the display data can be rendered at the interface display position. The interface display position refers to the position in the interface where the target object can be displayed, and the interface display position can be located at any position of the interface to be displayed. For example, the interface display position can be the character display frame in the upper left corner, or the mount display frame in the middle. This embodiment does not specifically limit the interface display position.
[0043] A data processing method provided by an embodiment of the present invention receives a trigger signal for data display, wherein the trigger signal includes an object identifier and configuration information for display, generates a data request based on the trigger signal, and sends the data request to a big data center, wherein the big data center stores display data uploaded by different terminals and object identifiers and configuration information corresponding to each display data, and is used to respond to the data request, determine the display data corresponding to the data request in the stored display data; receive the display data fed back by the big data center, and render the display data. The technical solution of the embodiment of the present invention can directly determine the display data corresponding to the data request from the big data center by sending a data request to the big data center, thereby reducing the process of generating display data and improving the efficiency of data processing.
[0044] The present invention receives a trigger signal for data display, wherein the trigger signal includes an object identifier and configuration information for display, generates a data request based on the trigger signal, and sends the data request to a big data center, so that the data request matches the display data stored in the big data center with the object identifier and configuration information corresponding to each display data, determines the display data corresponding to the data request, reduces the display data generation process, and saves processing time; further, receives the display data fed back by the big data center, renders the display data, reduces the occupancy of local memory, and improves the efficiency of data processing.
[0045] Embodiment 2
[0046] Figure 2 A flowchart diagram of a data processing method provided for the second embodiment of the present invention, based on the above embodiment, after receiving the display data fed back by the big data center, the method further includes: storing the at least one display data in a local storage location, and judging the acquired display data in turn based on the object identification, configuration information and display parameters in the trigger signal, and determining the target display data for display. The specific implementation method can be found in the detailed description of the technical solution. Among them, the technical terms that are the same as or corresponding to the above embodiment are not repeated here. Figure 2 As shown, the method of the embodiment of the present invention specifically includes the following steps:
[0047] S210: Receive a trigger signal for data display, wherein the trigger signal includes an object identifier and configuration information for display.
[0048] S220: Generate a data request based on the trigger signal, and send the data request to a big data center.
[0049] S230: Receive display data fed back by the big data center.
[0050] The display data fed back by the big data center is at least one display data corresponding to the object identifier and the configuration information.
[0051] It can be understood that the big data center stores display data uploaded by multiple terminals and object identifiers and configuration information corresponding to each display data. Since each display object has display images or animations collected at different angles, or each display object has display images or animations collected under different actions, the display data fed back by the big data center is one or more display data.
[0052] S240: Store the at least one display data in a local storage location, and judge the acquired display data in sequence based on the object identifier, configuration information, and display parameters in the trigger signal, determine target display data for display, and render the target display data.
[0053] The local storage location may be located in the terminal or the edge server, which is not limited in this embodiment. The display parameters may include information such as display angle, display position, and display action. In some embodiments, the display data is stored in the edge server. The advantage of such a setting is that it can improve the data processing speed while reducing the memory usage of the terminal, thereby reducing the configuration requirements of the user terminal.
[0054] In some embodiments, the object identifier in the trigger signal is judged with the acquired display data. If the object identifier in the trigger signal is the same as the object identifier in the display data, the judgment continues, otherwise, the judgment ends. If the configuration information in the trigger signal is the same as the configuration information in the display data, the judgment continues, otherwise, the judgment ends. If the display parameters in the trigger signal are the same as the display parameters in the display data, the target display data for display is determined, that is, the object identifier, configuration information and display parameters are all the same as the object identifier, configuration information and display parameters in the display data, the target display data for display is determined, and the target display data is rendered. It can be understood that by matching the display data in the local storage location through the object identifier, the number of matched display data is large, and the scope can be further narrowed by determining the configuration information and display parameters to achieve a more accurate match.
[0055] The present invention retrieves display data from a big data center and stores the display data in a local storage location to determine target display data, thereby reducing the hardware configuration requirements of the terminal and also improving data processing efficiency.
[0056] Based on the above embodiment, before generating a data request based on the trigger signal, the method further includes: determining whether the local storage location includes corresponding display data based on the object identifier and configuration information.
[0057] If the object identifier and configuration information in the trigger signal are exactly the same as the object identifier and configuration information in the display data matched in the local storage location, the local storage location includes the corresponding display data, and then the trigger signal is interrupted to generate a data request, and the display data that matches the same is directly determined as the target display data, and the target display data is rendered. The embodiment of the present invention determines whether the local storage location includes the corresponding display data based on the object identifier and configuration information before the trigger signal generates a data request, which can reduce data requests with the big data center, realize local retrieval, and thus improve data processing efficiency.
[0058] The embodiment of the present invention provides a data processing method, which facilitates rapid response of display data by retrieving display data from a big data center and storing the display data in a local storage location, thereby improving data processing efficiency. At the same time, based on the object identification, configuration information and display parameters in the trigger signal, the acquired display data is judged in turn, achieving accurate matching of the display data and improving the reliability of the data.
[0059] Embodiment 3
[0060] Figure 3 A flowchart diagram of a data processing method provided for the third embodiment of the present invention, based on the above embodiment, the method further includes: if the big data center feeds back a prompt message of a failed match, calling the corresponding model combination based on the trigger signal, generating display data based on the image frames generated by the model combination, and uploading the display data to the big data center, wherein the model combination includes a processing model and a virtual camera, and the virtual camera is used to collect image frames of the processing model. The specific implementation method can be found in the detailed description of the technical solution. Among them, the technical terms that are the same as or corresponding to the above embodiment are not repeated here. Figure 3 As shown, the method of the embodiment of the present invention specifically includes the following steps:
[0061] S310: Receive a trigger signal for data display, wherein the trigger signal includes an object identifier and configuration information for display.
[0062] S320: Generate a data request based on the trigger signal, and send the data request to a big data center.
[0063] S330: If the match is successful, receiving the display data fed back by the big data center, and rendering the display data.
[0064] S340: If the big data center feeds back a prompt message indicating a matching failure, the corresponding model combination is called based on the trigger signal, display data is generated based on the image frame generated by the model combination, and the display data is uploaded to the big data center.
[0065] Among them, the model combination includes a processing model and a virtual camera, and the virtual camera is used to collect image frames of the processing model. The model combination can be used to establish the relationship between the object identification and the processing model. The model combination can include but is not limited to types such as texture refinement, stereo enhancement, afterimage effect and screen display according to the functional division. The processing model can be used to process the displayed object, and the processing method can include but is not limited to texture refinement processing, stereo enhancement processing, afterimage effect processing and screen display processing. Different processing models correspond to model combinations with different functions. Exemplarily, for the model combination of afterimage effect, the processing model therein can be an afterimage model, which is a model obtained by processing the initial shadow model with the afterimage effect, wherein the afterimage effect processing can include but is not limited to contour highlighting processing, detail blurring processing, etc. The virtual camera in the model combination collects image frames of the afterimage model processed with the afterimage effect, and the obtained image frames can be directly used as the afterimage data of the target object. For the model combination for screen display, the processing model can be an initial shadow model used for screen display, wherein the initial shadow model can be understood as a basic model, which is configured with the same basic information as any object type, and the basic information may include but is not limited to the identification, facial features or body shape of the target object. Different object types have different initial shadow models. For example, the mage and display correspond to different initial shadow models, and the same type of objects operated by different users correspond to the same initial shadow model.
[0066] Specifically, if the big data center feeds back a prompt message indicating that the match failed, the terminal or edge server calls the model combination according to the object identification and configuration information of the trigger signal. During the execution of the model combination, the processing model is photographed by a virtual camera, and an image frame of the processing model corresponding to the object can be obtained, and the image frame is arranged and combined to form display data, which is rendered to respond to the trigger information. In this embodiment, the obtained display data is uploaded to the big data center to improve the comprehensiveness of the big data center and facilitate subsequent calls by other user devices or the current device.
[0067] Optionally, in some embodiments, the processing model can be mounted on a preset empty node, and the processing model mounted on the empty node can be photographed by a virtual camera to obtain an image frame of the processing model. The model combination can be created by the edge server or by the terminal, and uploaded to the edge server after the terminal sends a trigger signal to the edge server. This embodiment does not limit this.
[0068] Based on the above embodiment, the display data includes afterimage display data, wherein the method for generating the afterimage display data includes: obtaining image frames captured sequentially by the virtual camera according to a preset time interval, wherein the afterimage model in the afterimage model combination is triggered to perform a target action during the image frame capture process; and generating the afterimage display data based on the image frames.
[0069] The preset time may be a fixed value or a value that changes with some control parameters. For example, the greater the movement speed, the longer the interval between the afterimages of the display object. However, too large a distance will reduce the effect of the afterimage. Therefore, the time interval can be shortened at this time. The standard for shortening the time interval can be set to make the distance between the image frames of two adjacent afterimage models less than a predetermined value. This predetermined value can be set with reference to the volume of the display object. The larger the volume of the display object, the larger the predetermined value. The target action performed by the afterimage model can be determined based on the display requirement. The display requirement can be configured in the trigger signal. Exemplarily, the display requirement can be an action identifier or a special effect identifier. The above-mentioned action identifier or special effect identifier can correspond to different target actions respectively.
[0070] On the basis of the above-mentioned embodiment, the generation of afterimage display data based on the image frames includes: performing transparent processing on each image frame respectively to obtain display data corresponding to each image frame; or forming a sequence frame based on the timestamp of each image frame, performing afterimage fading processing on the sequence frame to obtain display data of the target object.
[0071] In order to achieve the afterimage effect, transparent processing can be performed, and the processing object of the transparent processing is the image frame of the afterimage model. The specific process of transparent processing is to increase the transparency of the image frame in turn for any image frame to obtain image frames with different transparencies, and combine the above-mentioned image frames with different transparencies in sequence according to the transparency of each image frame to obtain the afterimage data corresponding to the corresponding image frame. Similarly, the above-mentioned transparent processing is performed on each acquired image frame to obtain the afterimage data corresponding to each image frame. In an embodiment of the present invention, by performing transparent processing on the image frames of each afterimage model, it can be achieved that the image frame of the afterimage model gradually disappears in the screen display, producing a fading effect.
[0072] The afterimage fading process can be understood as fading each image frame in the sequence frame in order. Specifically, according to the sorting result, each image frame in the sequence frame is subjected to the afterimage fading process in turn, and the faded image frames disappear in turn, showing a series of blurred images following the target object, just like the shadow of the target object, which will produce a visual afterimage effect. In the process of afterimage fading, the image frames gradually disappear from the sequence frames, and the sequence frames form an afterimage effect, that is, the afterimage data of the target object is obtained, which improves the user experience.
[0073] Based on the above embodiment, the display data includes interface display data, wherein the method for generating the interface display data includes: obtaining an image frame of the display model captured by the virtual camera based on a preset shooting angle; determining the image frame as display data, or combining the image frames captured at different time intervals to form display data.
[0074] Specifically, when the target object is a three-dimensional image, the display model is also a three-dimensional image and can be photographed from multiple angles. Therefore, the shooting angle of the virtual camera can be controlled to shoot the display model, obtain an image frame of the display model corresponding to the target object, and determine the image frame as the display data.
[0075] The shooting angle may be preset. In some embodiments, the shooting angle may be adjusted to be the same as the display angle of the target object, so as to improve the consistency between the display data and the display of the target object. Exemplarily, the shooting angle of the virtual camera is adjusted to 0 degrees, and the image frame of the current shadow model is obtained at this shooting angle. In some embodiments, the display angle of the page to be displayed may be used as a preset shooting angle to obtain an image frame that meets the display requirements. Exemplarily, the display angle may be 0 degrees.
[0076] In another embodiment, the virtual camera shoots the display model at different time intervals to obtain image frames of the display model. Exemplarily, the virtual camera starts shooting every 0.5 seconds to track and shoot the display model to obtain multiple image frames of the display model. The timestamps of the collected image frames are sorted, and the image frames are combined based on the sorting results of the image frames to form the display data of the target object.
[0077] An embodiment of the present invention provides a data processing method, which receives a trigger signal for data display, generates a data request based on the trigger signal, and sends the data request to a big data center. When the big data center feeds back a prompt message indicating a matching failure, the corresponding model combination is called through the trigger signal, display data is generated based on an image frame generated by the model combination, and the display data is uploaded to the big data center, thereby realizing the supplement of the display data in the big data center, facilitating the acquisition of subsequent display data, and improving data processing efficiency.
[0078] Embodiment 4
[0079] Figure 4This is a structural diagram of a data processing device provided in Embodiment 4 of the present invention. The data processing device provided in this embodiment can be implemented by software and / or hardware, and can be configured in a terminal and / or a server to implement the data processing method in the embodiment of the present invention. The device can specifically include: a trigger signal receiving module 410, a display data determining module 420, and a display data rendering module 430.
[0080] Among them, the trigger signal receiving module 410 is used to receive a trigger signal for data display, wherein the trigger signal includes an object identifier and configuration information for display; the display data determination module 420 is used to generate a data request based on the trigger signal, and send the data request to a big data center, wherein the big data center stores display data uploaded by different terminals and object identifiers and configuration information corresponding to each display data, and is used to respond to the data request and determine the display data corresponding to the data request in the stored display data; the display data rendering module 430 is used to receive the display data fed back by the big data center and render the display data.
[0081] An embodiment of the present invention provides a data processing device, which receives a trigger signal for data display, wherein the trigger signal includes an object identifier and configuration information for display, generates a data request based on the trigger signal, and sends the data request to a big data center, so that the data request matches the display data stored in the big data center with the object identifier and configuration information corresponding to each display data, determines the display data corresponding to the data request, reduces the process of display data generation, and saves processing time; further, receives the display data fed back by the big data center, renders the display data, reduces the occupancy of local memory, and improves the efficiency of data processing.
[0082] On the basis of any optional technical solution in the embodiments of the present invention, optionally, the display data fed back by the big data center is at least one display data corresponding to the object identifier and the configuration information; accordingly, after receiving the display data fed back by the big data center, the device further includes:
[0083] The target display data module is used to store the at least one display data in a local storage location, and to judge the acquired display data in turn based on the object identification, configuration information and display parameters in the trigger signal to determine the target display data for display.
[0084] Based on any optional technical solution in the embodiments of the present invention, optionally, before generating a data request based on the trigger signal, the device further includes:
[0085] The local data determination module is used to determine whether the local storage location includes corresponding display data based on the object identifier and configuration information.
[0086] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:
[0087] A display data generation module is used to call the corresponding model combination based on the trigger signal if the big data center feeds back a prompt message of matching failure, generate display data based on the image frames generated by the model combination, and upload the display data to the big data center, wherein the model combination includes a processing model and a virtual camera, and the virtual camera is used to collect image frames of the processing model.
[0088] On the basis of any optional technical solution in the embodiments of the present invention, optionally, the display data includes afterimage display data, wherein a generating unit of the afterimage display data includes:
[0089] An image frame acquisition subunit, used for acquiring image frames sequentially acquired by the virtual camera according to a preset time interval, wherein the afterimage model in the afterimage model combination is triggered to perform a target action during the acquisition process of the image frames;
[0090] The display data generating subunit is used to generate afterimage display data based on the image frame.
[0091] Based on any optional technical solution in the embodiments of the present invention, optionally, the display data generating subunit may be used to:
[0092] Perform transparent processing on each image frame to obtain display data corresponding to each image frame; or
[0093] A sequence of frames is formed based on the time stamp of each image frame, and afterimage fading processing is performed on the sequence of frames to obtain display data of the target object.
[0094] Based on any optional technical solution in the embodiments of the present invention, optionally, the display data includes interface display data, wherein the interface display data generation unit is used to:
[0095] Acquire an image frame of the display model acquired by the virtual camera based on a preset shooting angle;
[0096] The image frames are determined as display data, or the image frames collected at different time intervals are combined to form display data.
[0097] The data processing device provided in the embodiment of the present invention can execute the data processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0098] Embodiment 5
[0099] Figure 5 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present invention. Figure 5 A block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 5 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0100] like Figure 5 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0101] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0102] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0103] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0104] A program / utility 36 having a set (at least one) of program modules 26 may be stored, for example, in system memory 28, such program modules 26 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 26 generally perform the functions and / or methods of the embodiments described herein.
[0105] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the electronic device 12, and / or any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed through an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter 20. Figure 5 As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although Figure 5 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0106] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing a data processing method provided by the embodiment of the present invention.
[0107] Embodiment 6
[0108] Embodiment 6 of the present invention further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute a data processing method when executed by a computer processor, the method comprising:
[0109] Receiving a trigger signal for data display, wherein the trigger signal includes an object identifier and configuration information for display;
[0110] generating a data request based on the trigger signal, and sending the data request to a big data center, wherein the big data center stores display data uploaded by different terminals and object identifiers and configuration information corresponding to each display data, and is used to respond to the data request and determine the display data corresponding to the data request in the stored display data;
[0111] Receive the display data fed back by the big data center, and render the display data.
[0112] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0113] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0114] 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.
[0115] Computer program code for performing the operation of embodiments of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's 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 may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0116] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A data processing method, characterized in that: include: Receiving a trigger signal for data display, wherein the trigger signal includes an object identifier and configuration information for display; Generate a data request based on the trigger signal, and send the data request to a big data center, wherein the big data center stores display data uploaded by different terminals and object identifiers and configuration information corresponding to each display data, and is used to respond to the data request and determine the display data corresponding to the data request in the stored display data; the display data is a binary file of the object to be displayed, including image frames and sequence frame animations; receiving display data fed back by the big data center, and rendering the display data; The display data fed back by the big data center is at least one display data corresponding to the object identifier and the configuration information; Correspondingly, after receiving the display data fed back by the big data center, the method further includes: storing the at least one display data in a local storage location, and judging the acquired display data in turn based on the object identifier, configuration information and display parameters in the trigger signal to determine the target display data to be displayed; the local storage location is located in the edge server; Before generating the data request based on the trigger signal, the method further includes: determining whether the local storage location includes corresponding display data based on the object identifier and configuration information; The method further comprises: If the big data center feeds back a prompt message of matching failure, the corresponding model combination is called based on the trigger signal, display data is generated based on the image frames generated by the model combination, and the display data is uploaded to the big data center, wherein the model combination includes a processing model and a virtual camera, the virtual camera is used to collect image frames of the processing model, and the processing model is used to process the displayed objects, and the processing methods include: texture refinement processing, stereo enhancement processing, afterimage effect processing and picture display processing.
2. The method according to claim 1, characterized in that The display data includes afterimage display data, and the processing model includes an afterimage model; wherein the method for generating the afterimage display data includes: Acquire image frames sequentially captured by the virtual camera according to a preset time interval, wherein the afterimage model is triggered to perform a target action during the image frame capture process; Afterimage display data is generated based on the image frame.
3. The method according to claim 2, characterized in that The generating afterimage display data based on the image frame comprises: Perform transparent processing on each image frame to obtain display data corresponding to each image frame; or A sequence of frames is formed based on the time stamp of each image frame, and afterimage fading processing is performed on the sequence of frames to obtain display data of the target object.
4. The method according to claim 1, characterized in that: The display data includes interface display data, wherein the method for generating the interface display data includes: Acquire an image frame of the display model acquired by the virtual camera based on a preset shooting angle; The image frames are determined as display data, or the image frames collected at different time intervals are combined to form display data.
5. A data processing device, characterized in that: include: A trigger signal receiving module, used to receive a trigger signal for data display, wherein the trigger signal includes an object identifier and configuration information for display; a display data determination module, configured to generate a data request based on the trigger signal, and send the data request to a big data center, wherein the big data center stores display data uploaded by different terminals and object identifiers and configuration information corresponding to each display data, and is configured to respond to the data request and determine the display data corresponding to the data request in the stored display data; the display data is a binary file of an object to be displayed, including image frames and sequence frame animations; A display data rendering module, used to receive the display data fed back by the big data center and render the display data; The display data fed back by the big data center is at least one display data corresponding to the object identifier and the configuration information; Correspondingly, after receiving the display data fed back by the big data center, the device further includes: a target display data module, configured to store the at least one display data in a local storage location, and to judge the acquired display data in turn based on the object identifier, configuration information and display parameters in the trigger signal, and determine the target display data to be displayed; the local storage location is located in the edge server; Before generating the data request based on the trigger signal, the apparatus further includes: a local data determination module, configured to determine whether the local storage location includes corresponding display data based on the object identifier and configuration information; The device also includes: A display data generation module is used to call the corresponding model combination based on the trigger signal if the big data center feeds back a prompt message of matching failure, generate display data based on the image frames generated by the model combination, and upload the display data to the big data center, wherein the model combination includes a processing model and a virtual camera, the virtual camera is used to collect the image frames of the processing model, and the processing model is used to process the displayed object, and the processing methods include: texture refinement processing, stereo enhancement processing, afterimage effect processing and picture display processing.
6. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing 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 data processing method according to any one of claims 1 to 4.
7. A storage medium containing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to perform the data processing method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Image processing method and device
CN105163158A
Object display method and device of webpage end and readable storage medium
CN111494952A