CN111741257B - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111741257B
CN111741257B CN202010435903.8A CN202010435903A CN111741257B CN 111741257 B CN111741257 B CN 111741257B CN 202010435903 A CN202010435903 A CN 202010435903A CN 111741257 B CN111741257 B CN 111741257B
Authority
CN
China
Prior art keywords
data
data set
node
displayed
selected state
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
CN202010435903.8A
Other languages
Chinese (zh)
Other versions
CN111741257A (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.)
Shenzhen Sensetime Technology Co Ltd
Original Assignee
Shenzhen Sensetime Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Sensetime Technology Co Ltd filed Critical Shenzhen Sensetime Technology Co Ltd
Priority to CN202010435903.8A priority Critical patent/CN111741257B/en
Publication of CN111741257A publication Critical patent/CN111741257A/en
Priority to PCT/CN2020/133684 priority patent/WO2021232748A1/en
Priority to TW110100178A priority patent/TWI759059B/en
Application granted granted Critical
Publication of CN111741257B publication Critical patent/CN111741257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
    • 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • 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/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a data processing method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a first data set to be displayed; determining a data set to be monitored from the first data set to be displayed; the number of data contained in the data set to be monitored is less than that of the data contained in the first data set to be displayed; monitoring the data set to be monitored to obtain a monitoring result; and displaying the first data set to be displayed according to the monitoring result.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus, an electronic device, and a storage medium.
Background
In the process of displaying the page by the browser, the browser displays the data to be displayed through the page by rendering the data to be displayed. Since the data to be displayed may be updated over time, in order to enable the browser to display the updated data through the page in real time, the data to be displayed needs to be monitored to determine whether the data to be displayed is updated, so as to realize real-time display of the page.
Due to the fact that the quantity of the data needing to be displayed is large, hardware cost caused by monitoring the data needing to be displayed through a traditional method is large, the running speed of the browser is low, and even the situations that the browser is jammed and crashes are caused.
Disclosure of Invention
The application provides a data processing method and device, electronic equipment and a storage medium.
In a first aspect, a data processing method is provided, the method including:
acquiring a first data set to be displayed;
determining a data set to be monitored from the first data set to be displayed; the number of data contained in the data set to be monitored is less than that of the data contained in the first data set to be displayed;
monitoring the data set to be monitored to obtain a monitoring result;
and displaying the first data set to be displayed according to the monitoring result.
In this aspect, by monitoring the data set to be monitored in the first data set to be displayed, the amount of data to be monitored is reduced, and hardware resources consumed by monitoring the first data set to be displayed are reduced, thereby increasing the speed of displaying the first data set to be displayed by the data processing apparatus.
With reference to any embodiment of the present application, the determining a data set to be monitored from the first data set to be displayed includes:
and selecting at least one dynamic data from the first data set to be displayed to obtain the data set to be monitored.
In combination with any embodiment of the present application, the monitoring the data set to be monitored to obtain a monitoring result includes:
and obtaining the monitoring result by monitoring the selected state of the data set to be monitored.
With reference to any one of the embodiments of the present application, the displaying the first data set to be displayed according to the monitoring result includes:
under the condition that the monitoring result is not updated, displaying data required to be displayed in the first data set to be displayed in the current state;
under the condition that the monitoring result is updated, calculating the difference between the first data set and the second data set to obtain a second data set to be displayed; the first data set comprises the data set to be monitored in the current state; the second data set comprises the data set to be monitored in the next state;
and displaying the second data set to be displayed.
In combination with any embodiment of the present application, the selected state includes full selection and null selection;
the obtaining the monitoring result by monitoring the selected state of the data set to be monitored comprises:
under the condition that the first selected state and the second selected state are both selected completely, determining that the monitoring result is not updated; the first selected state is the selected state of the data set to be monitored in the current state; the second selected state is the selected state of the set of data to be listened to in the next state; or the like, or, alternatively,
determining that the monitoring result is not updated when the first selected state and the second selected state are both the empty selection; the first selected state is the selected state of the data set to be monitored in the current state; the second selected state is the selected state of the set of data to be listened to in the next state;
and determining that the monitoring result is updated when the first selected state and the second selected state are different.
With reference to any embodiment of the present application, the calculating a difference between the first data set and the second data set to obtain a second data set to be displayed includes:
under the condition that the third selected state and the fourth selected state are both the idle selection, calculating the difference between a third data set and a fourth data set to obtain a second data set to be displayed; the third selected state is the selected state of the first node in the current state; the fourth selected state is the selected state of the first node in the next state; the first node is a child node of the second node; the second node is a node of the data set to be monitored; the third data set comprises data in the first data set other than data in the first node; the fourth data set comprises data in the second data set other than data in the first node; or the like, or, alternatively,
under the condition that the third selected state and the fourth selected state are both selected completely, calculating the difference between the third data set and the fourth data set to obtain a second data set to be displayed; the third selected state is the selected state of the first node in the current state; the fourth selected state is the selected state of the first node in the next state; the first node is a child node of the second node; the second node is a node of the data set to be monitored; the third data set comprises data in the first data set other than data in the first node; the fourth data set includes data in the second data set other than data in the first node.
With reference to any embodiment of the present application, the calculating a difference between the third data set and the fourth data set to obtain the second data set to be displayed includes:
acquiring a display state of a third node; the third node is a brother node of the first node;
under the condition that the display state is folding, calculating the difference between a fifth data set and a sixth data set to obtain a second data set to be displayed; the fifth data set comprises data in the third data set other than data in a third node; the sixth data set includes data in the fourth data set other than data in the third node.
In combination with any embodiment of the present application, the first data set to be displayed includes: a first video stream;
the acquiring of the first dataset to be displayed includes:
acquiring at least one second video stream;
the first video stream is selected from the at least one second video stream upon receiving an instruction to select at least one video stream from the at least one second video stream.
In a second aspect, there is provided a data processing apparatus, the apparatus comprising:
an acquisition unit configured to acquire a first data set to be displayed;
the determining unit is used for determining a data set to be monitored from the first data set to be displayed; the number of data contained in the data set to be monitored is less than that of the data contained in the first data set to be displayed;
the monitoring unit is used for monitoring the data set to be monitored to obtain a monitoring result;
and the display unit is used for displaying the first data set to be displayed according to the monitoring result.
With reference to any embodiment of the present application, the determining unit is configured to:
and selecting at least one dynamic data from the first data set to be displayed to obtain the data set to be monitored.
With reference to any embodiment of the present application, the monitoring unit is configured to:
and obtaining the monitoring result by monitoring the selected state of the data set to be monitored.
In combination with any embodiment of the present application, the display unit is configured to:
under the condition that the monitoring result is not updated, displaying data required to be displayed in the first data set to be displayed in the current state;
under the condition that the monitoring result is updated, calculating the difference between the first data set and the second data set to obtain a second data set to be displayed; the first data set comprises the data set to be monitored in the current state; the second data set comprises the data set to be monitored in the next state;
and displaying the second data set to be displayed.
In combination with any embodiment of the present application, the selected state includes full selection and null selection;
the monitoring unit is configured to:
under the condition that the first selected state and the second selected state are both selected completely, determining that the monitoring result is not updated; the first selected state is the selected state of the data set to be monitored in the current state; the second selected state is the selected state of the set of data to be listened to in the next state; or the like, or, alternatively,
determining that the monitoring result is not updated when the first selected state and the second selected state are both the empty selection; the first selected state is the selected state of the data set to be monitored in the current state; the second selected state is the selected state of the set of data to be listened to in the next state;
and determining that the monitoring result is updated when the first selected state and the second selected state are different.
In combination with any embodiment of the present application, the display unit is configured to:
under the condition that the third selected state and the fourth selected state are both the idle selection, calculating the difference between a third data set and a fourth data set to obtain a second data set to be displayed; the third selected state is the selected state of the first node in the current state; the fourth selected state is the selected state of the first node in the next state; the first node is a child node of the second node; the second node is a node of the data set to be monitored; the third data set comprises data in the first data set other than data in the first node; the fourth data set comprises data in the second data set other than data in the first node; or the like, or, alternatively,
under the condition that the third selected state and the fourth selected state are both selected completely, calculating the difference between the third data set and the fourth data set to obtain a second data set to be displayed; the third selected state is the selected state of the first node in the current state; the fourth selected state is the selected state of the first node in the next state; the first node is a child node of the second node; the second node is a node of the data set to be monitored; the third data set comprises data in the first data set other than data in the first node; the fourth data set includes data in the second data set other than data in the first node.
In combination with any embodiment of the present application, the display unit is configured to:
acquiring a display state of a third node; the third node is a brother node of the first node;
under the condition that the display state is folding, calculating the difference between a fifth data set and a sixth data set to obtain a second data set to be displayed; the fifth data set comprises data in the third data set other than data in a third node; the sixth data set includes data in the fourth data set other than data in the third node.
In combination with any embodiment of the present application, the first data set to be displayed includes: a first video stream;
the acquisition unit is configured to:
acquiring at least one second video stream;
the first video stream is selected from the at least one second video stream upon receiving an instruction to select at least one video stream from the at least one second video stream.
In a third aspect, a processor is provided, which is configured to perform the method according to the first aspect and any one of the possible implementations thereof.
In a fourth aspect, an electronic device is provided, comprising: a processor, transmitting means, input means, output means, and a memory for storing computer program code comprising computer instructions, which, when executed by the processor, cause the electronic device to perform the method of the first aspect and any one of its possible implementations.
In a fifth aspect, there is provided a computer-readable storage medium having stored therein a computer program comprising program instructions which, if executed by a processor, cause the processor to perform the method of the first aspect and any one of its possible implementations.
A sixth aspect provides a computer program product comprising a computer program or instructions which, when run on a computer, causes the computer to perform the method of the first aspect and any of its possible implementations.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be described below.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 3 is a schematic diagram of a hardware structure of a data processing apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In the process of displaying the page, the browser displays the data to be displayed through the page by rendering the data to be displayed. Since the data to be displayed may be updated over time, in order to enable the browser to display the updated data through the page in real time, the data to be displayed needs to be monitored to determine whether the data to be displayed is updated, so as to realize real-time display of the page.
For example (example 1), xiaoming needs to fill out a shipping address during online shopping through a browser. When filling in the receiving address, the browser displays the selectable address range in the page for filling in the receiving address, and the selection sequence is as follows: country → province → city → district → street. Xiaoming has selected "china" among the national alternatives, at which point the browser displays all chinese provinces in the selectable address range for xiaoming selection. Xiaoming has selected Hunan province from all provinces in China, and at this moment, the data that need be displayed has been updated, can select the display content in the address range to update from all provinces in China to all cities in Hunan province. The display content of the page filling the receiving address can be updated under the condition that the data required to be displayed by the page filling the receiving address is monitored and the data in the optional address range is determined to be updated, and particularly, the display content in the optional address range is updated from all provinces in China to all cities in Hunan province.
In the traditional method, the real-time display of the page is realized by monitoring all data required to be displayed on the page. Continuing with example 1 (example 2), the data displayed on the page includes, in addition to the data in the selectable address range, the information of the item purchased in the xiaoming area and the shopping account name in the xiaoming area. In the process of filling in the receiving address in Xiaoming, monitoring not only data in the optional address range, but also information of commodities purchased in Xiaoming and a Xiaoming shopping account name. Due to the large amount of data to be displayed, hardware resources required to be consumed for monitoring the data to be displayed are large, wherein the hardware resources include the overhead of a memory. The consumption of hardware resources is large, which easily causes the running speed of the browser to be slow, and even causes the situations of dead jam, crash and the like of the browser.
Based on this, the embodiment of the present application provides a data processing method to reduce hardware resources consumed by monitoring data to be displayed.
The execution subject of the embodiment of the present application is a data processing apparatus, and optionally, the data processing apparatus may be one of the following: computer, server. The embodiments of the present application will be described below with reference to the drawings.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a data processing method according to an embodiment of the present disclosure.
101. A first dataset to be displayed is acquired.
In the embodiment of the application, the first data set to be displayed is data that can be displayed through a page. For example, in example 2, the first data set to be displayed includes data in the selectable address range, information on commodities purchased in xiaoming, and a shopping account name in xiaoming. For another example (example 3), minired browses a web page through a browser and views a video through the web page. At this time, the first set of data to be displayed includes the video, information of the video (including the name of the video), account information for viewing the video (including account avatar and account name).
In one implementation of obtaining the first set of data to be displayed, the data processing apparatus receives the first set of data to be displayed input by the user through the input component. The above-mentioned input assembly includes: keyboard, mouse, touch screen, touch pad, audio input device, etc.
In another implementation manner of acquiring the first data set to be displayed, the data processing apparatus receives the first data set to be displayed sent by the first terminal. Optionally, the first terminal may be any one of the following: cell-phone, computer, panel computer, server, wearable equipment.
For example, the data processing device has a communication connection with the server, via which the data processing device sends data requests to the server. The server, upon receiving the data request, transmits a data set displayable via a page to the data processing apparatus. The data processing device takes the data set as the first data set to be displayed when receiving the data set which is sent by the server and can be displayed through the page.
102. And determining a data set to be monitored from the first data set to be displayed.
In order to reduce the hardware resources consumed by monitoring the first set of data to be displayed, the amount of data to be monitored needs to be reduced. Unlike the conventional method of monitoring each data in the first data set to be displayed, the embodiment of the present application monitors only a part of the data in the first data set to be displayed, so as to reduce the amount of data to be monitored.
In one possible implementation, the data set to be monitored is determined from the first data set to be displayed, wherein the data set to be monitored contains a smaller amount of data than the first data set to be displayed. For example, the first set of data to be displayed includes data a, data b, and data c, and the set of data to be listened to determined from the first set of data to be displayed includes data a and data b.
103. And monitoring the data set to be monitored to obtain a monitoring result.
The data processing device monitors the data set to be monitored, so that whether the data set to be monitored is updated or not can be determined, and real-time display of the page is further realized.
In the embodiment of the present application, the monitoring result includes updated and non-updated results. And the monitoring result is updated, and the data set to be monitored in the current state is different from the data set to be monitored in the next state, namely the data to be displayed in the data set to be monitored is updated. And if the monitoring result is not updated, representing that the data set to be monitored in the current state is the same as the data set to be monitored in the next state, namely the data to be displayed in the data set to be monitored is not updated.
The current state refers to a current display state of the page, and the next state refers to a next display state of the current display state. For example, in the current display state of the page, the content that the data processing device can display through the page includes video stream 1 and video stream 2, where video stream 1 is a video stream captured by the camera in location a, and video stream 2 is a video stream captured by the camera in location B. Then in the current state the first set of data to be displayed comprises video stream 1 and video stream 2 and the set of data to be listened to comprises part of the data in the first set of data to be displayed. In the process of arresting the criminal suspect, the police locks the criminal suspect at the place B according to the information provided by the witness, and inputs an instruction for checking the video stream acquired by the camera at the place B to the data processing device (for example, the video stream acquired by the camera at the place B is selectively checked by a mouse). The data processing apparatus, upon receiving the instruction, determines that the content displayable via the page in the next display state of the page includes the video stream 2, and then in the next state, the first set of data to be displayed includes the video stream 2, and the set of data to be listened to includes a part of the data in the video stream 2.
Continuing the example following example 2 (example 4), the first dataset to be displayed includes data in the selectable address range, information on goods purchased, and a shopping account name, assuming that the dataset to be monitored includes data in the selectable address range. The data set to be monitored in the current state comprises: in all provinces of China, the data set to be monitored in the next state comprises: all cities in Hunan province. Since the data set to be monitored in the current state is different from the data set to be monitored in the next state, the monitoring result of the data set to be monitored is updated.
104. And displaying the first data set to be displayed according to the monitoring result.
The monitoring result is not updated, and the content required to be displayed in the data set to be monitored is represented to be unchanged, so that the display content of the page in the next state is the same as the display content of the page in the current state. Optionally, when the monitoring result is not updated, the data processing apparatus does not need to render any data, that is, displays the data to be displayed in the first set of data to be displayed in the current state.
The monitoring result is updated, and the content required to be displayed in the data set to be monitored is represented to be changed, that is, the display content of the page in the current state cannot be used as the display content of the page in the next state. Therefore, the display content of the page needs to be updated. Taking example 4 as an example, the display content of the page in the current state includes information of all provinces in china, commodities purchased by xiaoming, and shopping account names of xiaoming. The display contents of the page in the next state include all cities in Hunan province, information of commodities purchased by Xiaoming and a shopping account name of Xiaoming. The data processing device does not render all provinces in China, but renders all cities in Hunan province, and the page can be displayed in the next state.
According to the data processing device and the data processing method, the data set to be monitored in the first data set to be displayed is monitored, the number of data to be monitored is reduced, hardware resources consumed by monitoring the first data set to be displayed are reduced, and therefore the speed of displaying the first data set to be displayed by the data processing device is increased.
Through the processing in step 102, an effect of reducing the amount of data that needs to be listened to can be achieved, but since part of the data in the first set of data to be displayed is not listened to, in the case that this part of the data that is not listened to is updated, the update of this part of the data that is not listened to cannot be displayed through the page. Next, example 4 (example 5) continues, and assuming that the products purchased by xiaoming in the current state are a and B, the xiaoming suddenly thinks that there is B in the home, and removes B from the purchased products, at this time, the product purchased by xiaoming in the next state is a, that is, the information of the product purchased by xiaoming is updated. In the case where the information of the merchandize purchased by the merchandize does not belong to the data set to be monitored, the data processing apparatus cannot determine that the information of the merchandize purchased by the merchandize is updated by monitoring the data set to be monitored, and thus cannot display the update of the information of the merchandize purchased in the page of the next state.
For convenience of expression, the ratio of the amount of updated data monitored by the data processing apparatus to the amount of updated data in the first set of data to be displayed is hereinafter referred to as the monitoring accuracy. For example, the first data set to be displayed in the current state includes data a, data b, data c, and data d, and the data set to be monitored includes data a and data b. The first data set to be displayed in the next state comprises data e, data b, data c and data f, wherein the data e is obtained after the data a is updated, and the data f is obtained after the data d is updated. In the process of updating the first data set to be displayed from the current state to the next state, the updated data monitored by the data processing apparatus is data a, the updated data in the first data set to be displayed includes data a and data d, and therefore, the monitoring accuracy is: 1/2-50%.
As an optional implementation manner, step 102 specifically includes the following steps:
and selecting at least one dynamic data from the first data set to be displayed to obtain the data set to be monitored.
In the embodiment of the present application, the dynamic data refers to data that can change with time during the page display process, for example, in example 3, any two playing pictures in the video are different, that is, the playing content of the video changes with time, and the video data is dynamic data. In example 5, the information of the purchased article and the selectable address range are both dynamic data. The first data set to be displayed includes static data in addition to dynamic data, which means data that does not change with time during the page display, for example, in example 3, the name of a video and account information for viewing a video are both static data. In example 5, the minuscule shopping account name is static data.
Obviously, in the process of page display, the probability of dynamic data update is higher, and the probability of static data update is lower. Therefore, the dynamic data in the first data set to be displayed is monitored, and the monitoring accuracy can be improved while the number of data required to be monitored is reduced.
Based on this, at least one dynamic data is selected from the first data set to be displayed in the step, and a data set to be monitored is obtained. For example, the first data set to be displayed includes data a, data b, and data c, where data a and data b are dynamic data, and data c is static data. The data processing device can select at least one data from the data a and the data b to obtain a data set to be monitored. And under the condition that the data a is selected by the data processing device, the obtained data set to be monitored comprises the data a. And under the condition that the data processing device selects the data b, the obtained data set to be monitored comprises the data b. And under the condition that the data a and the data b are selected by the data processing device, the obtained data set to be monitored comprises the data a and the data b.
After the data set to be monitored is obtained, each data in the data set to be monitored is monitored, whether the data set to be monitored in the current state is the same as the data set to be monitored in the next state can be determined, and whether the monitoring result is not updated or is updated can be further determined.
The embodiment of the application provides a method for further reducing hardware resources consumed by monitoring a data set to be monitored. As an optional implementation manner, step 103 specifically includes the following steps:
1. and obtaining the monitoring result by monitoring the selected state of the data set to be monitored.
In the embodiment of the application, the selected state of the data set to be monitored represents the selected state of the data in the data set to be monitored. Optionally, the selected state includes full selection and null selection.
And under the condition that the selected state of the data set to be monitored is full selection, all data in the data set which is characterized to be monitored are selected. And under the condition that the selected state of the data set to be monitored is half selected, representing that part of data in the data set to be monitored is selected.
For example, assume that the data set to be listened to includes data a, data b. And under the condition that the data a and the data b are both selected, the selected state of the data set to be monitored is full selection.
And under the condition that the selected state of the data set to be monitored is the idle selection, representing that part of data in the data set to be monitored is not selected. For example, assume that the data set to be listened to includes data a, data b. And under the condition that the data a and the data b are not selected, the selected state of the data set to be monitored is the empty selection.
Optionally, the selected state further includes half-select. In the case that data a is selected or data b is selected, the selected state of the data set to be monitored is half-selected.
Obviously, data that is not selected need not be displayed through a page, while data that is selected may need to be displayed through a page. Therefore, whether the data in the data set to be monitored is updated can be determined by determining whether the selected data in the data set to be monitored is updated.
As an alternative embodiment, by listening to the selected state of the data set to be listened to, it can be determined whether the data set to be listened to in the current state is the same as the data set to be listened to in the next state. For convenience of description, the selected state of the data set to be monitored in the current state is referred to as a first selected state, and the selected state of the data set to be monitored in the next state is referred to as a second selected state.
Under the condition that the first selected state and the second selected state are the same, the selected data in the data set to be monitored in the current state is the same as the selected data in the data set to be monitored in the next state, and the monitoring result can be determined to be not updated.
For example, when the first selected state and the second selected state are both selected fully, the selected data in the data set to be monitored in the current state is the same as the selected data in the data set to be monitored in the next state, that is, the data set to be monitored in the current state is the same as the data set to be monitored in the next state.
For another example, when the first selected state and the second selected state are both the empty selection, the data selected in the data set to be monitored in the current state is the same as the data selected in the data set to be monitored in the next state, that is, the data set to be monitored in the current state is the same as the data set to be monitored in the next state.
Under the condition that the first selected state and the second selected state are different, the selected data in the data set to be monitored in the current state is different from the selected data in the data set to be monitored in the next state, and the monitoring result can be determined to be updated.
For example, assuming that the first selected state is full selection and the second selected state is empty selection, at this time, the data selected in the data set to be monitored in the current state is different from the data selected in the data set to be monitored in the next state, that is, the data set to be monitored in the current state is different from the data set to be monitored in the next state.
For another example, assume that the first selected state is a null selection and the second selected state is a full selection, at this time, the data selected in the data set to be monitored in the current state is different from the data selected in the data set to be monitored in the next state, that is, the data set to be monitored in the current state is different from the data set to be monitored in the next state.
Under the condition that the first selected state and the second selected state are half-selected, the selected data in the data set to be monitored in the current state and the selected data in the data set to be monitored in the next state may be the same or different. In order to improve the monitoring accuracy, as an alternative implementation, in the case that both the first selected state and the second selected state are half-selected, the monitoring result is determined to be updated.
After determining the monitoring result of the data set to be monitored, step 104 specifically includes the following two steps:
2. and displaying the data required to be displayed in the first data set to be displayed in the current state under the condition that the monitoring result is not updated.
And if the monitoring result is not updated, the data which is required to be displayed in the first data set to be displayed is represented to be not updated, so that the content displayed by the page in the current state is still displayed in the page in the next state, namely, the data which is required to be displayed in the first data set to be displayed in the current state is displayed under the condition that the monitoring result is not updated.
3. And under the condition that the monitoring result is updated, calculating the difference between the first data set and the second data set to obtain a second data set to be displayed.
In the embodiment of the present application, the first data set includes a data set to be monitored in a current state, and the second data set includes a data set to be monitored in a next state. For example (example 6), the data set to be monitored in the current state includes data a and data b, and the data set to be monitored in the next state includes data c and data b, where the data c is obtained by updating the data a, at this time, the first data set includes the data a and the data b, and the second data set includes the data b and the data c.
And the monitoring result is updated, and the data in the data set to be monitored is represented to be updated. Therefore, the content of the data update in the data set to be monitored needs to be determined so as to determine the content of the page display in the next state.
As an alternative, by calculating the difference between the first data set and the second data set, the content of the data update in the data set to be monitored can be determined, and the second data set to be displayed is obtained.
Continuing the example following example 6 (example 7), by calculating the difference between the first data set and the second data set, the content of the data update in the data set to be listened to can be determined as follows: the data a is updated to the data c, and then the content required to be displayed in the next state of the page can be determined to be the data b and the data c. Since the display content of the page in the current state includes data b, the second data set to be displayed includes: data b and data c, wherein the display position of the data c in the page is the same as the display position of the data a in the page.
For another example (example 8), the first data set includes data a and the second data set includes data a and data b. By calculating the difference between the first data set and the second data set, the content of the data update in the data set to be monitored can be determined as follows: and adding the data b, and further determining that the content required to be displayed in the next state of the page is the data a and the data b, namely the second data set to be displayed comprises the data a and the data b.
4. And displaying the second data set to be displayed.
And displaying the second data set to be displayed in the page by rendering the second data set to be displayed so as to update the display content of the page.
Continuing the example following example 7, assume that in the page in the current state, data a is displayed at position p1The display position of the data b is p2. The process of displaying the second data set to be displayed may comprise: stopping rendering the data a, rendering the data c to obtain a page in the next state, and enabling p to be in the page in the next state1The content displayed is data c, p2The content displayed at (b) is data b.
In the embodiment of the application, the selected state of the data set to be monitored is monitored, and the monitoring result is determined, so that the monitoring amount required for monitoring the data set to be monitored can be reduced, and further, hardware resources consumed for monitoring the data set to be monitored can be reduced.
Since there may be un-updated data in the first set of data to be listened to in case that the listening result is updated. If the change of the non-updated data is calculated in the process of calculating the difference between the first data set and the second data set, the waste of hardware resources is caused.
For example (example 9), assume that the first data set includes data a, data b, and data c, where data a, data b, and data c are all selected states, and at this time, the first selected state is full selection. The second data set comprises data a, data d and data c, wherein the data d is obtained by updating the data b, the data a and the data d are in selected states, and at the moment, the second selected state is half-selected. Since the selected state of the data a in the current state is the same as the selected state of the data a in the next state (i.e. the data a is not updated), if the difference between the data a in the current state and the data a in the next state is calculated in the process of calculating the difference between the first data set and the second data set, hardware resources are wasted.
Based on this, the embodiments of the present application provide a method to reduce hardware resources consumed for calculating the difference between the first data set and the second data set. As an optional implementation manner, step 3 specifically includes the following steps:
5. and under the condition that the third selected state and the fourth selected state are both the empty selection, calculating the difference between the third data set and the fourth data set to obtain the second data set to be displayed.
Optionally, the first data set to be displayed is stored in the data processing apparatus in a tree data structure. The node to be listened to for the data set is referred to as the second node, and the child nodes of the second node include the first node. The third selected state is a selected state of the first node in a current state, and the fourth selected state is a selected state of the first node in a next state.
Data in the first data set other than data in the first node is referred to as a third data set, and data in the second data set other than data in the first node is referred to as a fourth data set. For example, the data in the second node in the current state includes data a, data b, data c, and data d, and the data in the first node in the current state includes data a and data b, i.e., the first data set includes data a, data b, data c, and data d. The data in the first data set other than the data in the first node are data c and data d, i.e. the third data set comprises data c and data d. The data in the second node in the next state includes data e, data b, data c, and data f, where the data e is the data after the data a is updated, the data f is the data after the data d is updated, and the data in the first node in the next state includes data e and data b, that is, the second data set includes data e, data b, data c, and data f. The data in the second data set other than the data in the first node are data c and data f, i.e. the fourth data set comprises data c and data f.
And the third selected state and the fourth selected state are both selected in the null mode, and both data in the first node in the current state and data in the first node in the next state are represented to be unselected. Since the data that is not selected does not need to be displayed, no changes need to be computed to the data in the first node. Thus, in case both the third selected state and the fourth selected state are the empty selection, by calculating the difference between the third data set and the fourth data set, a second data set to be displayed may be obtained.
6. And calculating the difference between the third data set and the fourth data set to obtain the second data set to be displayed when the third selected state and the fourth selected state are both the full selection.
And the third selected state and the fourth selected state are all selected, and all data representing the first node in the current state and all data representing the first node in the next state are selected. Since all data in the first node is already displayed in the page in the current state, and the data required to be displayed in the first node in the next state is still all data in the first node, the change of the data in the first node does not need to be calculated. Thus, in the case where the third selected state and the fourth selected state are both fully selected, by calculating the difference between the third data set and the fourth data set, a second data set to be displayed can be obtained.
Based on steps 5 and 6, the amount of computation required to compute the difference between the first data set and the second data set may be reduced, thereby reducing the hardware resources consumed to compute the difference between the first data set and the second data set.
Continuing the example following example 9 (example 10), where the first node includes data a, both the third selected state and the fourth selected state are all selected. The third data set comprises data b, data c and the fourth data set comprises data c, data d. Since the third selected state and the fourth selected state are both selected, in the process of calculating the difference between the first data set and the second data set, only the difference between the third data set and the fourth data set needs to be calculated, and hardware resources are not consumed for calculating the difference between the data a in the current state and the data a in the next state.
In example 10, the data processing apparatus determines whether or not there is an un-updated node among the child nodes of the second node in a downward recursive manner in a case where it is determined that the data in the second node is updated (i.e., the snoop result is updated). The non-updated node is the node which is selected in the current state and the next state and is not half-selected in the current state. In the calculating of the difference between the data in the second node in the current state and the data in the second node in the next state in the case where the non-updated node exists in the child nodes of the second node, the difference between the data in the non-updated node in the current state and the data in the non-updated node in the next state may not be calculated.
Based on the idea of step 1 and the idea of step 2, not only the hardware resources consumed for calculating the difference between the first data set and the second data set during the downward recursion process, but also the hardware resources consumed for calculating the difference between the first data set and the second data set during the upward recursion process can be reduced.
For example, assume that the child nodes of the second node include a first node and a third node, and the child nodes of the first node include a fourth node and a fifth node. The selected state of the fourth node in the current state is referred to as a fifth selected state, the selected state of the fourth node in the next state is referred to as a sixth selected state, the selected state of the fifth node in the current state is referred to as a seventh selected state, the selected state of the fifth node in the next state is referred to as an eighth selected state, the selected state of the third node in the current state is referred to as a ninth selected state, and the selected state of the third node in the next state is referred to as a tenth selected state.
When the data processing device monitors that the selected state of the fourth node is updated from half-selected to null (that is, the fifth selected state is half-selected, and the sixth selected state is null), and the fifth node and the third node are both non-updated nodes, because the fifth node is a non-updated node, in the process of calculating the difference between the data in the first node in the current state and the data in the first node in the next state, only the difference between the data in the fourth node in the current state and the data in the fourth node in the next state needs to be calculated.
In addition, since the third node is also an un-updated node as a sibling node of the first node, in the process of calculating the difference between the data in the second node in the current state and the data in the second node in the next state, it is only necessary to calculate the difference between the data in the first node in the current state and the data in the first node in the next state.
That is, in the case where the third node and the fifth node are both non-updated nodes, and the fourth node is an updated node (that is, the fifth selected state is different from the sixth selected state), in the process of calculating the difference between the data in the second node in the current state and the data in the second node in the next state, the data processing apparatus only needs to calculate the difference between the data in the fourth node in the current state and the data in the fourth node in the next state. After the difference between the data in the fourth node in the current state and the data in the fourth node in the next state is calculated, the data processing apparatus does not need to perform the upward recursion processing, so that the data processing amount can be reduced.
Since the display area of the page is limited, in the case where the amount of data to be displayed is large, part of the data to be displayed can be hidden (hereinafter, the hidden data to be displayed is referred to as hidden data). And displaying the hidden data under the condition of receiving an instruction of displaying the hidden data. When the instruction to display the hidden data is not received, the hidden data is not displayed.
In order to reduce the amount of calculation required to calculate the difference between the third data set and the fourth data set, the difference between the hidden data in the current state and the hidden data in the next state may not be calculated without receiving an instruction to display the hidden data.
As an alternative implementation, calculating a difference between the third data set and the fourth data set to obtain the display instruction specifically includes the following steps:
7. and acquiring the display state of the third node.
In this embodiment of the application, the third node is a sibling node of the first node, that is, the data in the third node belongs to the data set to be monitored, and there is no intersection between the data in the first node and the data in the third node.
The display state comprises display and folding. And displaying the data required to be displayed in the node in the page under the condition that the display state of the node is display. And when the display state of the node is folding, the data required to be displayed in the node is not displayed, and at the moment, the data required to be displayed in the node is hidden data.
8. And in the case that the display state is folding, calculating the difference between the fifth data set and the sixth data set to obtain the display instruction.
In an embodiment of the present application, the fifth data set includes data in the third data set other than data in the third node, and the sixth data set includes data in the fourth data set other than data in the third node. For example, the third data set includes data a, data b, data c, and data d, and the data in the third node in the current state includes data a and data b. The data in the fifth data set other than the data in the third node are data c and data d, i.e. the fifth data set comprises data c and data d. The fourth data set comprises data e, data b, data c and data f, wherein the data e is the data after the data a is updated, and the data f is the data after the data d is updated. The data in the third node in the next state includes data e and data b, and the data in the fourth data set other than the data in the third node is data c and data f, that is, the sixth data set includes data c and data f.
The display state of the third node is folding, and the representation does not need to display the data in the third node, so that under the condition that the display state of the third node is folding, the difference between the third data set and the fourth data set can be calculated by calculating the difference between the fifth data set and the sixth data set, and the second data set to be displayed is obtained. In this way, the amount of computation required to compute the difference between the third data set and the fourth data set may be reduced.
Optionally, the data processing apparatus, when receiving an instruction to display the third node in the display state, calculates a difference between data in the third node in the current state and data in the third node in the next state, to obtain a second data set to be displayed.
Continuing with example 1, in the case of Xiaoming selecting Hunan province from all provinces in China, all cities in Hunan province are selected, and all regions in each city are also selected. Under the condition that the Changsha city comprises a hibiscus area, a Yuenu area, a Tianxin area, a Kaifu area, a Yuhua area and a Wangcheng area, and Hunan provinces are selected from all provinces of China in Xiaoming province, a page only needs to display all cities of the Hunan province in the next state, and all areas of the Changsha city do not need to be displayed. At this time, the data of all the districts in Changsha is hidden data. In the case where the command to display the hidden data is input to the data processing apparatus by selecting the Changsha city from all cities in Hunan province, the data processing apparatus calculates the difference between the data of the Changsha city in the current state and the data of the Changsha city in the next state, and obtains a second data set to be displayed.
Based on the technical scheme provided by the application, the embodiment of the application also provides some possible application scenes.
Scene 1: in the security field, how to effectively determine the trace of a person or the trace of a vehicle through video streams has important significance. With the development of computer vision technology and the rapid increase of the number of cameras in public places, the images containing characters and/or the images containing vehicles can be determined by processing the videos collected by the cameras by using the computer vision technology, and then the tracks of the characters and/or the tracks of the vehicles can be determined according to the images containing the characters and/or the images containing the vehicles.
In this scenario, the first set of data to be displayed comprises a first video stream. For example (example 11), the at least one video stream acquired by the data processing apparatus (e.g., server) includes a video stream captured by a camera in Shenzhen and a video stream captured by a camera in Guangzhou. The police locks the criminal suspect in Shenzhen according to the information of the criminal suspect, and inputs an instruction for checking the video stream acquired by the camera of Shenzhen into the data processing device. And the data processing device selects the video stream acquired by the camera of Shenzhen as a first video stream under the condition of receiving the instruction.
As an alternative implementation, step 101 includes the following steps:
9. at least one second video stream is acquired.
In one implementation of obtaining at least one second video stream, the data processing apparatus receives at least one second video stream transmitted by a second terminal. Optionally, the second terminal may be any one of the following: cell-phone, computer, panel computer, server, wearable equipment.
In another embodiment of the method for acquiring at least one second video stream, the data processing device is in communication with at least one monitoring camera. The data processing device acquires at least one second video stream acquired by at least one monitoring camera through the communication connection. Continuing the example following example 11 (example 12), the at least one second video stream includes a video stream captured by a camera of Shenzhen and a video stream captured by a camera of Guangzhou.
10. And under the condition that an instruction for selecting at least one video stream from the at least one second video stream is received, selecting the first video stream from the at least one second video stream.
In this embodiment, the instruction for selecting at least one video stream from the at least one second video stream may be that a user inputs the instruction for selecting at least one video stream from the at least one second video stream to the data processing apparatus through the input component. The above-mentioned input assembly includes: keyboard, mouse, touch screen, touch pad, audio input device, etc.
The data processing device selects the first video stream from the at least one second video stream when receiving an instruction for selecting the at least one video stream from the at least one second video stream. Continuing the example following example 12, the instruction to select at least one video stream from the at least one second video stream is to select a video stream captured by the camera of Shenzhen from the video streams captured by the camera of Shenzhen and the video streams captured by the camera of Guangzhou. And under the condition that the data processing device receives the instruction, selecting the video stream acquired by the camera of Shenzhen as a first video stream from the video stream acquired by the camera of Shenzhen and the video stream acquired by the camera of Guangzhou.
As another example, the at least one second video stream includes video stream 1, video stream 2, and video stream 3. The instruction for selecting at least one video stream from the at least one second video stream is to select video stream 1 and video stream 2 from video stream 1, video stream 2 and video stream 3. When receiving the instruction, the data processing apparatus selects video stream 1 and video stream 2 from video stream 1, video stream 2, and video stream 3. At this time, the first video stream may be video stream 1, and the first video stream may also be video stream 2.
Since the data volume of the first video stream is large and the data in the first video stream is in a state of being updated continuously, displaying and monitoring all the data in the first video stream will bring a large data processing amount to the data processing apparatus. Therefore, the first video stream can be displayed based on the technical scheme provided by the application, and the data processing amount is reduced.
Alternatively, in the case where the data processing apparatus displays the first video stream, the user may determine an image containing a person and/or an image containing a vehicle from the first video stream. For example, an attribute of a person is input to the data processing apparatus to cause the data processing apparatus to retrieve an image containing a person whose attribute matches the attribute from the first video stream using the attribute.
After determining the image containing the person and/or the image containing the vehicle from the first video stream, the trajectory of the person and/or the trajectory of the vehicle may be determined according to the capturing time and the capturing position of the image (herein, the image containing the person and/or the image containing the vehicle).
Scene 2: the data processing device displays the track of the person and/or the track of the vehicle based on the technical scheme provided by the application, so that the data processing amount can be reduced, and the data processing speed is increased.
For example (example 13), a robbery is raised in place a, and a criminal suspect wears a black coat, black trousers and white shoes and wears a mask to leave a black short hair according to information provided by witnesses on the spot. After knowing the attributes of the criminal suspect (i.e., black jacket, black pants, white shoes, mask, black shorts), the police may search the image library of the place a (images in the image library are captured by the camera of the place a) using the attributes of the criminal suspect, and obtain an image having a person attribute matching the attributes of the criminal suspect as a target image. Under the condition that the police determines that the person in the target image is the criminal suspect, the trajectory data of the criminal suspect can be determined according to the acquisition time of the target image and the acquisition place of the target image.
Assume that the target image includes: image a, image b, image c. The acquisition time of the image a is 16:45 in 5-month and 19-day in 2020, the acquisition time of the image b is 16:55 in 5-month and 19-day in 2020, and the acquisition time of the image c is 18:45 in 5-month and 19-day in 2020. The acquisition places of the image a are 114 degrees of east longitude and 22 degrees of north latitude 3 ', the acquisition places of the image b are 114 degrees of east longitude and 10 degrees of north latitude and 22 degrees of north latitude 5 ', and the acquisition places of the image c are 114 degrees of east longitude and 10 degrees of north latitude and 22 degrees of north latitude 6 '. According to the acquisition time and the acquisition place of the target image, the track of the criminal suspect can be determined: 16:45 occurs at east longitude 114 ° and north latitude 22 ° 3 ' on 19 th month in 2020, 16:55 occurs at 114 ° 10 ' and north latitude 22 ° 5 ' on 19 th month in 2020, and 18:45 occurs at 114 ° 10 ' and north latitude 22 ° 6 ' on 19 th month in 2020. The trajectory data of the criminal suspect includes: the whereabouts of the criminal suspect, the target image.
Alternatively, the user may view at least one of the trajectory data of the criminal suspect. For example, in example 11, the police may input an instruction to view image a to the data processing apparatus. When receiving an instruction to view the image a, the data processing device displays the image a, the acquisition time of the image a, and the acquisition place of the image a. At this time, the first data set to be displayed includes trajectory data of the criminal suspect, and the second data set to be displayed includes: image a, the acquisition time of image a, and the acquisition place of image a.
For another example, in example 13, the police may input an instruction to view image a and image b to the data processing apparatus. The data processing device displays the image a, the acquisition time of the image a, the acquisition place of the image a, the image b, the acquisition time of the image b, and the acquisition place of the image b when receiving an instruction to view the image a and the image b. At this time, the first data set to be displayed includes trajectory data of the criminal suspect. The data set to be monitored comprises dynamic data in the trajectory data of the criminal suspect. The second dataset to be displayed comprises: the image a, the acquisition time of the image a, the acquisition place of the image a, the image b, the acquisition time of the image b and the acquisition place of the image b.
Optionally, in order to make the user have a more intuitive impression on the trajectory data of the criminal suspect, the trajectory data of the criminal suspect may be displayed on a map. At this time, the first data set to be displayed includes: map data, trajectory data of a criminal suspect.
For example, in example 13, the map data may be map data of a place. The police wants to know the track of the criminal suspect in the area B of the area A and inputs an instruction for checking the track of the criminal suspect in the area B to the data processing device. It is assumed that the acquisition location of the image a and the acquisition location of the image B are located within the B region. When receiving an instruction to check the track of the criminal suspect in the area B, the data processing device displays map data, the image a, the acquisition time of the image a, the acquisition place of the image a, the acquisition time of the image B, the acquisition place of the image B of the area B. At this time, the first data set to be displayed includes: trajectory data of a criminal suspect, map data of a place a. The data set to be listened to includes: dynamic data in the trajectory data of the criminal suspect and dynamic data in the map data of the place a. The second dataset to be displayed comprises: map data of the area B, an image a, the acquisition time of the image a, the acquisition place of the image a, an image B, the acquisition time of the image B, and the acquisition place of the image B.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
The method of the embodiments of the present application is set forth above in detail and the apparatus of the embodiments of the present application is provided below.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application, where the apparatus 1 includes: an acquisition unit 11, a determination unit 12, a monitoring unit 13, and a display unit 14, wherein:
an acquisition unit configured to acquire a first data set to be displayed;
the determining unit is used for determining a data set to be monitored from the first data set to be displayed; the number of data contained in the data set to be monitored is less than that of the data contained in the first data set to be displayed;
the monitoring unit is used for monitoring the data set to be monitored to obtain a monitoring result;
and the display unit is used for displaying the first data set to be displayed according to the monitoring result.
With reference to any embodiment of the present application, the determining unit is configured to:
and selecting at least one dynamic data from the first data set to be displayed to obtain the data set to be monitored.
With reference to any embodiment of the present application, the monitoring unit is configured to:
and obtaining the monitoring result by monitoring the selected state of the data set to be monitored.
In combination with any embodiment of the present application, the display unit is configured to:
under the condition that the monitoring result is not updated, displaying data required to be displayed in the first data set to be displayed in the current state;
under the condition that the monitoring result is updated, calculating the difference between the first data set and the second data set to obtain a second data set to be displayed; the first data set comprises the data set to be monitored in the current state; the second data set comprises the data set to be monitored in the next state;
and displaying the second data set to be displayed.
In combination with any embodiment of the present application, the selected state includes full selection and null selection;
the monitoring unit is configured to:
under the condition that the first selected state and the second selected state are both selected completely, determining that the monitoring result is not updated; the first selected state is the selected state of the data set to be monitored in the current state; the second selected state is the selected state of the set of data to be listened to in the next state; or the like, or, alternatively,
determining that the monitoring result is not updated when the first selected state and the second selected state are both the empty selection; the first selected state is the selected state of the data set to be monitored in the current state; the second selected state is the selected state of the set of data to be listened to in the next state;
and determining that the monitoring result is updated when the first selected state and the second selected state are different.
In combination with any embodiment of the present application, the display unit is configured to:
under the condition that the third selected state and the fourth selected state are both the idle selection, calculating the difference between a third data set and a fourth data set to obtain a second data set to be displayed; the third selected state is the selected state of the first node in the current state; the fourth selected state is the selected state of the first node in the next state; the first node is a child node of the second node; the second node is a node of the data set to be monitored; the third data set comprises data in the first data set other than data in the first node; the fourth data set comprises data in the second data set other than data in the first node; or the like, or, alternatively,
under the condition that the third selected state and the fourth selected state are both selected completely, calculating the difference between the third data set and the fourth data set to obtain a second data set to be displayed; the third selected state is the selected state of the first node in the current state; the fourth selected state is the selected state of the first node in the next state; the first node is a child node of the second node; the second node is a node of the data set to be monitored; the third data set comprises data in the first data set other than data in the first node; the fourth data set includes data in the second data set other than data in the first node.
In combination with any embodiment of the present application, the display unit is configured to:
acquiring a display state of a third node; the third node is a brother node of the first node;
under the condition that the display state is folding, calculating the difference between a fifth data set and a sixth data set to obtain a second data set to be displayed; the fifth data set comprises data in the third data set other than data in a third node; the sixth data set includes data in the fourth data set other than data in the third node.
In combination with any embodiment of the present application, the first data set to be displayed includes: a first video stream;
the acquisition unit is configured to:
acquiring at least one second video stream;
the first video stream is selected from the at least one second video stream upon receiving an instruction to select at least one video stream from the at least one second video stream.
In some embodiments, functions of or modules included in the apparatus provided in the embodiments of the present application may be used to execute the method described in the above method embodiments, and specific implementation thereof may refer to the description of the above method embodiments, and for brevity, will not be described again here.
Fig. 3 is a schematic diagram of a hardware structure of a data processing apparatus according to an embodiment of the present disclosure. The data processing device 2 comprises a processor 21, a memory 22, an input device 23, an output device 24. The processor 21, the memory 22, the input device 23 and the output device 24 are coupled by a connector, which includes various interfaces, transmission lines or buses, etc., and the embodiment of the present application is not limited thereto. It should be appreciated that in various embodiments of the present application, coupled refers to being interconnected in a particular manner, including being directly connected or indirectly connected through other devices, such as through various interfaces, transmission lines, buses, and the like.
The processor may include one or more processors, for example, one or more Central Processing Units (CPUs), and in the case of one CPU, the CPU may be a single-core CPU or a multi-core CPU. Alternatively, the processor 21 may be a processor group composed of a plurality of GPUs, and the plurality of processors are coupled to each other through one or more buses. Alternatively, the processor may be other types of processors, and the like, and the embodiments of the present application are not limited.
Memory 22 may be used to store computer program instructions, as well as various types of computer program code for executing the program code of aspects of the present application. Alternatively, the memory includes, but is not limited to, Random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or compact disc read-only memory (CD-ROM), which is used for associated instructions and data.
The input means 23 are for inputting data and/or signals and the output means 24 are for outputting data and/or signals. The input device 23 and the output device 24 may be separate devices or may be an integral device.
It is understood that, in the embodiment of the present application, the memory 22 may be used to store not only the relevant instructions, but also relevant data, for example, the memory 22 may be used to store the first set of data to be displayed acquired through the input device 23, or the memory 22 may also be used to store the first set of data to be displayed acquired through the processor 21, and the like, and the embodiment of the present application is not limited to the data specifically stored in the memory.
It will be appreciated that fig. 3 only shows a simplified design of a data processing device. In practical applications, the data processing apparatus may further include other necessary components, including but not limited to any number of input/output devices, processors, memories, etc., and all data processing apparatuses that can implement the embodiments of the present application are within the protection scope of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It is also clear to those skilled in the art that the descriptions of the various embodiments of the present application have different emphasis, and for convenience and brevity of description, the same or similar parts may not be repeated in different embodiments, so that the parts that are not described or not described in detail in a certain embodiment may refer to the descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)), or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., Digital Versatile Disk (DVD)), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media that can store program codes, such as a read-only memory (ROM) or a Random Access Memory (RAM), a magnetic disk, or an optical disk.

Claims (9)

1. A method of data processing, the method comprising:
acquiring a first data set to be displayed;
determining a data set to be monitored from the first data set to be displayed; the number of data contained in the data set to be monitored is less than that of the data contained in the first data set to be displayed; the selected state of the data set to be monitored comprises full selection and idle selection;
monitoring the data set to be monitored to obtain a monitoring result;
under the condition that the first selected state and the second selected state are both selected completely, determining that the monitoring result is not updated; the first selected state is the selected state of the data set to be monitored in the current state; the second selected state is the selected state of the data set to be monitored in the next state; or the like, or, alternatively,
determining that the monitoring result is not updated when the first selected state and the second selected state are both the empty selection; the first selected state is the selected state of the data set to be monitored in the current state; the second selected state is the selected state of the data set to be monitored in the next state;
determining that the monitoring result is updated when the first selected state and the second selected state are different;
displaying the data to be displayed in the first data set to be displayed in the current state under the condition that the monitoring result is not updated;
under the condition that the monitoring result is updated, calculating the difference between the first data set and the second data set to obtain a second data set to be displayed; the first data set comprises the data set to be monitored in the current state; the second data set comprises the data set to be monitored in the next state;
and displaying the second data set to be displayed.
2. The method of claim 1, wherein the determining a set of data to be listened to from the first set of data to be displayed comprises:
and selecting at least one dynamic data from the first data set to be displayed to obtain the data set to be monitored.
3. The method of claim 1, wherein calculating the difference between the first data set and the second data set to obtain a second data set to be displayed comprises:
under the condition that the third selected state and the fourth selected state are both the idle selection, calculating the difference between a third data set and a fourth data set to obtain a second data set to be displayed; the third selected state is the selected state of the first node in the current state; the fourth selected state is the selected state of the first node in the next state; the first node is a child node of the second node; the second node is a node of the data set to be monitored; the third data set comprises data in the first data set other than data in the first node; the fourth data set comprises data in the second data set other than data in the first node; or the like, or, alternatively,
under the condition that the third selected state and the fourth selected state are both selected completely, calculating the difference between the third data set and the fourth data set to obtain a second data set to be displayed; the third selected state is the selected state of the first node in the current state; the fourth selected state is the selected state of the first node in the next state; the first node is a child node of the second node; the second node is a node of the data set to be monitored; the third data set comprises data in the first data set other than data in the first node; the fourth data set includes data in the second data set other than data in the first node.
4. The method of claim 3, wherein the calculating the difference between the third data set and the fourth data set to obtain the second data set to be displayed comprises:
acquiring a display state of a third node; the third node is a brother node of the first node;
under the condition that the display state is folding, calculating the difference between a fifth data set and a sixth data set to obtain a second data set to be displayed; the fifth data set comprises data in the third data set other than data in a third node; the sixth data set includes data in the fourth data set other than data in the third node.
5. The method according to any one of claims 1 to 4, wherein the first set of data to be displayed comprises: a first video stream;
the acquiring of the first dataset to be displayed includes:
acquiring at least one second video stream;
the first video stream is selected from the at least one second video stream upon receiving an instruction to select at least one video stream from the at least one second video stream.
6. A data processing apparatus, characterized in that the apparatus comprises:
an acquisition unit configured to acquire a first data set to be displayed;
the determining unit is used for determining a data set to be monitored from the first data set to be displayed; the number of data contained in the data set to be monitored is less than that of the data contained in the first data set to be displayed; the selected state of the data set to be monitored comprises full selection and idle selection;
the monitoring unit is used for monitoring the data set to be monitored to obtain a monitoring result;
the monitoring unit is further configured to determine that the monitoring result is not updated when the first selected state and the second selected state are both the full selection; the first selected state is the selected state of the data set to be monitored in the current state; the second selected state is the selected state of the data set to be monitored in the next state; or the like, or, alternatively,
determining that the monitoring result is not updated when the first selected state and the second selected state are both the empty selection; the first selected state is the selected state of the data set to be monitored in the current state; the second selected state is the selected state of the data set to be monitored in the next state;
determining that the monitoring result is updated when the first selected state and the second selected state are different;
the display unit is used for displaying the data to be displayed in the first data set to be displayed in the current state under the condition that the monitoring result is not updated;
the display unit is further configured to calculate a difference between the first data set and the second data set to obtain a second data set to be displayed when the monitoring result is that the data set is updated; the first data set comprises the data set to be monitored in the current state; the second data set comprises the data set to be monitored in the next state;
the display unit is further configured to display the second data set to be displayed.
7. A processor configured to perform the method of any one of claims 1 to 5.
8. An electronic device, comprising: processor, transmission means, input means, output means and a memory for storing computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the method of any of claims 1 to 5.
9. A computer-readable storage medium, in which a computer program is stored, which computer program comprises program instructions which, if executed by a processor, cause the processor to carry out the method of any one of claims 1 to 5.
CN202010435903.8A 2020-05-21 2020-05-21 Data processing method and device, electronic equipment and storage medium Active CN111741257B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202010435903.8A CN111741257B (en) 2020-05-21 2020-05-21 Data processing method and device, electronic equipment and storage medium
PCT/CN2020/133684 WO2021232748A1 (en) 2020-05-21 2020-12-03 Data processing method and apparatus, and electronic device, storage medium and program
TW110100178A TWI759059B (en) 2020-05-21 2021-01-04 Data processing method electronic equipment computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010435903.8A CN111741257B (en) 2020-05-21 2020-05-21 Data processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111741257A CN111741257A (en) 2020-10-02
CN111741257B true CN111741257B (en) 2022-01-28

Family

ID=72647573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010435903.8A Active CN111741257B (en) 2020-05-21 2020-05-21 Data processing method and device, electronic equipment and storage medium

Country Status (3)

Country Link
CN (1) CN111741257B (en)
TW (1) TWI759059B (en)
WO (1) WO2021232748A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111741257B (en) * 2020-05-21 2022-01-28 深圳市商汤科技有限公司 Data processing method and device, electronic equipment and storage medium
CN113010385B (en) 2021-03-18 2022-10-28 山东英信计算机技术有限公司 Task state updating method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389315A (en) * 2014-09-04 2016-03-09 阿里巴巴集团控股有限公司 Dynamic webpage refreshing method and device
CN105607927A (en) * 2015-12-18 2016-05-25 小米科技有限责任公司 Page display method and apparatus
CN109271386A (en) * 2018-09-27 2019-01-25 拉扎斯网络科技(上海)有限公司 Data display method, device, electronic equipment and computer readable storage medium
CN109522018A (en) * 2018-11-14 2019-03-26 腾讯科技(深圳)有限公司 Page processing method, device and storage medium
CN110020288A (en) * 2017-09-30 2019-07-16 北京国双科技有限公司 A kind of page furbishing method and device
CN110865843A (en) * 2018-08-09 2020-03-06 阿里巴巴集团控股有限公司 Page backtracking, information backup and problem solving method, system and equipment

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040261041A1 (en) * 2003-06-04 2004-12-23 Parakkuth Jayapal Dharmapalan Scalable vector graphics and monitoring diagram displays
US8627199B1 (en) * 2010-01-29 2014-01-07 Asana, Inc. Incremental computing of changes to computer user interfaces
CN103198112A (en) * 2013-03-28 2013-07-10 广东威创视讯科技股份有限公司 Incremental update method and device in distributed display
CN105701106A (en) * 2014-11-27 2016-06-22 广州市动景计算机科技有限公司 Web page refreshment method and device
CN106598574B (en) * 2016-11-25 2020-02-18 腾讯科技(深圳)有限公司 Page rendering method and device
US10489877B2 (en) * 2017-04-24 2019-11-26 Intel Corporation Compute optimization mechanism
US10409614B2 (en) * 2017-04-24 2019-09-10 Intel Corporation Instructions having support for floating point and integer data types in the same register
CN107256151B (en) * 2017-05-27 2020-09-11 北京小米移动软件有限公司 Page rendering processing method and device and terminal
CN107451181B (en) * 2017-06-14 2020-09-22 北京星选科技有限公司 Page rendering method and device
CN108399222B (en) * 2018-02-11 2020-09-01 北京奇艺世纪科技有限公司 Page refreshing method and device
CN109032797A (en) * 2018-07-18 2018-12-18 上海恺英网络科技有限公司 For providing the method and apparatus of web page access
CN110874380A (en) * 2018-08-14 2020-03-10 山东华软金盾软件股份有限公司 Method and system for refreshing interface based on mobile terminal database
CN109739572B (en) * 2018-12-25 2022-01-28 江南机电设计研究所 Universal integrated serial port communication method
CN109783757B (en) * 2018-12-29 2021-04-27 360企业安全技术(珠海)有限公司 Method, device and system for rendering webpage, storage medium and electronic device
CN110134905B (en) * 2019-05-21 2022-03-04 北京字节跳动网络技术有限公司 Page update display method, device, equipment and storage medium
CN110321140A (en) * 2019-05-23 2019-10-11 天津五八到家科技有限公司 Data-updating method, device and mobile terminal
CN111008054A (en) * 2019-11-15 2020-04-14 支付宝(杭州)信息技术有限公司 Page display method and equipment and electronic equipment
CN111079043B (en) * 2019-12-05 2023-05-12 北京数立得科技有限公司 Key content positioning method
CN111158973B (en) * 2019-12-05 2021-06-18 北京大学 Web application dynamic evolution monitoring method
CN111741257B (en) * 2020-05-21 2022-01-28 深圳市商汤科技有限公司 Data processing method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389315A (en) * 2014-09-04 2016-03-09 阿里巴巴集团控股有限公司 Dynamic webpage refreshing method and device
CN105607927A (en) * 2015-12-18 2016-05-25 小米科技有限责任公司 Page display method and apparatus
CN110020288A (en) * 2017-09-30 2019-07-16 北京国双科技有限公司 A kind of page furbishing method and device
CN110865843A (en) * 2018-08-09 2020-03-06 阿里巴巴集团控股有限公司 Page backtracking, information backup and problem solving method, system and equipment
CN109271386A (en) * 2018-09-27 2019-01-25 拉扎斯网络科技(上海)有限公司 Data display method, device, electronic equipment and computer readable storage medium
CN109522018A (en) * 2018-11-14 2019-03-26 腾讯科技(深圳)有限公司 Page processing method, device and storage medium

Also Published As

Publication number Publication date
TWI759059B (en) 2022-03-21
CN111741257A (en) 2020-10-02
TW202145030A (en) 2021-12-01
WO2021232748A1 (en) 2021-11-25

Similar Documents

Publication Publication Date Title
US9798819B2 (en) Selective map marker aggregation
CN109740085B (en) Page content display method, device, equipment and storage medium
WO2020233166A1 (en) Comment data provision and display method, apparatus, electronic device, and storage medium
CN111741257B (en) Data processing method and device, electronic equipment and storage medium
JP6313425B2 (en) Reuse and recycle objects that fit your application
CN103577544B (en) A kind of method and device for providing information to be sent
CN109684589B (en) Client comment data processing method and device and computer storage medium
CN111597466A (en) Display method and device and electronic equipment
CN111709732A (en) Display method and device and electronic equipment
CN114387400A (en) Three-dimensional scene display method, display device, electronic equipment and server
CN111309240B (en) Content display method and device and electronic equipment
CN110780939B (en) Method, device, computer equipment and storage medium for loading resource file
CN110709834B (en) Method, system and medium for retrieving content associated with links
WO2018210113A1 (en) Method for displaying dynamic information, computer device, and storage medium
CN110351581B (en) Data request processing method and device, terminal equipment and storage medium
US20230276079A1 (en) Live streaming room page jump method and apparatus, live streaming room page return method and apparatus, and electronic device
CN112492399A (en) Information display method and device and electronic equipment
CN113157165A (en) Information display method and device, electronic equipment and program product
CN116075848A (en) Adaptive sampling of images
CN117648510B (en) Information display method, information display device, computer equipment and storage medium
CN103577545B (en) Method and device for providing information to be sent
CN115103023B (en) Video caching method, device, equipment and storage medium
CN114510309B (en) Animation effect setting method, device, equipment and medium
US11856251B1 (en) Systems and methods for providing notifications based on geographic location
WO2024001677A1 (en) Page display method and apparatus, computer device, storage medium and program product

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40030148

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant