TWI759059B - Data processing method electronic equipment computer readable storage medium - Google Patents

Data processing method electronic equipment computer readable storage medium Download PDF

Info

Publication number
TWI759059B
TWI759059B TW110100178A TW110100178A TWI759059B TW I759059 B TWI759059 B TW I759059B TW 110100178 A TW110100178 A TW 110100178A TW 110100178 A TW110100178 A TW 110100178A TW I759059 B TWI759059 B TW I759059B
Authority
TW
Taiwan
Prior art keywords
data set
data
displayed
node
state
Prior art date
Application number
TW110100178A
Other languages
Chinese (zh)
Other versions
TW202145030A (en
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 TW202145030A publication Critical patent/TW202145030A/en
Application granted granted Critical
Publication of TWI759059B publication Critical patent/TWI759059B/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

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

This embodiment discloses a data processing method, electronic equipment, storage medium, and program; the method includes: acquiring 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 data set is less than the amount of data contained in the first data set to be displayed; monitor the data set to be monitored to obtain a monitoring result; display the first data set to be displayed according to the monitoring result. 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.

Description

資料處理方法、電子設備、電腦可讀儲存介質 Data processing method, electronic device, computer-readable storage medium

本發明關於電腦技術領域,尤其關於一種資料處理方法、電子設備、電腦可讀儲存介質。 The present invention relates to the field of computer technology, and in particular, to a data processing method, an electronic device, and a computer-readable storage medium.

瀏覽器通常將所需顯示的資料進行渲染之後在瀏覽器顯示頁面中進行顯示。同時所需顯示的資料可能會隨時間的推移而更新,為使瀏覽器通過頁面即時顯示更新後的資料,需要對所需顯示的資料進行監聽,以確定所需顯示的資料是否更新,從而實現頁面的即時顯示。 The browser usually renders the data to be displayed and then displays it on the browser display page. At the same time, the data 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 to be displayed to determine whether the data to be displayed is updated. Instant display of the page.

相關技術中,由於所需顯示的資料的數量大,通過傳統方法監聽所需顯示的資料容易因硬體開銷大而導致瀏覽器的運行速度慢,甚至出現瀏覽器卡死、崩潰等情況。 In the related art, due to the large amount of data to be displayed, monitoring the data to be displayed by the traditional method is likely to cause slow running speed of the browser due to high hardware overhead, and even the browser may freeze or crash.

本發明提供一種資料處理方法、電子設備、儲存介質及程式。 The present invention provides a data processing method, an electronic device, a storage medium and a program.

本發明實施例提供了一種資料處理方法,所述方法包括:獲取第一待顯示資料集;從所述第一待顯示資料集中確定待監聽資料集;所述待監聽資料集包含的資料的數量少於所述第一待顯示資料集包含的資料的數量;監聽所述待監聽資料集,得到監聽結果;依據所述監聽結果,顯示所述第一待顯示資料集。如此,通過對第一待顯示資料集中的待監聽資料集進行監聽,減少所需監聽的資料的數量,進而降低監聽第一待顯示資料集所消耗的硬體資源,從而提高資料處理裝置顯示第一待顯示資料集的速度。 An embodiment of the present invention provides a data processing method, the method includes: acquiring a first data set to be displayed; determining a data set to be monitored from the first data set to be displayed; the number of data included 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 to obtain a monitoring result; and the first data set to be displayed is displayed according to the monitoring result. In this way, by monitoring the to-be-monitored data set in the first to-be-displayed data set, the quantity of data to be monitored is reduced, thereby reducing the hardware resources consumed by monitoring the first to-be-displayed data set, thereby improving the display of the first data set by the data processing device. The speed of the dataset to be displayed.

結合本發明任一實施方式,所述從所述第一待顯示資料集中確定待監聽資料集,包括:從所述第一待顯示資料集中選取至少一個動態資料,得到所述待監聽資料集。如此,對第一待顯示資料集中的動態資料進行監聽,可在減少所需監聽的資料的數量的同時,提高監聽準確度。 With reference to any embodiment of the present invention, the determining the data set to be monitored from the first data set to be displayed includes: selecting at least one dynamic data set from the first data set to be displayed to obtain the data set to be monitored. In this way, by monitoring the dynamic data in the first data set to be displayed, the monitoring accuracy can be improved while reducing the quantity of the data to be monitored.

結合本發明任一實施方式,所述監聽所述待監聽資料集,得到監聽結果,包括:通過監聽所述待監聽資料集的被選狀態,得到所述監聽結果。如此,通過待監聽資料的被選狀態,以進一步降低監聽待監聽資料集所耗費的硬體資源。 With reference to any embodiment of the present invention, the monitoring of the data set to be monitored to obtain the monitoring result includes: obtaining the monitoring result by monitoring the selected state of the data set to be monitored. In this way, the selected state of the data to be monitored can further reduce the hardware resources consumed by monitoring the data set to be monitored.

結合本發明任一實施方式,所述依據所述監聽結果, 顯示所述第一待顯示資料集,包括:在所述監聽結果為未更新的情況下,顯示當前狀態下所述第一待顯示資料集中所需顯示的資料;在所述監聽結果為所述已更新的情況下,計算第一資料集與第二資料集之間的差異,得到第二待顯示資料集;所述第一資料集包括所述當前狀態下的所述待監聽資料集;所述第二資料集包括下一個狀態下的所述待監聽資料集;顯示所述第二待顯示資料集。如此,通過對待監聽資料集的被選狀態進行監聽,確定監聽結果,可減少監聽待監聽資料集所需的監聽量,進而可降低監聽待監聽資料集所耗費的硬體資源。 With reference to any embodiment of the present invention, according to the monitoring result, Displaying the first data set to be displayed includes: if the monitoring result is not updated, displaying the data to be displayed in the first data set to be displayed in the current state; when the monitoring result is the In the case of having been updated, the difference between the first data set and the second data set is calculated to obtain a second to-be-displayed data set; the first data set includes the to-be-monitored data set in the current state; the The second data set includes the to-be-monitored data set in the next state; the second to-be-displayed data set 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, thereby reducing the hardware resources consumed by monitoring the data set to be monitored.

結合本發明任一實施方式,所述被選狀態包括全選和空選;所述通過監聽所述待監聽資料集的被選狀態,得到所述監聽結果,包括:在第一被選狀態和第二被選狀態均為所述全選的情況下,確定所述監聽結果為未更新;所述第一被選狀態為所述待監聽資料集在所述當前狀態下的所述被選狀態;所述第二被選狀態為所述待監聽資料集在所述下一個狀態下的所述被選狀態;或,在所述第一被選狀態和所述第二被選狀態均為所述空選的情況下,確定所述監聽結果為未更新;所述第一被選狀態為所述待監聽資料集在所述當前狀態下的所述被選 狀態;所述第二被選狀態為所述待監聽資料集在所述下一個狀態下的所述被選狀態;在所述第一被選狀態和所述第二被選狀態不同的情況下,確定所述監聽結果為已更新。如此,通過第一被選狀態和第二被選狀態之間的具體被選狀態,以及兩者被選狀態的關係,以快速確定出監聽結果為未更新或已更新。 With reference to any embodiment of the present invention, the selected state includes all selection and empty selection; the monitoring result obtained by monitoring the selected state of the data set to be monitored includes: in the first selected state and When the second selected state is the all-selected state, it is determined that the monitoring result is not updated; the first selected state is the selected state of the data set to be monitored in the current state ; the second selected state is the selected state of the data set to be monitored in the next state; or, in both the first selected state and the second selected state In the case of the empty selection, it is determined that the monitoring result is not updated; the first selected state is the selected state of the data set to be monitored in the current state state; the second selected state is the selected state of 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 , and determine that the monitoring result is updated. In this way, through the specific selected state between the first selected state and the second selected state, and the relationship between the two selected states, it is quickly determined whether the monitoring result is not updated or has been updated.

結合本發明任一實施方式,所述計算第一資料集與第二資料集之間的差異,得到第二待顯示資料集,包括:在第三被選狀態和第四被選狀態均為所述空選的情況下,計算第三資料集與第四資料集之間的差異,得到所述第二待顯示資料集;所述第三被選狀態為第一節點在所述當前狀態下的所述被選狀態;所述第四被選狀態為所述第一節點在所述下一個狀態下的所述被選狀態;所述第一節點為第二節點的子節點;所述第二節點為所述待監聽資料集的節點;所述第三資料集包括所述第一資料集中除所述第一節點中的資料之外的資料;所述第四資料集包括所述第二資料集中除所述第一節點中的資料之外的資料;或,在所述第三被選狀態和所述第四被選狀態均為所述全選的情況下,計算所述第三資料集與所述第四資料集之間的差異,得到所述第二待顯示資料集;所述第三被選狀態為第一節點在所述當前狀態下的所述被選狀態;所述第四被選狀態為所述第一節點在所述下一個狀態下的所述被選狀態;所述第一節點為第二節點的子節點;所述第二節點為所述待監聽資料集的節點;所述第三資料集包括所述 第一資料集中除所述第一節點中的資料之外的資料;所述第四資料集包括所述第二資料集中除所述第一節點中的資料之外的資料。如此,基於第三被選狀態和第四被選狀態均為空選或全選的情況下,可減少計算第一資料集和第二資料集之間的差異所需的計算量,進而減少計算第一資料集和第二資料集之間的差異所耗費的硬體資源。 Combining with any embodiment of the present invention, calculating the difference between the first data set and the second data set to obtain the second to-be-displayed data set includes: the third selected state and the fourth selected state are all selected In the case of the empty selection, the difference between the third data set and the fourth data set is calculated to obtain the second to-be-displayed data set; the third selected state is the state of the first node in the current state. the selected 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 The node is the node of the data set to be monitored; the third data set includes the data in the first data set except the data in the first node; the fourth data set includes the second data Collecting data 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, calculate the third data set The difference between the fourth data set and the second data set to be displayed is obtained; the third selected state is the selected state of the first node in the current state; the fourth The 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 dataset includes the The first data set includes data other than 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. In this way, based on the case where the third selected state and the fourth selected state are both empty selections or all selections, 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 embodiment of the present invention, calculating the difference between the third data set and the fourth data set to obtain the second to-be-displayed data set includes: obtaining the display state of the third node; The third node is a sibling node of the first node; when the display state is folded, the difference between the fifth data set and the sixth data set is calculated to obtain the second to-be-displayed data set; the The fifth data set includes data in the third data set other than the data in the third node; the sixth data set includes data in the fourth data set other than the data in the third node. In this way, when the third node is a sibling node of the first node, and the display state of the third node is folded, it is only necessary to calculate the difference between the fifth data set and the sixth data set, which can reduce the calculation of the third data set. The amount of computation required to obtain the difference between the data set and the fourth data set to obtain the second data set to be displayed.

結合本發明任一實施方式,所述第一待顯示資料集包括:第一視頻流;所述獲取第一待顯示資料集,包括:獲取至少一個第二視頻流; 在接收到從所述至少一個第二視頻流中選取至少一個視頻流的指令的情況下,從所述至少一個第二視頻流中選取所述第一視頻流。如此,從至少一個第二視頻流中選取第一視頻流,以減少資料處理量。 With reference to any embodiment of the present invention, the first data set to be displayed includes: a first video stream; the acquiring the first data set to be displayed includes: acquiring at least one second video stream; The first video stream is selected from the at least one second video stream upon receiving an instruction to select at least one video stream from the at least one second video stream. In this way, the first video stream is selected from the at least one second video stream to reduce the amount of data processing.

以下裝置、電子設備等的效果描述參見上述方法的說明,這裡不再贅述。 For descriptions of the effects of the following apparatuses, electronic devices, etc., reference may be made to the descriptions of the above-mentioned methods, which will not be repeated here.

本發明實施例提供了一種資料處理裝置,所述裝置包括:獲取單元,用於獲取第一待顯示資料集;確定單元,用於從所述第一待顯示資料集中確定待監聽資料集;所述待監聽資料集包含的資料的數量少於所述第一待顯示資料集包含的資料的數量;監聽單元,用於監聽所述待監聽資料集,得到監聽結果;顯示單元,用於依據所述監聽結果,顯示所述第一待顯示資料集。 An embodiment of the present invention provides a data processing device, the device includes: an acquisition unit, configured to acquire a first to-be-displayed data set; a determination unit, configured to determine a to-be-monitored data set from 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 monitoring unit is used to monitor the data set to be monitored to obtain a monitoring result; the display unit is used to monitor the data set according to the data set to be displayed. According to the monitoring result, the first data set to be displayed is displayed.

結合本發明任一實施方式,所述確定單元,用於:從所述第一待顯示資料集中選取至少一個動態資料,得到所述待監聽資料集。 With reference to any embodiment of the present invention, the determining unit is configured to: select at least one dynamic data set from the first data set to be displayed to obtain the data set to be monitored.

結合本發明任一實施方式,所述監聽單元,用於:通過監聽所述待監聽資料集的被選狀態,得到所述監聽結果。 With reference to any embodiment of the present invention, the monitoring unit is configured to obtain the monitoring result by monitoring the selected state of the data set to be monitored.

結合本發明任一實施方式,所述顯示單元,用於:在所述監聽結果為未更新的情況下,顯示當前狀態下所 述第一待顯示資料集中所需顯示的資料;在所述監聽結果為所述已更新的情況下,計算第一資料集與第二資料集之間的差異,得到第二待顯示資料集;所述第一資料集包括所述當前狀態下的所述待監聽資料集;所述第二資料集包括下一個狀態下的所述待監聽資料集;顯示所述第二待顯示資料集。 With reference to any of the embodiments of the present invention, the display unit is configured to: in the case that the monitoring result is not updated, display all the information in the current state. the data to be displayed in the first to-be-displayed data set; under the condition that the monitoring result is the updated, calculating the difference between the first data set and the second data set to obtain the second to-be-displayed data set; The first data set includes the to-be-monitored data set in the current state; the second data set includes the to-be-monitored data set in the next state; and the second to-be-displayed data set is displayed.

結合本發明任一實施方式,所述被選狀態包括全選和空選;所述監聽單元,用於:在第一被選狀態和第二被選狀態均為所述全選的情況下,確定所述監聽結果為未更新;所述第一被選狀態為所述待監聽資料集在所述當前狀態下的所述被選狀態;所述第二被選狀態為所述待監聽資料集在所述下一個狀態下的所述被選狀態;或,在所述第一被選狀態和所述第二被選狀態均為所述空選的情況下,確定所述監聽結果為未更新;所述第一被選狀態為所述待監聽資料集在所述當前狀態下的所述被選狀態;所述第二被選狀態為所述待監聽資料集在所述下一個狀態下的所述被選狀態;在所述第一被選狀態和所述第二被選狀態不同的情況下,確定所述監聽結果為已更新。 With reference to any embodiment of the present invention, the selected state includes all selection and empty selection; the monitoring unit is configured to: in the case that the first selected state and the second selected state are both the all selected, It is determined that the monitoring result is not updated; the first selected state is the selected state of the data set to be monitored in the current state; the second selected state is the data set to be monitored the selected state in the next state; or, in the case that the first selected state and the second selected state are both the empty selections, determine that the monitoring result is not updated ; the first selected state is the selected state of the data set to be monitored in the current state; the second selected state is the data set to be monitored in the next state the selected state; if the first selected state and the second selected state are different, determine that the monitoring result has been updated.

結合本發明任一實施方式,所述顯示單元,用於:在第三被選狀態和第四被選狀態均為所述空選的情況 下,計算第三資料集與第四資料集之間的差異,得到所述第二待顯示資料集;所述第三被選狀態為第一節點在所述當前狀態下的所述被選狀態;所述第四被選狀態為所述第一節點在所述下一個狀態下的所述被選狀態;所述第一節點為第二節點的子節點;所述第二節點為所述待監聽資料集的節點;所述第三資料集包括所述第一資料集中除所述第一節點中的資料之外的資料;所述第四資料集包括所述第二資料集中除所述第一節點中的資料之外的資料;或,在所述第三被選狀態和所述第四被選狀態均為所述全選的情況下,計算所述第三資料集與所述第四資料集之間的差異,得到所述第二待顯示資料集;所述第三被選狀態為第一節點在所述當前狀態下的所述被選狀態;所述第四被選狀態為所述第一節點在所述下一個狀態下的所述被選狀態;所述第一節點為第二節點的子節點;所述第二節點為所述待監聽資料集的節點;所述第三資料集包括所述第一資料集中除所述第一節點中的資料之外的資料;所述第四資料集包括所述第二資料集中除所述第一節點中的資料之外的資料。 With reference to any embodiment of the present invention, the display unit is used for: in the case where the third selected state and the fourth selected state are both the empty selections Next, calculate the difference between the third data set and the fourth data set to obtain the second to-be-displayed data set; the third selected state is the selected state of the first node in the current state ; the fourth selected state is the selected state of the first node in the next state; the first node is a child node of the second node; the second node is the pending state a node that listens to a data set; the third data set includes data in the first data set other than the data in the first node; the fourth data set includes the second data set except for the first data set Data other than the data in a node; or, in the case that the third selected state and the fourth selected state are both the all selected, calculate the third data set and the fourth The difference between the data sets is obtained to obtain the second data set to be displayed; the third selected state is the selected state of the first node in the current state; the fourth selected state is the selected state 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 node The data set includes data in the first data set other than 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.

結合本發明任一實施方式,所述顯示單元,用於:獲取第三節點的顯示狀態;所述第三節點為第一節點的兄弟節點;在所述顯示狀態為折疊的情況下,計算第五資料集與第六資料集之間的差異,得到所述第二待顯示資料集;所述第五資料集包括所述第三資料集中除第三節點中的資料 之外的資料;所述第六資料集包括所述第四資料集中除第三節點中的資料之外的資料。 With reference to any embodiment of the present invention, the display unit is used to: obtain the display state of the third node; the third node is a sibling node of the first node; when the display state is folded, calculate the first node The difference between the fifth data set and the sixth data set is to obtain the second to-be-displayed data set; the fifth data set includes the third data set except the data in the third node data other than the data set; 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 invention, the first data set to be displayed includes: a first video stream; the acquiring unit is configured to: acquire at least one second video stream; In the case of an instruction to select at least one video stream in the stream, the first video stream is selected from the at least one second video stream.

本發明實施例提供了一種處理器,所述處理器用於執行如上述第一方面及其任意一種可能實現的方式的方法。 An embodiment of the present invention provides a processor, where the processor is configured to execute the method according to the foregoing first aspect and any possible implementation manner thereof.

本發明實施例提供了一種電子設備,包括:處理器、輸入裝置、輸出裝置和記憶體,所述記憶體用於儲存電腦程式代碼,所述電腦程式代碼包括電腦指令,在所述處理器執行所述電腦指令的情況下,所述電子設備執行如上述第一方面及其任意一種可能實現的方式的方法。 An embodiment of the present invention provides an electronic device, including: a processor, an input device, an output device, and a memory, where the memory is used to store computer program codes, and the computer program codes include computer instructions, which are executed by the processor. In the case of the computer instruction, the electronic device executes the method according to the above-mentioned first aspect and any possible implementation manner thereof.

本發明實施例提供了一種電腦可讀儲存介質,所述電腦可讀儲存介質中儲存有電腦程式,所述電腦程式包括程式指令,在所述程式指令被處理器執行的情況下,使所述處理器執行如上述第一方面及其任意一種可能實現的方式的方法。 An embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a processor, the The processor performs the method as described above in the first aspect and any possible implementations thereof.

本發明實施例提供了一種電腦程式產品,所述電腦程式產品包括電腦可讀代碼,在所述電腦可讀代碼在電腦 中運行的情況下,使得所述電腦執行上述任意一種資料處理方法。 An embodiment of the present invention provides a computer program product, wherein the computer program product includes a computer-readable code, where the computer-readable code is stored in a computer In the case of running in the computer, the computer is made to execute any one of the above data processing methods.

本發明實施例提出的資料處理方法、裝置、電子設備、儲存介質及程式;首先,獲取第一待顯示資料集;其次,從所述第一待顯示資料集中確定待監聽資料集;所述待監聽資料集包含的資料的數量少於所述第一待顯示資料集包含的資料的數量;然後,監聽所述待監聽資料集,得到監聽結果;最後,依據所述監聽結果,顯示所述第一待顯示資料集。如此,在本發明實施例中,通過對第一待顯示資料集中的待監聽資料集進行監聽,減少所需監聽的資料的數量,進而降低監聽第一待顯示資料集所消耗的硬體資源,從而提高資料處理裝置顯示第一待顯示資料集的速度。 The data processing method, device, electronic device, storage medium, and program proposed by the embodiments of the present invention; first, obtain a first data set to be displayed; secondly, determine a data set to be monitored from the first data set to be displayed; The quantity of the data contained in the monitoring data set is less than the quantity of the data contained in the first to-be-displayed data set; then, monitoring the to-be-monitored data set to obtain a monitoring result; finally, according to the monitoring result, displaying the first Waiting for the dataset to be displayed. In this way, in the embodiment of the present invention, by monitoring the to-be-monitored data set in the first to-be-displayed data set, the quantity of data to be monitored is reduced, thereby reducing the hardware resources consumed by monitoring the first to-be-displayed data set, Therefore, the speed of displaying the first data set to be displayed by the data processing device is improved.

應當理解的是,以上的一般描述和後文的細節描述僅是示例性和解釋性的,而非限制本發明。 It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention.

201:獲取終端 201: Get Terminal

202:網路 202: Internet

203:資料處理終端 203: Data processing terminal

3:資料處理裝置 3: Data processing device

31:獲取單元 31: Get Unit

32:確定單元 32: Determine the unit

33:監聽單元 33: Monitor unit

34:顯示單元 34: Display unit

4:電子設備 4: Electronic equipment

41:處理器 41: Processor

42:記憶體 42: Memory

43:輸入裝置 43: Input device

44:輸出裝置 44: Output device

101~104:步驟 101~104: Steps

為了更清楚地說明本發明實施例或背景技術中的技術方案,下面將對本發明實施例或背景技術中所需要使用的附圖進行說明。 In order to more clearly describe the technical solutions in the embodiments of the present invention or the background technology, the accompanying drawings required in the embodiments or the background technology of the present invention will be described below.

此處的附圖被併入說明書中並構成本說明書的一部分,這些附圖示出了符合本發明的實施例,並與說明書一起用於說明本發明的技術方案。 The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present invention, and together with the description, serve to explain the technical solutions of the present invention.

圖1為本發明實施例提供的一種資料處理方法的流程示意圖;圖2為本發明實施例提供的資料處理的一種網路架構示意圖;圖3為本發明實施例提供的一種資料處理裝置3的結構示意圖;圖4為本發明實施例提供的一種電子設備4的硬體結構示意圖。 FIG. 1 is a schematic flowchart of a data processing method provided by an embodiment of the present invention; FIG. 2 is a schematic diagram of a network architecture of data processing provided by an embodiment of the present invention; FIG. 3 is a data processing device 3 provided by an embodiment of the present invention. Schematic diagram of the structure; FIG. 4 is a schematic diagram of the hardware structure of an electronic device 4 according to an embodiment of the present invention.

為了使本技術領域的人員更好地理解本發明方案,下面將結合本發明實施例中的附圖,對本發明實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有做出創造性勞動前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。 In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

本發明的說明書和申請專利範圍及上述附圖中的術語“第一”、“第二”等是用於區別不同物件,而不是用於描述特定順序。此外,術語“包括”和“具有”以及它們任何變形,意圖在於覆蓋不排他的包含。例如包含了一系列步驟或單元的過程、方法、系統、產品或設備沒有限定於已列出的步驟或單元,而是可選地還包括沒有列出的步驟或單元,或可選地還包括對於這些過程、方法、產品或設備 固有的其他步驟或單元。 The terms "first", "second" and the like in the description of the present invention and the scope of the patent application and the above drawings are used to distinguish different items, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For these processes, methods, products or equipment Inherent in other steps or units.

在本文中提及“實施例”意味著,結合實施例描述的特定特徵、結構或特性可以包含在本發明的至少一個實施例中。在說明書中的各個位置出現該短語並不一定均是指相同的實施例,也不是與其它實施例互斥的獨立的或備選的實施例。本領域技術人員顯式地和隱式地理解的是,本文所描述的實施例可以與其它實施例相結合。 Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

在瀏覽器顯示頁面的過程中,瀏覽器通過渲染所需顯示的資料,將所需顯示的資料通過頁面顯示。由於所需顯示的資料可能會隨時間的推移而更新,為使瀏覽器通過頁面即時顯示更新後的資料,需要對所需顯示的資料進行監聽,以確定所需顯示的資料是否更新,從而實現頁面的即時顯示。 In the process of displaying the page by the browser, the browser displays the data to be displayed through the page by rendering the data to be displayed. Since the data to be displayed may be updated over time, in order for the browser to display the updated data in real time through the page, it is necessary to monitor the data to be displayed to determine whether the data to be displayed is updated. Instant display of the page.

例如(例1),小明在通過瀏覽器進行網路購物的過程中,需要填寫收貨位址。在填寫收貨位址時,瀏覽器在填寫收貨位址的頁面中顯示了可選擇的位址範圍,選擇的順序依次為:國家→省份→城市→區→街道。小明在國家的備選項中選擇了“中國”,此時,瀏覽器在可選擇的位址範圍中顯示了中國所有省份,以供小明選擇。小明從中國所有省份中選擇了湖南省,此時,所需顯示的資料已更新,即可選擇位址範圍中的顯示內容從中國所有省份更新成了湖南省所有城市。在通過對填寫收貨位址的頁面所需顯示的資料進行監聽,確定可選擇位址範圍內的資料已更新的情況下,可更新填寫收貨位址的頁面的顯示內容,具 體的,將可選擇位址範圍內的顯示內容由中國所有省份更新成湖南省所有城市。 For example (Example 1), Xiaoming needs to fill in the delivery address during the online shopping process 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. Xiaoming selects "China" in the country's alternative options. At this time, the browser displays all provinces in China in the selectable address range for Xiaoming 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 displayed content in the selected address range can be updated from all provinces in China to all cities in Hunan Province. By monitoring the data to be displayed on the page for filling in the shipping address, if it is determined that the data within the range of selectable addresses has been updated, the displayed content of the page for filling in the shipping address can be updated. If it is specific, the display content in the selectable address range will be updated from all provinces in China to all cities in Hunan Province.

傳統方法中,通過對頁面所需顯示的所有資料進行監聽,實現頁面的即時顯示。接著例1繼續舉例(例2),頁面所需顯示的資料中,除了可選擇位址範圍內的資料,還包括小明所購買的商品的資訊、小明的購物帳戶名。而在小明填寫收貨位址的過程中,不僅需要對可選擇位址範圍內的資料進行監聽,還需對小明所購買的商品的資訊和小明的購物帳戶名進行監聽。由於所需顯示的資料的數量大,監聽所需顯示的資料所需耗費的硬體資源大,其中,硬體資源包括記憶體的開銷。硬體資源的消耗大易導致瀏覽器的運行速度慢,甚至導致瀏覽器卡死、崩潰等情況的發生。 In the traditional method, the real-time display of the page is realized by monitoring all the data to be displayed on the page. Continuing with Example 1 (Example 2), the data to be displayed on the page, in addition to the data within the address range that can be selected, also includes information about the products Xiao Ming purchased and Xiao Ming's shopping account name. In the process of Xiaoming filling in the delivery address, he not only needs to monitor the data within the range of selectable addresses, but also needs to monitor the information of the products Xiaoming purchased and Xiaoming's shopping account name. Since the quantity of the data to be displayed is large, the hardware resources required to monitor the data to be displayed are large, wherein the hardware resources include the overhead of the memory. The high consumption of hardware resources can easily lead to the slow running speed of the browser, and even cause the browser to freeze or crash.

基於此,本發明實施例提供了一種資料處理方法,以降低監聽所需顯示的資料所耗費的硬體資源。 Based on this, an embodiment of the present invention provides a data processing method, so as to reduce the hardware resources consumed by monitoring the data to be displayed.

本發明實施例的執行主體為資料處理裝置,在一種可行的實施方式中,資料處理裝置可以是以下中的一種:電腦、伺服器。下面結合本發明實施例中的附圖對本發明實施例進行描述。 The execution body of the embodiment of the present invention 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 invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.

請參閱圖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 invention.

101、獲取第一待顯示資料集。 101. Obtain a first data set to be displayed.

本發明實施例中,第一待顯示資料集為可通過頁面進行顯示的資料。例如,在例2中,第一待顯示資料集包 括可選擇位址範圍內的資料、小明所購買的商品的資訊、小明的購物帳戶名。又例如(例3),小紅通過瀏覽器瀏覽網頁,並通過該網頁觀看視頻。此時,第一待顯示資料集包括該視頻、該視頻的資訊(包括該視頻的名稱)、觀看該視頻的帳戶資訊(包括帳戶頭像和帳戶名)。 In the embodiment of the present invention, the first data set to be displayed is data that can be displayed on a page. For example, in Example 2, the first data set package to be displayed Including the information in the address range that can be selected, the information of the products Xiao Ming purchased, and the name of Xiao Ming's shopping account. In another example (Example 3), Xiaohong browses a web page through a browser, and watches a video through the web page. At this time, the first data set to be displayed includes the video, the information of the video (including the name of the video), and the account information (including account avatar and account name) for viewing the video.

在一種獲取第一待顯示資料集的實現方式中,資料處理裝置接收使用者通過輸入組件輸入的第一待顯示資料集。上述輸入組件包括:鍵盤、滑鼠、觸控螢幕、觸控板和音頻輸入器等。 In an implementation manner of acquiring the first data set to be displayed, the data processing apparatus receives the first data set to be displayed input by the user through the input component. The above input components include: keyboard, mouse, touch screen, touch pad and audio input.

在另一種獲取第一待顯示資料集的實現方式中,資料處理裝置接收第一終端發送的第一待顯示資料集。在一種可行的即時方式中,第一終端可以是以下任意一種:手機、電腦、平板電腦、伺服器、可穿戴設備。 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 manner, the first terminal may be any one 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. In the case of receiving the data set that can be displayed on the page sent by the server, the data processing device will take the data set as the first data set to be displayed.

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, it is necessary to reduce the quantity of data to be monitored. Different from the traditional approach to the first treatment Each piece of data in the display data set is monitored, and in the embodiment of the present invention, only part of the data in the first to-be-displayed data set is monitored, thereby reducing the quantity of data to be monitored.

在一種可能實現的方式中,從第一待顯示資料集中確定待監聽資料集,其中,待監聽資料集包含的資料的數量少於第一待顯示資料集包含的資料的數量。例如,第一待顯示資料集包括資料a、資料b、資料c,從第一待顯示資料集中確定的待監聽資料集包括資料a和資料b。 In a possible implementation manner, the to-be-monitored data set is determined from the first to-be-displayed data set, wherein the quantity of the data contained in the to-be-monitored data set is less than the quantity of the data contained in the first to-be-displayed data set. 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 a monitoring result.

資料處理裝置通過對待監聽資料集進行監聽,可確定待監聽資料集是否更新,進而實現頁面的即時顯示。 By monitoring the data set to be monitored, the data processing device can determine whether the data set to be monitored is updated, thereby realizing the real-time display of the page.

本發明實施例中,監聽結果包括已更新和未更新。監聽結果為已更新,表徵當前狀態下的待監聽資料集與下一個狀態下的待監聽資料集不同,即待監聽資料集中所需顯示的資料已更新。監聽結果為未更新,表徵當前狀態下的待監聽資料集與下一個狀態下的待監聽資料集相同,即待監聽資料集中所需顯示的資料未更新。 In this embodiment of the present invention, the monitoring result includes updated and unupdated. The monitoring result is updated, indicating 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, indicating 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 to be displayed in the data set to be monitored has not been updated.

上述當前狀態指頁面的當前顯示狀態,上述下一個狀態指當前顯示狀態的下一個顯示狀態。例如,在頁面的當前顯示狀態下,資料處理裝置可通過頁面顯示的內容包括視頻流1和視頻流2,其中,視頻流1為通過A地的攝影頭採集得到的視頻流,視頻流2為通過B地的攝影頭採集得到的視頻流。那麼在當前狀態下,第一待顯示資料集包括視頻流1和視頻流2,待監聽資料集包括第一待顯示 資料集中的部分資料。警方在抓捕犯罪嫌疑人的過程中,依據目擊證人提供的資訊,將犯罪嫌疑人鎖定在B地,並向資料處理裝置輸入查看B地的攝影頭採集得到的視頻流的指令(如通過滑鼠選擇查看B地的攝影頭採集得到的視頻流)。資料處理裝置在接收到該指令的情況下,確定在頁面的下一個顯示狀態下,可通過頁面顯示的內容包括視頻流2,那麼在下一個狀態下,第一待顯示資料集包括視頻流2,待監聽資料集包括視頻流2中的部分資料。 The above-mentioned current state refers to the current display state of the page, and the above-mentioned 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 the video stream collected by the camera in place A, and video stream 2 is The video stream collected by the camera at B site. 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 the first data set to be displayed part of the dataset. In the process of arresting the criminal suspect, the police lock the criminal suspect in place B based on the information provided by the witnesses, and input the instruction to view the video stream collected by the camera in place B into the data processing device (for example, by sliding The mouse chooses to view the video stream captured by the camera in B). In the case of 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),第一待顯示資料集包括可選擇位址範圍內的資料、小明所購買的商品的資訊、小明的購物帳戶名,假設待監聽資料集包括可選擇位址範圍內的資料。當前狀態下的待監聽資料集包括:中國所有省份,下一個狀態下的待監聽資料集包括:湖南省所有城市。由於當前狀態下的待監聽資料集與下一個狀態下的待監聽資料集不同,待監聽資料集的監聽結果為已更新。 Continuing with example 2 (Example 4), the first data set to be displayed includes data within the range of selectable addresses, information about the products Xiao Ming purchased, and Xiao Ming's shopping account name, assuming that the data set to be monitored includes selectable addresses data in the range. The data sets to be monitored in the current state include: all provinces in China, and the data sets to be monitored in the next state include: 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. Display the first data set to be displayed according to the monitoring result.

監聽結果為未更新,表徵待監聽資料集中所需顯示的內容沒有改變,因此,頁面在下一個狀態下的顯示內容與頁面在當前狀態下的顯示內容相同。在一種可行的實施方式中,在監聽結果為未更新的情況下,資料處理裝置不需對任何資料進行渲染,即顯示當前狀態下第一待顯示資料集中所需顯示的資料。 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 displayed content of the page in the next state is the same as the displayed content of the page in the current state. In a feasible implementation manner, when the monitoring result is not updated, the data processing apparatus does not need to render any data, that is, displays the data to be displayed in the first 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 displayed content of the page in the current state It 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 displayed content of the page in the current state includes all provinces in China, information about the products Xiao Ming purchased, and Xiao Ming's shopping account name. The displayed content of the page in the next state includes all cities in Hunan Province, the information of the products Xiaoming purchased, and the name of Xiaoming's shopping account. The data processing device does not render all provinces in China, but renders all cities in Hunan Province, so that the page can be displayed in the next state.

本發明實施例通過對第一待顯示資料集中的待監聽資料集進行監聽,減少所需監聽的資料的數量,進而降低監聽第一待顯示資料集所消耗的硬體資源,從而提高資料處理裝置顯示第一待顯示資料集的速度。 In the embodiment of the present invention, by monitoring the to-be-monitored data set in the first to-be-displayed data set, the quantity of data to be monitored is reduced, thereby reducing the hardware resources consumed by monitoring the first to-be-displayed data set, thereby improving the data processing device Displays the speed of the first dataset 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 invention; 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, and 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 In response to the received first to-be-displayed data set, determine a to-be-monitored data set from the first to-be-displayed data set; the quantity of data contained in the to-be-monitored data set is less than the quantity of data contained in the first to-be-displayed data set; Monitor the data set and get the monitor result. Finally, the data processing terminal 203 uploads the monitoring result to the network 202 and sends it to the acquisition terminal 201 through the network 202 .

通過步驟102的處理,可達到減少所需監聽的資料的數量的效果,但由於第一待顯示資料集中的部分資料未被監聽,在這部分未被監聽的資料已更新的情況下,無法通過頁面顯示這部分未被監聽的資料的更新。接著例4繼續舉例(例5),假設在當前狀態下小明所購買的商品為A和B,小明突然想起來家裡已有B,將B從已購買的商品中移除,此時,即在下一個狀態下小明所購買的商品為A,即小明所購買的商品的資訊已更新。在小明所購買的商品的資訊不屬於待監聽資料集的情況下,資料處理裝置無法通過對待監聽資料集的監聽,確定小明所購買的商品的資訊已更新,進而無法在下一個狀態的頁面中顯示小明所購買的商品的資訊的更新。 Through the processing of step 102, the effect of reducing the number of data to be monitored can be achieved, but since some data in the first to-be-displayed data set have not been monitored, if this part of the data that has not been monitored has been updated, it cannot pass the The page displays the update of this part of the unmonitored data. Continue with Example 4 (Example 5), assuming that the commodities Xiaoming purchased are A and B in the current state, Xiaoming suddenly remembers that B already exists at home, and removes B from the purchased commodities. At this time, the next In one state, the product purchased by Xiao Ming is A, that is, the information of the product purchased by Xiao Ming has been updated. In the case that the information of the commodity 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 commodity purchased by Xiao Ming has been updated by monitoring the data set to be monitored, and thus cannot be displayed on the next state page. An update of the information of the products Xiao Ming purchased.

為表述方便,下文將資料處理裝置監聽到的已更新的資料的數量與第一待顯示資料集中已更新的資料的數量的比值稱為監聽準確度。例如,當前狀態下的第一待顯示資料集包括資料a、資料b、資料c、資料d,待監聽資料集包括資料a、資料b。下一個狀態下的第一待顯示資料集包括資料e、資料b、資料c、資料f,其中,資料e為資料a更新後得到的資料,資料f為資料d更新後得到的資料。在第一待顯示資料集由當前狀態更新為下一個狀態的過程中,資料處理裝置監聽到的已更新資料為資料a,第一待顯示資料集中已更新的資料包括資料a和資料d,因此,監聽準確度為:1/2=50%。 For convenience of expression, the ratio of the number of updated data monitored by the data processing device to the number of updated data in the first to-be-displayed data set is referred to as monitoring accuracy hereinafter. 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, wherein data e is data obtained after data a is updated, and data f is data obtained after data d is updated. During 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 include data a and data d, so , the monitoring accuracy is: 1/2=50%.

作為一種可選的實施方式,步驟102具體包括以 下步驟。 As an optional implementation manner, step 102 specifically includes: next step.

從第一待顯示資料集中選取至少一個動態資料,得到待監聽資料集。 At least one dynamic data set is selected from the first data set to be displayed to obtain a data set to be monitored.

本發明實施例中,動態資料指在頁面顯示的過程中可隨時間變化而改變的資料,例如,在例3中,視頻中任意兩個播放畫面均不同,即視頻的播放內容隨時間的變化而改變,視頻資料為動態資料。在例5中,小明所購買的商品的資訊和可選擇的位址範圍均為動態資料。第一待顯示資料集中除了動態資料之外,還包括靜態資料,動態資料指在頁面顯示的過程中不隨時間變化而改變的資料,例如,在例3中,視頻的名稱和觀看視頻的帳戶資訊均為靜態資料。在例5中,小明的購物帳戶名為靜態資料。 In this embodiment of the present invention, dynamic data refers to data that can change with time during the page display process. For example, in Example 3, any two playback images in the video are different, that is, the playback content of the video changes with time. Instead, the video data is dynamic data. In Example 5, the information of the product Xiaoming purchased 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 that watches the video Information is 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 updating is relatively large, and the probability of static data updating is relatively small. Therefore, monitoring the dynamic data in the first data set to be displayed can improve the monitoring accuracy while reducing the quantity of the data 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 set from the first data set to be displayed to obtain a data set to be monitored. For example, the first data set to be displayed includes data a, data b, and data c, wherein data a and data b are dynamic data, and data c is static data. The data processing device may 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 the data a, the obtained data set to be monitored includes the data a. When the data processing device selects the data b, the obtained data set to be monitored includes the data b. Select data a in the data processing device and data b, the obtained data set to be monitored includes data a and data b.

在得到待監聽資料集後,通過監聽待監聽資料集中的每個資料,可確定當前狀態下的待監聽資料集與下一個狀態下的待監聽資料集是否相同,進而確定監聽結果為未更新還是已更新。 After obtaining the data set to be monitored, 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 it can be determined whether the monitoring result is not updated or not. updated.

本發明實施例提供了一種方法,以進一步降低監聽待監聽資料集所耗費的硬體資源。作為一種可選的實施方式,步驟103具體包括以下步驟。 The embodiment of the present invention provides a method to further reduce the hardware resources consumed by 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 this embodiment of the present invention, the selected state of the to-be-monitored data set represents the selected state of the data in the to-be-monitored data set. In a feasible implementation manner, the selected state includes all-selected and empty-selected.

在待監聽資料集的被選狀態為全選的情況下,表徵待監聽資料集中的所有資料均被選中。在待監聽資料集的被選狀態為半選的情況下,表徵待監聽資料集中的部分資料被選中。 When the selected state of the data set to be monitored is all selected, it means that all the data in the data set to be monitored are selected. In the case that the selected state of the data set to be monitored is semi-selected, it indicates that part of the data in the data set to be monitored is selected.

例如,假設待監聽資料集包括資料a、資料b。在資料a和資料b均被選中的情況下,待監聽資料集的被選狀態為全選。 For example, it is assumed that 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均未被 選中的情況下,待監聽資料集的被選狀態為空選。 In the case where the selected state of the data set to be monitored is empty, it means that some data in the data set to be monitored are not selected. For example, it is assumed that the data set to be monitored includes data a and data b. In both data a and data b are not When selected, the selected state of the data set to be monitored is empty.

在一種可行的即時方式中,被選狀態還包括半選。在資料a被選中或資料b被選中的情況下,待監聽資料集的被選狀態為半選。 In a feasible real-time manner, the selected state also includes semi-selection. When the data a is selected or the data b is selected, the selected state of the data set to be monitored is semi-selected.

顯然,未被選中的資料不需要通過頁面顯示,而被選中的資料可能需要通過頁面顯示。因此,可通過確定待監聽資料集中被選中的資料是否更新,確定待監聽資料集中的資料是否更新。 Obviously, the unselected materials do not need to be displayed through the page, and the selected materials may need to be displayed through 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 expression, 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.

在第一被選狀態和第二被選狀態相同的情況下,當前狀態下的待監聽資料集中被選中的資料與下一個狀態下的待監聽資料集中被選中的資料相同,進而可確定監聽結果為未更新。 When 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 then it can be determined that The monitoring result 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 and the selected data in the data set to be monitored in the next state The same, 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, both the first selected state and the second selected state are empty In this case, 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 monitoring dataset is the same.

在第一被選狀態和第二被選狀態不同的情況下,當前狀態下的待監聽資料集中被選中的資料與下一個狀態下的待監聽資料集中被選中的資料不同,進而可確定監聽結果為已更新。 In the case where 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, so it can be determined that The monitoring result is updated.

例如,假設第一被選狀態為全選,第二被選狀態為空選,此時,當前狀態下的待監聽資料集中被選中的資料與下一個狀態下的待監聽資料集中被選中的資料不同,即當前狀態下的待監聽資料集與下一個狀態下的待監聽資料集不同。 For example, assuming that the first selected state is all selected and the second selected state is empty, at this time, the selected data in the data set to be monitored in the current state and 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.

再例如,假設第一被選狀態為空選,第二被選狀態為全選,此時,當前狀態下的待監聽資料集中被選中的資料與下一個狀態下的待監聽資料集中被選中的資料不同,即當前狀態下的待監聽資料集與下一個狀態下的待監聽資料集不同。 For another example, suppose that the first selected state is empty and the second selected state is all selected. At this time, the selected data in the data set to be monitored in the current state and the data set to be monitored in the next state are selected. The data in are 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 semi-selected, the selected data in the data set to be monitored in the current state and the selected data in the data set to be monitored in the next state may be Same, maybe different. In order to improve the monitoring accuracy, as an optional implementation manner, when the first selected state and the second selected state are both semi-selected, it is determined that the monitoring result has been updated.

在確定待監聽資料集的監聽結果後,步驟104具體包括以下兩個步驟。 After determining the monitoring result of the data set to be monitored, step 104 specifically includes the following two steps.

2、在監聽結果為未更新的情況下,顯示當前狀態下第一待顯示資料集中所需顯示的資料。 2. If the monitoring result is not updated, display the data 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 to be displayed in the first to-be-displayed data set is not updated. Therefore, in the page in the next state, the content displayed on the page in the current state is still displayed, that is, the monitoring result is not updated. In the case of , display the data to be displayed in the first to-be-displayed data set in the current state.

3、在監聽結果為已更新的情況下,計算第一資料集與第二資料集之間的差異,得到第二待顯示資料集。 3. In the case that the monitoring result is updated, calculate the difference between the first data set and the second data set to obtain a second data set to be displayed.

本發明實施例中,第一資料集包括當前狀態下的待監聽資料集,第二資料集包括下一個狀態下的待監聽資料集。例如(例6),當前狀態下的待監聽資料集包括資料a、資料b,下一個狀態下的待監聽資料集包括資料c、資料b,其中,資料c為資料a更新得到的資料,此時,第一資料集包括資料a和資料b,第二資料集包括資料b和資料c。 In this embodiment of the present invention, the first data set includes a data set to be monitored in a current state, and the second data set includes a data set to be monitored in a next state. For example (Example 6), the data set to be monitored in the current state includes data a and data b, and the data set to be monitored in the next state includes data c and data b. , 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, so as 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 to-be-monitored data set can be determined to obtain the second to-be-displayed data set.

接著例6繼續舉例(例7),通過計算第一資料集與第二資料集之間的差異,可確定待監聽資料集中資料更新的內容為:資料a更新為資料c,進而可確定頁面在下一個狀態下所需顯示的內容為資料b和資料c。由於當前狀態下的頁面的顯示內容包括資料b,第二待顯示資料集包括:資料b和資料c,其中,資料c在頁面中的顯示位置與資料a在頁面中的顯示位置相同。 Continuing with 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 in the next The content that needs to be displayed in a state is data b and data c. Since the display content of the page in the current state includes data b, the second data set to be displayed includes data b and data c, wherein the display position of 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: adding data b, and then it can be determined that the content to be displayed on the page 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, so as to update the display content of the page.

接著例7繼續舉例,假設在當前狀態下的頁面中,資料a的顯示位置為p1,資料b的顯示位置為p2。顯示第二待顯示資料集的過程可包括:停止對資料a的渲染,並對資料c進行渲染得到下一個狀態下的頁面,使得在下一個狀態下的頁面中,p1處顯示的內容為資料c,p2處顯示的內容為資料b。 Continuing with example 7, it is assumed that in the page in the current state, 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 to-be-displayed data set may include: stopping the rendering of the data a, and rendering the data c to obtain a page in the next state, so that in the page in the next state, the content displayed at p 1 is the data c, the content displayed at p 2 is data b.

本發明實施例中,通過對待監聽資料集的被選狀態進行監聽,確定監聽結果,可減小監聽待監聽資料集所需 的監聽量,進而可降低監聽待監聽資料集所耗費的硬體資源。 In the embodiment of the present invention, by monitoring the selected state of the data set to be monitored to determine the monitoring result, the need for monitoring the data set to be monitored can be reduced. It can reduce the hardware resources consumed by monitoring the data set to be monitored.

由於在監聽結果為已更新的情況下,第一待監聽資料集中可能存在未更新資料。若在計算第一資料集與第二資料集之間的差異的過程中,計算未更新資料的變化,將導致硬體資源的浪費。 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 result in 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), assuming that the first data set includes data a, data b, and data c, wherein 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. Among them, data d is the data obtained by updating data b, and data a and data d are both selected. At this time, the second selected state is semi-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, Computing the difference between the data a in the current state and the data a in the next state will waste hardware resources.

基於此,本發明實施例提供了一種方法,以減少計算第一資料集和第二資料集之間的差異所耗費的硬體資源。作為一種可選的實施方式,步驟3具體包括以下步驟。 Based on this, an embodiment of the present invention provides a method to reduce hardware resources consumed for calculating the difference between the first data set and the second data set. As an optional implementation manner, step 3 specifically includes the following steps.

5、在第三被選狀態和第四被選狀態均為空選的情況下,計算第三資料集與第四資料集之間的差異,得到第二待顯示資料集。 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 to-be-displayed data set.

在一種可行的實施方式中,第一待顯示資料集以樹形資料結構儲存於資料處理裝置。將待監聽資料集的節點 稱為第二節點,第二節點的子節點包括第一節點。上述第三被選狀態為第一節點在當前狀態下的被選狀態,上述第四被選狀態為第一節點在下一個狀態下的被選狀態。 In a feasible implementation manner, the first data set to be displayed is stored in the data processing device in a tree-shaped data structure. The node that will be listening to the dataset Referred to as the second node, 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 other than the data in the first node is called the third data set, and the data in the second data set other than 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 other than 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, where data e is the updated data of data a, data f is the updated data of data d, and 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 other than the data in the first node are data c and data f, that is, the fourth data set includes data c and data f.

第三被選狀態和第四被選狀態均為空選,表徵當前狀態下的第一節點中的資料和下一個狀態下的第一節點中的資料均未被選中。由於未被選中的資料不需要進行顯示,無需計算第一節點中的資料的變化。因此,在第三被選狀態和第四被選狀態均為空選的情況下,通過計算第三資料集與第四資料集之間的差異,可得到第二待顯示資料集。 Both the third selected state and the fourth selected state are empty selections, indicating that neither the data in the first node in the current state nor the data in the first node in the next state are selected. Since the unselected data do 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, the difference between the third data set and the fourth data set is calculated to obtain the second to-be-displayed 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 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, when 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 computation required to calculate the difference between the first data set and the second data set can be reduced, thereby reducing the hardware cost of calculating the difference between the first data set and the second data set resource.

接著例9繼續舉例(例10),在第一節點包括資料a的情況下,第三被選狀態和第四被選狀態均為全選。第三資料集包括資料b、資料c,第四資料集包括資料c、資料d。由於第三被選狀態和第四被選狀態均為全選,在計算第一資料集和第二資料集之間的差異的過程中,只需計算第三資料集和第四資料集之間的差異,而不用耗費硬體資源用以計算當前狀態下的資料a和下一個狀態下的資料a之間的差異。 Continuing with Example 9 (Example 10), in the case that 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 both 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, it is only necessary 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, in the case that the data processing device determines that the data in the second node has been updated (that is, the monitoring result is updated), the data processing device recursively downwards way to determine whether there is an unupdated node in the child nodes of the second node. An unupdated node is a node whose selected state in the current state is the same as that in the next state, and the selected state in the current state is not half-selected. 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 material in the unupdated node in the current state and the material 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 for calculating the difference between the first data set and the second data set be reduced in the process of recursive downward, but also can be used in the recursive upward process. In the process, the hardware resources consumed for calculating the difference between the first data set and the second data set are reduced.

例如,假設第二節點的子節點包括第一節點和第三節點,第一節點的子節點包括第四節點和第五節點。將第四節點在當前狀態下的被選狀態稱為第五被選狀態,將第四節點在下一個狀態下的被選狀態稱為第六被選狀態,將第五節點在當前狀態下的被選狀態稱為第七被選狀態,將第五節點在下一個狀態下的被選狀態稱為第八被選狀態,將第三節點在當前狀態下的被選狀態稱為第九被選狀態,將第三節點在下一個狀態下的被選狀態稱為第十被選狀態。 For example, it is assumed 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 is called the sixth selected 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 referred to as the tenth selected state.

在資料處理裝置監聽到第四節點的被選狀態由半選更新為空選(即第五被選狀態為半選、第六被選狀態為 空選)、第五節點和第三節點均為未更新節點的情況下,由於第五節點為未更新節點,在計算當前狀態下的第一節點中的資料與下一個狀態下的第一節點中的資料之間的差異的過程中,只需計算當前狀態下的第四節點中的資料與下一個狀態下的第四節點中的資料之間的差異。 The data processing device monitors that the selected state of the fourth node is updated from semi-selected to empty (that is, the fifth selected state is semi-selected, and the sixth selected state is If the fifth node and the third node are all unupdated nodes, since the fifth node is an unupdated node, the data in the first node in the current state and the first node in the next state are calculated. In the process of the difference between the data in the current state, it is only necessary to calculate the difference between the data in the fourth node in the current state and the data in the fourth node in the next state.

此外,由於作為第一節點的兄弟節點,第三節點也為未更新節點,在計算當前狀態下的第二節點中的資料與下一個狀態下的第二節點中的資料之間的差異的過程中,只需計算當前狀態下的第一節點中的資料與下一個狀態下的第一節點中的資料之間的差異。 In addition, since the third node is also an unupdated node as a sibling node of the first node, in the process of calculating the difference between the data in the second node in the current state and the data in the second node in the next state , 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.

也就是說,在第三節點、第五節點均為未更新節點,且第四節點為更新節點(即第五被選狀態與第六被選狀態不同)的情況下,在計算當前狀態下的第二節點中的資料與下一個狀態下的第二節點中的資料之間的差異的過程中,資料處理裝置只需計算當前狀態下的第四節點中的資料與下一個狀態下的第四節點中的資料之間的差異。在計算完當前狀態下的第四節點中的資料與下一個狀態下的第四節點中的資料之間的差異後,資料處理裝置無需進行向上遞迴處理,從而可減少資料處理量。 That is to say, 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), when calculating the current state During 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 data in the fourth node in the current state and the fourth node in the next state. Differences between data in nodes. 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 apparatus does not need to perform upward recursion processing, thereby reducing the amount of data processing.

由於頁面的顯示面積有限,在所需顯示的資料的數量大的情況下,可將部分所需顯示的資料隱藏(下文將隱藏的所需顯示的資料稱為隱藏資料)。在接收到顯示隱藏資料的指令情況下,顯示隱藏資料。在未接到顯示隱藏資料的指令的情況下,不顯示隱藏資料。 Since the display area of the page is limited, if the amount of data to be displayed is large, part of the data to be displayed can be hidden (hereinafter the data to be displayed that is hidden is referred to as hidden data). Display hidden data when receiving an instruction to display hidden data. Hidden data will not be displayed unless an instruction to display hidden data has been received.

為減少計算第三資料集和第四資料集之間的差異所需的計算量,在未接到顯示隱藏資料的指令的情況下,可不計算當前狀態下的隱藏資料與下一個狀態下的隱藏資料之間的差異。 In order to reduce the amount of computation required to calculate the difference between the third data set and the fourth data set, the hidden data in the current state and the hidden data in the next state may not be calculated if no instruction to display the hidden data is received. differences 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 to-be-displayed data set specifically includes the following steps.

7、獲取第三節點的顯示狀態。 7. Obtain the display status of the third node.

本發明實施例中,第三節點為第一節點的兄弟節點,即第三節點中的資料屬於待監聽資料集,且第一節點中的資料與第三節點中的資料之間不存在交集。 In the embodiment of the present invention, 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 states include display and folding. When the display state of the node is display, the data to be displayed in the node is displayed on the page. When the display state of the node is folded, the data to be displayed in the node is not displayed, and at this time, the data 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 to-be-displayed data set.

本發明實施例中,第五資料集包括第三資料集中除第三節點中的資料之外的資料,第六資料集包括第四資料集中除第三節點中的資料之外的資料。例如,第三資料集包括資料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 invention, the fifth data set includes data in the third data set other than the data in the third node, and the sixth data set includes data in the fourth data set except the data in the third node. For example, the third data set includes data a, data b, data c, and data d, and the data in the third node in the current state includes data a and data b. The data in the fifth data set other than the data in the third node are data c and data d, 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, wherein, data e is the updated data of data a, and data f is the updated data of data d. The data in the third node in the next state includes data e and data b, and the data in the fourth data set other than the data in the third node 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, indicating 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 calculation of the difference between the third data set and the fourth data set can be completed to obtain the second to-be-displayed data set. In this way, the amount of computation required to calculate the difference between the third dataset and the fourth dataset can be reduced.

在一種可行的實施方式中,資料處理裝置在接收到顯示狀態顯示第三節點的指令的情況下,計算當前狀態下的第三節點中的資料與下一個狀態下的第三節點中的資料之間的差異,得到第二待顯示資料集。 In a feasible implementation manner, the data processing apparatus calculates the difference between the data in the third node in the current state and the data in the third node in the next state when receiving an instruction to display the third node in the display state The difference between the two is obtained to obtain the second data set to be displayed.

接著例1繼續舉例,在小明從中國所有省份中選擇湖南省的情況下,湖南省所有城市均被選中,每個城市所有區也均被選中。假設長沙市包括芙蓉區、岳麓區、天心區、開福區、雨花區、望城區,在小明從中國所有省份中選擇湖南省的情況下,在下一個狀態下,頁面只需顯示湖南省所有城市,無需顯示長沙市所有區。此時,長沙市所有區的資料為隱藏資料。在小明通過從湖南省所有城市中選中長沙市,向資料處理裝置輸入顯示隱藏資料的指令的情況下,資料處理裝置計算當前狀態下的長沙市的資料 與下一個狀態下長沙市的資料之間的差異,得到第二待顯示資料集。 Continuing with Example 1, in the case where Xiaoming selects Hunan Province from all provinces in China, all cities in Hunan Province are selected, and all districts in each city are also selected. Assuming that Changsha City includes Furong District, Yuelu District, Tianxin District, Kaifu District, Yuhua District, and Wangcheng District, in the case that Xiaoming selects Hunan Province from all provinces in China, in the next state, the page only needs to display all the provinces in Hunan Province. City, no need to display all districts in Changsha. At this time, the data of all districts in Changsha City are hidden data. In the case where Xiao Ming selects Changsha from all the cities in Hunan Province and inputs an instruction to display hidden data to the data processing device, the data processing device calculates the data of Changsha in the current state The difference between the data in Changsha City and the next state is obtained to obtain the second data set to be displayed.

基於本發明提供的技術方案,本發明實施例還提供了一些可能的應用場景。 Based on the technical solutions provided by the present invention, the embodiments of the present invention also provide some possible application scenarios.

場景1:在安防領域,如何有效的通過視頻流確定人物的行蹤或車輛的行蹤,具有重要意義。隨著電腦視覺技術的發展和公共場所內攝影頭數量的快速增長,使用電腦視覺技術對攝影頭採集到的視頻進行處理,可確定包含人物的圖像和/或包含車輛的圖像,進而可依據包含人物的圖像和/或包含車輛的圖像,確定人物的軌跡和/或車輛的軌跡。 Scenario 1: In the field of security, 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, using computer vision technology to process the video captured by the camera can determine the image containing people and/or the image containing vehicles, and then can The trajectory of the person and/or the trajectory of the vehicle is determined based on the image containing the person and/or the image containing 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 the data processing device (eg, a server) includes a video stream captured by a camera in Shenzhen and a video stream captured by a camera in Guangzhou. Based on the suspect's information, the police locked the suspect in Shenzhen, and entered an instruction to the data processing device to view the video stream captured by the camera in Shenzhen. In the case of 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. Acquire 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. exist 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 of acquiring at least one second video stream, there is a communication connection between the data processing device and at least one surveillance camera. The data processing device acquires at least one second video stream collected by at least one surveillance camera through the communication connection. Continuing with example 11 (Example 12), the at least one second video stream includes a video stream captured by a camera in Shenzhen and a video stream captured by a camera in Guangzhou.

10、在接收到從至少一個第二視頻流中選取至少一個視頻流的指令的情況下,從至少一個第二視頻流中選取第一視頻流。 10. Select the first video stream from the 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.

本發明實施例中,從上述至少一個第二視頻流中選取至少一個視頻流的指令,可以是使用者可以通過輸入組件,將從上述至少一個第二視頻流中選取至少一個視頻流的指令輸入至資料處理裝置。上述輸入組件包括:鍵盤、滑鼠、觸控螢幕、觸控板和音頻輸入器等。 In this embodiment of the present invention, the instruction to select at least one video stream from the at least one second video stream may be an instruction input that the user can use to select at least one video stream from the at least one second video stream through an input component. to the data processing device. The above input components include: keyboard, mouse, touch screen, touch pad and audio input.

資料處理裝置在接收到從上述至少一個第二視頻流中選取至少一個視頻流的指令的情況下,從上述至少一個第二視頻流中選取第一視頻流。接著例12繼續舉例,從上述至少一個第二視頻流中選取至少一個視頻流的指令,即為從通過深圳的攝影頭採集的視頻流和通過廣州的攝影頭採集的視頻流中選取通過深圳的攝影頭採集的視頻流。資料處理裝置在接收到該指令的情況下,從通過深圳的攝影頭採集的視頻流和通過廣州的攝影頭採集的視 頻流中,選取通過深圳的攝影頭採集的視頻流作為第一視頻流。 The data processing apparatus selects the first video stream from the at least one second video stream when receiving an instruction to select at least one video stream from the at least one second video stream. Continuing with the example in Example 12, the instruction to select at least one video stream from the above-mentioned at least one second video stream is to select the video stream captured by the camera in Shenzhen and the video stream captured by the camera in Guangzhou from the video stream captured by the camera in Shenzhen. The video stream captured by the camera. In the case of receiving this instruction, the data processing device will select the video stream collected by the camera in Shenzhen and the video stream collected by the camera in Guangzhou. In the frequency stream, the video stream collected by the camera in Shenzhen is selected 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-mentioned at least one second video stream is to select video stream 1 and video stream 2 from video stream 1, video stream 2, and video stream 3. When the data processing device receives the instruction, it selects the video stream 1 and the video stream 2 from the video stream 1, the video stream 2, and the 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 amount of data in the first video stream is 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 invention, thereby reducing the amount of data processing.

在一種可行的實施方式中,在資料處理裝置顯示第一視頻流的情況下,使用者可從第一視頻流中確定包含人物的圖像和/或包含車輛的圖像。例如,向資料處理裝置輸入人物的屬性,以使資料處理裝置使用該屬性從第一視頻流中檢索包含人物屬性與該屬性匹配的人物的圖像。 In a possible embodiment, when the data processing device displays the first video stream, the user can determine from the first video stream an image containing a person and/or an image containing a vehicle. For example, an attribute of a person is input to the data processing apparatus to cause the data processing apparatus to use the attribute to retrieve images from the first video stream containing persons whose attributes match the attribute.

在從第一視頻流中確定包含人物的圖像和/或包含車輛的圖像後,可依據圖像(此處指包含人物的圖像和/或包含車輛的圖像)的採集時間和採集位置,確定人物的軌跡和/或車輛的軌跡。 After it is determined from the first video stream that the image containing the person and/or the image containing the vehicle, the acquisition time and the acquisition time of the image (here refers to the image containing the person and/or the image containing the vehicle) can be determined according to the Location, to determine the trajectory of the character and/or the trajectory of the vehicle.

場景2:資料處理裝置基於本發明提供的技術方案 對人物的軌跡和/或車輛的軌跡進行展示,可減少資料處理量、提高資料處理速度。 Scenario 2: The data processing device is based on the technical solution provided by the present invention Displaying the trajectories of characters and/or vehicles can reduce the amount of data processing and improve the speed of data processing.

例如(例13),A地發生搶劫案,據現場目擊證人提供的資訊,犯罪嫌疑人身著黑色上衣、黑色褲子、白色鞋子,且該嫌疑人戴口罩,留一頭黑色短髮。警方在獲知犯罪嫌疑人的屬性(即黑色上衣、黑色褲子、白色鞋子、戴口罩、黑色短髮)後,可使用犯罪嫌疑人的屬性檢索A地的圖像庫(該圖像庫中的圖像通過A地的攝影頭採集得到),得到具有與犯罪嫌疑人的屬性匹配的人物屬性的圖像,作為靶心圖表像。在警方確定靶心圖表像中的人物為犯罪嫌疑人的情況下,可依據靶心圖表像的採集時間和靶心圖表像的採集地點,確定犯罪嫌疑人的軌跡資料。 For example (Example 13), a robbery occurred in place A. According to the information provided by witnesses at the scene, the suspect was wearing a black shirt, black pants, and white shoes. The suspect wore a mask and had short black hair. After the police know the attributes of the criminal suspect (i.e. black shirt, black pants, white shoes, wearing a mask, short black hair), they can use the attributes of the criminal suspect to retrieve the image library of place A (the images in the image library). It is collected by the camera in place A), and an image with character attributes matching the attributes of the criminal suspect is obtained as a bullseye image. When the police determine that the character in the bullseye image is a criminal suspect, the track data of the criminal suspect can be determined according to the collection time of the bullseye image and the collection location of the bullseye 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'。犯罪嫌疑人的軌跡資料包括:犯罪嫌疑人的行蹤、靶心圖表 像。 Suppose the bullseye 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 . Image a is collected at 114° east longitude and 22° 3 ' north latitude, image b is collected at 114° 10 ' east longitude and 22° 5 ' north latitude, and image c is collected at 114° 10 ' east longitude and north latitude 22°6 ' . According to the collection time and location of the bullseye image, the whereabouts of the criminal suspect can be determined: at 114° east longitude and 22° 3 ' north latitude at 16:45 on May 19, 2020, at 16:45 on May 19, 2020 55 appeared at 114°10 ' , 22° 5'N , and at 114°10 ' , 22° 6'N on May 19, 2020 at 18:45. The track information of the criminal suspect includes: the whereabouts of the criminal suspect and the bullseye image.

在一種可行的實施方式中,使用者可查看犯罪嫌疑人的軌跡資料中的至少一個資料。例如,在例11中,警方可向資料處理裝置輸入查看圖像a的指令。資料處理裝置在接收到查看圖像a的指令的情況下,顯示圖像a、圖像a的採集時間、圖像a的採集地點。此時,第一待顯示資料集包括犯罪嫌疑人的軌跡資料,第二待顯示資料集包括:圖像a、圖像a的採集時間、圖像a的採集地點。 In a feasible implementation, the user can view at least one of the track data of the criminal suspect. For example, in Example 11, the police may input an instruction to view image a to the data processing device. The data processing device displays the image a, the acquisition time of the image a, and the acquisition location of the image a when the instruction to view the image a is received. At this time, the first data set to be displayed includes the trajectory data of the criminal suspect, and the second data set to be displayed 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 an instruction to view the image a and the image b to the data processing device. When the data processing device receives an instruction to view the image a and the image b, it displays the image a, the collection time of the image a, the collection location of the image a, the image b, the collection time of the image b, Acquisition site of 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 track data of the criminal suspect. The second data set to be displayed includes: image a, acquisition time of image a, acquisition location of image a, image b, acquisition time of image b, and acquisition location of image b.

在一種可行的實施方式中,為使使用者對犯罪嫌疑人的軌跡資料有一個更直觀的印象,可在地圖上顯示犯罪嫌疑人的軌跡資料。此時,第一待顯示資料集包括:地圖資料、犯罪嫌疑人的軌跡資料。 In a feasible implementation manner, in order for the user to have a more intuitive impression of the criminal suspect's track data, the criminal suspect's track data may be displayed on the map. At this time, the first data set to be displayed includes: map data and track 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 place A. The police want to know the track of the criminal suspect in area B of place A, and input the instruction to check the track of the criminal suspect in area B into the data processing device. make. It is assumed that the acquisition site of image a and the acquisition site of image b are located in area B. When the data processing device receives an instruction to check the trajectory of the criminal suspect in the area B, it displays the map data of the area B, the image a, the collection time of the image a, the collection location of the image a, and the image b. , the acquisition time of image b, and the acquisition location of image b. At this time, the first data set to be displayed includes: trajectory data of the criminal suspect and map data of place A. The data set to be monitored includes: dynamic data in the criminal suspect's trajectory data, and dynamic data in the map data of place A. The second data set to be displayed includes: map data of area B, image a, collection time of image a, collection location of image a, image b, collection time of image b, and collection location of image b.

本領域技術人員可以理解,在具體實施方式的上述方法中,各步驟的撰寫順序並不意味著嚴格的執行順序而對實施過程構成任何限定,各步驟的具體執行順序應當以其功能和可能的內在邏輯確定。 Those skilled in the art can understand that in the above method of the specific implementation, the writing order of each step does not mean a strict execution order but constitutes any limitation on the implementation process, and the specific execution order of each step should be based on its function and possible Internal logic is determined.

上述詳細闡述了本發明實施例的方法,下面提供了本發明實施例的裝置。 The method of the embodiment of the present invention is described in detail above, and the apparatus of the embodiment of the present invention is provided below.

請參閱圖3,圖3為本發明實施例提供的一種資料處理裝置3的結構示意圖,該裝置3包括:獲取單元31、確定單元32、監聽單元33以及顯示單元34,其中:獲取單元31,用於獲取第一待顯示資料集;確定單元32,用於從所述第一待顯示資料集中確定待監聽資料集;所述待監聽資料集包含的資料的數量少於所述第一待顯示資料集包含的資料的數量; 監聽單元33,用於監聽所述待監聽資料集,得到監聽結果;顯示單元34,用於依據所述監聽結果,顯示所述第一待顯示資料集。 Please refer to FIG. 3. FIG. 3 is a schematic structural diagram of a data processing device 3 according to an embodiment of the present invention. The device 3 includes: an acquisition unit 31, a determination unit 32, a monitoring unit 33, and a display unit 34, wherein: the acquisition unit 31, is used to obtain a first data set to be displayed; the determining unit 32 is configured to determine a data set to be monitored from the first data set to be displayed; the data set to be monitored contains less data than the first data set to be displayed the amount of data contained in the data set; The monitoring unit 33 is configured to monitor the to-be-monitored data set to obtain a monitoring result; the display unit 34 is configured to display the first to-be-displayed data set according to the monitoring result.

結合本發明任一實施方式,所述確定單元32,用於:從所述第一待顯示資料集中選取至少一個動態資料,得到所述待監聽資料集。 With reference to any embodiment of the present invention, the determining unit 32 is configured to: select at least one dynamic data set 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 invention, the monitoring unit 33 is configured to obtain the monitoring result by monitoring the selected state of the data set to be monitored.

結合本發明任一實施方式,所述顯示單元34,用於:在所述監聽結果為未更新的情況下,顯示當前狀態下所述第一待顯示資料集中所需顯示的資料;在所述監聽結果為所述已更新的情況下,計算第一資料集與第二資料集之間的差異,得到第二待顯示資料集;所述第一資料集包括所述當前狀態下的所述待監聽資料集;所述第二資料集包括下一個狀態下的所述待監聽資料集;顯示所述第二待顯示資料集。 With reference to any embodiment of the present invention, the display unit 34 is configured to: in the case that the monitoring result is not updated, display the data 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, calculating the difference between the first data set and the second data set to obtain a second to-be-displayed data set; the first data set includes the to-be-displayed data set in the current state monitoring a data set; the second data set includes the to-be-monitored data set in the next state; displaying the second to-be-displayed data set.

結合本發明任一實施方式,所述被選狀態包括全選和空選; 所述監聽單元33,用於:在第一被選狀態和第二被選狀態均為所述全選的情況下,確定所述監聽結果為未更新;所述第一被選狀態為所述待監聽資料集在所述當前狀態下的所述被選狀態;所述第二被選狀態為所述待監聽資料集在所述下一個狀態下的所述被選狀態;或,在所述第一被選狀態和所述第二被選狀態均為所述空選的情況下,確定所述監聽結果為未更新;所述第一被選狀態為所述待監聽資料集在所述當前狀態下的所述被選狀態;所述第二被選狀態為所述待監聽資料集在所述下一個狀態下的所述被選狀態;在所述第一被選狀態和所述第二被選狀態不同的情況下,確定所述監聽結果為已更新。 With reference to any embodiment of the present invention, the selected state includes full selection and empty selection; The monitoring unit 33 is configured to: in the case that both the first selected state and the second selected state are all selected, determine that the monitoring result is not updated; the first selected state is the the selected state of the data set to be monitored in the current state; the second selected state is the selected state of the data set to be monitored in the next state; or, in the In the case that both the first selected state and the second selected state are 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 current state. the selected state in the state; the second selected state is the selected state of the data set to be monitored in the next state; in the first selected state and the second selected state When the selected states are different, it is determined that the monitoring result has been updated.

結合本發明任一實施方式,所述顯示單元34,用於:在第三被選狀態和第四被選狀態均為所述空選的情況下,計算第三資料集與第四資料集之間的差異,得到所述第二待顯示資料集;所述第三被選狀態為第一節點在所述當前狀態下的所述被選狀態;所述第四被選狀態為所述第一節點在所述下一個狀態下的所述被選狀態;所述第一節點為第二節點的子節點;所述第二節點為所述待監聽資料集的節點;所述第三資料集包括所述第一資料集中除所述第一節點中的資料之外的資料;所述第四資料集包括所述第二資料集中除所述第一節點中的資料之外的資料;或, 在所述第三被選狀態和所述第四被選狀態均為所述全選的情況下,計算所述第三資料集與所述第四資料集之間的差異,得到所述第二待顯示資料集;所述第三被選狀態為第一節點在所述當前狀態下的所述被選狀態;所述第四被選狀態為所述第一節點在所述下一個狀態下的所述被選狀態;所述第一節點為第二節點的子節點;所述第二節點為所述待監聽資料集的節點;所述第三資料集包括所述第一資料集中除所述第一節點中的資料之外的資料;所述第四資料集包括所述第二資料集中除所述第一節點中的資料之外的資料。 In combination with any embodiment of the present invention, the display unit 34 is configured to: in the case that the third selected state and the fourth selected state are both the empty selections, calculate the difference between the third data set and the fourth data set to obtain the second data set to be displayed; the third selected state is the selected state of the first node in the current state; the fourth selected state is the first selected state the selected state of the 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 data in the first data set other than 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, In the case that both the third selected state and the fourth selected state are the all-selected, the difference between the third data set and the fourth data set is calculated to obtain the second data set 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 selected state of 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 in addition to 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.

結合本發明任一實施方式,所述顯示單元34,用於:獲取第三節點的顯示狀態;所述第三節點為第一節點的兄弟節點;在所述顯示狀態為折疊的情況下,計算第五資料集與第六資料集之間的差異,得到所述第二待顯示資料集;所述第五資料集包括所述第三資料集中除第三節點中的資料之外的資料;所述第六資料集包括所述第四資料集中除第三節點中的資料之外的資料。 With reference to any embodiment of the present invention, the display unit 34 is used to: obtain the display state of the third node; the third node is a sibling node of the first node; when the display state is folded, calculate The difference between the fifth data set and the sixth data set, the second to-be-displayed data set is obtained; the fifth data set includes the data in the third data set except the data in the third node; the The sixth data set includes data in the fourth data set other than the data in the third node.

結合本發明任一實施方式,所述第一待顯示資料集包括:第一視頻流;所述獲取單元31,用於:獲取至少一個第二視頻流;在接收到從所述至少一個第二視頻流中選取至少一個 視頻流的指令的情況下,從所述至少一個第二視頻流中選取所述第一視頻流。 With reference to any embodiment of the present invention, the first data set to be displayed includes: a first video stream; the acquiring unit 31 is configured to: acquire at least one second video stream; Choose at least one from the video stream In the case of an instruction of a video stream, the first video stream is selected from the at least one second video stream.

在一些實施例中,本發明實施例提供的裝置具有的功能或包含的模組可以用於執行上文方法實施例描述的方法,其具體實現可以參照上文方法實施例的描述,為了簡潔,這裡不再贅述。 In some embodiments, the functions or modules included in the apparatus provided in the embodiments of the present invention may be used to execute the methods described in the above method embodiments. For specific implementation, reference may be made to the above method embodiments. For brevity, I won't go into details here.

圖4為本發明實施例提供的一種電子設備4的硬體結構示意圖。該電子設備4包括處理器41,記憶體42,輸入裝置43,輸出裝置44。該處理器41、記憶體42、輸入裝置43和輸出裝置44通過連接器相耦合,該連接器包括各類介面、傳輸線或匯流排等等,本發明實施例對此不作限定。應當理解,本發明的各個實施例中,耦合是指通過特定方式的相互聯繫,包括直接相連或者通過其他設備間接相連,例如可以通過各類介面、傳輸線、匯流排等相連。 FIG. 4 is a schematic diagram of a hardware structure of an electronic device 4 according to an embodiment of the present invention. 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 bus bars, etc., which is not limited in this embodiment of the present invention. It should be understood that, in various embodiments of the present invention, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, such as various interfaces, transmission lines, bus bars, 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 (central processing units, CPUs). In the case where the processor is a CPU, the CPU may be a single-core CPU or 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 bus bars. In a feasible implementation manner, the processor may also be another type of processor, etc., which is not limited in this embodiment of the present invention.

記憶體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 can be used to store computer program instructions and to execute All kinds of computer program codes including the program code for executing the solution of the present invention. Optionally, the memory includes, but is not limited to, random access memory (RAM), read-only memory (read-only memory, ROM), erasable programmable read-only memory (erasable programmable read). only memory, EPROM), or portable read-only memory (compact disc read-only memory, CD-ROM), the memory is used for related instructions and data.

輸入裝置43用於輸入資料和/或信號,以及輸出裝置44用於輸出資料和/或信號。輸入裝置43和輸出裝置44可以是獨立的器件,也可以是一個整體的器件。 The input device 43 is used for inputting data and/or signals, and the output device 44 is used for outputting data and/or signals. The input device 43 and the output device 44 may be independent devices or may be an integral device.

可理解,本發明實施例中,記憶體42不僅可用於儲存相關指令,還可用於儲存相關資料,如該記憶體42可用於儲存通過輸入裝置43獲取的第一待顯示資料集,又或者該記憶體42還可用於儲存通過處理器41得到的第一待顯示資料集等等,本發明實施例對於該記憶體中具體所儲存的資料不作限定。 It can be understood that, in this embodiment of the present invention, the memory 42 can not only be used to store related instructions, but also can be used 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 The memory 42 can also be used to store the first data set to be displayed obtained by the processor 41, etc., and the embodiment of the present invention 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 an 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 invention are in within the protection scope of the present invention.

本領域普通技術人員可以意識到,結合本文中所公開的實施例描述的各示例的單元及演算法步驟,能夠以電 子硬體、或者電腦軟體和電子硬體的結合來實現。這些功能究竟以硬體還是軟體方式來執行,取決於技術方案的特定應用和設計約束條件。專業技術人員可以對每個特定的應用來使用不同方法來實現所描述的功能,但是這種實現不應認為超出本發明的範圍。 Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be electrically Sub-hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.

本發明實施例還提供一種電腦可讀儲存介質,該電腦可讀儲存介質上儲存有電腦程式,該電腦程式被處理器運行時執行上述方法實施例中所述的資料處理方法。其中,該儲存介質可以是易失性或非易失的電腦可讀取儲存介質。 Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program executes the data processing method described in the above method embodiments 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 invention includes a computer-readable storage medium storing a program code, and the instructions included in the program code can be used to execute the seat belt wearing detection method described in the above method embodiment. , reference may be made to the foregoing method embodiments, which will not be repeated here.

本發明實施例還提供一種電腦程式,該電腦程式包括電腦可讀代碼,該電腦可讀代碼在電子設備中運行的情況下,電子設備的處理器執行用於實現前述任一實施例所述的資料處理方法。該電腦程式產品可以具體通過硬體、軟體或其結合的方式實現。在本發明的一些實施例中,所述電腦程式產品具體體現為電腦儲存介質,在本發明的一些實施例中,電腦程式產品具體體現為軟體產品,例如軟體發展包(Software Development Kit,SDK)等等。 An embodiment of the present invention further provides a computer program, the computer program includes computer-readable code, and when the computer-readable code is run in an electronic device, the processor of the electronic device executes the code for implementing any of the foregoing embodiments. Data processing method. The computer program product can be implemented by hardware, software or a combination thereof. In some embodiments of the present invention, the computer program product is embodied as a computer storage medium. In some embodiments of the present invention, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK). and many more.

所屬領域的技術人員可以清楚地瞭解到,為描述的方便和簡潔,上述描述的系統、裝置和單元的具體工作過程,可以參考前述方法實施例中的對應過程,在此不再贅述。所屬領域的技術人員還可以清楚地瞭解到,本發明各個實施例描述各有側重,為描述的方便和簡潔,相同或類似的部分在不同實施例中可能沒有贅述,因此,在某一實施例未描述或未詳細描述的部分可以參見其他實施例的記載。 Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here. Those skilled in the art can also clearly understand that the description of each embodiment of the present invention has its own emphasis. For the convenience and brevity of the description, the same or similar parts may not be repeated in different embodiments. Therefore, in a certain embodiment For the parts that are not described or not described in detail, reference may be made to the descriptions of other embodiments.

在本發明所提供的幾個實施例中,應該理解到,所揭露的系統、裝置和方法,可以通過其它的方式實現。例如,以上所描述的裝置實施例僅僅是示意性的,例如,所述單元的劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式,例如多個單元或組件可以結合或者可以集成到另一個系統,或一些特徵可以忽略,或不執行。另一點,所顯示或討論的相互之間的耦合或直接耦合或通信連接可以是通過一些介面,裝置或單元的間接耦合或通信連接,可以是電性,機械或其它的形式。 In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or may be Integration into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

所述作為分離部件說明的單元可以是或者也可以不是物理上分開的,作為單元顯示的部件可以是或者也可以不是物理單元,即可以位於一個地方,或者也可以分佈到多個網路單元上。可以根據實際的需要選擇其中的部分或者全部單元來實現本發明方案的目的。 The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units . Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the present invention.

另外,在本發明各個實施例中的各功能單元可以集成在一個處理單元中,也可以是各個單元單獨物理存在, 也可以兩個或兩個以上單元集成在一個單元中。 In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, It is also possible to integrate two or more units in one unit.

在上述實施例中,可以全部或部分地通過軟體、硬體、固件或者其任意組合來實現。當使用軟體實現時,可以全部或部分地以電腦程式產品的形式實現。所述電腦程式產品包括一個或多個電腦指令。在電腦上載入和執行所述電腦程式指令時,全部或部分地產生按照本發明實施例所述的流程或功能。所述電腦可以是通用電腦、專用電腦、電腦網路、或者其他可程式設計裝置。所述電腦指令可以儲存在電腦可讀儲存介質中,或者通過所述電腦可讀儲存介質進行傳輸。所述電腦指令可以從一個網站網站、電腦、伺服器或資料中心通過有線(例如同軸電纜、光纖、數位用戶線路(digital subscriber line,DSL))或無線(例如紅外、無線、微波等)方式向另一個網站網站、電腦、伺服器或資料中心進行傳輸。所述電腦可讀儲存介質可以是電腦能夠存取的任何可用介質或者是包含一個或多個可用介質集成的伺服器、資料中心等資料存放裝置。所述可用介質可以是磁性介質,(例如,軟碟、硬碟、磁帶)、光介質(例如,數位通用光碟(digital versatile disc,DVD))、或者半導體介質(例如固態硬碟(solid state disk,SSD))等。 In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions can be sent from a web site, computer, server or data center via wired (eg coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.) Another website website, computer, server or data center for transmission. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, etc. that includes one or more available mediums integrated. The usable media can be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, digital versatile disc (DVD)), or semiconductor media (eg, solid state disks) , SSD)) etc.

本領域普通技術人員可以理解實現上述實施例方法中的全部或部分流程,該流程可以由電腦程式來指令相關的硬體完成,該程式可儲存於電腦可讀取儲存介質中,該程式在執行時,可包括如上述各方法實施例的流程。而 前述的儲存介質包括:唯讀記憶體(read-only memory,ROM)或隨機儲存記憶體(random access memory,RAM)、磁碟或者光碟等各種可儲存程式碼的介質。 Those of ordinary skill in the art can understand that to realize all or part of the processes in the methods of the above embodiments, the process can be completed by instructing the relevant hardware by a computer program, and the program can be stored in a computer-readable storage medium. , the process of each method embodiment described above may be included. and The aforementioned storage medium includes: read-only memory (ROM) or random access memory (RAM), magnetic disk or optical disk and other mediums that can store program codes.

工業實用性 Industrial Applicability

本發明提供了一種資料處理方法、裝置、電子設備、儲存介質及程式;該方法包括:獲取第一待顯示資料集;從所述第一待顯示資料集中確定待監聽資料集;所述待監聽資料集包含的資料的數量少於所述第一待顯示資料集包含的資料的數量;監聽所述待監聽資料集,得到監聽結果;依據所述監聽結果,顯示所述第一待顯示資料集。 The present invention provides a data processing method, device, electronic device, storage medium and program; the method includes: acquiring a 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 is less than the quantity of data contained in the first data set to be displayed; monitoring the data set to be monitored to obtain a monitoring result; and displaying the first data set to be displayed according to the monitoring result .

101~104:步驟 101~104: Steps

Claims (9)

一種資料處理方法,所述方法應用於資料處理裝置,所述方法包括:獲取第一待顯示資料集;從所述第一待顯示資料集中確定待監聽資料集;所述待監聽資料集包含的資料的數量少於所述第一待顯示資料集包含的資料的數量;通過監聽所述待監聽資料集的被選狀態,得監聽結果;其中,所述被選狀態包括全選和空選;依據所述監聽結果,顯示所述第一待顯示資料集;所述通過監聽所述待監聽資料集的被選狀態,得到所述監聽結果,包括:在第一被選狀態和第二被選狀態均為所述全選的情況下,確定所述監聽結果為未更新;所述第一被選狀態為所述待監聽資料集在所述當前狀態下的所述被選狀態;所述第二被選狀態為所述待監聽資料集在所述下一個狀態下的所述被選狀態;或,在所述第一被選狀態和所述第二被選狀態均為所述空選的情況下,確定所述監聽結果為未更新;所述第一被選狀態為所述待監聽資料集在所述當前狀態下的所述被選狀態;所述第二被選狀態為所述待監聽資料集在所述下一個狀態下的所述被選狀態;在所述第一被選狀態和所述第二被選狀態不同的情況下,確定所述監聽結果為已更新。 A data processing method, the method being applied to a data processing device, the method comprising: acquiring a first data set to be displayed; determining a data set to be monitored from the first data set to be displayed; The quantity of data is less than the quantity of data contained in the first to-be-displayed data set; the monitoring result is obtained by monitoring the selected state of the to-be-monitored data set; wherein, the selected state includes all selections and empty selections; Displaying the first data set to be displayed according to the monitoring result; obtaining the monitoring result by monitoring the selected state of the data set to be monitored, including: in the first selected state and the second selected state In the case where the states are all selected, it is determined that the monitoring result is not updated; the first selected state is the selected state of the data set to be monitored in the current state; the first selected state is the selected state of the data set to be monitored in the current state; The second selected state is the selected state of the data set to be monitored in the next state; or, both the first selected state and the second selected state are empty selections In this case, it is determined that the monitoring result is not updated; the first selected state is the selected state of the data set to be monitored in the current state; the second selected state is the pending state The selected state of the data set in the next state is monitored; if the first selected state and the second selected state are different, it is determined that the monitoring result is updated. 根據請求項1所述的方法,其中,所述從所 述第一待顯示資料集中確定待監聽資料集,包括:從所述第一待顯示資料集中選取至少一個動態資料,得到所述待監聽資料集。 The method according to claim 1, wherein the Determining the data set to be monitored in the first data set to be displayed includes: selecting at least one dynamic data set from the first data set to be displayed to obtain the data set to be monitored. 根據請求項1所述的方法,其中,所述依據所述監聽結果,顯示所述第一待顯示資料集,包括:在所述監聽結果為未更新的情況下,顯示當前狀態下所述第一待顯示資料集中所需顯示的資料;在所述監聽結果為已更新的情況下,計算第一資料集與第二資料集之間的差異,得到第二待顯示資料集;所述第一資料集包括所述當前狀態下的所述待監聽資料集;所述第二資料集包括下一個狀態下的所述待監聽資料集;顯示所述第二待顯示資料集。 The method according to claim 1, wherein the displaying the first data set to be displayed according to the monitoring result includes: in the case that the monitoring result is not updated, displaying the first data set in the current state 1. The data to be displayed in the data set to be displayed; when 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 is The data set includes the to-be-monitored data set in the current state; the second data set includes the to-be-monitored data set in the next state; and the second to-be-displayed data set is displayed. 根據請求項1所述的方法,其中,所述計算第一資料集與第二資料集之間的差異,得到第二待顯示資料集,包括:在第三被選狀態和第四被選狀態均為所述空選的情況下,計算第三資料集與第四資料集之間的差異,得到所述第二待顯示資料集;所述第三被選狀態為第一節點在所述當前狀態下的所述被選狀態;所述第四被選狀態為所述第一節點在所述下一個狀態下的所述被選狀態;所述第一節點為第二節點的子節點;所述第二節點為所述待監聽資料集的節點;所述第三資料集包括所述第一資料集中除所述第一節點中的資料之外的資料;所述第四資料集包括所述第二資料集中除所述第一節點中的資料之外的資料;或, 在所述第三被選狀態和所述第四被選狀態均為所述全選的情況下,計算所述第三資料集與所述第四資料集之間的差異,得到所述第二待顯示資料集;所述第三被選狀態為第一節點在所述當前狀態下的所述被選狀態;所述第四被選狀態為所述第一節點在所述下一個狀態下的所述被選狀態;所述第一節點為第二節點的子節點;所述第二節點為所述待監聽資料集的節點;所述第三資料集包括所述第一資料集中除所述第一節點中的資料之外的資料;所述第四資料集包括所述第二資料集中除所述第一節點中的資料之外的資料。 The method according to claim 1, wherein the calculating the difference between the first data set and the second data set to obtain the second to-be-displayed data set includes: in a third selected state and a fourth selected state In the case of the empty selection, the difference between the third data set and the fourth data set is calculated to obtain the second to-be-displayed data set; the third selected state is that the first node is in the current the selected state in the 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 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 the data in the first node; the fourth data set includes the data in the second data set other than the data in said first node; or, In the case that both the third selected state and the fourth selected state are the all-selected, the difference between the third data set and the fourth data set is calculated to obtain the second data set 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 selected state of 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 in addition to 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. 根據請求項4所述的方法,其中,所述計算所述第三資料集與所述第四資料集之間的差異,得到所述第二待顯示資料集,包括:獲取第三節點的顯示狀態;所述第三節點為第一節點的兄弟節點;在所述顯示狀態為折疊的情況下,計算第五資料集與第六資料集之間的差異,得到所述第二待顯示資料集;所述第五資料集包括所述第三資料集中除第三節點中的資料之外的資料;所述第六資料集包括所述第四資料集中除第三節點中的資料之外的資料。 The method according to claim 4, wherein the calculating the difference between the third data set and the fourth data set to obtain the second to-be-displayed data set comprises: obtaining the display of the third node state; the third node is a sibling node of the first node; when the display state is folded, the difference between the fifth data set and the sixth data set is calculated to obtain the second to-be-displayed data set ; the fifth data set includes data in the third data set other than the data in the third node; the sixth data set includes data in the fourth data set other than the data in the third node . 根據請求項1或2所述的方法,其中,所述第一待顯示資料集包括:第一視頻流;所述獲取第一待顯示資料集,包括:獲取至少一個第二視頻流; 在接收到從所述至少一個第二視頻流中選取至少一個視頻流的指令的情況下,從所述至少一個第二視頻流中選取所述第一視頻流。 The method according to claim 1 or 2, wherein the first data set to be displayed includes: a first video stream; the acquiring the first data set to be displayed includes: acquiring at least one second video stream; The first video stream is selected from the at least one second video stream upon receiving an instruction to select at least one video stream from the at least one second video stream. 一種處理器,所述處理器用於執行如請求項1至5中任意一項所述的資料處理方法。 A processor for executing the data processing method described in any one of claim items 1 to 5. 一種電子設備,包括:處理器、輸入裝置、輸出裝置和記憶體,所述記憶體用於儲存電腦程式代碼,所述電腦程式代碼包括電腦指令,在所述處理器執行所述電腦指令的情況下,所述電子設備執行如請求項1至5中任意一項所述的資料處理方法。 An electronic device, comprising: a processor, an input device, an output device and a memory, the memory is used to store computer program codes, the computer program codes include computer instructions, and when the processor executes the computer instructions Next, the electronic device executes the data processing method described in any one of claim items 1 to 5. 一種電腦可讀儲存介質,所述電腦可讀儲存介質中儲存有電腦程式,所述電腦程式包括程式指令,在所述程式指令被處理器執行的情況下,使所述處理器執行請求項1至5中任意一項所述的資料處理方法。 A computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to execute request item 1 The data processing method described in any one of to 5.
TW110100178A 2020-05-21 2021-01-04 Data processing method electronic equipment computer readable storage medium TWI759059B (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 (2)

Publication Number Publication Date
TW202145030A TW202145030A (en) 2021-12-01
TWI759059B true TWI759059B (en) 2022-03-21

Family

ID=72647573

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110100178A TWI759059B (en) 2020-05-21 2021-01-04 Data processing method electronic equipment computer readable storage medium

Country Status (3)

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

Families Citing this family (2)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134905A (en) * 2019-05-21 2019-08-16 北京字节跳动网络技术有限公司 A kind of renewal of the page display methods, device, equipment and storage medium
CN110321140A (en) * 2019-05-23 2019-10-11 天津五八到家科技有限公司 Data-updating method, device and mobile terminal
TW201941159A (en) * 2017-04-24 2019-10-16 美商英特爾股份有限公司 Compute optimization mechanism
TW202013308A (en) * 2017-04-24 2020-04-01 美商英特爾股份有限公司 Mixed inference using low and high precision

Family Cites Families (22)

* 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
CN105701106A (en) * 2014-11-27 2016-06-22 广州市动景计算机科技有限公司 Web page refreshment 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
CN107256151B (en) * 2017-05-27 2020-09-11 北京小米移动软件有限公司 Page rendering processing method and device and terminal
CN107451181B (en) * 2017-06-14 2020-09-22 北京星选科技有限公司 Page rendering method and device
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 and 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
CN111008054A (en) * 2019-11-15 2020-04-14 支付宝(杭州)信息技术有限公司 Page display method and equipment and electronic equipment
CN111158973B (en) * 2019-12-05 2021-06-18 北京大学 Web application dynamic evolution monitoring method
CN111079043B (en) * 2019-12-05 2023-05-12 北京数立得科技有限公司 Key content positioning method
CN111741257B (en) * 2020-05-21 2022-01-28 深圳市商汤科技有限公司 Data processing method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201941159A (en) * 2017-04-24 2019-10-16 美商英特爾股份有限公司 Compute optimization mechanism
TW202004656A (en) * 2017-04-24 2020-01-16 美商英特爾股份有限公司 Compute optimization mechanism
TW202013308A (en) * 2017-04-24 2020-04-01 美商英特爾股份有限公司 Mixed inference using low and high precision
CN110134905A (en) * 2019-05-21 2019-08-16 北京字节跳动网络技术有限公司 A kind of renewal of the page display methods, device, equipment and storage medium
CN110321140A (en) * 2019-05-23 2019-10-11 天津五八到家科技有限公司 Data-updating method, device and mobile terminal

Also Published As

Publication number Publication date
CN111741257B (en) 2022-01-28
TW202145030A (en) 2021-12-01
CN111741257A (en) 2020-10-02
WO2021232748A1 (en) 2021-11-25

Similar Documents

Publication Publication Date Title
US10664510B1 (en) Displaying clusters of media items on a map using representative media items
TWI759059B (en) Data processing method electronic equipment computer readable storage medium
US9299098B2 (en) Systems for generating a global product taxonomy
JP6313425B2 (en) Reuse and recycle objects that fit your application
US10972528B2 (en) Methods and systems for accessing third-party services within applications
US10311500B2 (en) Methods and systems for developer onboarding for software-development products
US10747557B2 (en) Video monitoring
US10062090B2 (en) System and methods to display three dimensional digital assets in an online environment based on an objective
US20140040086A1 (en) Risk Analysis Based on Social-Networking Information
CN111709732A (en) Display method and device and electronic equipment
CN112306487B (en) Buried point data reporting method, device, equipment and storage medium
CN111309240B (en) Content display method and device and electronic equipment
CN111597466A (en) Display method and device and electronic equipment
WO2021086529A1 (en) Operating system with context-based permissions
US20150020020A1 (en) Multi-dimensional content platform for a network
CN105229691B (en) Delaying heavy operations while scrolling
CN113515329B (en) Special effect attribute setting method and device
CN113157165A (en) Information display method and device, electronic equipment and program product
CN113315687B (en) Proxy network management method, device, storage medium and terminal
US11902340B2 (en) Data processing method, apparatus, electronic device and storage medium
CN115525852A (en) Webpage rendering method, device, equipment and storage medium
CN118674513A (en) Object display method, device, apparatus, storage medium, and program product
CN118069264A (en) Display method, device, equipment, medium and product
CN117648510A (en) Information display method, information display device, computer equipment and storage medium
CN115982140A (en) Data processing method, device, equipment and storage medium