WO2021232748A1 - Data processing method and apparatus, and electronic device, storage medium and program - Google Patents

Data processing method and apparatus, and electronic device, storage medium and program Download PDF

Info

Publication number
WO2021232748A1
WO2021232748A1 PCT/CN2020/133684 CN2020133684W WO2021232748A1 WO 2021232748 A1 WO2021232748 A1 WO 2021232748A1 CN 2020133684 W CN2020133684 W CN 2020133684W WO 2021232748 A1 WO2021232748 A1 WO 2021232748A1
Authority
WO
WIPO (PCT)
Prior art keywords
data set
data
displayed
node
monitored
Prior art date
Application number
PCT/CN2020/133684
Other languages
French (fr)
Chinese (zh)
Inventor
李嘉宾
张寅艳
苏醒强
Original Assignee
深圳市商汤科技有限公司
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 深圳市商汤科技有限公司 filed Critical 深圳市商汤科技有限公司
Publication of WO2021232748A1 publication Critical patent/WO2021232748A1/en

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

Definitions

  • the present disclosure relates to the field of computer technology, and in particular to a data processing method, device, electronic equipment, storage medium, and program.
  • the browser usually renders the data that needs to be displayed and then displays it on the browser display page. At the same time, the data that needs to be displayed may be updated over time. In order for the browser to display the updated data instantly through the page, it is necessary to monitor the data that needs to be displayed to determine whether the data that needs to be displayed is updated. Real-time display of the page.
  • monitoring the data that needs to be displayed through the traditional method is likely to cause the slow running of the browser due to the high hardware overhead, and even the browser may freeze or crash.
  • the present disclosure provides a data processing method, device, electronic equipment, storage medium, and program.
  • the embodiment of the present disclosure provides a data processing method, and the method includes:
  • the first data set to be displayed is displayed.
  • the amount of data that needs to be monitored is reduced, thereby reducing the hardware resources consumed for monitoring the first to-be-displayed data set, thereby improving the display of the first data processing device.
  • the speed of the data set to be displayed is improved.
  • the determining a data set to be monitored from the first data set to be displayed includes:
  • At least one dynamic data is selected from the first data set to be displayed to obtain the data set to be monitored. In this way, monitoring the dynamic data in the first data set to be displayed can reduce the amount of data that needs to be monitored and improve the accuracy of monitoring.
  • the monitoring the data set to be monitored to obtain the monitoring result includes:
  • the monitoring result is obtained by monitoring the selected state of the data set to be monitored. In this way, through the selected state of the data to be monitored, the hardware resources consumed for monitoring the data set to be monitored can be further reduced.
  • the displaying the first data set to be displayed according to the monitoring result includes:
  • the difference between the first data set and the second data set is calculated to obtain the second data set to be displayed;
  • the first data set includes the current state The data set to be monitored;
  • the second data set includes the data set to be monitored in the next state;
  • the second data set to be displayed is displayed. In this way, by monitoring the selected state of the data set to be monitored and determining the monitoring result, the amount of monitoring required for monitoring the data set to be monitored can be reduced, and thus the hardware resources consumed for monitoring the data set to be monitored can be reduced.
  • the selected state includes full selection and empty selection
  • the obtaining the monitoring result by monitoring the selected state of the data set to be monitored includes:
  • both the first selected state and the second selected state are the all selected, it is determined that the monitoring result is not updated; the first selected state is that the data set to be monitored is in the current state The selected state in the next state; the second selected state is the selected state of the data set to be monitored in the next state; or,
  • the first selected state and the second selected state are both the empty selection, it is determined that the monitoring result is not updated; the first selected state is that the data set to be monitored is in The selected state in the current state; the second selected state is the selected state of the data set to be monitored in the next state;
  • the specific selected state between the first selected state and the second selected state and the relationship between the two selected states can be used to quickly determine whether the monitoring result is not updated or updated.
  • the calculating the difference between the first data set and the second data set to obtain the second data set to be displayed includes:
  • the difference between the third data set and the fourth data set is calculated to obtain the second data set to be displayed; 3.
  • the 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 the node of the data set to be monitored;
  • the third data set includes the data in the first data set except for the data in the first node
  • the fourth data set includes data in the second data set other than the data in the first node; or,
  • the difference between the third data set and the fourth data set is calculated to obtain the second The 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 first node in the next state The selected state;
  • the first node is a child node of the second node;
  • the second node is the node of the data set to be monitored;
  • the third data set includes the first data set except the Data other than the data in the first node;
  • the fourth data set includes data other than the data in the first node in the second data set.
  • the amount of calculation required to calculate the difference between the first data set and the second data set can be reduced, thereby reducing the calculation
  • the calculating the difference between the third data set and the fourth data set to obtain the second data set to be displayed includes:
  • the third node is a sibling node of the first node
  • the difference between the fifth data set and the sixth data set is calculated to obtain the second data set to be displayed;
  • the fifth data set includes the third data set divided by Data other than the data in the third node;
  • the sixth data set includes data other than the data in the third node in the fourth data set.
  • the first data set to be displayed includes: a first video stream
  • the obtaining the first data set to be displayed includes:
  • An embodiment of the present disclosure provides a data processing device, which includes:
  • a determining unit configured to determine a data set to be monitored from the first data set to be displayed; the quantity of data contained in the data set to be monitored is less than the quantity of data contained in the first data set to be displayed;
  • the display unit is configured to display the first data set to be displayed according to the monitoring result.
  • the determining unit is configured to:
  • At least one dynamic data is selected from the first data set to be displayed to obtain the data set to be monitored.
  • the monitoring unit is configured to:
  • the monitoring result is obtained by monitoring the selected state of the data set to be monitored.
  • the display unit is configured to:
  • the difference between the first data set and the second data set is calculated to obtain the second data set to be displayed;
  • the first data set includes the current state The data set to be monitored;
  • the second data set includes the data set to be monitored in the next state;
  • the second data set to be displayed is displayed.
  • the selected state includes full selection and empty selection
  • the monitoring unit is used for:
  • both the first selected state and the second selected state are the all selected, it is determined that the monitoring result is not updated; the first selected state is that the data set to be monitored is in the current state The selected state in the next state; the second selected state is the selected state of the data set to be monitored in the next state; or,
  • the first selected state and the second selected state are both the empty selection, it is determined that the monitoring result is not updated; the first selected state is that the data set to be monitored is in The selected state in the current state; the second selected state is the selected state of the data set to be monitored in the next state;
  • the display unit is configured to:
  • the difference between the third data set and the fourth data set is calculated to obtain the second data set to be displayed; 3.
  • the 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 the node of the data set to be monitored;
  • the third data set includes the data in the first data set except for the data in the first node
  • the fourth data set includes data in the second data set other than the data in the first node; or,
  • the difference between the third data set and the fourth data set is calculated to obtain the second The 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 first node in the next state The selected state;
  • the first node is a child node of the second node;
  • the second node is the node of the data set to be monitored;
  • the third data set includes the first data set except the Data other than the data in the first node;
  • the fourth data set includes data other than the data in the first node in the second data set.
  • the display unit is configured to:
  • the third node is a sibling node of the first node
  • the difference between the fifth data set and the sixth data set is calculated to obtain the second data set to be displayed;
  • the fifth data set includes the third data set divided by Data other than the data in the third node;
  • the sixth data set includes data other than the data in the third node in the fourth data set.
  • the first data set to be displayed includes: a first video stream
  • the obtaining unit is used to:
  • the embodiments of the present disclosure provide a processor, which is configured to execute a method as described in the first aspect and any one of its possible implementation manners.
  • the embodiment of the present disclosure provides an electronic device, including: a processor, an input device, an output device, and a memory.
  • the memory is used to store computer program code.
  • the computer program code includes computer instructions.
  • the electronic device executes the method as in the above-mentioned first aspect and any one of its possible implementation modes.
  • the embodiments of the present disclosure provide a computer-readable storage medium in which a computer program is stored, and the computer program includes program instructions that, when the program instructions are executed by a processor, cause all The processor executes the method as described in the first aspect and any one of its possible implementation manners.
  • the embodiments of the present disclosure provide a computer program product, the computer program product includes computer readable code, in the case that the computer readable code runs in a computer, the computer is caused to execute any of the above data processing methods .
  • the data processing method, device, electronic equipment, storage medium and program proposed in the embodiments of the present disclosure firstly, obtain the first data set to be displayed; secondly, determine the data set to be monitored from the first data set to be displayed; The number of data included in the monitoring data set is less than the number of data included in the first data set to be displayed; then, the data set to be monitored is monitored to obtain the monitoring result; finally, the first data set is displayed based on the monitoring result.
  • the amount of data that needs to be monitored is reduced, thereby reducing the hardware resources consumed for monitoring the first data set to be displayed, thereby Increase the speed at which the data processing device displays the first data set to be displayed.
  • FIG. 1 is a schematic flowchart of a data processing method provided by an embodiment of the disclosure
  • FIG. 2 is a schematic diagram of a network architecture for data processing provided by an embodiment of the disclosure
  • FIG. 3 is a schematic structural diagram of a data processing device 3 provided by an embodiment of the disclosure.
  • FIG. 4 is a schematic diagram of the hardware structure of an electronic device 4 provided by an embodiment of the disclosure.
  • the browser displays the data to be displayed on the page by rendering the data to be displayed. Since the data that needs to be displayed may be updated over time, in order for the browser to display the updated data instantly through the page, it is necessary to monitor the data that needs to be displayed to determine whether the data that needs to be displayed is updated, so as to achieve Real-time display of the page.
  • Xiao Ming needs to fill in the delivery address during online shopping through the browser.
  • the browser displays the address range that can be selected on the page for filling in the delivery address.
  • the order of selection is: country ⁇ province ⁇ city ⁇ district ⁇ street.
  • Xiao Ming selected "China" in the country's options.
  • the browser displays all the provinces in China in the address range that can be selected for Xiao Ming to choose.
  • Xiao Ming selected Hunan province from all provinces in China.
  • the data to be displayed has been updated, and the display content in the selectable address range has been updated from all provinces in China to all cities in Hunan province.
  • the display content of the page for filling in the delivery address can be updated. Specifically, the address will be selected.
  • the displayed content within the range has been updated from all provinces in China to all cities in Hunan province.
  • Example 1 continues with the example (Example 2).
  • the data that needs to be displayed on the page also includes the information of the goods purchased by Xiao Ming and the name of Xiao Ming's shopping account.
  • Xiao Ming fills in the delivery address, he not only needs to monitor the data in the optional address range, but also needs to monitor the information of the goods purchased by Xiao Ming and the name of Xiao Ming's shopping account.
  • Due to the large amount of data to be displayed the hardware resources required to monitor the data to be displayed are large, and the hardware resources include the overhead of memory. The large consumption of hardware resources can easily cause the browser to run slowly, and even cause the browser to freeze or crash.
  • the embodiments of the present disclosure provide a data processing method to reduce the hardware resources consumed for monitoring the data that needs to be displayed.
  • the execution subject of the embodiments of the present disclosure is a data processing device.
  • the data processing device may be one of the following: a computer and a server.
  • FIG. 1 is a schematic flowchart of a data processing method provided by an embodiment of the present disclosure.
  • the first data set to be displayed is data that can be displayed through a page.
  • the first data set to be displayed includes data within a selectable address range, information about products purchased by Xiao Ming, and Xiao Ming's shopping account name.
  • Xiaohong browses a webpage through a browser and watches videos through the webpage.
  • the first data set to be displayed includes the video, information about the video (including the name of the video), and information about the account used to watch the video (including the account avatar and account name).
  • the data processing device receives the first data set to be displayed input by the user through the input component.
  • the above-mentioned input components include: a keyboard, a mouse, a touch screen, a touch pad, and an audio input device.
  • the data processing apparatus receives the first data set to be displayed sent by the first terminal.
  • the first terminal can be any of the following: a mobile phone, a computer, a tablet computer, a server, and a wearable device.
  • the data processing device sends a data request to the server through the communication connection.
  • the server Upon receiving the data request, the server sends a data set that can be displayed on the page to the data processing device.
  • the data processing device will, in the case of receiving the data set that can be displayed through the page sent by the server, use the data set as the first to-be-displayed data set.
  • the quantity of data contained in the data set to be monitored is less than the quantity of data contained in the first data set to be displayed.
  • the embodiment of the present disclosure only monitors part of the data in the first to-be-displayed data set, thereby reducing the amount of data that needs to be monitored.
  • the data set to be monitored is determined from the first data set to be displayed, wherein the quantity of data contained in the data set to be monitored is less than the quantity of data contained in the first data set to be displayed.
  • the first data set to be displayed includes data a, data b, and data c
  • the data set to be monitored determined from the first data set to be displayed includes data a and data b.
  • the data processing device can determine whether the data set to be monitored is updated by monitoring the data set to be monitored, thereby realizing the real-time display of the page.
  • the monitoring result includes updated and unupdated.
  • the monitoring result is updated, which indicates that the data set to be monitored in the current state is different from the data set to be monitored in the next state, that is, the data to be displayed in the data set to be monitored has been updated.
  • the monitoring result is not updated, which means 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, that is, the data that needs to be displayed in the data set to be monitored is not updated.
  • the aforementioned current state refers to the current display state of the page
  • the aforementioned next state refers to the next display state of the current display state.
  • 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 collected by a camera at A, and video stream 2 is passed The video stream collected by the camera at B.
  • the first data set to be displayed includes video stream 1 and video stream 2, and the data set to be monitored includes part of the data in the first data set to be displayed.
  • the police locked the suspect in B place based on the information provided by the witnesses, and input the instruction to view the video stream collected by the camera of B place into the data processing device (such as selecting by mouse View the video stream captured by the camera at B).
  • the data processing device determines that in the next display state of the page, the content that can be displayed on the page includes video stream 2. Then in the next state, the first data set to be displayed includes video stream 2.
  • the data set to be monitored includes part of the data in the video stream 2.
  • Example 2 continues with the example (Example 4).
  • the first data set to be displayed includes data in the range of selectable addresses, information about the products Xiao Ming purchased, and the name of Xiao Ming’s shopping account. It is assumed that the data set to be monitored includes the range of selectable addresses.
  • the data set to be monitored in the current state includes: all provinces in China, and the data set to be monitored in the next state includes: 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.
  • the monitoring result is not updated, indicating that the content to be displayed in the data set to be monitored has not changed. Therefore, the display content of the page in the next state is the same as the display content of the page in the current state.
  • the data processing device does not need to render any data, that is, displays the data that needs to be displayed in the first data set to be displayed in the current state.
  • the monitoring result is updated, indicating that the content to be displayed in the data set to be monitored has 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.
  • the content displayed on the page in the current state includes all provinces in China, information about the goods purchased by Xiao Ming, and the name of Xiao Ming's shopping account.
  • the content displayed on the page in the next state includes all cities in Hunan province, information about the goods Xiao Ming purchased, and Xiao Ming's shopping account name.
  • the data processing device does not render all provinces in China, but renders all cities in Hunan province to display the page in the next state.
  • the amount of data that needs to be monitored is reduced, thereby reducing the hardware resources consumed for monitoring the first data set to be displayed, thereby improving the display of the data processing device.
  • the speed of the first data set to be displayed is reduced.
  • FIG. 2 shows a schematic diagram of a network architecture for data processing provided by an embodiment of the present disclosure
  • the network architecture includes: an acquisition terminal 201, a network 202, and a data processing terminal 203.
  • the acquisition terminal 201 and the data processing terminal 203 establish a communication connection through the network 202
  • the acquisition terminal 201 reports the acquired first data set to be displayed to the data processing terminal 203 through the network 202
  • the data processing terminal 203 responds
  • the first data set to be displayed is received
  • the data set to be monitored is determined from the first data set to be displayed; the amount of data contained in the data set to be monitored is less than the number of data contained in the first data set to be displayed; the data set to be monitored is monitored , Get the monitoring result.
  • the data processing terminal 203 uploads the monitoring result to the network 202 and sends it to the acquiring terminal 201 via the network 202.
  • Example 4 continues with the example (Example 5).
  • the goods Xiao Ming purchased are A and B.
  • Xiao Ming suddenly remembered that he already had B at home, and removed B from the purchased goods.
  • the commodity purchased by Xiao Ming is A, that is, the information of the commodity purchased by Xiao Ming has been updated.
  • the data processing device cannot determine that the information of the goods purchased by Xiao Ming has been updated by monitoring the data set to be monitored, and thus cannot be displayed in the next state page Update of the information of the goods purchased by Xiao Ming.
  • the ratio of the number of updated data monitored by the data processing device to the number of updated data in the first data set to be displayed is referred to as monitoring accuracy below.
  • the first data set to be displayed in the current state includes data a, data b, data c, and data d
  • the data set to be monitored includes data a and data b.
  • the first data set to be displayed in the next state includes data e, data b, data c, and data f, where data e is data obtained after data a is updated, and data f is data obtained after data d is updated.
  • the updated data monitored by the data processing device is data a
  • the updated data in the first data set to be displayed includes data a and data d, so ,
  • step 102 specifically includes the following steps:
  • At least one dynamic data is selected from the first data set to be displayed to obtain the data set to be monitored.
  • dynamic data refers to data that can change with time during the page display process.
  • any two playback screens in the video are different, that is, the playback content of the video changes over time.
  • the video data is dynamic data.
  • the information of the goods purchased by Huaweing and the address range that can be selected are dynamic data.
  • the first data set to be displayed also includes static data.
  • Dynamic data refers to data that does not change with time during the page display process.
  • the name of the video and the account information used to watch the video All are static data.
  • Xiao Ming's shopping account is named static data.
  • the probability of dynamic data update is relatively large, and the probability of static data update is relatively small. Therefore, monitoring the dynamic data in the first data set to be displayed can improve the accuracy of monitoring while reducing the amount of data that needs to be monitored.
  • this step selects at least one dynamic data from the first data set to be displayed to obtain the data set to be monitored.
  • 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 data a and data b to obtain a data set to be monitored.
  • the data processing device selects data a
  • the obtained data set to be monitored includes data a.
  • the data processing device selects data b the obtained data set to be monitored includes data b.
  • the data processing device selects data a and data b
  • the obtained data set to be monitored includes data a and data b.
  • the data set to be monitored After the data set to be monitored is obtained, by monitoring each data in the data set to be monitored, it can be determined 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, and then whether the monitoring result is not updated or updated.
  • step 103 specifically includes the following steps:
  • the selected state of the data set to be monitored represents the selected state of the data in the data set to be monitored.
  • the selected state includes all selected and empty selected.
  • the selected state of the data set to be monitored In the case where the selected state of the data set to be monitored is selected, all data in the data set to be monitored are selected. When the selected state of the data set to be monitored is half-selected, part of the data representing the data set to be monitored is selected.
  • the data set to be monitored includes data a and data b.
  • the selected state of the data set to be monitored is all selected.
  • the selected state of the data set to be monitored is empty selection, none of the data in the data set to be monitored is selected. For example, suppose the data set to be monitored includes data a and data b. When neither data a nor data b is selected, the selected state of the data set to be monitored is empty selection.
  • the selected state also includes half-selected.
  • the selected state of the data set to be monitored is half-selected.
  • the unselected data does not need to be displayed on the page, and the selected data may need to be displayed on the page. Therefore, it can be determined whether the data in the data set to be monitored is updated by determining whether the selected data in the data set to be monitored is updated.
  • the selected state of the data set to be monitored it can be determined 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.
  • the selected state of the data set to be monitored in the current state is referred to as the first selected state
  • the selected state of the data set to be monitored in the next state is referred to as the second selected state.
  • 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 Is not updated.
  • 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.
  • 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.
  • 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 Is updated.
  • 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 are selected. Different, 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.
  • the first selected state is empty selection
  • the second selected state is selected all.
  • 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 are selected
  • the data is different, 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.
  • the selected data in the data set to be monitored in the current state may be the same as the selected data in the data set to be monitored in the next state. It may also be different. In order to improve the monitoring accuracy, as an optional implementation manner, in the case where the first selected state and the second selected state are both half-selected, it is determined that the monitoring result is updated.
  • step 104 specifically includes the following two steps:
  • the monitoring result is not updated, indicating that the data that needs to be displayed in the first data set to be displayed is not updated. Therefore, in the next state, the content displayed on the page in the current state is still displayed, that is, when the monitoring result is not updated In the case of, display the data that needs to be displayed in the first data set to be displayed in the current state.
  • the first data set includes the data set to be monitored in the current state
  • the second data set includes the data set to be monitored in the next state.
  • the data set to be monitored in the current state includes data a and data b
  • the data set to be monitored in the next state includes data c and data b.
  • data c is the updated data of data a.
  • the first data set includes data a and data b
  • the second data set includes data b and data c.
  • the monitoring result is updated, indicating that the data in the data set to be monitored has been updated. Therefore, it is necessary to determine the content of the data update in the data set to be monitored to determine the content displayed on the page in the next state.
  • the content of the data update in the data set to be monitored can be determined, and the second data set to be displayed can be obtained.
  • Example 7 by calculating the difference between the first data set and the second data set, it can be determined that the content of the data update in the data set to be monitored is: data a is updated to data c, and then it can be determined that the page is under
  • the content that needs to be displayed in one state is data b and data c. Since the display content of the page in the current state includes data b, the second to-be-displayed data set includes data b and data c, wherein the display position of data c on the page is the same as the display position of data a on the page.
  • the first data set includes data a
  • the second data set includes data a and data b.
  • the second data set to be displayed is displayed on the page to update the display content of the page.
  • Example 7 continues the example, assuming that in the current state of the page, the display position of data a is p 1 , and the display position of data b is p 2 .
  • the process of displaying the second data set to be displayed may include: stopping the rendering of data a, and rendering data c to obtain the page in the next state, so that in the page in the next state, the content displayed at p 1 is data The content displayed at c, p 2 is data b.
  • the amount of monitoring required to monitor the data set to be monitored can be reduced, and the hardware resources consumed for monitoring the data set to be monitored can be reduced.
  • Example 9 suppose the first data set includes data a, data b, and data c, where data a, data b, and data c are all selected states. At this time, the first selected state is all selected.
  • the second data set includes data a, data d, and data c, where data d is data obtained by updating data b, and both data a and data d are in a selected state. At this time, the second selected state is half-selected.
  • step 3 specifically includes the following steps:
  • the first data set to be displayed is stored in the data processing device in a tree data structure.
  • the node of the data set to be monitored is called the second node, and the child nodes of the second node include the first node.
  • 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 data in the first data set except the data in the first node is called the third data set
  • the data in the second data set except the data in the first node is called the fourth data set.
  • the data in the second node in the current state includes data a, data b, data c, and data d
  • the data in the first node in the current state includes data a and data b, that is, the first data set includes data a , Data b, data c, data d.
  • the data in the first data set except the data in the first node are data c and data d, that is, the third data set includes 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.
  • data e is the updated data of data a
  • data f is the updated data of data d.
  • the data in the first node of 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 except the data in the first node are data c and data f, that is, the fourth data set includes data c and data f.
  • the third selected state and the fourth selected state are both empty selections, which means that the data in the first node in the current state and the data in the first node in the next state are not selected. Since the unselected data does not need to be displayed, there is no need to calculate the change of the data in the first node. Therefore, when the third selected state and the fourth selected state are both empty selections, the second data set to be displayed can be obtained by calculating the difference between the third data set and the fourth data set.
  • Both the third selected state and the fourth selected state are all selected, which means that the data in the first node in the current state and the data in the first node in the next state are all selected. Since in the current state, all the data in the first node has been displayed on the page, and the data that needs to be displayed in the first node in the next state is still all the data in the first node, there is no need to calculate the data in the first node. Changes in data. Therefore, in the case where both the third selected state and the fourth selected state are all selected, the second data set to be displayed can be obtained by calculating the difference between the third data set and the fourth data set.
  • the amount of calculation required to calculate the difference between the first data set and the second data set can be reduced, thereby reducing the hardware resources consumed for calculating the difference between the first data set and the second data set .
  • Example 10 when the first node includes data a, the third selected state and the fourth selected state are all selected.
  • the third data set includes data b and data c, and the fourth data set includes data c and data d. Since the third selected state and the fourth selected state are all selected, in the process of calculating the difference between the first data set and the second data set, you only need to calculate the difference between the third data set and the fourth data set Without consuming hardware resources to calculate the difference between data a in the current state and data a in the next state.
  • Example 10 when it is determined that the data in the second node has been updated (that is, the monitoring result is updated), the data processing device determines whether there is an unupdated node among the child nodes of the second node in a downward recursive manner.
  • the unupdated node is a node whose selected state in the current state is the same as the selected state in the next state, and the selected state in the current state is not a half-selected node.
  • step 2 Based on the idea of step 1 and the idea of step 2, not only can the hardware resources consumed in calculating the difference between the first data set and the second data set be reduced in the downward recursion process, but also in the upward recursion process The hardware resources consumed to calculate the difference between the first data set and the second data set.
  • the child nodes of the second node include the first node and the third node
  • the child nodes of the first node include the fourth node and the fifth node.
  • the selected state of the fourth node in the current state is called the fifth selected state
  • the selected state of the fourth node in the next state is called the sixth selected state
  • the selected state of the fifth node in the current state is called the seventh selected state
  • the selected state of the fifth node in the next state is called the eighth selected state
  • the selected state of the third node in the current state is called the ninth selected state.
  • the selected state of the third node in the next state is called the tenth selected state.
  • the data processing device monitors that the selected state of the fourth node is updated from half-selected to empty-selected (that is, the fifth-selected state is half-selected, and the sixth-selected state is empty-selected), the fifth node and the third node are both If the node is not updated, since the fifth node is an unupdated 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 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.
  • the third node is also an unupdated node, 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 , Just 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.
  • the data processing device when the third node and the fifth node are both unupdated nodes, and the fourth node is an updated node (that is, the fifth selected state is different from the sixth selected state), the calculation of the current state In the process of the difference between the data in the second node and the data in the second node in the next state, the data processing device only needs to calculate the difference between the data in the fourth node in the current state and the fourth node in the next state. The difference between the data in the node. After calculating the difference between the data in the fourth node in the current state and the data in the fourth node in the next state, the data processing device does not need to perform upward recursive processing, thereby reducing the amount of data processing.
  • hidden data Due to the limited display area of the page, when the amount of data that needs to be displayed is large, part of the data that needs to be displayed can be hidden (the hidden data that needs to be displayed is hereinafter referred to as hidden data).
  • the hidden data In the case of receiving the command to display the hidden data, the hidden data is displayed. If the command to display the hidden data is not received, the hidden data is not displayed.
  • calculating the difference between the third data set and the fourth data set to obtain the second data set to be displayed specifically includes the following steps:
  • 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 above-mentioned display state includes display and folding.
  • the display status of the node is displayed, the data that needs to be displayed in the node is displayed on the page.
  • the display state of the node is collapsed, the data that needs to be displayed in the node is not displayed. At this time, the data that needs to be displayed in the node is hidden data.
  • the fifth data set includes data in the third data set except data in the third node
  • the sixth data set includes data in the fourth data set except data in the third node.
  • the third data set includes data a, data b, data c, and data d
  • the data in the third node in the current state includes data a and data b.
  • the data in the fifth data set except the data in the third node are data c and data d, that is, the fifth data set includes data c and data d.
  • the fourth data set includes data e, data b, data c, and data f, where data e is data after data a is updated, and data f is data after data d is updated.
  • the data in the third node in the next state includes data e and data b
  • the data in the fourth data set except the data in the third node are 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 folded, which means that the data in the third node does not need to be displayed. Therefore, when the display state of the third node is folded, by calculating the difference between the fifth data set and the sixth data set, The difference between the third data set and the fourth data set can be calculated to obtain the second data set to be displayed. In this way, the amount of calculation required to calculate the difference between the third data set and the fourth data set can be reduced.
  • the data processing device calculates the data in the third node in the current state and the data in the third node in the next state in the case of receiving an instruction to display the third node in the display state The difference between the two to get the second data set to be displayed.
  • the data processing device calculates the difference between the data of Changsha City in the current state and the data of Changsha City in the next state , Get the second data set to be displayed.
  • the embodiments of the present disclosure also provide some possible application scenarios.
  • Scenario 1 In the security field, how to effectively determine the whereabouts of people or vehicles through video streams is of great significance. With the development of computer vision technology and the rapid growth of the number of cameras in public places, the use of computer vision technology to process the video captured by the camera can determine the image containing the person and/or the image containing the vehicle, and then the image containing the person can be determined according to the The image and/or the image containing the vehicle determines the trajectory of the person and/or the trajectory of the vehicle.
  • the first data set to be displayed includes the first video stream.
  • the at least one video stream acquired by a data processing device includes a video stream collected by a camera in Shenzhen and a video stream collected by a camera in Guangzhou.
  • the police locked the suspect in Shenzhen based on the suspect's information, and input instructions to the data processing device to view the video stream captured by the camera in Shenzhen.
  • the data processing device selects the video stream collected by the camera in Shenzhen as the first video stream.
  • step 101 includes the following steps:
  • the data processing apparatus receives at least one second video stream sent by the second terminal.
  • the second terminal may be any one of the following: a mobile phone, a computer, a tablet computer, a server, and a wearable device.
  • At least one second video stream there is a communication connection between the data processing device and the at least one surveillance camera.
  • the data processing device obtains at least one second video stream collected by at least one surveillance camera through the communication connection.
  • at least one second video stream includes a video stream collected by a camera in Shenzhen and a video stream collected by a camera in Guangzhou.
  • the instruction to select at least one video stream from the at least one second video stream may be that the user can input the instruction to select at least one video stream from the at least one second video stream to the input component through the input component Data processing device.
  • the above-mentioned input components include: a keyboard, a mouse, a touch screen, a touch pad, and an audio input device.
  • the data processing device selects the first video stream from the at least one second video stream. Then Example 12 continues the example.
  • the instruction to select at least one video stream from the above at least one second video stream is to select the camera in Shenzhen from the video stream collected by the camera in Shenzhen and the video stream collected by the camera in Guangzhou.
  • Video stream Upon receiving the instruction, the data processing device selects the video stream collected by the camera in Shenzhen from the video stream collected by the camera in Shenzhen and the video stream collected by the camera in Guangzhou as the first video stream.
  • the at least one second video stream includes video stream 1, video stream 2, and video stream 3.
  • the instruction to select at least one video stream from the above 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.
  • the data processing device selects video stream 1 and video stream 2 from video stream 1, video stream 2, and video stream 3.
  • the first video stream may be video stream 1, and the first video stream may also be video stream 2.
  • the first video stream can be displayed based on the technical solution provided by the present disclosure, reducing the amount of data processing.
  • the user can determine the image containing the person and/or the image containing the vehicle from the first video stream. For example, the attribute of the person is input to the data processing device, so that the data processing device uses the attribute to retrieve an image containing the person whose attribute matches the attribute from the first video stream.
  • the person’s image can be determined according to the collection time and location of the image (here, the image containing the person and/or the image containing the vehicle). The trajectory and/or the trajectory of the vehicle.
  • Scenario 2 The data processing device displays the trajectory of the character and/or the trajectory of the vehicle based on the technical solution provided by the present disclosure, which can reduce the amount of data processing and increase the data processing speed.
  • the suspect was wearing a black shirt, black pants, and white shoes, and the suspect was wearing a mask with short black hair.
  • the police learns the suspect’s attributes i.e. black shirt, black pants, white shoes, wearing a mask, black short hair
  • the camera is collected by), and an image with a character attribute that matches the attribute of the suspect is obtained as the target image.
  • the trajectory data of the criminal suspect can be determined according to the collection time of the target image and the collection location of the target image.
  • the target image includes: image a, image b, and image c.
  • the acquisition time of image a is 16:45 on May 19, 2020
  • the acquisition time of image b is 16:55 on May 19, 2020
  • the acquisition time of image c is 18:45 on May 19, 2020.
  • the collection location of image a is 114° east longitude and 22°3' north latitude
  • the collection location of image b is 114°10' east longitude and 22°5' north latitude
  • the collection location of image c is 114°10' east longitude and 22°6 north latitude. '.
  • the whereabouts of the suspect can be determined: at 16:45 on May 19, 2020, it appeared at 114° east longitude and 22° 3′ north latitude, and at 16:55 on May 19, 2020 It appeared at 114°10', 22°5' north latitude, and appeared at 114°10', 22°6' north latitude at 18:45 on May 19, 2020.
  • the trajectory data of the criminal suspect includes: the whereabouts and target image of the criminal suspect.
  • the user may view at least one piece of data in the trajectory data of the criminal suspect.
  • the police can input an instruction to view image a to the data processing device.
  • the data processing device displays image a, the collection time of image a, and the collection location of image a.
  • the first to-be-displayed data set includes the trajectory data of the criminal suspect
  • the second to-be-displayed data set includes: image a, the collection time of image a, and the collection location of image a.
  • the police may input instructions to view image a and image b to the data processing device.
  • the data processing device displays the image a, the collection time of the image a, the collection location of the image a, the collection time of the image b, the image b, and the collection location of the image b upon receiving an instruction to view the image a and the image b.
  • the first data set to be displayed includes the trajectory data of the criminal suspect.
  • the data set to be monitored includes dynamic data in the trajectory data of the criminal suspect.
  • the second data set to be displayed includes: image a, the collection time of image a, the collection location of image a, the collection time of image b, image b, and the collection location of image b.
  • the trajectory data of the criminal suspect may be displayed on the map.
  • the first data set to be displayed includes: map data and trajectory data of the criminal suspect.
  • the map data may be the map data of A.
  • the police hope to know the trajectory of the criminal suspect in area B of area A, and input instructions to the data processing device to view the trajectory of the criminal suspect in area B.
  • the collection location of image a and the collection location of image b are located in area B.
  • the data processing device receives an instruction to view the suspect’s trajectory in area B, it displays the map data of area B, the collection time of image a, the collection time of image a, the collection location of image a, the location of image b, and image b. Collection time and location of image b.
  • the first data set to be displayed includes: the trajectory data of the criminal suspect and the map data of the A place.
  • the data set to be monitored includes: the dynamic data in the trajectory data of the criminal suspect, and the dynamic data in the map data of the A place.
  • the second data set to be displayed includes: map data of area B, image a, the collection time of image a, the collection location of image a, the collection time of image b, image b, and the collection location of image b.
  • the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process.
  • the specific execution order of each step should be based on its function and possibility.
  • the inner logic is determined.
  • FIG. 3 is a schematic structural diagram of a data processing device 3 provided by an embodiment of the present disclosure.
  • the device 3 includes: an acquisition unit 31, a determination unit 32, a monitoring unit 33, and a display unit 34, wherein:
  • the acquiring unit 31 is configured to acquire the first to-be-displayed data set
  • the determining unit 32 is configured to determine a data set to be monitored from the first data set to be displayed; the quantity of data contained in the data set to be monitored is less than the quantity of data contained in the first data set to be displayed;
  • the monitoring unit 33 is configured to monitor the data set to be monitored to obtain a monitoring result
  • the display unit 34 is configured to display the first data set to be displayed according to the monitoring result.
  • the determining unit 32 is configured to:
  • At least one dynamic data is selected from the first data set to be displayed to obtain the data set to be monitored.
  • the monitoring unit 33 is configured to:
  • the monitoring result is obtained by monitoring the selected state of the data set to be monitored.
  • the display unit 34 is configured to:
  • the difference between the first data set and the second data set is calculated to obtain the second data set to be displayed;
  • the first data set includes the current state The data set to be monitored;
  • the second data set includes the data set to be monitored in the next state;
  • the second data set to be displayed is displayed.
  • the selected state includes full selection and empty selection
  • the monitoring unit 33 is configured to:
  • both the first selected state and the second selected state are the all selected, it is determined that the monitoring result is not updated; the first selected state is that the data set to be monitored is in the current state The selected state in the next state; the second selected state is the selected state of the data set to be monitored in the next state; or,
  • the first selected state and the second selected state are both the empty selection, it is determined that the monitoring result is not updated; the first selected state is that the data set to be monitored is in The selected state in the current state; the second selected state is the selected state of the data set to be monitored in the next state;
  • the display unit 34 is configured to:
  • the difference between the third data set and the fourth data set is calculated to obtain the second data set to be displayed; 3.
  • the 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 the node of the data set to be monitored;
  • the third data set includes the data in the first data set except for the data in the first node
  • the fourth data set includes data in the second data set other than the data in the first node; or,
  • the difference between the third data set and the fourth data set is calculated to obtain the second The 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 first node in the next state The selected state;
  • the first node is a child node of the second node;
  • the second node is the node of the data set to be monitored;
  • the third data set includes the first data set except the Data other than the data in the first node;
  • the fourth data set includes data other than the data in the first node in the second data set.
  • the display unit 34 is configured to:
  • the third node is a sibling node of the first node
  • the difference between the fifth data set and the sixth data set is calculated to obtain the second data set to be displayed;
  • the fifth data set includes the third data set divided by Data other than the data in the third node;
  • the sixth data set includes data other than the data in the third node in the fourth data set.
  • the first data set to be displayed includes: a first video stream
  • the obtaining unit 31 is configured to:
  • the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments.
  • the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments.
  • FIG. 4 is a schematic diagram of the hardware structure of an electronic device 4 provided by an embodiment of the disclosure.
  • the electronic device 4 includes a processor 41, a memory 42, an input device 43, and an output device 44.
  • the processor 41, the memory 42, the input device 43, and the output device 44 are coupled through a connector, and the connector includes various interfaces, transmission lines, or buses, etc., which are not limited in the embodiment of the present disclosure.
  • coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, for example, can be connected through various interfaces, transmission lines, buses, and the like.
  • the processor 41 may include one or more processors, for example, one or more central processing units (CPU).
  • the processor may be a single-core CPU or It is a multi-core CPU.
  • the processor 21 may be a processor group composed of multiple GPUs, and the multiple processors are coupled to each other through one or more buses.
  • the processor may also be other types of processors, etc., which is not limited in the embodiment of the present disclosure.
  • the memory 42 may be used to store computer program instructions and various computer program codes including program codes used to execute the solutions of the present disclosure.
  • the memory includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (erasable programmable read only memory, EPROM) ), or a portable read-only memory (compact disc read-only memory, CD-ROM), which is used for related instructions and data.
  • the input device 43 is used to input data and/or signals
  • the output device 44 is used to output data and/or signals.
  • the input device 43 and the output device 44 may be independent devices or a whole device.
  • the memory 42 can be used not only to store related instructions, but also to store related data.
  • the memory 42 can be used to store the first to-be-displayed data set acquired through the input device 43, or the memory 42 It can also be used to store the first to-be-displayed data set obtained by the processor 41, etc.
  • the embodiment of the present disclosure does not limit the specific data stored in the memory.
  • FIG. 4 only shows a simplified design of the electronic device 4.
  • the data processing device may also include other necessary components, including but not limited to any number of input/output devices, processors, memories, etc., and all data processing devices that can implement the embodiments of the present disclosure are in this Within the scope of public protection.
  • the embodiments of the present disclosure also provide a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and the computer program executes the data processing method described in the above method embodiment when the computer program is run by a processor.
  • the storage medium may be a volatile or non-volatile computer readable storage medium.
  • the computer program product of the data processing method provided by the embodiment of the present disclosure includes a computer-readable storage medium storing program code, and the program code includes instructions that can be used to execute the seat belt wearing detection method described in the above method embodiment
  • the program code includes instructions that can be used to execute the seat belt wearing detection method described in the above method embodiment
  • the embodiments of the present disclosure also provide a computer program, the computer program includes computer readable code, when the computer readable code runs in an electronic device, the processor of the electronic device executes the method for implementing the method described in any of the foregoing embodiments. Data processing method.
  • the computer program product can be specifically implemented by hardware, software, or a combination thereof.
  • the computer program product is specifically embodied as a computer storage medium.
  • the computer program product is specifically embodied as a software product, such as a software development kit (SDK). and many more.
  • SDK software development kit
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium.
  • the computer instructions can be sent from a website, computer, server, or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (such as infrared, wireless, microwave, etc.) Another website site, computer, server or data center for transmission.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a digital versatile disc (DVD)), or a semiconductor medium (for example, a solid state disk (SSD)) )Wait.
  • a magnetic medium for example, a floppy disk, a hard disk, a magnetic tape
  • an optical medium for example, a digital versatile disc (DVD)
  • DVD digital versatile disc
  • SSD solid state disk
  • the process can be completed by a computer program instructing relevant hardware.
  • the program can be stored in a computer readable storage medium. , May include the processes of the above-mentioned method embodiments.
  • the aforementioned storage media include: read-only memory (ROM) or random access memory (RAM), magnetic disks or optical disks and other media that can store program codes.
  • the present disclosure provides a data processing method, device, electronic equipment, storage medium, and program; the method includes: obtaining a first data set to be displayed; determining a data set to be monitored from the first data set to be displayed; The amount of data contained in the monitoring data set is less than the amount of data contained in the first data set to be displayed; the data set to be monitored is monitored to obtain a monitoring result; the first data to be displayed is displayed according to the monitoring result set.

Landscapes

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

Abstract

Disclosed are a data processing method and apparatus, and an electronic device, a storage medium and a program. The method comprises: acquiring a first data set to be displayed; determining, from the first data set, a data set to be monitored, wherein the quantity of data included in the data set to be monitored is less than the quantity of data included in the first data set; monitoring the data set to be monitored, so as to obtain a monitoring result; and displaying the first data set according to the monitoring result. Therefore, in the embodiments of the present disclosure, by means of monitoring a data set to be monitored in a first data set to be displayed, the quantity of data needing to be monitored is reduced, and as such, the consumption of hardware resources for monitoring the first data set is reduced, and the speed of displaying the first data set by a data processing device is improved.

Description

数据处理方法、装置、电子设备、存储介质及程序Data processing method, device, electronic equipment, storage medium and program
相关公开的交叉引用Related public cross-references
本公开基于公开号为202010435903.8、公开日为2020年5月21日的中国专利公开提出,并要求该中国专利公开的优先权,该中国专利公开的全部内容在此引入本公开作为参考。This disclosure is based on the Chinese Patent Publication with the publication number 202010435903.8 and the publication date on May 21, 2020, and claims the priority of the Chinese patent publication. The entire content of the Chinese patent publication is incorporated herein by reference.
技术领域Technical field
本公开涉及计算机技术领域,尤其涉及一种数据处理方法、装置、电子设备、存储介质及程序。The present disclosure relates to the field of computer technology, and in particular to a data processing method, device, electronic equipment, storage medium, and program.
背景技术Background technique
浏览器通常将所需显示的数据进行渲染之后在浏览器显示页面中进行显示。同时所需显示的数据可能会随时间的推移而更新,为使浏览器通过页面即时显示更新后的数据,需要对所需显示的数据进行监听,以确定所需显示的数据是否更新,从而实现页面的实时显示。The browser usually renders the data that needs to be displayed and then displays it on the browser display page. At the same time, the data that needs to be displayed may be updated over time. In order for the browser to display the updated data instantly through the page, it is necessary to monitor the data that needs to be displayed to determine whether the data that needs to be displayed is updated. Real-time display of the page.
相关技术中,由于所需显示的数据的数量大,通过传统方法监听所需显示的数据容易因硬件开销大而导致浏览器的运行速度慢,甚至出现浏览器卡死、崩溃等情况。In the related art, due to the large amount of data that needs to be displayed, monitoring the data that needs to be displayed through the traditional method is likely to cause the slow running of the browser due to the high hardware overhead, and even the browser may freeze or crash.
发明内容Summary of the invention
本公开提供一种数据处理方法、装置、电子设备、存储介质及程序。The present disclosure provides a data processing method, device, electronic equipment, storage medium, and program.
本公开实施例提供了一种数据处理方法,所述方法包括:The embodiment of the present disclosure provides a data processing method, and the method includes:
获取第一待显示数据集;Obtain the first data set to be displayed;
从所述第一待显示数据集中确定待监听数据集;所述待监听数据集包含的数据的数量少于所述第一待显示数据集包含的数据的数量;Determining a data set to be monitored from the first data set to be displayed; the quantity of data contained in the data set to be monitored is less than the quantity of data contained in the first data set to be displayed;
监听所述待监听数据集,得到监听结果;Monitor the data set to be monitored to obtain a monitoring result;
依据所述监听结果,显示所述第一待显示数据集。如此,通过对第一待显示数据集中的待监听数据集进行监听,减少所需监听的数据的数量,进而降低监听第一待显示数据集所消耗的硬件资源,从而提高数据处理装置显示第一待显示数据集的速度。According to the monitoring result, the first data set to be displayed is displayed. In this way, by monitoring the to-be-monitored data set in the first to-be-displayed data set, the amount of data that needs to be monitored is reduced, thereby reducing the hardware resources consumed for monitoring the first to-be-displayed data set, thereby improving the display of the first data processing device. The speed of the data set to be displayed.
结合本公开任一实施方式,所述从所述第一待显示数据集中确定待监听数据集,包括:With reference to any one of the embodiments of the present disclosure, the determining a data set to be monitored from the first data set to be displayed includes:
从所述第一待显示数据集中选取至少一个动态数据,得到所述待监听数据集。如此,对第一待显示数据集中的动态数据进行监听,可在减少所需监听的数据的数量的同时,提高监听准确度At least one dynamic data is selected from the first data set to be displayed to obtain the data set to be monitored. In this way, monitoring the dynamic data in the first data set to be displayed can reduce the amount of data that needs to be monitored and improve the accuracy of monitoring.
结合本公开任一实施方式,所述监听所述待监听数据集,得到监听结果,包括:With reference to any one of the embodiments of the present disclosure, the monitoring the data set to be monitored to obtain the monitoring result includes:
通过监听所述待监听数据集的被选状态,得到所述监听结果。如此,通过待监听数据的被选状态,以进一步降低监听待监听数据集所耗费的硬件资源。The monitoring result is obtained by monitoring the selected state of the data set to be monitored. In this way, through the selected state of the data to be monitored, the hardware resources consumed for monitoring the data set to be monitored can be further reduced.
结合本公开任一实施方式,所述依据所述监听结果,显示所述第一待显示数据集,包括:With reference to any one of the embodiments of the present disclosure, the displaying the first data set to be displayed according to the monitoring result includes:
在所述监听结果为未更新的情况下,显示当前状态下所述第一待显示数据集中所需显示的数据;If the monitoring result is not updated, display the data that needs to be displayed in the first data set to be displayed in the current state;
在所述监听结果为所述已更新的情况下,计算第一数据集与第二数据集之间的差异,得到第二待显示数据集;所述第一数据集包括所述当前状态下的所述待监听数据集;所述第二数据集包括下一个状态下的所述待监听数据集;In the case where the monitoring result is the updated, the difference between the first data set and the second data set is calculated to obtain the second data set to be displayed; the first data set includes the current state The data set to be monitored; the second data set includes the data set to be monitored in the next state;
显示所述第二待显示数据集。如此,通过对待监听数据集的被选状态进行监听,确定监听结果,可减少监听待监听数据集所需的监听量,进而可降低监听待监听数据集所耗费的硬件资源。The second data set to be displayed is displayed. In this way, by monitoring the selected state of the data set to be monitored and determining the monitoring result, the amount of monitoring required for monitoring the data set to be monitored can be reduced, and thus the hardware resources consumed for monitoring the data set to be monitored can be reduced.
结合本公开任一实施方式,所述被选状态包括全选和空选;With reference to any embodiment of the present disclosure, the selected state includes full selection and empty selection;
所述通过监听所述待监听数据集的被选状态,得到所述监听结果,包括:The obtaining the monitoring result by monitoring the selected state of the data set to be monitored includes:
在第一被选状态和第二被选状态均为所述全选的情况下,确定所述监听结果为未更新;所述第一被选状态为所述待监听数据集在所述当前状态下的所述被选状态;所述第二被选状态为所述待监听数据集在所述下一个状态下的所述被选状态;或,In the case where both the first selected state and the second selected state are the all selected, it is determined that the monitoring result is not updated; the first selected state is that the data set to be monitored is in the current state The selected state in the next state; the second selected state is the selected state of the data set to be monitored in the next state; or,
在所述第一被选状态和所述第二被选状态均为所述空选的情况下,确定所述监听结果为未更新;所述第一被选状态为所述待监听数据集在所述当前状态下的所述被选状态;所述第二被选状态为所述待监听数据集在所述下一个状态下的所述被选状态;In the case that the first selected state and the second selected state are both the empty selection, it is determined that the monitoring result is not updated; the first selected state is that the data set to be monitored is in The selected state in the current state; the second selected state is the selected state of the data set to be monitored in the next state;
在所述第一被选状态和所述第二被选状态不同的情况下,确定所述监听结果为已更新。如此,通过第一被选状态和第二被选状态之间的具体被选状态,以及两者被选状态的关系,以快速确定出监听结果为未更新或已更新。In a case where the first selected state and the second selected state are different, it is determined that the monitoring result is updated. In this way, the specific selected state between the first selected state and the second selected state and the relationship between the two selected states can be used to quickly determine whether the monitoring result is not updated or updated.
结合本公开任一实施方式,所述计算第一数据集与第二数据集之间的差异,得到第二待显示数据集,包括:With reference to any one of the embodiments of the present disclosure, the calculating the difference between the first data set and the second data set to obtain the second data set to be displayed includes:
在第三被选状态和第四被选状态均为所述空选的情况下,计算第三数据集与第四数据集之间的差异,得到所述第二待显示数据集;所述第三被选状态为第一节点在所述当前状态下的所述被选状态;所述第四被选状态为所述第一节点在所述下一个状态下的所述被选状态;所述第一节点为第二节点的子节点;所述第二节点为所述待监听数据集的节点;所述第三数据集包括所述第一数据集中除所述第一节点中的数据之外的数据;所述第四数据集包括所述第二数据集中除所述第一节点中的数据之外的数据;或,In the case where the third selected state and the fourth selected state are both the empty selection, the difference between the third data set and the fourth data set is calculated to obtain the second data set to be displayed; 3. The 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 the node of the data set to be monitored; the third data set includes the data in the first data set except for the data in the first node The data; the fourth data set includes data in the second data set other than the data in the first node; or,
在所述第三被选状态和所述第四被选状态均为所述全选的情况下,计算所述第三数据集与所述第四数据集之间的差异,得到所述第二待显示数据集;所述第三被选状态为第一节点在所述当前状态下的所述被选状态;所述第四被选状态为所述第一节点在所述下一个状态下的所述被选状态;所述第一节点为第二节点的子节点;所述第二节点为所述待监听数据集的节点;所述第三数据集包括所述第一数据集中除所述第一节点中的数据之外的数据;所述第四数据集包括所述第二数据集中除所述第一节点中的数据之外的数据。如此,基于第三被选状态和第四被选状态均为空选或全选的情况下,可减少计算第一数据集和第二数据集之间的差异所需的计算量,进而减少计算第一数据集和第二数据集之间的差异所耗费的硬件资源。In the case that the third selected state and the fourth selected state are both the selected all, the difference between the third data set and the fourth data set is calculated to obtain the second The 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 first node in the next state The selected state; the first node is a child node of the second node; the second node is the node of the data set to be monitored; the third data set includes the first data set except the Data other than the data in the first node; the fourth data set includes data other than the data in the first node in the second data set. In this way, based on the case that the third selected state and the fourth selected state are both empty or all selected, the amount of calculation required to calculate the difference between the first data set and the second data set can be reduced, thereby reducing the calculation The hardware resources consumed by the difference between the first data set and the second data set.
结合本公开任一实施方式,所述计算所述第三数据集与所述第四数据集之间的差异,得到所述第二待显示数据集,包括:With reference to any one of the embodiments of the present disclosure, the calculating the difference between the third data set and the fourth data set to obtain the second data set to be displayed includes:
获取第三节点的显示状态;所述第三节点为第一节点的兄弟节点;Acquiring the display status of the third node; the third node is a sibling node of the first node;
在所述显示状态为折叠的情况下,计算第五数据集与第六数据集之间的差异,得到所述第二待显示数据集;所述第五数据集包括所述第三数据集中除第三节点中的数据之外的数据;所述第六数据集包括所述第四数据集中除第三节点中的数据之外的数据。如此,在第三节点为第一节点的兄弟节点,且第三节点的显示状态为折叠的情况下,只需计算第五数据集与第六数据集之间的差异,可减少计算第三数据集和第四数据集之间的差异所需的计算量,以得到第二待显示数据集。In the case that the display state is folded, the difference between the fifth data set and the sixth data set is calculated to obtain the second data set to be displayed; the fifth data set includes the third data set divided by Data other than the data in the third node; the sixth data set includes data other than the data in the third node in the fourth data set. In this way, when the third node is a sibling node of the first node, and the display state of the third node is collapsed, only the difference between the fifth data set and the sixth data set needs to be calculated, which can reduce the calculation of the third data The amount of calculation required for the difference between the fourth data set and the fourth data set to obtain the second data set to be displayed.
结合本公开任一实施方式,所述第一待显示数据集包括:第一视频流;With reference to any embodiment of the present disclosure, the first data set to be displayed includes: a first video stream;
所述获取第一待显示数据集,包括:The obtaining the first data set to be displayed includes:
获取至少一个第二视频流;Acquiring at least one second video stream;
在接收到从所述至少一个第二视频流中选取至少一个视频流的指令的情况下,从所述至少一个第二视频流中选取所述第一视频流。如此,从至少一个第二视频流中选取第一视频流,以减少数据处理量。In the case of receiving an instruction to select at least one video stream from the at least one second video stream, select the first video stream from the at least one second video stream. In this way, the first video stream is selected from at least one second video stream to reduce the amount of data processing.
以下装置、电子设备等的效果描述参见上述方法的说明,这里不再赘述。For the description of the effects of the following devices, electronic equipment, etc., please refer to the description of the above method, which will not be repeated here.
本公开实施例提供了一种数据处理装置,所述装置包括:An embodiment of the present disclosure provides a data processing device, which includes:
获取单元,用于获取第一待显示数据集;An acquiring unit for acquiring the first data set to be displayed;
确定单元,用于从所述第一待显示数据集中确定待监听数据集;所述待监听数据集包含的数据的数量少于所述第一待显示数据集包含的数据的数量;A determining unit, configured to determine a data set to be monitored from the first data set to be displayed; the quantity of data contained in the data set to be monitored is less than the quantity of data contained in the first data set to be displayed;
监听单元,用于监听所述待监听数据集,得到监听结果;A monitoring unit for monitoring the data set to be monitored to obtain a monitoring result;
显示单元,用于依据所述监听结果,显示所述第一待显示数据集。The display unit is configured to display the first data set to be displayed according to the monitoring result.
结合本公开任一实施方式,所述确定单元,用于:With reference to any embodiment of the present disclosure, the determining unit is configured to:
从所述第一待显示数据集中选取至少一个动态数据,得到所述待监听数据集。At least one dynamic data is selected from the first data set to be displayed to obtain the data set to be monitored.
结合本公开任一实施方式,所述监听单元,用于:With reference to any one of the embodiments of the present disclosure, the monitoring unit is configured to:
通过监听所述待监听数据集的被选状态,得到所述监听结果。The monitoring result is obtained by monitoring the selected state of the data set to be monitored.
结合本公开任一实施方式,所述显示单元,用于:With reference to any one of the embodiments of the present disclosure, the display unit is configured to:
在所述监听结果为未更新的情况下,显示当前状态下所述第一待显示数据集中所需显示的数据;If the monitoring result is not updated, display the data that needs to be displayed in the first data set to be displayed in the current state;
在所述监听结果为所述已更新的情况下,计算第一数据集与第二数据集之间的差异,得到第二待显示数据集;所述第一数据集包括所述当前状态下的所述待监听数据集;所述第二数据集包括下一个状态下的所述待监听数据集;In the case where the monitoring result is the updated, the difference between the first data set and the second data set is calculated to obtain the second data set to be displayed; the first data set includes the current state The data set to be monitored; the second data set includes the data set to be monitored in the next state;
显示所述第二待显示数据集。The second data set to be displayed is displayed.
结合本公开任一实施方式,所述被选状态包括全选和空选;With reference to any embodiment of the present disclosure, the selected state includes full selection and empty selection;
所述监听单元,用于:The monitoring unit is used for:
在第一被选状态和第二被选状态均为所述全选的情况下,确定所述监听结果为未更新;所述第一被选状态为所述待监听数据集在所述当前状态下的所述被选状态;所述第二被选状态为所述待监听数据集在所述下一个状态下的所述被选状态;或,In the case where both the first selected state and the second selected state are the all selected, it is determined that the monitoring result is not updated; the first selected state is that the data set to be monitored is in the current state The selected state in the next state; the second selected state is the selected state of the data set to be monitored in the next state; or,
在所述第一被选状态和所述第二被选状态均为所述空选的情况下,确定所述监听结果为未更新;所述第一被选状态为所述待监听数据集在所述当前状态下的所述被选状态;所述第二被选状态为所述待监听数据集在所述下一个状态下的所述被选状态;In the case that the first selected state and the second selected state are both the empty selection, it is determined that the monitoring result is not updated; the first selected state is that the data set to be monitored is in The selected state in the current state; the second selected state is the selected state of the data set to be monitored in the next state;
在所述第一被选状态和所述第二被选状态不同的情况下,确定所述监听结果为已更新。In a case where the first selected state and the second selected state are different, it is determined that the monitoring result is updated.
结合本公开任一实施方式,所述显示单元,用于:With reference to any one of the embodiments of the present disclosure, the display unit is configured to:
在第三被选状态和第四被选状态均为所述空选的情况下,计算第三数据集与第四数据集之间的差异,得到所述第二待显示数据集;所述第三被选状态为第一节点在所述当前状态下的所述被选状态;所述第四被选状态为所述第一节点在所述下一个状态下的所述被选状态;所述第一节点为第二节点的子节点;所述第二节点为所述待监听数据集的节点;所述第三数据集包括所述第一数据集中除所述第一节点中的数据之外的数据;所述第四数据集包括所述第二数据集中除所述第一节点中的数据之外的数据;或,In the case where the third selected state and the fourth selected state are both the empty selection, the difference between the third data set and the fourth data set is calculated to obtain the second data set to be displayed; 3. The 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 the node of the data set to be monitored; the third data set includes the data in the first data set except for the data in the first node The data; the fourth data set includes data in the second data set other than the data in the first node; or,
在所述第三被选状态和所述第四被选状态均为所述全选的情况下,计算所述第三数据集与所述第四数据集之间的差异,得到所述第二待显示数据集;所述第三被选状态为第一节点在所述当前状态下的所述被选状态;所述第四被选状态为所述第一节点在所述下一个状态下的所述被选状态;所述第一节点为第二节点的子节点;所述第二节点为所述待监听数据集的节点;所述第三数据集包括所述第一数据集中除所述第一节点中的数据之外的数据;所述第四数据集包括所述第二数据集中除所述第一节点中的数据之外的数据。In the case that the third selected state and the fourth selected state are both the selected all, the difference between the third data set and the fourth data set is calculated to obtain the second The 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 first node in the next state The selected state; the first node is a child node of the second node; the second node is the node of the data set to be monitored; the third data set includes the first data set except the Data other than the data in the first node; the fourth data set includes data other than the data in the first node in the second data set.
结合本公开任一实施方式,所述显示单元,用于:With reference to any one of the embodiments of the present disclosure, the display unit is configured to:
获取第三节点的显示状态;所述第三节点为第一节点的兄弟节点;Acquiring the display status of the third node; the third node is a sibling node of the first node;
在所述显示状态为折叠的情况下,计算第五数据集与第六数据集之间的差异,得到所述第二待显示数据集;所述第五数据集包括所述第三数据集中除第三节点中的数据之外的数据;所述第六数据集包括所述第四数据集中除第三节点中的数据之外的数据。In the case that the display state is folded, the difference between the fifth data set and the sixth data set is calculated to obtain the second data set to be displayed; the fifth data set includes the third data set divided by Data other than the data in the third node; the sixth data set includes data other than the data in the third node in the fourth data set.
结合本公开任一实施方式,所述第一待显示数据集包括:第一视频流;With reference to any embodiment of the present disclosure, the first data set to be displayed includes: a first video stream;
所述获取单元,用于:The obtaining unit is used to:
获取至少一个第二视频流;Acquiring at least one second video stream;
在接收到从所述至少一个第二视频流中选取至少一个视频流的指令的情况下,从所述至少一个第二视频流中选取所述第一视频流。In the case of receiving an instruction to select at least one video stream from the at least one second video stream, select the first video stream from the at least one second video stream.
本公开实施例提供了一种处理器,所述处理器用于执行如上述第一方面及其任意一种可能实现的方式的方法。The embodiments of the present disclosure provide a processor, which is configured to execute a method as described in the first aspect and any one of its possible implementation manners.
本公开实施例提供了一种电子设备,包括:处理器、输入装置、输出装置和存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,在所述处理器执行所述计算机指令的情况下,所述电子设备执行如上述第一方面及其任意一种可能实现的方式的方法。The embodiment of the present disclosure provides an electronic device, including: a processor, an input device, an output device, and a memory. The memory is used to store computer program code. The computer program code includes computer instructions. In the case of the computer instruction, the electronic device executes the method as in the above-mentioned first aspect and any one of its possible implementation modes.
本公开实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序包括程序指令,在所述程序指令被处理器执行的情况下,使所述处理器执行如上述第一方面及其任意一种可能实现的方式的方法。The embodiments of the present disclosure provide a computer-readable storage medium in which a computer program is stored, and the computer program includes program instructions that, when the program instructions are executed by a processor, cause all The processor executes the method as described in the first aspect and any one of its possible implementation manners.
本公开实施例提供了一种计算机程序产品,所述计算机程序产品包括计算机可读代码,在所述计算机可读代码在计算机中运行的情况下,使得所述计算机执行上述任意一种数据处理方法。The embodiments of the present disclosure provide a computer program product, the computer program product includes computer readable code, in the case that the computer readable code runs in a computer, the computer is caused to execute any of the above data processing methods .
本公开实施例提出的数据处理方法、装置、电子设备、存储介质及程序;首先,获取第一待显示数据集;其次,从所述第一待显示数据集中确定待监听数据集;所述待监听数据集包含的数据的数量少于所述第一待显示数据集包含的数据的数量;然后,监听所述待监听数据集,得到监听结果;最后,依据所述监听结果,显示所述第一待显示数据集。如此,在本公开实施例中,通过对第一待显示数据集中的待监听数据集进行监听,减少所需监听的数据的数量,进而降低监听第一待显示数据集所消耗的硬件资源,从而提高数据处理装置显示第一待显示数据集的速度。The data processing method, device, electronic equipment, storage medium and program proposed in the embodiments of the present disclosure; firstly, obtain the first data set to be displayed; secondly, determine the data set to be monitored from the first data set to be displayed; The number of data included in the monitoring data set is less than the number of data included in the first data set to be displayed; then, the data set to be monitored is monitored to obtain the monitoring result; finally, the first data set is displayed based on the monitoring result. A data set to be displayed. In this way, in the embodiment of the present disclosure, by monitoring the data set to be monitored in the first data set to be displayed, the amount of data that needs to be monitored is reduced, thereby reducing the hardware resources consumed for monitoring the first data set to be displayed, thereby Increase the speed at which the data processing device displays the first data set to be displayed.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, rather than limiting the present disclosure.
附图说明Description of the drawings
为了更清楚地说明本公开实施例或背景技术中的技术方案,下面将对本公开实施例或背景技术中所需要使用的附图进行说明。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the background art, the following will describe the drawings that need to be used in the embodiments of the present disclosure or the background art.
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments that conform to the present disclosure, and are used together with the specification to explain the technical solutions of the present disclosure.
图1为本公开实施例提供的一种数据处理方法的流程示意图;FIG. 1 is a schematic flowchart of a data processing method provided by an embodiment of the disclosure;
图2为本公开实施例提供的数据处理的一种网络架构示意图;2 is a schematic diagram of a network architecture for data processing provided by an embodiment of the disclosure;
图3为本公开实施例提供的一种数据处理装置3的结构示意图;FIG. 3 is a schematic structural diagram of a data processing device 3 provided by an embodiment of the disclosure;
图4为本公开实施例提供的一种电子设备4的硬件结构示意图。FIG. 4 is a schematic diagram of the hardware structure of an electronic device 4 provided by an embodiment of the disclosure.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本公开方案,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅 是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to enable those skilled in the art to better understand the solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only These are a part of the embodiments of the present disclosure, but not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present disclosure.
本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms “first”, “second”, etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific sequence. In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes unlisted steps or units, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本公开的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "embodiments" herein means that a specific feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present disclosure. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art clearly and implicitly understand that the embodiments described herein can be combined with other embodiments.
在浏览器显示页面的过程中,浏览器通过渲染所需显示的数据,将所需显示的数据通过页面显示。由于所需显示的数据可能会随时间的推移而更新,为使浏览器通过页面即时显示更新后的数据,需要对所需显示的数据进行监听,以确定所需显示的数据是否更新,从而实现页面的实时显示。In the process of the browser displaying the page, the browser displays the data to be displayed on the page by rendering the data to be displayed. Since the data that needs to be displayed may be updated over time, in order for the browser to display the updated data instantly through the page, it is necessary to monitor the data that needs to be displayed to determine whether the data that needs to be displayed is updated, so as to achieve Real-time display of the page.
例如(例1),小明在通过浏览器进行网络购物的过程中,需要填写收货地址。在填写收货地址时,浏览器在填写收货地址的页面中显示了可选择的地址范围,选择的顺序依次为:国家→省份→城市→区→街道。小明在国家的备选项中选择了“中国”,此时,浏览器在可选择的地址范围中显示了中国所有省份,以供小明选择。小明从中国所有省份中选择了湖南省,此时,所需显示的数据已更新,即可选择地址范围中的显示内容从中国所有省份更新成了湖南省所有城市。在通过对填写收货地址的页面所需显示的数据进行监听,确定可选择地址范围内的数据已更新的情况下,可更新填写收货地址的页面的显示内容,具体的,将可选择地址范围内的显示内容由中国所有省份更新成湖南省所有城市。For example (Example 1), Xiao Ming needs to fill in the delivery address during online shopping through the browser. When filling in the delivery address, the browser displays the address range that can be selected on the page for filling in the delivery address. The order of selection is: country→province→city→district→street. Xiao Ming selected "China" in the country's options. At this time, the browser displays all the provinces in China in the address range that can be selected for Xiao Ming to choose. Xiao Ming selected Hunan Province from all provinces in China. At this time, the data to be displayed has been updated, and the display content in the selectable address range has been updated from all provinces in China to all cities in Hunan Province. By monitoring the data required to be displayed on the page for filling in the delivery address, and confirming that the data in the range of the selectable address has been updated, the display content of the page for filling in the delivery address can be updated. Specifically, the address will be selected. The displayed content within the range has been updated from all provinces in China to all cities in Hunan Province.
传统方法中,通过对页面所需显示的所有数据进行监听,实现页面的实时显示。接着例1继续举例(例2),页面所需显示的数据中,除了可选择地址范围内的数据,还包括小明所购买的商品的信息、小明的购物账户名。而在小明填写收货地址的过程中,不仅需要对可选择地址范围内的数据进行监听,还需对小明所购买的商品的信息和小明的购物账户名进行监听。由于所需显示的数据的数量大,监听所需显示的数据所需耗费的硬件资源大,其中,硬件资源包括内存的开销。硬件资源的消耗大易导致浏览器的运行速度慢,甚至导致浏览器卡死、崩溃等情况的发生。In the traditional method, real-time display of the page is realized by monitoring all the data that the page needs to display. Example 1 continues with the example (Example 2). In addition to the data in the address range, the data that needs to be displayed on the page also includes the information of the goods purchased by Xiao Ming and the name of Xiao Ming's shopping account. When Xiao Ming fills in the delivery address, he not only needs to monitor the data in the optional address range, but also needs to monitor the information of the goods purchased by Xiao Ming and the name of Xiao Ming's shopping account. Due to the large amount of data to be displayed, the hardware resources required to monitor the data to be displayed are large, and the hardware resources include the overhead of memory. The large consumption of hardware resources can easily cause the browser to run slowly, and even cause the browser to freeze or crash.
基于此,本公开实施例提供了一种数据处理方法,以降低监听所需显示的数据所耗费的硬件资源。Based on this, the embodiments of the present disclosure provide a data processing method to reduce the hardware resources consumed for monitoring the data that needs to be displayed.
本公开实施例的执行主体为数据处理装置,在一种可行的实施方式中,数据处理装置可以是以下中的一种:计算机、服务器。下面结合本公开实施例中的附图对本公开实施例进行描述。The execution subject of the embodiments of the present disclosure is a data processing device. In a feasible implementation manner, the data processing device may be one of the following: a computer and a server. The embodiments of the present disclosure will be described below in conjunction with the drawings in the embodiments of the present disclosure.
请参阅图1,图1是本公开实施例提供的一种数据处理方法的流程示意图。Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a data processing method provided by an embodiment of the present disclosure.
101、获取第一待显示数据集。101. Obtain a first data set to be displayed.
本公开实施例中,第一待显示数据集为可通过页面进行显示的数据。例如,在例2中,第一待显示数据集包括可选择地址范围内的数据、小明所购买的商品的信息、小明的购物账户名。又例如(例3),小红通过浏览器浏览网页,并通过该网页观看视频。此时,第一待显示数据集包括该视频、该视频的信息(包括该视频的名称)、观看该视频的账户信息(包括账户头像和账户名)。In the embodiment of the present disclosure, 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 within a selectable address range, information about products purchased by Xiao Ming, and Xiao Ming's shopping account name. For another example (Example 3), Xiaohong browses a webpage through a browser and watches videos through the webpage. At this time, the first data set to be displayed includes the video, information about the video (including the name of the video), and information about the account used to watch the video (including the account avatar and account name).
在一种获取第一待显示数据集的实现方式中,数据处理装置接收用户通过输入组件输入的第一待显示数据集。上述输入组件包括:键盘、鼠标、触控屏、触控板和音频输入器等。In an implementation manner of acquiring the first data set to be displayed, the data processing device receives the first data set to be displayed input by the user through the input component. The above-mentioned input components include: a keyboard, a mouse, a touch screen, a touch pad, and an audio input device.
在另一种获取第一待显示数据集的实现方式中,数据处理装置接收第一终端发送的第一待显示数据集。在一种可行的实时方式中,第一终端可以是以下任意一种:手机、计算机、平板电脑、服务器、可穿戴设备。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. In a feasible real-time mode, the first terminal can be any of the following: a mobile phone, a computer, a tablet computer, a server, and a wearable device.
例如,数据处理装置与服务器之间具有通信连接,数据处理装置通过该通信连接向服务器发送数据请求。服务器在接收到该数据请求的情况下,向数据处理装置发送可通过页面进行显示的数据集。数据处理装置将在接收到服务器发送的可通过页面进行显示的数据集的情况下,将该数据集作为第一待显示数据集。For example, there is a communication connection between the data processing device and the server, and the data processing device sends a data request to the server through the communication connection. Upon receiving the data request, the server sends a data set that can be displayed on the page to the data processing device. The data processing device will, in the case of receiving the data set that can be displayed through the page sent by the server, use the data set as the first to-be-displayed data set.
102、从第一待显示数据集中确定待监听数据集。102. Determine a data set to be monitored from the first data set to be displayed.
待监听数据集包含的数据的数量少于第一待显示数据集包含的数据的数量。The quantity of data contained in the data set to be monitored is less than the quantity of data contained in the first data set to be displayed.
为降低监听第一待显示数据集所消耗的硬件资源,需减少所需监听的数据的数量。不同与传统方法对第一待显示数据集中的每一个数据进行监听,本公开实施例只对第一待显示数据集中的部分数据进行监听,以此减少所需监听的数据的数量。In order to reduce the hardware resources consumed by monitoring the first data set to be displayed, the amount of data that needs to be monitored needs to be reduced. Different from the traditional method for monitoring each data in the first to-be-displayed data set, the embodiment of the present disclosure only monitors part of the data in the first to-be-displayed data set, thereby reducing the amount of data that needs to be monitored.
在一种可能实现的方式中,从第一待显示数据集中确定待监听数据集,其中,待监听数据集包含的数据的数量少于第一待显示数据集包含的数据的数量。例如,第一待显示数据集包括数据a、数据b、数据c,从第一待显示数据集中确定的待监听数据集包括数据a和数据b。In a possible implementation manner, the data set to be monitored is determined from the first data set to be displayed, wherein the quantity of data contained in the data set to be monitored is less than the quantity of data contained in the first data set to be displayed. For example, the first data set to be displayed includes data a, data b, and data c, and the data set to be monitored determined from the first data set to be displayed includes data a and data b.
103、监听待监听数据集,得到监听结果。103. Monitor the data set to be monitored, and obtain the monitoring result.
数据处理装置通过对待监听数据集进行监听,可确定待监听数据集是否更新,进而实现页面的实时显示。The data processing device can determine whether the data set to be monitored is updated by monitoring the data set to be monitored, thereby realizing the real-time display of the page.
本公开实施例中,监听结果包括已更新和未更新。监听结果为已更新,表征当前状态下的待监听数据集与下一个状态下的待监听数据集不同,即待监听数据集中所需显示的数据已更新。监听结果为未更新,表征当前状态下的待监听数据集与下一个状态下的待监听数据集相同,即待监听数据集中所需显示的数据未更新。In the embodiment of the present disclosure, the monitoring result includes updated and unupdated. The monitoring result is updated, which indicates that the data set to be monitored in the current state is different from the data set to be monitored in the next state, that is, the data to be displayed in the data set to be monitored has been updated. The monitoring result is not updated, which means 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, that is, the data that needs to be displayed in the data set to be monitored is not updated.
上述当前状态指页面的当前显示状态,上述下一个状态指当前显示状态的下一个显示状态。例如,在页面的当前显示状态下,数据处理装置可通过页面显示的内容包括视频流1和视频流2,其中,视频流1为通过A地的摄像头采集得到的视频流,视频流2为通过B地的摄像头采集得到的视频流。那么在当前状态下,第一待显示数据集包括视频流1和视频流2,待监听数据集包括第一待显示数据集中的部分数据。警方在抓捕犯罪嫌疑人的过程中,依据目击证人提供的信息,将犯罪嫌疑人锁定在B地,并向数据处理装置输入查看B地的摄像头采集得到的视频流的指令(如通过鼠标选择查看B地的摄像头采集得到的视频流)。数据处理装置在接收到该指令的情况下,确定在页面的下一个显示状态下,可通过页面显示的内容包括视频流2,那么在下一个状态下,第一待显示数据集包括视频流2,待监听数据集包括视频流2中的部分数据。The aforementioned current state refers to the current display state of the page, and the aforementioned next state refers to the 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 collected by a camera at A, and video stream 2 is passed The video stream collected by the camera at B. Then, in the current state, the first data set to be displayed includes video stream 1 and video stream 2, and the data set to be monitored includes part of the data in the first data set to be displayed. In the process of arresting the criminal suspect, the police locked the suspect in B place based on the information provided by the witnesses, and input the instruction to view the video stream collected by the camera of B place into the data processing device (such as selecting by mouse View the video stream captured by the camera at B). After receiving the instruction, the data processing device determines that in the next display state of the page, the content that can be displayed on the page includes video stream 2. Then in the next state, the first data set to be displayed includes video stream 2. The data set to be monitored includes part of the data in the video stream 2.
接着例2继续举例(例4),第一待显示数据集包括可选择地址范围内的数据、小明所购买的商品的信息、小明的购物账户名,假设待监听数据集包括可选择地址范围内的数据。当前状态下的待监听数据集包括:中国所有省份,下一个状态下的待监听数据集包括:湖南省所有城市。由于当前状态下的待监听数据集与下一个状态下的待监听数据集不同,待监听数据集的监听结果为已更新。Example 2 continues with the example (Example 4). The first data set to be displayed includes data in the range of selectable addresses, information about the products Xiao Ming purchased, and the name of Xiao Ming’s shopping account. It is assumed that the data set to be monitored includes the range of selectable addresses. The data. The data set to be monitored in the current state includes: all provinces in China, and the data set to be monitored in the next state includes: 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、依据监听结果,显示第一待显示数据集。104. According to the monitoring result, display the first data set to be displayed.
监听结果为未更新,表征待监听数据集中所需显示的内容没有改变,因此,页面在下一个状态下的显示内容与页面在当前状态下的显示内容相同。在一种可行的实施方式 中,在监听结果为未更新的情况下,数据处理装置不需对任何数据进行渲染,即显示当前状态下第一待显示数据集中所需显示的数据。The monitoring result is not updated, indicating that the content to be displayed in the data set to be monitored has not changed. Therefore, the display content of the page in the next state is the same as the display content of the page in the current state. In a feasible implementation manner, when the monitoring result is not updated, the data processing device does not need to render any data, that is, displays the data that needs to be displayed in the first data set to be displayed in the current state.
监听结果为已更新,表征待监听数据集中所需显示的内容已改变,也就是说,页面在当前状态下的显示内容不能作为页面在下一个状态的显示内容。因此,需要对页面的显示内容进行更新。以例4为例,页面在当前状态下的显示内容包括中国所有省份、小明所购买的商品的信息、小明的购物账户名。页面在下一个状态下的显示内容包括湖南省所有城市、小明所购买的商品的信息、小明的购物账户名。数据处理装置不对中国所有省份进行渲染,而对湖南省所有城市进行渲染,即可实现页面在下一个状态下的显示。The monitoring result is updated, indicating that the content to be displayed in the data set to be monitored has 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 content displayed on the page in the current state includes all provinces in China, information about the goods purchased by Xiao Ming, and the name of Xiao Ming's shopping account. The content displayed on the page in the next state includes all cities in Hunan Province, information about the goods Xiao Ming purchased, and Xiao Ming's shopping account name. The data processing device does not render all provinces in China, but renders all cities in Hunan Province to display the page in the next state.
本公开实施例通过对第一待显示数据集中的待监听数据集进行监听,减少所需监听的数据的数量,进而降低监听第一待显示数据集所消耗的硬件资源,从而提高数据处理装置显示第一待显示数据集的速度。In the embodiments of the present disclosure, by monitoring the data set to be monitored in the first data set to be displayed, the amount of data that needs to be monitored is reduced, thereby reducing the hardware resources consumed for monitoring the first data set to be displayed, thereby improving the display of the data processing device. The speed of the first data set to be displayed.
图2示出了本公开实施例提供的数据处理的一种网络架构示意图;如图2所示,该网络架构中包括:获取终端201、网络202和数据处理终端203。为实现支撑一个示例性应用,获取终端201和数据处理终端203通过网络202建立通信连接,获取终端201通过网络202向数据处理终端203上报获取的第一待显示数据集,数据处理终端203响应于接收到的第一待显示数据集,从第一待显示数据集中确定待监听数据集;待监听数据集包含的数据的数量小于第一待显示数据集包含的数据的数量;监听待监听数据集,得到监听结果。最后,数据处理终端203将监听结果上传至网络202,并通过网络202发送给获取终端201。FIG. 2 shows a schematic diagram of a network architecture for data processing provided by an embodiment of the present disclosure; as shown in FIG. 2, the network architecture includes: an acquisition terminal 201, a network 202, and a data processing terminal 203. In order to support an exemplary application, the acquisition terminal 201 and the data processing terminal 203 establish a communication connection through the network 202, the acquisition terminal 201 reports the acquired first data set to be displayed to the data processing terminal 203 through the network 202, and the data processing terminal 203 responds The first data set to be displayed is received, the data set to be monitored is determined from the first data set to be displayed; the amount of data contained in the data set to be monitored is less than the number of data contained in the first data set to be displayed; the data set to be monitored is monitored , Get the monitoring result. Finally, the data processing terminal 203 uploads the monitoring result to the network 202 and sends it to the acquiring terminal 201 via the network 202.
通过步骤102的处理,可达到减少所需监听的数据的数量的效果,但由于第一待显示数据集中的部分数据未被监听,在这部分未被监听的数据已更新的情况下,无法通过页面显示这部分未被监听的数据的更新。接着例4继续举例(例5),假设在当前状态下小明所购买的商品为A和B,小明突然想起来家里已有B,将B从已购买的商品中移除,此时,即在下一个状态下小明所购买的商品为A,即小明所购买的商品的信息已更新。在小明所购买的商品的信息不属于待监听数据集的情况下,数据处理装置无法通过对待监听数据集的监听,确定小明所购买的商品的信息已更新,进而无法在下一个状态的页面中显示小明所购买的商品的信息的更新。Through the processing of step 102, the effect of reducing the amount of data that needs to be monitored can be achieved, but because part of the data in the first to-be-displayed data set has not been monitored, this part of the unmonitored data cannot be passed if it has been updated. The page shows the update of this part of the unobserved data. Example 4 continues with the example (Example 5). Suppose, in the current state, the goods Xiao Ming purchased are A and B. Xiao Ming suddenly remembered that he already had B at home, and removed B from the purchased goods. At this time, he is under In one state, the commodity purchased by Xiao Ming is A, that is, the information of the commodity purchased by Xiao Ming has been updated. In the case that the information of the goods purchased by Xiao Ming does not belong to the data set to be monitored, the data processing device cannot determine that the information of the goods purchased by Xiao Ming has been updated by monitoring the data set to be monitored, and thus cannot be displayed in the next state page Update of the information of the goods purchased by Xiao Ming.
为表述方便,下文将数据处理装置监听到的已更新的数据的数量与第一待显示数据集中已更新的数据的数量的比值称为监听准确度。例如,当前状态下的第一待显示数据集包括数据a、数据b、数据c、数据d,待监听数据集包括数据a、数据b。下一个状态下的第一待显示数据集包括数据e、数据b、数据c、数据f,其中,数据e为数据a更新后得到的数据,数据f为数据d更新后得到的数据。在第一待显示数据集由当前状态更新为下一个状态的过程中,数据处理装置监听到的已更新数据为数据a,第一待显示数据集中已更新的数据包括数据a和数据d,因此,监听准确度为:1/2=50%。For ease of presentation, the ratio of the number of updated data monitored by the data processing device to the number of updated data in the first data set to be displayed is referred to as monitoring accuracy below. 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 includes data e, data b, data c, and data f, where data e is data obtained after data a is updated, and data f is data obtained after 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 device is data a, and the updated data in the first data set to be displayed includes data a and data d, so , The monitoring accuracy is: 1/2=50%.
作为一种可选的实施方式,步骤102具体包括以下步骤:As an optional implementation manner, step 102 specifically includes the following steps:
从第一待显示数据集中选取至少一个动态数据,得到待监听数据集。At least one dynamic data is selected from the first data set to be displayed to obtain the data set to be monitored.
本公开实施例中,动态数据指在页面显示的过程中可随时间变化而改变的数据,例如,在例3中,视频中任意两个播放画面均不同,即视频的播放内容随时间的变化而改变,视频数据为动态数据。在例5中,小明所购买的商品的信息和可选择的地址范围均为动态数据。第一待显示数据集中除了动态数据之外,还包括静态数据,动态数据指在页面显示的过程中不随时间变化而改变的数据,例如,在例3中,视频的名称和观看视频的账户信息均为静态数据。在例5中,小明的购物账户名为静态数据。In the embodiments of the present disclosure, dynamic data refers to data that can change with time during the page display process. For example, in Example 3, any two playback screens in the video are different, that is, the playback content of the video changes over time. However, the video data is dynamic data. In Example 5, the information of the goods purchased by Xiaoming and the address range that can be selected are dynamic data. In addition to dynamic data, the first data set to be displayed also includes static data. Dynamic data refers to data that does not change with time during the page display process. For example, in Example 3, the name of the video and the account information used to watch the video All are static data. In Example 5, Xiao Ming's shopping account is named static data.
显然,在页面显示的过程中,动态数据更新的概率较大,静态数据更新的概率较小。因此,对第一待显示数据集中的动态数据进行监听,可在减少所需监听的数据的数量的同时,提高监听准确度。Obviously, in the process of page display, the probability of dynamic data update is relatively large, and the probability of static data update is relatively small. Therefore, monitoring the dynamic data in the first data set to be displayed can improve the accuracy of monitoring while reducing the amount of data that needs to be monitored.
基于此,本步骤从第一待显示数据集中选取至少一个动态数据,得到待监听数据集。例如,第一待显示数据集包括数据a、数据b、数据c,其中,数据a和数据b为动态数据,数据c为静态数据。数据处理装置可从数据a和数据b中选取至少一个数据,得到待监听数据集。在数据处理装置选取数据a的情况下,得到的待监听数据集包括数据a。在数据处理装置选取数据b的情况下,得到的待监听数据集包括数据b。在数据处理装置选取数据a和数据b的情况下,得到的待监听数据集包括数据a和数据b。Based on this, this step selects at least one dynamic data from the first data set to be displayed to obtain the data set to be monitored. 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 data a and data b to obtain a data set to be monitored. When the data processing device selects data a, the obtained data set to be monitored includes data a. When the data processing device selects data b, the obtained data set to be monitored includes data b. When the data processing device selects data a and data b, the obtained data set to be monitored includes data a and data b.
在得到待监听数据集后,通过监听待监听数据集中的每个数据,可确定当前状态下的待监听数据集与下一个状态下的待监听数据集是否相同,进而确定监听结果为未更新还是已更新。After the data set to be monitored is obtained, by monitoring each data in the data set to be monitored, it can be determined 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, and then whether the monitoring result is not updated or updated.
本公开实施例提供了一种方法,以进一步降低监听待监听数据集所耗费的硬件资源。作为一种可选的实施方式,步骤103具体包括以下步骤:The embodiments of the present disclosure provide a method to further reduce the hardware resources consumed for monitoring the data set to be monitored. As an optional implementation manner, step 103 specifically includes the following steps:
1、通过监听待监听数据集的被选状态,得到监听结果。1. Obtain the monitoring result by monitoring the selected state of the data set to be monitored.
本公开实施例中,待监听数据集的被选状态表征待监听数据集中的数据被选中的状态。在一种可行的实施方式中,被选状态包括全选、空选。In the embodiment of the present disclosure, the selected state of the data set to be monitored represents the selected state of the data in the data set to be monitored. In a feasible implementation, the selected state includes all selected and empty selected.
在待监听数据集的被选状态为全选的情况下,表征待监听数据集中的所有数据均被选中。在待监听数据集的被选状态为半选的情况下,表征待监听数据集中的部分数据被选中。In the case where the selected state of the data set to be monitored is selected, all data in the data set to be monitored are selected. When the selected state of the data set to be monitored is half-selected, part of the data representing the data set to be monitored is selected.
例如,假设待监听数据集包括数据a、数据b。在数据a和数据b均被选中的情况下,待监听数据集的被选状态为全选。For example, suppose the data set to be monitored includes data a and data b. When both data a and data b are selected, the selected state of the data set to be monitored is all selected.
在待监听数据集的被选状态为空选的情况下,表征待监听数据集中的部分数据均未被选中。例如,假设待监听数据集包括数据a、数据b。在数据a和数据b均未被选中的情况下,待监听数据集的被选状态为空选。When the selected state of the data set to be monitored is empty selection, none of the data in the data set to be monitored is selected. For example, suppose the data set to be monitored includes data a and data b. When neither data a nor data b is selected, the selected state of the data set to be monitored is empty selection.
在一种可行的实时方式中,被选状态还包括半选。在数据a被选中或数据b被选中的情况下,待监听数据集的被选状态为半选。In a feasible real-time mode, the selected state also includes half-selected. When data a is selected or data b is selected, the selected state of the data set to be monitored is half-selected.
显然,未被选中的数据不需要通过页面显示,而被选中的数据可能需要通过页面显示。因此,可通过确定待监听数据集中被选中的数据是否更新,确定待监听数据集中的数据是否更新。Obviously, the unselected data does not need to be displayed on the page, and the selected data may need to be displayed on the page. Therefore, it can be determined whether the data in the data set to be monitored is updated by determining whether the selected data in the data set to be monitored is updated.
作为一种可选的实施方式,通过监听待监听数据集的被选状态,可确定当前状态下的待监听数据集与下一个状态下的待监听数据集是否相同。为表述方便,下文将待监听数据集在当前状态下的被选状态称为第一被选状态,将待监听数据集在下一个状态下的被选状态称为第二被选状态。As an optional implementation manner, by monitoring the selected state of the data set to be monitored, it can be determined 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. For convenience of presentation, the selected state of the data set to be monitored in the current state is referred to as the first selected state, and the selected state of the data set to be monitored in the next state is referred to as the second selected state.
在第一被选状态和第二被选状态相同的情况下,当前状态下的待监听数据集中被选中的数据与下一个状态下的待监听数据集中被选中的数据相同,进而可确定监听结果为未更新。In the case 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 Is not updated.
例如,在第一被选状态和第二被选状态均为全选的情况下,当前状态下的待监听数据集中被选中的数据与下一个状态下的待监听数据集中被选中的数据相同,即当前状态下的待监听数据集与下一个状态下的待监听数据集相同。For example, when both the first selected state and the second selected state are all selected, 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 empty selections, 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.
在第一被选状态和第二被选状态不同的情况下,当前状态下的待监听数据集中被选中的数据与下一个状态下的待监听数据集中被选中的数据不同,进而可确定监听结果为已更新。In the case 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 Is updated.
例如,假设第一被选状态为全选,第二被选状态为空选,此时,当前状态下的待监听数据集中被选中的数据与下一个状态下的待监听数据集中被选中的数据不同,即当前状态下的待监听数据集与下一个状态下的待监听数据集不同。For example, suppose the first selected state is all selected and the second selected state is empty selection. At this time, 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 are selected. Different, 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, suppose that the first selected state is empty selection, and the second selected state is selected all. At this time, 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 are selected The data is different, 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.
由于在第一被选状态与第二被选状态均为半选的情况下,当前状态下的待监听数据集中被选中的数据与下一个状态下的待监听数据集中被选中的数据可能相同,也可能不同。为提高监听准确度,作为一种可选的实施方式,在第一被选状态与第二被选状态均为半选的情况下,确定监听结果为已更新。Since the first selected state and the second selected state are both half-selected, the selected data in the data set to be monitored in the current state may be the same as the selected data in the data set to be monitored in the next state. It may also be different. In order to improve the monitoring accuracy, as an optional implementation manner, in the case where the first selected state and the second selected state are both half-selected, it is determined that the monitoring result is updated.
在确定待监听数据集的监听结果后,步骤104具体包括以下两个步骤:After the monitoring result of the data set to be monitored is determined, step 104 specifically includes the following two steps:
2、在监听结果为未更新的情况下,显示当前状态下第一待显示数据集中所需显示的数据。2. When the monitoring result is not updated, display the data that needs to be displayed in the first data set to be displayed in the current state.
监听结果为未更新,表征第一待显示数据集中所需显示的数据未更新,因此,在下一个状态下的页面中,仍然显示当前状态下的页面所显示的内容,即在监听结果为未更新的情况下,显示当前状态下第一待显示数据集中所需显示的数据。The monitoring result is not updated, indicating that the data that needs to be displayed in the first data set to be displayed is not updated. Therefore, in the next state, the content displayed on the page in the current state is still displayed, that is, when the monitoring result is not updated In the case of, display the data that needs to be displayed in the first data set to be displayed in the current state.
3、在监听结果为已更新的情况下,计算第一数据集与第二数据集之间的差异,得到第二待显示数据集。3. When the monitoring result is updated, calculate the difference between the first data set and the second data set to obtain the second data set to be displayed.
本公开实施例中,第一数据集包括当前状态下的待监听数据集,第二数据集包括下一个状态下的待监听数据集。例如(例6),当前状态下的待监听数据集包括数据a、数据b,下一个状态下的待监听数据集包括数据c、数据b,其中,数据c为数据a更新得到的数据,此时,第一数据集包括数据a和数据b,第二数据集包括数据b和数据c。In the embodiment of the present disclosure, the first data set includes the data set to be monitored in the current state, and the second data set includes the data set to be monitored in the 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. Among them, data c is the updated data of data a. At this time, the first data set includes data a and data b, and the second data set includes data b and data c.
监听结果为已更新,表征待监听数据集中的数据已更新。因此,需要确定待监听数据集中数据更新的内容,以确定下一个状态下页面显示的内容。The monitoring result is updated, indicating that the data in the data set to be monitored has been updated. Therefore, it is necessary to determine the content of the data update in the data set to be monitored to determine the content displayed on the page in the next state.
作为一种可选的实施方式,通过计算第一数据集与第二数据集之间的差异,可确定待监听数据集中数据更新的内容,得到第二待显示数据集。As an optional implementation manner, 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 can be obtained.
接着例6继续举例(例7),通过计算第一数据集与第二数据集之间的差异,可确定待监听数据集中数据更新的内容为:数据a更新为数据c,进而可确定页面在下一个状态下所需显示的内容为数据b和数据c。由于当前状态下的页面的显示内容包括数据b,第二待显示数据集包括:数据b和数据c,其中,数据c在页面中的显示位置与数据a在页面中的显示位置相同。Following the example of Example 6 (Example 7), by calculating the difference between the first data set and the second data set, it can be determined that the content of the data update in the data set to be monitored is: data a is updated to data c, and then it can be determined that the page is under The content that needs to be displayed in one state is data b and data c. Since the display content of the page in the current state includes data b, the second to-be-displayed data set includes data b and data c, wherein the display position of data c on the page is the same as the display position of data a on the page.
又例如(例8),第一数据集包括数据a,第二数据集包括数据a、数据b。通过计算第一数据集与第二数据集之间的差异,可确定待监听数据集中数据更新的内容为:增加数据b,进而可确定页面在下一个状态下所需显示的内容为数据a和数据b,即第二待显示数据集包括数据a和数据b。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, it can be determined that the content of the data update in the data set to be monitored is: add data b, and then it can be determined that the content that the page needs to display in the next state is data a and data b, that is, the second data set to be displayed includes data a and data b.
4、显示第二待显示数据集。4. Display the second data set to be displayed.
通过对第二待显示数据集进行渲染,在页面中显示第二待显示数据集,以更新页面的显示内容。By rendering the second data set to be displayed, the second data set to be displayed is displayed on the page to update the display content of the page.
接着例7继续举例,假设在当前状态下的页面中,数据a的显示位置为p 1,数据b的显示位置为p 2。显示第二待显示数据集的过程可包括:停止对数据a的渲染,并对数据c进行渲染得到下一个状态下的页面,使得在下一个状态下的页面中,p 1处显示的内容为数据c,p 2处显示的内容为数据b。 Example 7 continues the example, assuming that in the current state of the page, the display position of data a is p 1 , and the display position of data b is p 2 . The process of displaying the second data set to be displayed may include: stopping the rendering of data a, and rendering data c to obtain the page in the next state, so that in the page in the next state, the content displayed at p 1 is data The content displayed at c, p 2 is data b.
本公开实施例中,通过对待监听数据集的被选状态进行监听,确定监听结果,可减小监听待监听数据集所需的监听量,进而可降低监听待监听数据集所耗费的硬件资源。In the embodiments of the present disclosure, by monitoring the selected state of the data set to be monitored and determining the monitoring result, the amount of monitoring required to monitor the data set to be monitored can be reduced, and the hardware resources consumed for monitoring the data set to be monitored can be reduced.
由于在监听结果为已更新的情况下,第一待监听数据集中可能存在未更新数据。若在计算第一数据集与第二数据集之间的差异的过程中,计算未更新数据的变化,将导致硬件资源的浪费。Since the monitoring result is updated, there may be unupdated data in the first data set to be monitored. If in the process of calculating the difference between the first data set and the second data set, calculating the change of the unupdated data will lead to a waste of hardware resources.
例如(例9),假设第一数据集包括数据a、数据b、数据c,其中,数据a、数据b和数据c均为被选中的状态,此时,第一被选状态为全选。第二数据集包括数据a、数据d、数据c,其中,数据d为数据b更新得到的数据,数据a和数据d均为被选中的状态,此时,第二被选状态为半选。由于当前状态下数据a的被选状态和下一个状态下数据a的被选状态相同(即数据a未更新),若在计算第一数据集和第二数据集之间的差异的过程中,计算当前状态下的数据a和下一个状态下的数据a之间的差异,将浪费硬件资源。For example (Example 9), suppose the first data set includes data a, data b, and data c, where data a, data b, and data c are all selected states. At this time, the first selected state is all selected. The second data set includes data a, data d, and data c, where data d is data obtained by updating data b, and both data a and data d are in a selected state. At this time, the second selected state is half-selected. Since the selected state of data a in the current state is the same as the selected state of data a in the next state (that is, data a has not been updated), if in the process of calculating the difference between the first data set and the second data set, Calculating the difference between data a in the current state and data a in the next state will waste hardware resources.
基于此,本公开实施例提供了一种方法,以减少计算第一数据集和第二数据集之间的差异所耗费的硬件资源。作为一种可选的实施方式,步骤3具体包括以下步骤:Based on this, the embodiments of the present disclosure provide a method to reduce the 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、在第三被选状态和第四被选状态均为空选的情况下,计算第三数据集与第四数据集之间的差异,得到第二待显示数据集。5. In the case that the third selected state and the fourth selected state are both empty selections, calculate the difference between the third data set and the fourth data set to obtain the second data set to be displayed.
在一种可行的实施方式中,第一待显示数据集以树形数据结构存储于数据处理装置。将待监听数据集的节点称为第二节点,第二节点的子节点包括第一节点。上述第三被选状态为第一节点在当前状态下的被选状态,上述第四被选状态为第一节点在下一个状态下的被选状态。In a feasible implementation manner, the first data set to be displayed is stored in the data processing device in a tree data structure. The node of the data set to be monitored is called the second node, and the child nodes of the second node include the first node. The third selected state is the selected state of the first node in the current state, and the fourth selected state is the selected state of the first node in the next state.
将第一数据集中除第一节点中的数据之外的数据称为第三数据集,将第二数据集中除第一节点中的数据之外的数据称为第四数据集。例如,当前状态下的第二节点中的数据包括数据a、数据b、数据c、数据d,当前状态下的第一节点中的数据包括数据a和数据b,即第一数据集包括数据a、数据b、数据c、数据d。第一数据集中除第一节点中的数据之外的数据为数据c和数据d,即第三数据集包括数据c和数据d。下一个状态下的第二节点中的数据包括数据e、数据b、数据c、数据f,其中,数据e为数据a更新后的数据,数据f为数据d更新后的数据,下一个状态下的第一节点中的数据包括数据e和数据b,即第二数据集包括数据e、数据b、数据c、数据f。第二数据集中除第一节点中的数据之外的数据为数据c和数据f,即第四数据集包括数据c和数据f。The data in the first data set except the data in the first node is called the third data set, and the data in the second data set except the data in the first node is called the 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, that is, the first data set includes data a , Data b, data c, data d. The data in the first data set except the data in the first node are data c and data d, that is, the third data set includes 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. Among them, data e is the updated data of data a, and data f is the updated data of data d. In the next state The data in the first node of 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 except the data in the first node are data c and data f, that is, the fourth data set includes data c and data f.
第三被选状态和第四被选状态均为空选,表征当前状态下的第一节点中的数据和下一个状态下的第一节点中的数据均未被选中。由于未被选中的数据不需要进行显示,无需计算第一节点中的数据的变化。因此,在第三被选状态和第四被选状态均为空选的情况下,通过计算第三数据集与第四数据集之间的差异,可得到第二待显示数据集。The third selected state and the fourth selected state are both empty selections, which means that the data in the first node in the current state and the data in the first node in the next state are not selected. Since the unselected data does not need to be displayed, there is no need to calculate the change of the data in the first node. Therefore, when the third selected state and the fourth selected state are both empty selections, the second data set to be displayed can be obtained by calculating the difference between the third data set and the fourth data set.
6、在第三被选状态和第四被选状态均为全选的情况下,计算第三数据集与第四数据集之间的差异,得到第二待显示数据集。6. In the case that the third selected state and the fourth selected state are all selected, calculate the difference between the third data set and the fourth data set to obtain the second data set to be displayed.
第三被选状态和第四被选状态均为全选,表征当前状态下的第一节点中的数据和下一个状态下的第一节点中的数据均全部被选中。由于在当前状态下,已在页面中显示第一节点中的所有数据,而下一个状态下第一节点中所需显示的数据仍然是第一节点中的所有数据,无需计算第一节点中的数据的变化。因此,在第三被选状态和第四被选状态均为全选的情况下,通过计算第三数据集与第四数据集之间的差异,可得到第二待显示数据集。Both the third selected state and the fourth selected state are all selected, which means that the data in the first node in the current state and the data in the first node in the next state are all selected. Since in the current state, all the data in the first node has been displayed on the page, and the data that needs to be displayed in the first node in the next state is still all the data in the first node, there is no need to calculate the data in the first node. Changes in data. Therefore, in the case where both the third selected state and the fourth selected state are all selected, the second data set to be displayed can be obtained by calculating the difference between the third data set and the fourth data set.
基于步骤5和步骤6,可减少计算第一数据集和第二数据集之间的差异所需的计算量,进而减少计算第一数据集和第二数据集之间的差异所耗费的硬件资源。Based on steps 5 and 6, the amount of calculation required to calculate the difference between the first data set and the second data set can be reduced, thereby reducing the hardware resources consumed for calculating the difference between the first data set and the second data set .
接着例9继续举例(例10),在第一节点包括数据a的情况下,第三被选状态和第四被选状态均为全选。第三数据集包括数据b、数据c,第四数据集包括数据c、数据d。由于第三被选状态和第四被选状态均为全选,在计算第一数据集和第二数据集之间的差异的过程中,只需计算第三数据集和第四数据集之间的差异,而不用耗费硬件资源用以计算当前状态下的数据a和下一个状态下的数据a之间的差异。Following the example of Example 9 (Example 10), when the first node includes data a, the third selected state and the fourth selected state are all selected. The third data set includes data b and data c, and the fourth data set includes data c and data d. Since the third selected state and the fourth selected state are all selected, in the process of calculating the difference between the first data set and the second data set, you only need to calculate the difference between the third data set and the fourth data set Without consuming hardware resources to calculate the difference between data a in the current state and data a in the next state.
在例10中,数据处理装置在确定第二节点中的数据已更新(即监听结果为已更新)的情况下,以向下递归的方式确定第二节点的子节点中是否存在未更新节点。未更新节点为当前状态下的被选状态与下一个状态下的被选状态相同,且当前状态下的被选状态非半选的节点。在第二节点的子节点中存在未更新节点的情况下,在计算当前状态下的第二节点中的数据与下一个状态下的第二节点中的数据之间的差异的过程中,可不计算当前状态下的未更新节点中的数据与下一个状态下的未更新节点中的数据之间的差异。In Example 10, when it is determined that the data in the second node has been updated (that is, the monitoring result is updated), the data processing device determines whether there is an unupdated node among the child nodes of the second node in a downward recursive manner. The unupdated node is a node whose selected state in the current state is the same as the selected state in the next state, and the selected state in the current state is not a half-selected node. In the case that there are unupdated nodes in the child nodes of the second 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 not necessary to calculate The difference between the data in the unupdated node in the current state and the data in the unupdated node in the next state.
基于步骤1的思路和步骤2的思路,不仅可在向下递归的过程中减少计算第一数据集和第二数据集之间的差异所耗费的硬件资源,还可在向上递归的过程中减少计算第一数据集和第二数据集之间的差异所耗费的硬件资源。Based on the idea of step 1 and the idea of step 2, not only can the hardware resources consumed in calculating the difference between the first data set and the second data set be reduced in the downward recursion process, but also in the upward recursion process The hardware resources consumed to calculate the difference between the first data set and the second data set.
例如,假设第二节点的子节点包括第一节点和第三节点,第一节点的子节点包括第四节点和第五节点。将第四节点在当前状态下的被选状态称为第五被选状态,将第四节点在下一个状态下的被选状态称为第六被选状态,将第五节点在当前状态下的被选状态称为第七被选状态,将第五节点在下一个状态下的被选状态称为第八被选状态,将第三节点在当前状态下的被选状态称为第九被选状态,将第三节点在下一个状态下的被选状态称为第十被选状态。For example, suppose that the child nodes of the second node include the first node and the third node, and the child nodes of the first node include the fourth node and the fifth node. The selected state of the fourth node in the current state is called the fifth selected state, the selected state of the fourth node in the next state is called the sixth selected state, and the selected state of the fifth node in the current state The selected state is called the seventh selected state, the selected state of the fifth node in the next state is called the eighth selected state, and the selected state of the third node in the current state is called the ninth selected state. The selected state of the third node in the next state is called the tenth selected state.
在数据处理装置监听到第四节点的被选状态由半选更新为空选(即第五被选状态为半选、第六被选状态为空选)、第五节点和第三节点均为未更新节点的情况下,由于第五节点为未更新节点,在计算当前状态下的第一节点中的数据与下一个状态下的第一节点中的数据之间的差异的过程中,只需计算当前状态下的第四节点中的数据与下一个状态下的第四节点中的数据之间的差异。The data processing device monitors that the selected state of the fourth node is updated from half-selected to empty-selected (that is, the fifth-selected state is half-selected, and the sixth-selected state is empty-selected), the fifth node and the third node are both If the node is not updated, since the fifth node is an unupdated 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 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.
此外,由于作为第一节点的兄弟节点,第三节点也为未更新节点,在计算当前状态下的第二节点中的数据与下一个状态下的第二节点中的数据之间的差异的过程中,只需计算当前状态下的第一节点中的数据与下一个状态下的第一节点中的数据之间的差异。In addition, as the sibling node of the first node, the third node is also an unupdated node, 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 , Just 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.
也就是说,在第三节点、第五节点均为未更新节点,且第四节点为更新节点(即第五被选状态与第六被选状态不同)的情况下,在计算当前状态下的第二节点中的数据与下一个状态下的第二节点中的数据之间的差异的过程中,数据处理装置只需计算当前状态下的第四节点中的数据与下一个状态下的第四节点中的数据之间的差异。在计算完当前状态下的第四节点中的数据与下一个状态下的第四节点中的数据之间的差异后,数据处理装置无需进行向上递归处理,从而可减少数据处理量。In other words, when the third node and the fifth node are both unupdated nodes, and the fourth node is an updated node (that is, the fifth selected state is different from the sixth selected state), the calculation of the current state In the process of the difference between the data in the second node and the data in the second node in the next state, the data processing device only needs to calculate the difference between the data in the fourth node in the current state and the fourth node in the next state. The difference between the data in the node. After calculating the difference between the data in the fourth node in the current state and the data in the fourth node in the next state, the data processing device does not need to perform upward recursive processing, thereby reducing the amount of data processing.
由于页面的显示面积有限,在所需显示的数据的数量大的情况下,可将部分所需显示的数据隐藏(下文将隐藏的所需显示的数据称为隐藏数据)。在接收到显示隐藏数据的指令情况下,显示隐藏数据。在未接到显示隐藏数据的指令的情况下,不显示隐藏数据。Due to the limited display area of the page, when the amount of data that needs to be displayed is large, part of the data that needs to be displayed can be hidden (the hidden data that needs to be displayed is hereinafter referred to as hidden data). In the case of receiving the command to display the hidden data, the hidden data is displayed. If the command 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, it is not necessary to calculate the hidden data in the current state and the hidden data in the next state without receiving an instruction to display hidden data The difference between the data.
作为一种可选的实施方式,计算第三数据集与第四数据集之间的差异,得到第二待显示数据集,具体包括以下步骤:As an optional implementation manner, calculating the difference between the third data set and the fourth data set to obtain the second data set to be displayed specifically includes the following steps:
7、获取第三节点的显示状态。7. Get the display status of the third node.
本公开实施例中,第三节点为第一节点的兄弟节点,即第三节点中的数据属于待监听数据集,且第一节点中的数据与第三节点中的数据之间不存在交集。In the embodiment of the present disclosure, 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 above-mentioned display state includes display and folding. When the display status of the node is displayed, the data that needs to be displayed in the node is displayed on the page. When the display state of the node is collapsed, the data that needs to be displayed in the node is not displayed. At this time, the data that needs to be displayed in the node is hidden data.
8、在显示状态为折叠的情况下,计算第五数据集与第六数据集之间的差异,得到第二待显示数据集。8. When the display state is folded, calculate the difference between the fifth data set and the sixth data set to obtain the second data set to be displayed.
本公开实施例中,第五数据集包括第三数据集中除第三节点中的数据之外的数据,第六数据集包括第四数据集中除第三节点中的数据之外的数据。例如,第三数据集包括数据a、数据b、数据c、数据d,当前状态下的第三节点中的数据包括数据a和数据b。第五数据集中除第三节点中的数据之外的数据为数据c和数据d,即第五数据集包括数据c和数据d。第四数据集包括数据e、数据b、数据c、数据f,其中,数据e为数据a更新后的数据,数据f为数据d更新后的数据。下一个状态下的第三节点中的数据包括数据e和数据b,第四数据集中除第三节点中的数据之外的数据为数据c和数据f,即第六数据集包括数据c和数据f。In the embodiment of the present disclosure, the fifth data set includes data in the third data set except data in the third node, and the sixth data set includes data in the fourth data set except 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 except the data in the third node are data c and data d, that is, the fifth data set includes data c and data d. The fourth data set includes data e, data b, data c, and data f, where data e is data after data a is updated, and data f is data after 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 except the data in the third node are 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 folded, which means that the data in the third node does not need to be displayed. Therefore, when the display state of the third node is folded, by calculating the difference between the fifth data set and the sixth data set, The difference between the third data set and the fourth data set can be calculated to obtain the second data set to be displayed. In this way, the amount of calculation required to calculate the difference between the third data set and the fourth data set can be reduced.
在一种可行的实施方式中,数据处理装置在接收到显示状态显示第三节点的指令的情况下,计算当前状态下的第三节点中的数据与下一个状态下的第三节点中的数据之间的差异,得到第二待显示数据集。In a feasible implementation manner, the data processing device calculates the data in the third node in the current state and the data in the third node in the next state in the case of receiving an instruction to display the third node in the display state The difference between the two to get the second data set to be displayed.
接着例1继续举例,在小明从中国所有省份中选择湖南省的情况下,湖南省所有城市均被选中,每个城市所有区也均被选中。假设长沙市包括芙蓉区、岳麓区、天心区、开福区、雨花区、望城区,在小明从中国所有省份中选择湖南省的情况下,在下一个状态下,页面只需显示湖南省所有城市,无需显示长沙市所有区。此时,长沙市所有区的数据为隐藏数据。在小明通过从湖南省所有城市中选中长沙市,向数据处理装置输入显示隐藏数据的指令的情况下,数据处理装置计算当前状态下的长沙市的数据与下一个状态下长沙市的数据之间的差异,得到第二待显示数据集。Following the example in Example 1, when Xiao Ming chooses Hunan Province from all provinces in China, all cities in Hunan Province are selected, and all districts in each city are also selected. Suppose that Changsha City includes Furong District, Yuelu District, Tianxin District, Kaifu District, Yuhua District, and Wangcheng District. If Xiao Ming selects Hunan Province from all provinces in China, in the next state, the page only needs to display all of Hunan Province. City, it is not necessary to display all districts of Changsha City. At this time, the data in all districts of Changsha City are hidden data. When Xiao Ming selects Changsha from all cities in Hunan Province and inputs an instruction to display hidden data to the data processing device, the data processing device calculates the difference between the data of Changsha City in the current state and the data of Changsha City in the next state , Get the second data set to be displayed.
基于本公开提供的技术方案,本公开实施例还提供了一些可能的应用场景。Based on the technical solutions provided by the present disclosure, the embodiments of the present disclosure also provide some possible application scenarios.
场景1:在安防领域,如何有效的通过视频流确定人物的行踪或车辆的行踪,具有重要意义。随着计算机视觉技术的发展和公共场所内摄像头数量的快速增长,使用计算机视觉技术对摄像头采集到的视频进行处理,可确定包含人物的图像和/或包含车辆的图像,进而可依据包含人物的图像和/或包含车辆的图像,确定人物的轨迹和/或车辆的轨迹。Scenario 1: In the security field, how to effectively determine the whereabouts of people or vehicles through video streams is of great significance. With the development of computer vision technology and the rapid growth of the number of cameras in public places, the use of computer vision technology to process the video captured by the camera can determine the image containing the person and/or the image containing the vehicle, and then the image containing the person can be determined according to the The image and/or the image containing the vehicle determines the trajectory of the person and/or the trajectory of the vehicle.
在该场景下,第一待显示数据集包括第一视频流。例如(例11),数据处理装置(如服务器)获取的至少一个视频流包括通过深圳的摄像头采集的视频流和通过广州的摄像头采集的视频流。警方依据犯罪嫌疑人的信息,将犯罪嫌疑人锁定在深圳,并通过向数据处理装置输入查看通过深圳的摄像头采集的视频流的指令。数据处理装置在接收到该指令的情况下,选取通过深圳的摄像头采集的视频流作为第一视频流。In this scenario, the first data set to be displayed includes the first video stream. For example (Example 11), the at least one video stream acquired by a data processing device (such as a server) includes a video stream collected by a camera in Shenzhen and a video stream collected by a camera in Guangzhou. The police locked the suspect in Shenzhen based on the suspect's information, and input instructions to the data processing device to view the video stream captured by the camera in Shenzhen. Upon receiving the instruction, the data processing device selects the video stream collected by the camera in Shenzhen as the first video stream.
作为一种可选的实施方式,步骤101包括以下步骤:As an optional implementation manner, step 101 includes the following steps:
9、获取至少一个第二视频流。9. Obtain at least one second video stream.
在一种获取至少一个第二视频流的实现方式中,数据处理装置接收第二终端发送的至少一个第二视频流。在一种可行的实施方式中,第二终端可以是以下任意一种:手机、计算机、平板电脑、服务器、可穿戴设备。In an implementation manner of acquiring at least one second video stream, the data processing apparatus receives at least one second video stream sent by the second terminal. In a feasible implementation manner, the second terminal may be any one of the following: a mobile phone, a computer, a tablet computer, a server, and a wearable device.
在另一种获取至少一个第二视频流的实现方式中,数据处理装置与至少一个监控摄像头之间具有通信连接。数据处理装置通过该通信连接,获取至少一个监控摄像头采集到的至少一个第二视频流。接着例11继续举例(例12),至少一个第二视频流包括通过深圳的摄像头采集的视频流和通过广州的摄像头采集的视频流。In another implementation manner for acquiring at least one second video stream, there is a communication connection between the data processing device and the at least one surveillance camera. The data processing device obtains at least one second video stream collected by at least one surveillance camera through the communication connection. Following the example of Example 11 (Example 12), at least one second video stream includes a video stream collected by a camera in Shenzhen and a video stream collected by a camera in Guangzhou.
10、在接收到从至少一个第二视频流中选取至少一个视频流的指令的情况下,从至少一个第二视频流中选取第一视频流。10. In the case of receiving an instruction to select at least one video stream from at least one second video stream, select the first video stream from at least one second video stream.
本公开实施例中,从上述至少一个第二视频流中选取至少一个视频流的指令,可以是用户可以通过输入组件,将从上述至少一个第二视频流中选取至少一个视频流的指令 输入至数据处理装置。上述输入组件包括:键盘、鼠标、触控屏、触控板和音频输入器等。In the embodiment of the present disclosure, the instruction to select at least one video stream from the at least one second video stream may be that the user can input the instruction to select at least one video stream from the at least one second video stream to the input component through the input component Data processing device. The above-mentioned input components include: a keyboard, a mouse, a touch screen, a touch pad, and an audio input device.
数据处理装置在接收到从上述至少一个第二视频流中选取至少一个视频流的指令的情况下,从上述至少一个第二视频流中选取第一视频流。接着例12继续举例,从上述至少一个第二视频流中选取至少一个视频流的指令,即为从通过深圳的摄像头采集的视频流和通过广州的摄像头采集的视频流中选取通过深圳的摄像头采集的视频流。数据处理装置在接收到该指令的情况下,从通过深圳的摄像头采集的视频流和通过广州的摄像头采集的视频流中,选取通过深圳的摄像头采集的视频流作为第一视频流。When receiving an instruction to select at least one video stream from the at least one second video stream, the data processing device selects the first video stream from the at least one second video stream. Then Example 12 continues the example. The instruction to select at least one video stream from the above at least one second video stream is to select the camera in Shenzhen from the video stream collected by the camera in Shenzhen and the video stream collected by the camera in Guangzhou. Video stream. Upon receiving the instruction, the data processing device selects the video stream collected by the camera in Shenzhen from the video stream collected by the camera in Shenzhen and the video stream collected by the camera in Guangzhou as the first video stream.
又例如,至少一个第二视频流包括视频流1、视频流2、视频流3。从上述至少一个第二视频流中选取至少一个视频流的指令,为从视频流1、视频流2、视频流3中选取视频流1和视频流2。数据处理装置在接收到该指令的情况下,从视频流1、视频流2、视频流3中,选取视频流1和视频流2。此时,第一视频流可以是视频流1,第一视频流也可以是视频流2。For another example, the at least one second video stream includes video stream 1, video stream 2, and video stream 3. The instruction to select at least one video stream from the above 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. Upon receiving the instruction, the data processing device 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 relatively large, and the data in the first video stream is constantly updated, displaying and monitoring all the data in the first video stream will bring a large amount of data processing to the data processing device. Therefore, the first video stream can be displayed based on the technical solution provided by the present disclosure, reducing the amount of data processing.
在一种可行的实施方式中,在数据处理装置显示第一视频流的情况下,用户可从第一视频流中确定包含人物的图像和/或包含车辆的图像。例如,向数据处理装置输入人物的属性,以使数据处理装置使用该属性从第一视频流中检索包含人物属性与该属性匹配的人物的图像。In a feasible implementation manner, in the case where the data processing device displays the first video stream, the user can determine the image containing the person and/or the image containing the vehicle from the first video stream. For example, the attribute of the person is input to the data processing device, so that the data processing device uses the attribute to retrieve an image containing the person whose attribute matches the attribute from the first video stream.
在从第一视频流中确定包含人物的图像和/或包含车辆的图像后,可依据图像(此处指包含人物的图像和/或包含车辆的图像)的采集时间和采集位置,确定人物的轨迹和/或车辆的轨迹。After determining the image containing the person and/or the image containing the vehicle from the first video stream, the person’s image can be determined according to the collection time and location of the image (here, the image containing the person and/or the image containing the vehicle). The trajectory and/or the trajectory of the vehicle.
场景2:数据处理装置基于本公开提供的技术方案对人物的轨迹和/或车辆的轨迹进行展示,可减少数据处理量、提高数据处理速度。Scenario 2: The data processing device displays the trajectory of the character and/or the trajectory of the vehicle based on the technical solution provided by the present disclosure, which can reduce the amount of data processing and increase the data processing speed.
例如(例13),A地发生抢劫案,据现场目击证人提供的信息,犯罪嫌疑人身着黑色上衣、黑色裤子、白色鞋子,且该嫌疑人戴口罩,留一头黑色短发。警方在获知犯罪嫌疑人的属性(即黑色上衣、黑色裤子、白色鞋子、戴口罩、黑色短发)后,可使用犯罪嫌疑人的属性检索A地的图像库(该图像库中的图像通过A地的摄像头采集得到),得到具有与犯罪嫌疑人的属性匹配的人物属性的图像,作为目标图像。在警方确定目标图像中的人物为犯罪嫌疑人的情况下,可依据目标图像的采集时间和目标图像的采集地点,确定犯罪嫌疑人的轨迹数据。For example (Example 13), a robbery occurred in A. According to the information provided by witnesses at the scene, the suspect was wearing a black shirt, black pants, and white shoes, and the suspect was wearing a mask with short black hair. After the police learns the suspect’s attributes (i.e. black shirt, black pants, white shoes, wearing a mask, black short hair), they can use the suspect’s attributes to retrieve the image database of area A (the image in the image library passes through area A). The camera is collected by), and an image with a character attribute that matches the attribute of the suspect is obtained as the target image. In the case that the police determine that the person in the target image is a criminal suspect, the trajectory data of the criminal suspect can be determined according to the collection time of the target image and the collection location of the target image.
假设目标图像包括:图像a、图像b、图像c。图像a的采集时间为2020年5月19日16:45,图像b的采集时间为2020年5月19日16:55,图像c的采集时间为2020年5月19日18:45。图像a的采集地点为东经114°、北纬22°3′,图像b的采集地点为东经114°10′、北纬22°5′,图像c的采集地点为东经114°10′、北纬22°6′。依据目标图像的采集时间和采集地点,可确定犯罪嫌疑人的行踪:在2020年5月19日16:45出现在东经114°、北纬22°3′,在2020年5月19日16:55出现在114°10′、北纬22°5′,在2020年5月19日18:45出现在114°10′、北纬22°6′。犯罪嫌疑人的轨迹数据包括:犯罪嫌疑人的行踪、目标图像。Assume that the target image includes: image a, image b, and image c. The acquisition time of image a is 16:45 on May 19, 2020, the acquisition time of image b is 16:55 on May 19, 2020, and the acquisition time of image c is 18:45 on May 19, 2020. The collection location of image a is 114° east longitude and 22°3' north latitude, the collection location of image b is 114°10' east longitude and 22°5' north latitude, and the collection location of image c is 114°10' east longitude and 22°6 north latitude. '. According to the collection time and location of the target image, the whereabouts of the suspect can be determined: at 16:45 on May 19, 2020, it appeared at 114° east longitude and 22° 3′ north latitude, and at 16:55 on May 19, 2020 It appeared at 114°10', 22°5' north latitude, and appeared at 114°10', 22°6' north latitude at 18:45 on May 19, 2020. The trajectory data of the criminal suspect includes: the whereabouts and target image of the criminal suspect.
在一种可行的实施方式中,用户可查看犯罪嫌疑人的轨迹数据中的至少一个数据。例如,在例11中,警方可向数据处理装置输入查看图像a的指令。数据处理装置在接收到查看图像a的指令的情况下,显示图像a、图像a的采集时间、图像a的采集地点。此时,第一待显示数据集包括犯罪嫌疑人的轨迹数据,第二待显示数据集包括:图像a、图像a的采集时间、图像a的采集地点。In a feasible implementation manner, the user may view at least one piece of data in the trajectory data of the criminal suspect. For example, in Example 11, the police can input an instruction to view image a to the data processing device. When receiving an instruction to view image a, the data processing device displays image a, the collection time of image a, and the collection location of image a. At this time, the first to-be-displayed data set includes the trajectory data of the criminal suspect, and the second to-be-displayed data set includes: image a, the collection time of image a, and the collection location of image a.
又例如,在例13中,警方可向数据处理装置输入查看图像a和图像b的指令。数据处理装置在接收到查看图像a和图像b的指令的情况下,显示图像a、图像a的采集时间、图像a的采集地点、图像b、图像b的采集时间、图像b的采集地点。此时,第一待显示数据集包括犯罪嫌疑人的轨迹数据。待监听数据集包括犯罪嫌疑人的轨迹数据中的动态数据。第二待显示数据集包括:图像a、图像a的采集时间、图像a的采集地点、图像b、图像b的采集时间、图像b的采集地点。For another example, in Example 13, the police may input instructions to view image a and image b to the data processing device. The data processing device displays the image a, the collection time of the image a, the collection location of the image a, the collection time of the image b, the image b, and the collection location of the image b upon receiving an instruction to view the image a and the image b. At this time, the first data set to be displayed includes the trajectory data of the criminal suspect. The data set to be monitored includes dynamic data in the trajectory data of the criminal suspect. The second data set to be displayed includes: image a, the collection time of image a, the collection location of image a, the collection time of image b, image b, and the collection location of image b.
在一种可行的实施方式中,为使用户对犯罪嫌疑人的轨迹数据有一个更直观的印象,可在地图上显示犯罪嫌疑人的轨迹数据。此时,第一待显示数据集包括:地图数据、犯罪嫌疑人的轨迹数据。In a feasible implementation manner, in order for the user to have a more intuitive impression of the trajectory data of the criminal suspect, the trajectory data of the criminal suspect may be displayed on the map. At this time, the first data set to be displayed includes: map data and trajectory data of the criminal suspect.
例如,在例13中,地图数据可以是A地的地图数据。警方希望了解犯罪嫌疑人在A地的B区域的轨迹,向数据处理装置输入查看犯罪嫌疑人在B区域内的轨迹的指令。假设图像a的采集地点和图像b的采集地点位于B区域内。数据处理装置在接收到查看犯罪嫌疑人在B区域内的轨迹的指令的情况下,显示B区域的地图数据、图像a、图像a的采集时间、图像a的采集地点、图像b、图像b的采集时间、图像b的采集地点。此时,第一待显示数据集包括:犯罪嫌疑人的轨迹数据、A地的地图数据。待监听数据集包括:犯罪嫌疑人的轨迹数据中的动态数据、A地的地图数据中的动态数据。第二待显示数据集包括:B区域的地图数据、图像a、图像a的采集时间、图像a的采集地点、图像b、图像b的采集时间、图像b的采集地点。For example, in Example 13, the map data may be the map data of A. The police hope to know the trajectory of the criminal suspect in area B of area A, and input instructions to the data processing device to view the trajectory of the criminal suspect in area B. Assume that the collection location of image a and the collection location of image b are located in area B. When the data processing device receives an instruction to view the suspect’s trajectory in area B, it displays the map data of area B, the collection time of image a, the collection time of image a, the collection location of image a, the location of image b, and image b. Collection time and location of image b. At this time, the first data set to be displayed includes: the trajectory data of the criminal suspect and the map data of the A place. The data set to be monitored includes: the dynamic data in the trajectory data of the criminal suspect, and the dynamic data in the map data of the A place. The second data set to be displayed includes: map data of area B, image a, the collection time of image a, the collection location of image a, the collection time of image b, image b, and the collection location of image b.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above-mentioned methods of the specific implementation, the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possibility. The inner logic is determined.
上述详细阐述了本公开实施例的方法,下面提供了本公开实施例的装置。The foregoing describes the method of the embodiment of the present disclosure in detail, and the device of the embodiment of the present disclosure is provided below.
请参阅图3,图3为本公开实施例提供的一种数据处理装置3的结构示意图,该装置3包括:获取单元31、确定单元32、监听单元33以及显示单元34,其中:Please refer to FIG. 3, which is a schematic structural diagram of a data processing device 3 provided by an embodiment of the present disclosure. The device 3 includes: an acquisition unit 31, a determination unit 32, a monitoring unit 33, and a display unit 34, wherein:
获取单元31,用于获取第一待显示数据集;The acquiring unit 31 is configured to acquire the first to-be-displayed data set;
确定单元32,用于从所述第一待显示数据集中确定待监听数据集;所述待监听数据集包含的数据的数量少于所述第一待显示数据集包含的数据的数量;The determining unit 32 is configured to determine a data set to be monitored from the first data set to be displayed; the quantity of data contained in the data set to be monitored is less than the quantity of data contained in the first data set to be displayed;
监听单元33,用于监听所述待监听数据集,得到监听结果;The monitoring unit 33 is configured to monitor the data set to be monitored to obtain a monitoring result;
显示单元34,用于依据所述监听结果,显示所述第一待显示数据集。The display unit 34 is configured to display the first data set to be displayed according to the monitoring result.
结合本公开任一实施方式,所述确定单元32,用于:With reference to any embodiment of the present disclosure, the determining unit 32 is configured to:
从所述第一待显示数据集中选取至少一个动态数据,得到所述待监听数据集。At least one dynamic data is selected from the first data set to be displayed to obtain the data set to be monitored.
结合本公开任一实施方式,所述监听单元33,用于:With reference to any embodiment of the present disclosure, the monitoring unit 33 is configured to:
通过监听所述待监听数据集的被选状态,得到所述监听结果。The monitoring result is obtained by monitoring the selected state of the data set to be monitored.
结合本公开任一实施方式,所述显示单元34,用于:With reference to any embodiment of the present disclosure, the display unit 34 is configured to:
在所述监听结果为未更新的情况下,显示当前状态下所述第一待显示数据集中所需显示的数据;If the monitoring result is not updated, display the data that needs to be displayed in the first data set to be displayed in the current state;
在所述监听结果为所述已更新的情况下,计算第一数据集与第二数据集之间的差异,得到第二待显示数据集;所述第一数据集包括所述当前状态下的所述待监听数据集;所述第二数据集包括下一个状态下的所述待监听数据集;In the case where the monitoring result is the updated, the difference between the first data set and the second data set is calculated to obtain the second data set to be displayed; the first data set includes the current state The data set to be monitored; the second data set includes the data set to be monitored in the next state;
显示所述第二待显示数据集。The second data set to be displayed is displayed.
结合本公开任一实施方式,所述被选状态包括全选和空选;With reference to any embodiment of the present disclosure, the selected state includes full selection and empty selection;
所述监听单元33,用于:The monitoring unit 33 is configured to:
在第一被选状态和第二被选状态均为所述全选的情况下,确定所述监听结果为未更新;所述第一被选状态为所述待监听数据集在所述当前状态下的所述被选状态;所述第二被选状态为所述待监听数据集在所述下一个状态下的所述被选状态;或,In the case where both the first selected state and the second selected state are the all selected, it is determined that the monitoring result is not updated; the first selected state is that the data set to be monitored is in the current state The selected state in the next state; the second selected state is the selected state of the data set to be monitored in the next state; or,
在所述第一被选状态和所述第二被选状态均为所述空选的情况下,确定所述监听结果为未更新;所述第一被选状态为所述待监听数据集在所述当前状态下的所述被选状态;所述第二被选状态为所述待监听数据集在所述下一个状态下的所述被选状态;In the case that the first selected state and the second selected state are both the empty selection, it is determined that the monitoring result is not updated; the first selected state is that the data set to be monitored is in The selected state in the current state; the second selected state is the selected state of the data set to be monitored in the next state;
在所述第一被选状态和所述第二被选状态不同的情况下,确定所述监听结果为已更新。In a case where the first selected state and the second selected state are different, it is determined that the monitoring result is updated.
结合本公开任一实施方式,所述显示单元34,用于:With reference to any embodiment of the present disclosure, the display unit 34 is configured to:
在第三被选状态和第四被选状态均为所述空选的情况下,计算第三数据集与第四数据集之间的差异,得到所述第二待显示数据集;所述第三被选状态为第一节点在所述当前状态下的所述被选状态;所述第四被选状态为所述第一节点在所述下一个状态下的所述被选状态;所述第一节点为第二节点的子节点;所述第二节点为所述待监听数据集的节点;所述第三数据集包括所述第一数据集中除所述第一节点中的数据之外的数据;所述第四数据集包括所述第二数据集中除所述第一节点中的数据之外的数据;或,In the case where the third selected state and the fourth selected state are both the empty selection, the difference between the third data set and the fourth data set is calculated to obtain the second data set to be displayed; 3. The 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 the node of the data set to be monitored; the third data set includes the data in the first data set except for the data in the first node The data; the fourth data set includes data in the second data set other than the data in the first node; or,
在所述第三被选状态和所述第四被选状态均为所述全选的情况下,计算所述第三数据集与所述第四数据集之间的差异,得到所述第二待显示数据集;所述第三被选状态为第一节点在所述当前状态下的所述被选状态;所述第四被选状态为所述第一节点在所述下一个状态下的所述被选状态;所述第一节点为第二节点的子节点;所述第二节点为所述待监听数据集的节点;所述第三数据集包括所述第一数据集中除所述第一节点中的数据之外的数据;所述第四数据集包括所述第二数据集中除所述第一节点中的数据之外的数据。In the case that the third selected state and the fourth selected state are both the selected all, the difference between the third data set and the fourth data set is calculated to obtain the second The 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 first node in the next state The selected state; the first node is a child node of the second node; the second node is the node of the data set to be monitored; the third data set includes the first data set except the Data other than the data in the first node; the fourth data set includes data other than the data in the first node in the second data set.
结合本公开任一实施方式,所述显示单元34,用于:With reference to any embodiment of the present disclosure, the display unit 34 is configured to:
获取第三节点的显示状态;所述第三节点为第一节点的兄弟节点;Acquiring the display status of the third node; the third node is a sibling node of the first node;
在所述显示状态为折叠的情况下,计算第五数据集与第六数据集之间的差异,得到所述第二待显示数据集;所述第五数据集包括所述第三数据集中除第三节点中的数据之外的数据;所述第六数据集包括所述第四数据集中除第三节点中的数据之外的数据。In the case that the display state is folded, the difference between the fifth data set and the sixth data set is calculated to obtain the second data set to be displayed; the fifth data set includes the third data set divided by Data other than the data in the third node; the sixth data set includes data other than the data in the third node in the fourth data set.
结合本公开任一实施方式,所述第一待显示数据集包括:第一视频流;With reference to any embodiment of the present disclosure, the first data set to be displayed includes: a first video stream;
所述获取单元31,用于:The obtaining unit 31 is configured to:
获取至少一个第二视频流;Acquiring at least one second video stream;
在接收到从所述至少一个第二视频流中选取至少一个视频流的指令的情况下,从所述至少一个第二视频流中选取所述第一视频流。In the case of receiving an instruction to select at least one video stream from the at least one second video stream, select the first video stream from the at least one second video stream.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments. For specific implementation, refer to the description of the above method embodiments. For brevity, here No longer.
图4为本公开实施例提供的一种电子设备4的硬件结构示意图。该电子设备4包括处理器41,存储器42,输入装置43,输出装置44。该处理器41、存储器42、输入装置43和输出装置44通过连接器相耦合,该连接器包括各类接口、传输线或总线等等,本公开实施例对此不作限定。应当理解,本公开的各个实施例中,耦合是指通过特定方式的相互联系,包括直接相连或者通过其他设备间接相连,例如可以通过各类接口、传输线、总线等相连。FIG. 4 is a schematic diagram of the hardware structure of an electronic device 4 provided by an embodiment of the disclosure. The electronic device 4 includes a processor 41, a memory 42, an input device 43, and an output device 44. The processor 41, the memory 42, the input device 43, and the output device 44 are coupled through a connector, and the connector includes various interfaces, transmission lines, or buses, etc., which are not limited in the embodiment of the present disclosure. It should be understood that, in the various embodiments of the present disclosure, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, for example, can be connected through various interfaces, transmission lines, buses, and the like.
处理器41可以包括是一个或多个处理器,例如包括一个或多个中央处理器(central processing unit,CPU),在处理器是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。在一种可行的实施方式中,处理器21可以是多个GPU构成的处理器组,多个处理器之间通过一个或多个总线彼此耦合。在一种可行的实施方式中,该处理器还可以为其他类型的处理器等等,本公开实施例不作限定。The processor 41 may include one or more processors, for example, one or more central processing units (CPU). In the case where the processor is a CPU, the CPU may be a single-core CPU or It is a multi-core CPU. In a feasible implementation manner, the processor 21 may be a processor group composed of multiple GPUs, and the multiple processors are coupled to each other through one or more buses. In a feasible implementation manner, the processor may also be other types of processors, etc., which is not limited in the embodiment of the present disclosure.
存储器42可用于存储计算机程序指令,以及用于执行本公开方案的程序代码在内的各类计算机程序代码。可选地,存储器包括但不限于是随机存储记忆体(random access  memory,RAM)、只读存储器(read-only memory,ROM)、可擦除可编程只读存储器(erasable programmable read only memory,EPROM)、或便携式只读存储器(compact disc read-only memory,CD-ROM),该存储器用于相关指令及数据。The memory 42 may be used to store computer program instructions and various computer program codes including program codes used to execute the solutions of the present disclosure. Optionally, the memory includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (erasable programmable read only memory, EPROM) ), or a portable read-only memory (compact disc read-only memory, CD-ROM), which is used for related instructions and data.
输入装置43用于输入数据和/或信号,以及输出装置44用于输出数据和/或信号。输入装置43和输出装置44可以是独立的器件,也可以是一个整体的器件。The input device 43 is used to input data and/or signals, and the output device 44 is used to output data and/or signals. The input device 43 and the output device 44 may be independent devices or a whole device.
可理解,本公开实施例中,存储器42不仅可用于存储相关指令,还可用于存储相关数据,如该存储器42可用于存储通过输入装置43获取的第一待显示数据集,又或者该存储器42还可用于存储通过处理器41得到的第一待显示数据集等等,本公开实施例对于该存储器中具体所存储的数据不作限定。It can be understood that in the embodiment of the present disclosure, the memory 42 can be used not only to store related instructions, but also to store related data. For example, the memory 42 can be used to store the first to-be-displayed data set acquired through the input device 43, or the memory 42 It can also be used to store the first to-be-displayed data set obtained by the processor 41, etc. The embodiment of the present disclosure does not limit the specific data stored in the memory.
可以理解的是,图4仅仅示出了一种电子设备4的简化设计。在实际应用中,数据处理装置还可以分别包含必要的其他元件,包含但不限于任意数量的输入/输出装置、处理器、存储器等,而所有可以实现本公开实施例的数据处理装置都在本公开的保护范围之内。It can be understood that FIG. 4 only shows a simplified design of the electronic device 4. In practical applications, the data processing device may also include other necessary components, including but not limited to any number of input/output devices, processors, memories, etc., and all data processing devices that can implement the embodiments of the present disclosure are in this Within the scope of public protection.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。A person of ordinary skill in the art may realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered as going beyond the scope of the present disclosure.
本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的数据处理方法。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。The embodiments of the present disclosure also provide a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and the computer program executes the data processing method described in the above method embodiment when the computer program is run by a processor. Wherein, the storage medium may be a volatile or non-volatile computer readable storage medium.
本公开实施例所提供的数据处理方法的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行上述方法实施例中所述的安全带佩戴检测方法,可参见上述方法实施例,在此不再赘述。The computer program product of the data processing method provided by the embodiment of the present disclosure includes a computer-readable storage medium storing program code, and the program code includes instructions that can be used to execute the seat belt wearing detection method described in the above method embodiment For details, please refer to the above method embodiment, which will not be repeated here.
本公开实施例还提供一种计算机程序,该计算机程序包括计算机可读代码,该计算机可读代码在电子设备中运行的情况下,电子设备的处理器执行用于实现前述任一实施例所述的数据处理方法。该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在本公开的一些实施例中,所述计算机程序产品具体体现为计算机存储介质,在本公开的一些实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。The embodiments of the present disclosure also provide a computer program, the computer program includes computer readable code, when the computer readable code runs in an electronic device, the processor of the electronic device executes the method for implementing the method described in any of the foregoing embodiments. Data processing method. The computer program product can be specifically implemented by hardware, software, or a combination thereof. In some embodiments of the present disclosure, the computer program product is specifically embodied as a computer storage medium. In some embodiments of the present disclosure, the computer program product is specifically embodied as a software product, such as a software development kit (SDK). and many more.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。所属领域的技术人员还可以清楚地了解到,本公开各个实施例描述各有侧重,为描述的方便和简洁,相同或类似的部分在不同实施例中可能没有赘述,因此,在某一实施例未描述或未详细描述的部分可以参见其他实施例的记载。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here. Those skilled in the art can also clearly understand that the description of each embodiment of the present disclosure has its own focus. For convenience and brevity of description, the same or similar parts may not be repeated in different embodiments. Therefore, in a certain embodiment For parts that are not described or described in detail, reference may be made to the records of other embodiments.
在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本公开实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present disclosure are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be sent from a website, computer, server, or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (such as infrared, wireless, microwave, etc.) Another website site, computer, server or data center for transmission. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a digital versatile disc (DVD)), or a semiconductor medium (for example, a solid state disk (SSD)) )Wait.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:只读存储器(read-only memory,ROM)或随机存储存储器(random access memory,RAM)、磁碟或者光盘等各种可存储程序代码的介质。A person of ordinary skill in the art can understand that all or part of the process in the above-mentioned embodiment method can be realized. The process can be completed by a computer program instructing relevant hardware. The program can be stored in a computer readable storage medium. , May include the processes of the above-mentioned method embodiments. The aforementioned storage media include: read-only memory (ROM) or random access memory (RAM), magnetic disks or optical disks and other media that can store program codes.
工业实用性Industrial applicability
本公开提供了一种数据处理方法、装置、电子设备、存储介质及程序;该方法包括:获取第一待显示数据集;从所述第一待显示数据集中确定待监听数据集;所述待监听数据集包含的数据的数量少于所述第一待显示数据集包含的数据的数量;监听所述待监听数据集,得到监听结果;依据所述监听结果,显示所述第一待显示数据集。The present disclosure provides a data processing method, device, electronic equipment, storage medium, and program; the method includes: obtaining a first data set to be displayed; determining a data set to be monitored from the first data set to be displayed; The amount of data contained in the monitoring data set is less than the amount of data contained in the first data set to be displayed; the data set to be monitored is monitored to obtain a monitoring result; the first data to be displayed is displayed according to the monitoring result set.

Claims (13)

  1. 一种数据处理方法,所述方法包括:A data processing method, the method includes:
    获取第一待显示数据集;Obtain the first data set to be displayed;
    从所述第一待显示数据集中确定待监听数据集;所述待监听数据集包含的数据的数量少于所述第一待显示数据集包含的数据的数量;Determining a data set to be monitored from the first data set to be displayed; the quantity of data contained in the data set to be monitored is less than the quantity of data contained in the first data set to be displayed;
    监听所述待监听数据集,得到监听结果;Monitor the data set to be monitored to obtain a monitoring result;
    依据所述监听结果,显示所述第一待显示数据集。According to the monitoring result, the first data set to be displayed is displayed.
  2. 根据权利要求1所述的方法,所述从所述第一待显示数据集中确定待监听数据集,包括:The method according to claim 1, wherein the determining a data set to be monitored from the first data set to be displayed comprises:
    从所述第一待显示数据集中选取至少一个动态数据,得到所述待监听数据集。At least one dynamic data is selected from the first data set to be displayed to obtain the data set to be monitored.
  3. 根据权利要求1或2所述的方法,所述监听所述待监听数据集,得到监听结果,包括:The method according to claim 1 or 2, wherein the monitoring the data set to be monitored to obtain the monitoring result includes:
    通过监听所述待监听数据集的被选状态,得到所述监听结果。The monitoring result is obtained by monitoring the selected state of the data set to be monitored.
  4. 根据权利要求3所述的方法,所述依据所述监听结果,显示所述第一待显示数据集,包括:The method according to claim 3, wherein the displaying of the first data set to be displayed according to the monitoring result comprises:
    在所述监听结果为未更新的情况下,显示当前状态下所述第一待显示数据集中所需显示的数据;If the monitoring result is not updated, display the data that needs to be displayed in the first data set to be displayed in the current state;
    在所述监听结果为已更新的情况下,计算第一数据集与第二数据集之间的差异,得到第二待显示数据集;所述第一数据集包括所述当前状态下的所述待监听数据集;所述第二数据集包括下一个状态下的所述待监听数据集;In the case where the monitoring result is updated, the difference between the first data set and the second data set is calculated to obtain the second data set to be displayed; the first data set includes the current state A data set to be monitored; the second data set includes the data set to be monitored in the next state;
    显示所述第二待显示数据集。The second data set to be displayed is displayed.
  5. 根据权利要求3或4所述的方法,所述被选状态包括全选和空选;The method according to claim 3 or 4, wherein the selected state includes all selected and empty selected;
    所述通过监听所述待监听数据集的被选状态,得到所述监听结果,包括:The obtaining the monitoring result by monitoring the selected state of the data set to be monitored includes:
    在第一被选状态和第二被选状态均为所述全选的情况下,确定所述监听结果为未更新;所述第一被选状态为所述待监听数据集在所述当前状态下的所述被选状态;所述第二被选状态为所述待监听数据集在所述下一个状态下的所述被选状态;或,In the case where both the first selected state and the second selected state are the all selected, it is determined that the monitoring result is not updated; the first selected state is that the data set to be monitored is in the current state The selected state in the next state; the second selected state is the selected state of the data set to be monitored in the next state; or,
    在所述第一被选状态和所述第二被选状态均为所述空选的情况下,确定所述监听结果为未更新;所述第一被选状态为所述待监听数据集在所述当前状态下的所述被选状态;所述第二被选状态为所述待监听数据集在所述下一个状态下的所述被选状态;In the case that the first selected state and the second selected state are both the empty selection, it is determined that the monitoring result is not updated; the first selected state is that the data set to be monitored is in The selected state in the current state; the second selected state is the selected state of the data set to be monitored in the next state;
    在所述第一被选状态和所述第二被选状态不同的情况下,确定所述监听结果为已更新。In a case where the first selected state and the second selected state are different, it is determined that the monitoring result is updated.
  6. 根据权利要求5所述的方法,所述计算第一数据集与第二数据集之间的差异,得到第二待显示数据集,包括:The method according to claim 5, wherein the calculating the difference between the first data set and the second data set to obtain the second data set to be displayed includes:
    在第三被选状态和第四被选状态均为所述空选的情况下,计算第三数据集与第四数据集之间的差异,得到所述第二待显示数据集;所述第三被选状态为第一节点在所述当前状态下的所述被选状态;所述第四被选状态为所述第一节点在所述下一个状态下的所述被选状态;所述第一节点为第二节点的子节点;所述第二节点为所述待监听数据集的节点;所述第三数据集包括所述第一数据集中除所述第一节点中的数据之外的数据;所述第四数据集包括所述第二数据集中除所述第一节点中的数据之外的数据;或,In the case where the third selected state and the fourth selected state are both the empty selection, the difference between the third data set and the fourth data set is calculated to obtain the second data set to be displayed; 3. The 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 the node of the data set to be monitored; the third data set includes the data in the first data set except for the data in the first node The data; the fourth data set includes data in the second data set other than the data in the first node; or,
    在所述第三被选状态和所述第四被选状态均为所述全选的情况下,计算所述第三数据集与所述第四数据集之间的差异,得到所述第二待显示数据集;所述第三被选状态为第一节点在所述当前状态下的所述被选状态;所述第四被选状态为所述第一节点在所述 下一个状态下的所述被选状态;所述第一节点为第二节点的子节点;所述第二节点为所述待监听数据集的节点;所述第三数据集包括所述第一数据集中除所述第一节点中的数据之外的数据;所述第四数据集包括所述第二数据集中除所述第一节点中的数据之外的数据。In the case that the third selected state and the fourth selected state are both the selected all, the difference between the third data set and the fourth data set is calculated to obtain the second The 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 first node in the next state The selected state; the first node is a child node of the second node; the second node is the node of the data set to be monitored; the third data set includes the first data set except the Data other than the data in the first node; the fourth data set includes data other than the data in the first node in the second data set.
  7. 根据权利要求6所述的方法,所述计算所述第三数据集与所述第四数据集之间的差异,得到所述第二待显示数据集,包括:The method according to claim 6, wherein the calculating the difference between the third data set and the fourth data set to obtain the second data set to be displayed includes:
    获取第三节点的显示状态;所述第三节点为第一节点的兄弟节点;Acquiring the display status of the third node; the third node is a sibling node of the first node;
    在所述显示状态为折叠的情况下,计算第五数据集与第六数据集之间的差异,得到所述第二待显示数据集;所述第五数据集包括所述第三数据集中除第三节点中的数据之外的数据;所述第六数据集包括所述第四数据集中除第三节点中的数据之外的数据。In the case that the display state is folded, the difference between the fifth data set and the sixth data set is calculated to obtain the second data set to be displayed; the fifth data set includes the third data set divided by Data other than the data in the third node; the sixth data set includes data other than the data in the third node in the fourth data set.
  8. 根据权利要求1至7中任意一项所述的方法,所述第一待显示数据集包括:第一视频流;The method according to any one of claims 1 to 7, wherein the first data set to be displayed comprises: a first video stream;
    所述获取第一待显示数据集,包括:The obtaining the first data set to be displayed includes:
    获取至少一个第二视频流;Acquiring at least one second video stream;
    在接收到从所述至少一个第二视频流中选取至少一个视频流的指令的情况下,从所述至少一个第二视频流中选取所述第一视频流。In the case of receiving an instruction to select at least one video stream from the at least one second video stream, select the first video stream from the at least one second video stream.
  9. 一种数据处理装置,所述装置包括:A data processing device, the device includes:
    获取单元,用于获取第一待显示数据集;An acquiring unit for acquiring the first data set to be displayed;
    确定单元,用于从所述第一待显示数据集中确定待监听数据集;所述待监听数据集包含的数据的数量少于所述第一待显示数据集包含的数据的数量;A determining unit, configured to determine a data set to be monitored from the first data set to be displayed; the quantity of data contained in the data set to be monitored is less than the quantity of data contained in the first data set to be displayed;
    监听单元,用于监听所述待监听数据集,得到监听结果;A monitoring unit for monitoring the data set to be monitored to obtain a monitoring result;
    显示单元,用于依据所述监听结果,显示所述第一待显示数据集。The display unit is configured to display the first data set to be displayed according to the monitoring result.
  10. 一种处理器,其特征在于,所述处理器用于执行如权利要求1至8中任意一项所述的数据处理方法。A processor, characterized in that the processor is used to execute the data processing method according to any one of claims 1 to 8.
  11. 一种电子设备,包括:处理器、输入装置、输出装置和存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,在所述处理器执行所述计算机指令的情况下,所述电子设备执行如权利要求1至8中任一项所述的数据处理方法。An electronic device, comprising: a processor, an input device, an output device, and a memory, the memory is used to store computer program code, the computer program code includes computer instructions, when the processor executes the computer instructions The electronic device executes the data processing method according to any one of claims 1 to 8.
  12. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,所述计算机程序包括程序指令,在所述程序指令被处理器执行的情况下,使所述处理器执行权利要求1至8中任意一项所述的数据处理方法。A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and the computer program includes program instructions that, when the program instructions are executed by a processor, cause the processing The device executes the data processing method described in any one of claims 1 to 8.
  13. 一种计算机程序,所述计算机程序包括计算机可读代码,在所述计算机可读代码在电子设备中运行的情况下,所述电子设备的处理器执行用于实现如权利要求1至8任一项所述的数据处理方法。A computer program, the computer program comprising computer readable code, in the case that the computer readable code is executed in an electronic device, the processor of the electronic device executes for realizing any one of claims 1 to 8 The data processing method described in the item.
PCT/CN2020/133684 2020-05-21 2020-12-03 Data processing method and apparatus, and electronic device, storage medium and program WO2021232748A1 (en)

Applications Claiming Priority (2)

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
CN202010435903.8 2020-05-21

Publications (1)

Publication Number Publication Date
WO2021232748A1 true WO2021232748A1 (en) 2021-11-25

Family

ID=72647573

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/133684 WO2021232748A1 (en) 2020-05-21 2020-12-03 Data processing method and apparatus, and electronic device, storage medium and program

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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016082586A1 (en) * 2014-11-27 2016-06-02 广州市动景计算机科技有限公司 Webpage update method and apparatus
CN107256151A (en) * 2017-05-27 2017-10-17 北京小米移动软件有限公司 Processing method, device and the terminal of page rendering
CN111079043A (en) * 2019-12-05 2020-04-28 北京数立得科技有限公司 Key content positioning method
CN111158973A (en) * 2019-12-05 2020-05-15 北京大学 Web application dynamic evolution monitoring method
CN111741257A (en) * 2020-05-21 2020-10-02 深圳市商汤科技有限公司 Data processing method and device, electronic equipment and storage medium

Family Cites Families (21)

* 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
CN105389315B (en) * 2014-09-04 2019-04-12 阿里巴巴集团控股有限公司 A kind of dynamic web page update method and device
CN105607927A (en) * 2015-12-18 2016-05-25 小米科技有限责任公司 Page display method and apparatus
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
CN107451181B (en) * 2017-06-14 2020-09-22 北京星选科技有限公司 Page rendering method and device
CN110020288A (en) * 2017-09-30 2019-07-16 北京国双科技有限公司 A kind of page furbishing 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
CN110865843B (en) * 2018-08-09 2024-03-26 阿里巴巴集团控股有限公司 Page backtracking, information backup and problem solving method, system and equipment
CN110874380A (en) * 2018-08-14 2020-03-10 山东华软金盾软件股份有限公司 Method and system for refreshing interface based on mobile terminal database
CN109271386A (en) * 2018-09-27 2019-01-25 拉扎斯网络科技(上海)有限公司 Data display method, device, electronic equipment and computer readable storage medium
CN109522018B (en) * 2018-11-14 2021-06-18 腾讯科技(深圳)有限公司 Page processing method and device and storage medium
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016082586A1 (en) * 2014-11-27 2016-06-02 广州市动景计算机科技有限公司 Webpage update method and apparatus
CN107256151A (en) * 2017-05-27 2017-10-17 北京小米移动软件有限公司 Processing method, device and the terminal of page rendering
CN111079043A (en) * 2019-12-05 2020-04-28 北京数立得科技有限公司 Key content positioning method
CN111158973A (en) * 2019-12-05 2020-05-15 北京大学 Web application dynamic evolution monitoring method
CN111741257A (en) * 2020-05-21 2020-10-02 深圳市商汤科技有限公司 Data processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111741257B (en) 2022-01-28
CN111741257A (en) 2020-10-02
TWI759059B (en) 2022-03-21
TW202145030A (en) 2021-12-01

Similar Documents

Publication Publication Date Title
US10664510B1 (en) Displaying clusters of media items on a map using representative media items
CN101194257B (en) The method and system of process search information
US10078621B2 (en) Method, apparatus, and system for displaying order information
US9299098B2 (en) Systems for generating a global product taxonomy
WO2021232748A1 (en) Data processing method and apparatus, and electronic device, storage medium and program
JP6404351B2 (en) Method, apparatus, and system for communicating and presenting merchandise information
US20150201030A1 (en) Systems and methods for providing geographically delineated content
WO2020038292A1 (en) Evaluation information displaying method, order creation method, supplementary purchasing method, and devices
CN111309240B (en) Content display method and device and electronic equipment
WO2023078225A1 (en) Information display method and apparatus, electronic device, and storage medium
CN111709732A (en) Display method and device and electronic equipment
US20190265851A1 (en) Platform for third-party supplied calls-to-action
CN111291258A (en) Recommendation method and device for searching hot words, electronic equipment and readable medium
US20240012557A1 (en) Interactive media content platform
CN110134905B (en) Page update display method, device, equipment and storage medium
CN112700291B (en) Advertisement space content recommendation method and device, storage medium and electronic equipment
CN113157165A (en) Information display method and device, electronic equipment and program product
CN111797354A (en) Interaction method and device and electronic equipment
CN111209479B (en) Object pushing method and device
US20240144547A1 (en) Electronic device for providing information on virtual space and method thereof
CN115525852A (en) Webpage rendering method, device, equipment and storage medium
CN114461950A (en) Global caching method and device, electronic equipment and storage medium
CN113920220A (en) Image editing backspacing method and device
CN111475073A (en) Space information preview method and device and electronic equipment
CN117908879A (en) Self-adaptive page rendering method and development method of functional module

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20936662

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13/03/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20936662

Country of ref document: EP

Kind code of ref document: A1