TWI779566B - Anti-cheating method and electronic device - Google Patents

Anti-cheating method and electronic device Download PDF

Info

Publication number
TWI779566B
TWI779566B TW110114179A TW110114179A TWI779566B TW I779566 B TWI779566 B TW I779566B TW 110114179 A TW110114179 A TW 110114179A TW 110114179 A TW110114179 A TW 110114179A TW I779566 B TWI779566 B TW I779566B
Authority
TW
Taiwan
Prior art keywords
touch sensing
mouse
actual
cursor
touch
Prior art date
Application number
TW110114179A
Other languages
Chinese (zh)
Other versions
TW202242614A (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 宏碁股份有限公司
Priority to TW110114179A priority Critical patent/TWI779566B/en
Application granted granted Critical
Publication of TWI779566B publication Critical patent/TWI779566B/en
Publication of TW202242614A publication Critical patent/TW202242614A/en

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)
  • Emergency Alarm Devices (AREA)
  • Burglar Alarm Systems (AREA)
  • Position Input By Displaying (AREA)

Abstract

An anti-cheating method and an electronic apparatus are provided. The anti-cheating method includes the following steps. Physical trajectory information of a mouse device on a touch sensing device is detected by using the touch sensing device. The mouse device moves on the touch sensing device. Mouse trajectory information for controlling a cursor is captured. A cheating operation is detected according to the physical trajectory information and the mouse trajectory information.

Description

防作弊方法與電子裝置Anti-cheating method and electronic device

本發明是有關於一種電子裝置,且特別是有關於一種使用觸控技術的防作弊方法與電子裝置。The present invention relates to an electronic device, and in particular to an anti-cheating method using touch technology and the electronic device.

在現今的電競遊戲產業中,考驗的通常是玩家經由練習而學得的技巧。在此情況下,借助額外的軟硬體輔助來獲得不正當優勢常常是摧毀遊戲中良性競爭環境的重要因素之一。因此,若能適時地偵測並找出使用上述作弊方式進行遊戲的玩家,應可較佳地保證遊戲的公平性。In today's esports gaming industry, what is often tested are skills that players have learned through practice. In this case, gaining an unfair advantage with additional software and hardware assistance is often one of the important factors that destroy the healthy competitive environment in the game. Therefore, if players who use the above cheating methods to play the game can be detected and found in a timely manner, the fairness of the game should be better guaranteed.

一般而言,目前常見的一種作弊方式為玩家在輔助操作腳本工具(簡稱腳本)的幫助下進行遊戲。腳本可以程式的形式運作於電腦裝置的作業系統上,因而也可稱為外掛程式。或者,玩家或其他相關人員可將腳本設置於硬體設備(例如滑鼠裝置)內部之韌體。玩家可透過上述腳本的輔助來產生偽造的使用者操作,從而破壞了遊戲原本設計的平衡性,也破壞了遊戲的正常發展。因此,如何檢測玩家透過不公平的作弊行為進行遊戲實為電競遊戲產業中一個重要議題。Generally speaking, a common cheating method is that the player plays the game with the help of an auxiliary operation script tool (script for short). Scripts can operate on the operating system of computer devices in the form of programs, so they can also be called plug-ins. Alternatively, players or other relevant personnel can set the script in the firmware inside the hardware device (such as a mouse device). With the assistance of the above-mentioned scripts, players can generate fake user operations, thereby destroying the balance of the original design of the game and also destroying the normal development of the game. Therefore, how to detect players playing games through unfair cheating behaviors is an important issue in the e-sports game industry.

有鑑於此,本發明提出一種防作弊方法與電子裝置,其可根據觸控感測裝置感測之滑鼠裝置的移動軌跡來有效判斷作弊操作是否發生。In view of this, the present invention proposes an anti-cheating method and an electronic device, which can effectively determine whether a cheating operation occurs according to the moving track of the mouse device sensed by the touch sensing device.

本發明實施例提供一種防作弊方法,適用於連接滑鼠裝置的電子裝置,其包括下列步驟。利用觸控感測裝置偵測滑鼠裝置於觸控感測裝置之上的實際軌跡資訊,其中滑鼠裝置移動於觸控感測裝置之上。擷取用以控制游標的滑鼠軌跡資訊。依據實際軌跡資訊與滑鼠軌跡資訊來偵測作弊操作。An embodiment of the present invention provides an anti-cheating method suitable for an electronic device connected to a mouse device, which includes the following steps. The touch sensing device is used to detect the actual track information of the mouse device on the touch sensing device, wherein the mouse device moves on the touch sensing device. Retrieves the mouse track information used to control the cursor. Detect cheating operations based on actual trajectory information and mouse trajectory information.

本發明實施例提供一種電子裝置,其連接至觸控感測裝置與滑鼠裝置並包括儲存裝置以及處理器。處理器連接儲存裝置,經配置以執行下列步驟。利用觸控感測裝置偵測滑鼠裝置於觸控感測裝置之上的實際軌跡資訊,其中滑鼠裝置移動於觸控感測裝置之上。擷取用以控制游標的滑鼠軌跡資訊。依據實際軌跡資訊與滑鼠軌跡資訊來偵測作弊操作。An embodiment of the present invention provides an electronic device, which is connected to a touch sensing device and a mouse device and includes a storage device and a processor. The processor is connected to the storage device and is configured to execute the following steps. The touch sensing device is used to detect the actual track information of the mouse device on the touch sensing device, wherein the mouse device moves on the touch sensing device. Retrieves the mouse track information used to control the cursor. Detect cheating operations based on actual trajectory information and mouse trajectory information.

基於上述,於本發明的實施例中,在滑鼠裝置於觸控感測裝置上移動的情況下,電子裝置可依據觸控感測裝置所提供的觸控資料獲取滑鼠裝置於觸控感測裝置之上的實際軌跡資訊。據此,依據此實際軌跡資訊與用以控制游標的滑鼠軌跡資訊,電子裝置可有效地且即時地檢測使用者是否控制電子裝置執行作弊操作。Based on the above, in the embodiment of the present invention, when the mouse device is moving on the touch sensing device, the electronic device can obtain the touch information of the mouse device according to the touch data provided by the touch sensing device. The actual trajectory information on the measuring device. Accordingly, according to the actual trajectory information and the mouse trajectory information used to control the cursor, the electronic device can effectively and instantly detect whether the user controls the electronic device to perform cheating operations.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail together with the accompanying drawings.

本發明的部份實施例接下來將會配合附圖來詳細描述,以下的描述所引用的元件符號,當不同附圖出現相同的元件符號將視為相同或相似的元件。這些實施例只是本發明的一部份,並未揭示所有本發明的可實施方式。更確切的說,這些實施例只是本發明的專利申請範圍中的裝置與方法的範例。Parts of the embodiments of the present invention will be described in detail with reference to the accompanying drawings. For the referenced reference symbols in the following description, when the same reference symbols appear in different drawings, they will be regarded as the same or similar components. These embodiments are only a part of the present invention, and do not reveal all possible implementation modes of the present invention. Rather, these embodiments are merely examples of devices and methods within the scope of the present invention.

應理解,當元件被稱作「連接」或「耦接」至另一元件時,其可直接地連接或耦接至另一元件,或可存在其他插入元件。換言之,除非特別限定,否則用語「連接」與「耦接」包括兩元件直接地與間接地連接與耦接。It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or other intervening elements may be present. In other words, unless otherwise specified, the terms "connected" and "coupled" include both direct and indirect connection and coupling of two elements.

圖1是依照本發明一實施例的電子裝置的示意圖,但此僅是為了方便說明,並不用以限制本發明。首先圖1先介紹電子裝置中的所有構件以及配置關係,詳細功能與操作將配合圖2一併揭露。FIG. 1 is a schematic diagram of an electronic device according to an embodiment of the present invention, but this is only for convenience of description, and is not intended to limit the present invention. Firstly, FIG. 1 firstly introduces all the components and their configuration relationships in the electronic device, and the detailed functions and operations will be disclosed together with FIG. 2 .

請參照圖1,本實施例的電子裝置10例如是筆記型電腦、智慧型手機、平板電腦、電子書、遊戲機等可與滑鼠裝置20以及觸控感測裝置30連接的電子裝置,本發明並不對此限制。電子裝置10包括顯示器110、儲存裝置120及處理器130。於一些實施例中,電子裝置10可用於運行遊戲,滑鼠裝置20可讓使用者以移動的方式控制/操作上述遊戲。於一些實施例中,電子裝置10可用於運行一線上測驗,滑鼠裝置20可讓使用者以移動的方式輸入線上測驗的答案。Please refer to FIG. 1 , the electronic device 10 of this embodiment is, for example, a notebook computer, a smart phone, a tablet computer, an e-book, a game console, etc., which can be connected with a mouse device 20 and a touch sensing device 30. The invention is not limited thereto. The electronic device 10 includes a display 110 , a storage device 120 and a processor 130 . In some embodiments, the electronic device 10 can be used to run a game, and the mouse device 20 can allow the user to control/operate the above game in a mobile manner. In some embodiments, the electronic device 10 can be used to run an online quiz, and the mouse device 20 can allow the user to input answers to the online quiz in a moving manner.

滑鼠裝置20可透過有線或無線的方式連接電子裝置10,本發明對此不限制。舉例而言,滑鼠裝置20可以是藍牙滑鼠或具備USB接頭的有線滑鼠。此外,根據滑鼠裝置20的工作原理的不同,滑鼠裝置20可以為滾輪式滑鼠或光學式滑鼠,本發明對此不限制。The mouse device 20 can be connected to the electronic device 10 in a wired or wireless manner, which is not limited in the present invention. For example, the mouse device 20 can be a Bluetooth mouse or a wired mouse with a USB connector. In addition, according to different working principles of the mouse device 20 , the mouse device 20 may be a roller mouse or an optical mouse, which is not limited in the present invention.

觸控感測裝置30可用以感測一物件施於觸控感測表面之上的接觸。觸控感測裝置30可透過有線或無線的方式連接電子裝置10,本發明對此不限制。於本發明的實施例中,滑鼠裝置20係於觸控感測裝置30之上移動。更詳細而言,受控於使用者的操作,滑鼠裝置20係於觸控感測裝置30的觸控感測表面上進行移動,觸控感測裝置30因而可感測到滑鼠裝置20的接觸。觸控感測裝置30可實施為觸控板、觸控螢幕或具有觸控感測功能的滑鼠墊等等,本發明對此不限制。觸控感測裝置30例如可包括電容式觸控面板、電阻式觸控面板、電磁式觸控面板、光學式觸控面板或應用其他觸控感測原理的觸控面板。於一些實施例中,觸控感測裝置30包括陣列排列的多個觸控感測元件(例如電容式感測元件或電阻感測元件等等)而可進行觸控感測,以獲取包括分別對應於觸控感測元件的觸控原始資料的觸控感測圖幀。The touch sensing device 30 can be used to sense the contact of an object on the touch sensing surface. The touch sensing device 30 can be connected to the electronic device 10 in a wired or wireless manner, which is not limited in the present invention. In the embodiment of the present invention, the mouse device 20 is moved on the touch sensing device 30 . In more detail, controlled by the user's operation, the mouse device 20 moves on the touch sensing surface of the touch sensing device 30, and the touch sensing device 30 can sense the mouse device 20 s contact. The touch sensing device 30 can be implemented as a touch panel, a touch screen, or a mouse pad with a touch sensing function, and the present invention is not limited thereto. The touch sensing device 30 may include, for example, a capacitive touch panel, a resistive touch panel, an electromagnetic touch panel, an optical touch panel, or a touch panel applying other touch sensing principles. In some embodiments, the touch sensing device 30 includes a plurality of touch sensing elements arranged in an array (such as capacitive sensing elements or resistive sensing elements, etc.) to perform touch sensing, to obtain information including A touch sensing image frame corresponding to the touch raw data of the touch sensing element.

顯示器110例如是液晶顯示器(Liquid Crystal Display,LCD)、發光二極體(Light-Emitting Diode,LED)顯示器、場發射顯示器(Field Emission Display,FED)、有機發光二極體(Organic Light-Emitting Diode,OLED)或其他種類的顯示裝置。於一些實施例中,顯示器110例如是可用於顯示上述遊戲畫面或線上測驗畫面的螢幕。此外,於一些實施例中,顯示器110可顯示有由滑鼠裝置20控制的游標。換言之,顯示器110所顯示之畫面中的游標會反應於滑鼠裝置20的移動而對應移動。The display 110 is, for example, a liquid crystal display (Liquid Crystal Display, LCD), a light-emitting diode (Light-Emitting Diode, LED) display, a field emission display (Field Emission Display, FED), an organic light-emitting diode (Organic Light-Emitting Diode) , OLED) or other types of display devices. In some embodiments, the display 110 is, for example, a screen that can be used to display the above-mentioned game screen or online quiz screen. In addition, in some embodiments, the display 110 may display a cursor controlled by the mouse device 20 . In other words, the cursor on the screen displayed on the display 110 will move correspondingly in response to the movement of the mouse device 20 .

儲存裝置120用以儲存觸控資料、指令、程式碼、軟體元件等等資料,其可以例如是任意型式的固定式或可移動式隨機存取記憶體(random access memory,RAM)、唯讀記憶體(read-only memory,ROM)、快閃記憶體(flash memory)、硬碟或其他類似裝置、積體電路及其組合。The storage device 120 is used to store data such as touch data, instructions, program codes, software components, etc., which can be, for example, any type of fixed or removable random access memory (random access memory, RAM), read-only memory body (read-only memory, ROM), flash memory (flash memory), hard disk or other similar devices, integrated circuits and combinations thereof.

處理器130耦接顯示器110與儲存裝置120,用以控制電子裝置10的構件之間的作動,其例如是中央處理單元(Central Processing Unit,CPU),或是其他可程式化之一般用途或特殊用途的微處理器(Microprocessor)、數位訊號處理器(Digital Signal Processor,DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuits,ASIC)、可程式化邏輯裝置(Programmable Logic Device,PLD)、圖形處理器(Graphics Processing Unit,GPU或其他類似裝置或這些裝置的組合。處理器130可執行記錄於儲存裝置120中的程式碼、軟體模組、指令等等,以實現本發明實施例中利用觸控資料的防作弊方法。The processor 130 is coupled to the display 110 and the storage device 120, and is used to control the actions between the components of the electronic device 10, such as a central processing unit (Central Processing Unit, CPU), or other programmable general purpose or special Microprocessor (Microprocessor), Digital Signal Processor (Digital Signal Processor, DSP), Programmable Controller, Application Specific Integrated Circuits (Application Specific Integrated Circuits, ASIC), Programmable Logic Device (Programmable Logic Device) , PLD), graphics processing unit (Graphics Processing Unit, GPU or other similar devices or a combination of these devices. The processor 130 can execute the program codes, software modules, instructions, etc. recorded in the storage device 120 to realize the present invention An anti-cheating method using touch data in the embodiment.

然而,除了顯示器110、儲存裝置120,以及處理器130之外,電子裝置10還可以包括未繪示於圖1的其他元件,像是揚聲器、麥克風、相機、通訊模組、鍵盤等等,本發明對此不限制。However, in addition to the display 110, the storage device 120, and the processor 130, the electronic device 10 may also include other components not shown in FIG. 1, such as speakers, microphones, cameras, communication modules, keyboards, etc. The invention is not limited thereto.

圖2是依照本發明一實施例的防作弊方法的流程圖。請參照圖2,本實施例的方式適用於上述實施例中的電子裝置10,以下即搭配電子裝置10中的各項元件說明本實施例的詳細步驟。Fig. 2 is a flow chart of an anti-cheating method according to an embodiment of the present invention. Please refer to FIG. 2 , the method of this embodiment is applicable to the electronic device 10 in the above-mentioned embodiment, and the detailed steps of this embodiment will be described below with various components in the electronic device 10 .

於步驟S210,處理器130利用觸控感測裝置30偵測滑鼠裝置20於觸控感測裝置30之上的實際軌跡資訊。滑鼠裝置20移動於觸控感測裝置30之上。具體而言,使用者是將滑鼠裝置20置放於觸控感測裝置30的觸控感測表面上,使用者可透過移動滑鼠裝置20與按壓滑鼠裝置20上的按鍵來提供使用者指令給電子裝置10。需說明的是,由於觸控感測裝置30可感測滑鼠裝置20的接觸,因此處理器130可透過觸控感測裝置30感測到滑鼠裝置20的移動,並獲取滑鼠裝置20於觸控感測裝置30之上的實際軌跡資訊。上述實際軌跡資訊可至少包括兩個以上的觸控定位座標。In step S210 , the processor 130 uses the touch sensing device 30 to detect the actual track information of the mouse device 20 on the touch sensing device 30 . The mouse device 20 moves on the touch sensing device 30 . Specifically, the user places the mouse device 20 on the touch-sensing surface of the touch-sensing device 30, and the user can use the mouse device 20 by moving the mouse device 20 and pressing the buttons on the mouse device 20. Or command to the electronic device 10. It should be noted that since the touch sensing device 30 can sense the contact of the mouse device 20, the processor 130 can sense the movement of the mouse device 20 through the touch sensing device 30, and obtain the mouse device 20 The actual trajectory information on the touch sensing device 30 . The above-mentioned actual trajectory information may include at least two touch positioning coordinates.

在一實施例中,處理器130可透過觸控感測裝置30獲取多張觸控感測圖幀。各張觸控感測圖幀可包括分別對應至觸控感測元件的多個圖幀胞元(frame cell),各張觸控感測圖幀中每一圖幀胞元具有觸控原始資料。舉例而言,假設觸控感測裝置30具有m*n個觸控感測元件,則各張觸控感測圖幀將包括分別對應至m*n筆觸控原始資料的m*n的圖幀胞元。於一實施例中,處理器130還可對觸控原始資料進行歸一化處理,使得經過歸一化處理的觸控感測圖幀中每一圖幀胞元的觸控資料可介於預設數值範圍,例如0至255之內。In one embodiment, the processor 130 can acquire a plurality of touch sensing image frames through the touch sensing device 30 . Each touch sensing image frame may include a plurality of frame cells respectively corresponding to the touch sensing elements, and each frame cell in each touch sensing image frame has touch raw data . For example, assuming that the touch sensing device 30 has m*n touch sensing elements, each touch sensing image frame will include m*n image frames respectively corresponding to m*n pen touch raw data cell. In one embodiment, the processor 130 can also perform normalization processing on the raw touch data, so that the touch data of each frame cell in the normalized touch sensing frame can be between the predetermined Set the value range, for example, within 0 to 255.

需特別說明的是,於一實施例中,為了偵測出滑鼠裝置20於觸控感測裝置30的實際軌跡資訊,處理器130是獲取尚未經過任何過濾處理的觸控原始資料。原因在於,相較於人體手指的碰觸可使觸控感測元件所產生的觸控感測訊號發生巨幅變化,滑鼠裝置20的碰觸通常僅讓觸控感測元件所產生的觸控感測訊號發生小幅度變化。若對觸控原始資料進行過濾處理,觸控感測圖幀可能無法呈現出滑鼠裝置20的碰觸。於一實施例中,電容式的觸控感測元件可因應於滑鼠裝置20內部的金屬元件的接近而發生小幅度的電荷變化,而觸控感測圖幀中的觸控原始資料因此可用以感測滑鼠裝置20的碰觸。It should be noted that, in one embodiment, in order to detect the actual trajectory information of the mouse device 20 on the touch sensing device 30 , the processor 130 obtains raw touch data that has not undergone any filtering process. The reason is that, compared with the touch of human fingers, the touch sensing signal generated by the touch sensing element can change greatly, and the touch of the mouse device 20 usually only makes the touch sensing signal generated by the touch sensing element There is a small change in the control sensing signal. If the touch raw data is filtered, the touch sensing image frame may not be able to represent the touch of the mouse device 20 . In one embodiment, the capacitive touch sensing element can undergo a small charge change in response to the proximity of metal elements inside the mouse device 20, and the raw touch data in the touch sensing frame can therefore be used To sense the touch of the mouse device 20 .

進一步而言,圖3A是依照本發明一實施例的觸控感測裝置的示意圖。圖3B是依照本發明一實施例的觸控感測圖幀的示意圖。請先參照圖3A,觸控感測裝置30可包括感測元件陣列111、掃描驅動電路113與接收感測電路112。感測元件陣列111包括呈現陣列排列的多個觸控感測元件(例如觸控感測元件CS11、CS12、CS21)。掃描驅動電路113透過掃描線(例如掃描線114)逐列施加驅動訊號到觸控感測元件。接收感測電路112透過感測線(例如感測線115)接收觸控感測元件提供的觸控感測訊號而輸出觸控原始資料d1。接收感測電路112可使用類比數位轉換器(ADC)將觸控感測元件所產生的觸控感測訊號轉換為數位的觸控原始資料d1而輸出。Further, FIG. 3A is a schematic diagram of a touch sensing device according to an embodiment of the present invention. FIG. 3B is a schematic diagram of a touch sensing frame according to an embodiment of the invention. Please refer to FIG. 3A first, the touch sensing device 30 may include a sensing element array 111 , a scan driving circuit 113 and a receiving sensing circuit 112 . The sensing element array 111 includes a plurality of touch sensing elements (such as touch sensing elements CS11 , CS12 , CS21 ) arranged in an array. The scanning driving circuit 113 applies driving signals to the touch sensing elements column by column through the scanning lines (such as the scanning lines 114 ). The receiving sensing circuit 112 receives the touch sensing signal provided by the touch sensing element through the sensing line (such as the sensing line 115 ) and outputs the touch raw data d1. The receiving sensing circuit 112 can use an analog-to-digital converter (ADC) to convert the touch sensing signal generated by the touch sensing element into digital touch raw data d1 for output.

請再參照圖3B,觸控感測圖幀F1包括分別對應至多個觸控感測元件(例如觸控感測元件CS11、CS12、CS21)的多個圖幀胞元(例如圖幀胞元FC11、FC12、FC21)。並且,每一個圖幀胞元皆具有對應的觸控原始資料。舉例而言,圖幀胞元FC11具有觸控原始資料‘r1’;圖幀胞元FC12具有觸控原始資料‘r2’;圖幀胞元FC21具有觸控原始資料‘r3’。換言之,觸控感測圖幀F1也可視為一個m*n的資料陣列,此資料陣列裡的陣列元素即為觸控原始資料。Please refer to FIG. 3B again, the touch sensing frame F1 includes a plurality of frame cells (eg frame cell FC11 ) respectively corresponding to a plurality of touch sensing elements (eg touch sensing elements CS11, CS12, CS21). , FC12, FC21). Moreover, each image frame cell has corresponding touch original data. For example, the frame cell FC11 has touch raw data 'r1'; the frame cell FC12 has touch raw data 'r2'; the frame cell FC21 has touch raw data 'r3'. In other words, the touch sensing image frame F1 can also be regarded as an m*n data array, and the array elements in the data array are the original touch data.

接著,處理器130可將各張觸控感測圖幀輸入至一機器學習模型而獲取滑鼠裝置20於觸控感測裝置30上的實際軌跡資訊。具體而言,每當處理器130將一張觸控感測圖幀輸入至機器學習模型,此機器學習模型可從觸控感測圖幀之中偵測出滑鼠裝置20的滑鼠觸碰區域。Then, the processor 130 can input each touch sensing image frame into a machine learning model to obtain the actual trajectory information of the mouse device 20 on the touch sensing device 30 . Specifically, whenever the processor 130 inputs a touch sensing image frame into the machine learning model, the machine learning model can detect the mouse touch of the mouse device 20 from the touch sensing image frame. area.

在一實施例中,此機器學習模型是依據訓練圖幀集合進行機器學習(例如深度學習)而事先建構,其可儲存於儲存裝置120中。換言之,經訓練的機器學習模型的模型參數(例如神經網路層數目與各神經網路層的權重等等)已經由事前訓練而決定並儲存於儲存裝置120中。機器學習模型可為卷積神經網路(Convolution Neural Network,CNN)模型中用以進行物件偵測的物件偵測模型,例如YOLO或SSD等等,本發明對此不限制。或者,機器學習模型可為卷積神經網路模型中的語義分割(Semantic Segmentation)模型,例如DeepLabv3+等等,本發明對此不限制。In one embodiment, the machine learning model is constructed in advance by performing machine learning (such as deep learning) according to the set of training image frames, which can be stored in the storage device 120 . In other words, the model parameters of the trained machine learning model (such as the number of neural network layers and the weight of each neural network layer, etc.) have been determined by pre-training and stored in the storage device 120 . The machine learning model may be an object detection model used for object detection in a Convolution Neural Network (CNN) model, such as YOLO or SSD, and the present invention is not limited thereto. Alternatively, the machine learning model may be a Semantic Segmentation model in a convolutional neural network model, such as DeepLabv3+, etc., which is not limited in the present invention.

在一實施例中,處理器130可將各張觸控感測圖幀輸入至機器學習模型而獲取各張觸控感測圖幀中對應至滑鼠裝置20的物件框(bounding box)。接著,處理器130可根據各張觸控感測圖幀中物件框內的參考點的位置獲取實際軌跡資訊。具體而言,當處理器130應用屬於物件偵測模型的機器學習模型時,機器學習模型可輸出觸控感測圖幀中對應於滑鼠裝置20的物件框。接著,處理器130可取此物件框中的一參考點的座標位置作為滑鼠裝置20當下的觸控定位座標。上述參考點例如是物件框的中心點,但不限於此。藉此,透過將多張觸控感測圖幀逐一依序輸入至機器學習模型,處理器130可獲取多張觸控感測圖幀中的多個觸控定位座標,以獲取包括多個觸控定位座標的實際軌跡資訊。In one embodiment, the processor 130 may input each touch sensing image frame into the machine learning model to obtain an object box (bounding box) corresponding to the mouse device 20 in each touch sensing image frame. Then, the processor 130 can obtain actual trajectory information according to the position of the reference point in the object frame in each touch sensing image frame. Specifically, when the processor 130 applies the machine learning model belonging to the object detection model, the machine learning model may output the object frame corresponding to the mouse device 20 in the touch sensing image frame. Then, the processor 130 may take the coordinate position of a reference point in the object frame as the current touch positioning coordinate of the mouse device 20 . The aforementioned reference point is, for example, the center point of the object frame, but not limited thereto. In this way, by sequentially inputting multiple touch sensing image frames into the machine learning model, the processor 130 can obtain multiple touch positioning coordinates in the multiple touch sensing image frames, so as to obtain information including multiple touch sensing image frames. The actual trajectory information of the control positioning coordinates.

舉例而言,圖4A是依照本發明一實施例的利用機器學習模型獲取實際軌跡資訊的示意圖。請參照圖4A,透過將觸控感測裝置30提供的觸控感測圖幀F2輸入至機器學習模型,處理器130可獲取對應於滑鼠裝置20的物件框B1,並將物件框B1的中心點P1的座標位置定位為滑鼠裝置20的觸控定位座標。透過收集多張觸控感測圖幀中的多個觸控定位座標,處理器130可獲取滑鼠裝置20於觸控感測裝置30上的移動軌跡T1(即實際軌跡資訊)。For example, FIG. 4A is a schematic diagram of using a machine learning model to obtain actual trajectory information according to an embodiment of the present invention. Please refer to FIG. 4A , by inputting the touch sensing image frame F2 provided by the touch sensing device 30 into the machine learning model, the processor 130 can obtain the object frame B1 corresponding to the mouse device 20, and use the object frame B1 The coordinate position of the central point P1 is positioned as the touch positioning coordinate of the mouse device 20 . By collecting a plurality of touch positioning coordinates in a plurality of touch sensing image frames, the processor 130 can obtain the moving track T1 (ie, actual track information) of the mouse device 20 on the touch sensing device 30 .

或者,在一實施例中,處理器130可將各張觸控感測圖幀輸入至機器學習模型而獲取各張觸控感測圖幀中對應至滑鼠裝置20的語義分割區域。接著,處理器130可根據各張觸控感測圖幀中語義分割區域的邊界的獲取實際軌跡資訊。具體而言,當處理器130應用屬於語義分割模型的機器學習模型時,機器學習模型可對觸控感測圖幀中每一圖幀胞元進行分類,以獲取觸控感測圖幀中對應至滑鼠裝置20的語義分割區域。接著,處理器130可根據語義分割區域的邊界決定一參考點,並將此參考點的座標位置作為滑鼠裝置20當下的觸控定位座標。藉此,透過將多張觸控感測圖幀逐一依序輸入至機器學習模型,處理器130可獲取多張觸控感測圖幀中的多個觸控定位座標,以獲取包括多個觸控定位座標的實際軌跡資訊。Alternatively, in one embodiment, the processor 130 may input each touch sensing image frame into the machine learning model to obtain the semantic segmentation region corresponding to the mouse device 20 in each touch sensing image frame. Next, the processor 130 can acquire actual trajectory information according to the boundaries of the semantically segmented regions in each touch sensing image frame. Specifically, when the processor 130 applies the machine learning model belonging to the semantic segmentation model, the machine learning model can classify each frame cell in the touch sensing image frame to obtain the corresponding cell in the touch sensing image frame. To the semantically segmented area of the mouse device 20. Next, the processor 130 may determine a reference point according to the boundary of the semantically segmented area, and use the coordinate position of the reference point as the current touch positioning coordinate of the mouse device 20 . In this way, by sequentially inputting multiple touch sensing image frames into the machine learning model, the processor 130 can obtain multiple touch positioning coordinates in the multiple touch sensing image frames, so as to obtain information including multiple touch sensing image frames. The actual trajectory information of the control positioning coordinates.

舉例而言,圖4B是依照本發明一實施例的利用機器學習模型獲取實際軌跡資訊的示意圖。請參照圖4B,透過將觸控感測裝置30提供的觸控感測圖幀F3輸入至機器學習模型,處理器130可將觸控感測圖幀F3分割為對應至滑鼠裝置20的語義分割區域Z1與其他區域Z2。於本範例中,處理器130可取出語義分割區域Z1於垂直軸向與水平軸向上的四個極值點PL、PR、PB、PU,並根據極值點PL、PR、PB、PU獲取中心參考點PC。接著,處理器130可將中心參考點PC1的座標位置定位為滑鼠裝置20的觸控定位座標。透過收集多張觸控感測圖幀中的多個觸控定位座標,處理器130可獲取滑鼠裝置20於觸控感測裝置30上的移動軌跡T2(即實際軌跡資訊)。For example, FIG. 4B is a schematic diagram of using a machine learning model to obtain actual trajectory information according to an embodiment of the present invention. Please refer to FIG. 4B , by inputting the touch sensing image frame F3 provided by the touch sensing device 30 into the machine learning model, the processor 130 can segment the touch sensing image frame F3 into semantics corresponding to the mouse device 20 Divide zone Z1 from other zone Z2. In this example, the processor 130 can extract the four extreme points PL, PR, PB, and PU of the semantic segmentation area Z1 on the vertical axis and the horizontal axis, and obtain the center according to the extreme points PL, PR, PB, and PU. Reference point PC. Then, the processor 130 can locate the coordinate position of the central reference point PC1 as the touch positioning coordinate of the mouse device 20 . By collecting a plurality of touch positioning coordinates in a plurality of touch sensing image frames, the processor 130 can obtain the moving track T2 (ie, actual track information) of the mouse device 20 on the touch sensing device 30 .

接著,於步驟S220,處理器130擷取用以控制游標的滑鼠軌跡資訊。於一實施例中,處理器130可從電子裝置10所執行的作業系統或應用程式取得用以控制游標的滑鼠軌跡資訊。舉例而言,處理器130可透過微軟視窗作業系統提供的應用程式介面(例如GetCursorPos API等等)來取得游標於螢幕上或某一工作視窗內的游標定位座標,以獲取包括多個游標定位座標的滑鼠軌跡資訊。或者,於其他實施例中,透過對顯示器110所顯示的畫面(例如遊戲畫面或應用程式畫面)進行游標偵測而獲取游標定位座標,處理器130可獲取用以控制游標的滑鼠軌跡資訊。Next, in step S220, the processor 130 retrieves the mouse track information for controlling the cursor. In one embodiment, the processor 130 can obtain the mouse track information for controlling the cursor from the operating system or the application program executed by the electronic device 10 . For example, the processor 130 can obtain the cursor positioning coordinates of the cursor on the screen or in a certain working window through the application program interface (such as GetCursorPos API, etc.) provided by the Microsoft Windows operating system, so as to obtain multiple cursor positioning coordinates. mouse track information for . Or, in other embodiments, the processor 130 can obtain the mouse track information for controlling the cursor by detecting the cursor on the screen displayed on the display 110 (such as a game screen or an application program screen) to obtain cursor positioning coordinates.

於是,於步驟S230,處理器130依據實際軌跡資訊與滑鼠軌跡資訊來偵測作弊操作。詳細而言,實際軌跡資訊是反應於使用者控制滑鼠裝置20的真實操作而產生。因此,根據實際軌跡資訊與作業系統或應用程式所提供的滑鼠軌跡資訊,處理器130可判斷使用者是否使用非法腳本在偽造使用者輸入資訊控制游標。舉例而言,處理器130可根據實際軌跡資訊得知滑鼠裝置20是處於靜止狀態,但用以控制游標的滑鼠軌跡資訊卻一直再變動,處理器130便可據以判斷偵測到使用者的作弊操作。又或者,處理器130可根據實際軌跡資訊得知滑鼠裝置20的移動方向,但用以控制游標的滑鼠軌跡資訊卻指示出不一致的游標移動方向,處理器130便可據以判斷偵測到使用者的作弊操作。Therefore, in step S230, the processor 130 detects cheating operations according to the actual track information and the mouse track information. In detail, the actual trajectory information is generated in response to the real operation of the user controlling the mouse device 20 . Therefore, according to the actual track information and the mouse track information provided by the operating system or the application program, the processor 130 can determine whether the user uses an illegal script to control the cursor with forged user input information. For example, the processor 130 can know that the mouse device 20 is in a static state according to the actual track information, but the mouse track information used to control the cursor keeps changing, and the processor 130 can judge that the mouse device 20 is detected based on this. fraudulent operations. Or, the processor 130 can know the moving direction of the mouse device 20 according to the actual track information, but the mouse track information used to control the cursor indicates an inconsistent moving direction of the cursor, and the processor 130 can judge the detection To the user's cheating operation.

據此,透過使用觸控感測裝置30所感測的觸控資料,處理器130可有效地判斷使用者是否控制電子裝置10執行作弊操作,以確保電競遊戲與線上測驗的公平性。需特別說明的是,處理器130可根據實際軌跡資訊與滑鼠軌跡資訊且基於多種不同方式來偵測作弊操作,以下將列舉實施例說明。Accordingly, by using the touch data sensed by the touch sensing device 30 , the processor 130 can effectively determine whether the user controls the electronic device 10 to perform cheating operations, so as to ensure the fairness of e-sports games and online quizzes. It should be noted that the processor 130 can detect cheating operations in a variety of different ways according to the actual track information and the mouse track information, and examples will be described below.

圖5是依照本發明一實施例的防作弊方法的流程圖。請參照圖5,本實施例的方式適用於上述實施例中的電子裝置10,以下即搭配電子裝置10中的各項元件說明本實施例的詳細步驟。Fig. 5 is a flow chart of an anti-cheating method according to an embodiment of the present invention. Please refer to FIG. 5 , the method of this embodiment is applicable to the electronic device 10 in the above-mentioned embodiment, and the detailed steps of this embodiment will be described below with various elements in the electronic device 10 .

於步驟S510,處理器130利用觸控感測裝置30偵測滑鼠裝置20於觸控感測裝置30之上的實際軌跡資訊。於步驟S520,處理器130擷取用以控制游標的滑鼠軌跡資訊。步驟S510~步驟S520的實施方式相同於圖2說明的實施例,於此不再贅述。需注意的是,於步驟S530,處理器130依據實際軌跡資訊與滑鼠軌跡資訊來偵測作弊操作。於本實施例中,步驟S530可實施為步驟S531~步驟S533。In step S510 , the processor 130 uses the touch sensing device 30 to detect the actual track information of the mouse device 20 on the touch sensing device 30 . In step S520, the processor 130 retrieves mouse track information for controlling the cursor. The implementation manners of step S510 to step S520 are the same as the embodiment illustrated in FIG. 2 , and will not be repeated here. It should be noted that in step S530, the processor 130 detects cheating operations according to the actual track information and the mouse track information. In this embodiment, step S530 can be implemented as step S531-step S533.

於步驟S531,處理器130根據實際軌跡資訊中的多個觸控定位座標獲取預設時段內的實際移動資料。實際移動資料可包括實際移動方向與實際位移量。上述預設時段例如是1秒或3秒等等,其可依據實際需求而配置,本發明對此不限制。更詳細而言,實際軌跡資訊中每一個觸控定位座標會對應至一個定位時間點。處理器130可基於預設時段的長度決定取出兩個觸控定位座標,並依據此兩個觸控定位座標計算出預設時段內的實際移動方向與實際位移量。In step S531 , the processor 130 acquires actual movement data within a predetermined period of time according to the plurality of touch positioning coordinates in the actual trajectory information. The actual moving data may include an actual moving direction and an actual displacement. The aforementioned preset time period is, for example, 1 second or 3 seconds, etc., which can be configured according to actual needs, and the present invention is not limited thereto. In more detail, each touch positioning coordinate in the actual trajectory information corresponds to a positioning time point. The processor 130 may determine to take out two touch positioning coordinates based on the length of the preset time period, and calculate the actual moving direction and actual displacement within the preset time period according to the two touch positioning coordinates.

於步驟S532,處理器130根據滑鼠軌跡資訊中的多個游標定位座標獲取預設時段內的游標移動資料。游標移動資料可包括游標移動方向與游標位移量。詳細而言,滑鼠軌跡資訊中每一個游標定位座標可代表游標在某一時間點於螢幕上的座標位置。處理器130可基於預設時段的長度決定取出兩個游標定位座標,並依據此兩個游標定位座標計算出預設時段內的游標移動方向與游標位移量。In step S532, the processor 130 acquires cursor movement data within a preset period of time according to a plurality of cursor positioning coordinates in the mouse track information. The cursor movement data may include the cursor movement direction and the cursor displacement amount. Specifically, each cursor positioning coordinate in the mouse track information may represent the coordinate position of the cursor on the screen at a certain point in time. The processor 130 may decide to take out two cursor positioning coordinates based on the length of the preset time period, and calculate the cursor moving direction and cursor displacement within the preset time period according to the two cursor positioning coordinates.

於步驟S533,處理器130比對實際移動資料與游標移動資料而判斷是否偵測到作弊操作。於一實施例中,處理器130可根據實際移動方向與游標移動方向之間的夾角來判斷是否偵測到作弊操作。若實際移動方向與游標移動方向之間的夾角大於預設臨界值,代表使用者移動滑鼠裝置20的方向與游標移動方向不一致,處理器130可判斷偵測到作弊操作。反之,若實際移動方向與游標移動方向之間的夾角未大於預設臨界值,處理器130可判斷沒有偵測到作弊操作。或者,在沒有其他作弊腳本干擾的情況下,游標位移量與實際位移量之間應當具有特定比例關係。因此,處理器130可根據實際移動方向與游標移動方向之間的比例來判斷是否偵測到作弊操作。若實際移動方向與游標移動方向之間的比例不吻合特定比例關係,處理器130可判斷偵測到作弊操作。反之,若際移動方向與游標移動方向之間的比例吻合特定比例關係,處理器130可判斷沒有偵測到作弊操作。In step S533, the processor 130 compares the actual movement data with the cursor movement data to determine whether a cheating operation is detected. In one embodiment, the processor 130 may determine whether a cheating operation is detected according to the angle between the actual moving direction and the moving direction of the cursor. If the angle between the actual moving direction and the cursor moving direction is larger than the preset threshold value, it means that the direction in which the user moves the mouse device 20 is inconsistent with the moving direction of the cursor, and the processor 130 can determine that a cheating operation has been detected. On the contrary, if the angle between the actual moving direction and the cursor moving direction is not greater than the preset threshold, the processor 130 may determine that no cheating operation is detected. Alternatively, there should be a certain proportional relationship between the cursor displacement and the actual displacement without interference from other cheat scripts. Therefore, the processor 130 can determine whether a cheating operation is detected according to the ratio between the actual moving direction and the moving direction of the cursor. If the ratio between the actual moving direction and the cursor moving direction does not match the specific proportional relationship, the processor 130 may determine that a cheating operation is detected. On the contrary, if the ratio between the moving direction of the cursor and the moving direction of the cursor coincides with a certain ratio, the processor 130 can determine that no cheating operation is detected.

圖6是依照本發明一實施例的防作弊方法的流程圖。請參照圖6,本實施例的方式適用於上述實施例中的電子裝置10,以下即搭配電子裝置10中的各項元件說明本實施例的詳細步驟。Fig. 6 is a flow chart of an anti-cheating method according to an embodiment of the present invention. Please refer to FIG. 6 , the method of this embodiment is applicable to the electronic device 10 in the above-mentioned embodiment, and the detailed steps of this embodiment will be described below with various components in the electronic device 10 .

於步驟S610,處理器130利用觸控感測裝置30偵測滑鼠裝置20於觸控感測裝置30之上的實際軌跡資訊。於步驟S620,處理器130擷取用以控制游標的滑鼠軌跡資訊。步驟S610~步驟S620的實施方式相同於圖2說明的實施例,於此不再贅述。需注意的是,於步驟S630,處理器130依據實際軌跡資訊與滑鼠軌跡資訊來偵測作弊操作。於本實施例中,步驟S630可實施為步驟S631~步驟S633。In step S610 , the processor 130 uses the touch sensing device 30 to detect the actual track information of the mouse device 20 on the touch sensing device 30 . In step S620, the processor 130 retrieves mouse track information for controlling the cursor. The implementation manners of step S610 to step S620 are the same as the embodiment illustrated in FIG. 2 , and will not be repeated here. It should be noted that in step S630, the processor 130 detects cheating operations according to the actual track information and the mouse track information. In this embodiment, step S630 can be implemented as step S631-step S633.

於步驟S631,處理器130根據實際軌跡資訊中的多個觸控定位座標獲取實際軌跡圖像。於步驟S632,處理器130根據滑鼠軌跡資訊中的多個游標定位座標獲取游標軌跡圖像。詳細而言,透過將實際軌跡資訊中的觸控定位座標同時呈現於單一張實際軌跡圖像中,實際軌跡圖像可呈現有滑鼠裝置20於觸控感測裝置30上的移動軌跡。相似的,透過將滑鼠軌跡資訊中的多個游標定位座標同時呈現於單一張游標軌跡圖像中,實際軌跡圖像可呈現有游標於螢幕上的移動軌跡。In step S631, the processor 130 acquires an actual trajectory image according to a plurality of touch positioning coordinates in the actual trajectory information. In step S632, the processor 130 acquires a cursor track image according to a plurality of cursor positioning coordinates in the mouse track information. In detail, by simultaneously presenting the touch positioning coordinates in the actual trajectory information in a single actual trajectory image, the actual trajectory image can present the moving trajectory of the mouse device 20 on the touch sensing device 30 . Similarly, by simultaneously displaying multiple cursor positioning coordinates in the mouse track information in a single cursor track image, the actual track image can present the moving track of the cursor on the screen.

於步驟S633,處理器130依據實際軌跡圖像與游標軌跡圖像判斷是否偵測到作弊操作。換言之,處理器130可比對實際軌跡圖像中的實際移動軌跡與游標軌跡圖像中的游標移動軌跡來判斷是否偵測到作弊操作。於一實施例中,處理器130可將實際軌跡圖像與游標軌跡圖像輸入至經訓練的機器學習模型,以透過機器學習模型的輸出來判斷是否偵測到作弊操作。或者,於一實施例中,處理器130可對實際軌跡圖像或/與游標軌跡圖像進行圖像縮放處理或其他影像處理後,再透過比較處理後兩張影像中的移動軌跡的軌跡形狀來判斷是否偵測到作弊操作。In step S633, the processor 130 determines whether a cheating operation is detected according to the actual trajectory image and the cursor trajectory image. In other words, the processor 130 can compare the actual moving track in the actual track image with the cursor moving track in the cursor track image to determine whether a cheating operation is detected. In one embodiment, the processor 130 may input the actual trajectory image and the cursor trajectory image into the trained machine learning model, so as to determine whether a cheating operation is detected through the output of the machine learning model. Alternatively, in one embodiment, the processor 130 may perform image scaling or other image processing on the actual trajectory image or/and the cursor trajectory image, and then compare the trajectory shape of the moving trajectory in the two images after processing to determine whether a cheating operation has been detected.

圖7是依照本發明一實施例的防作弊方法的流程圖。請參照圖7,本實施例的方式適用於上述實施例中的電子裝置10,以下即搭配電子裝置10中的各項元件說明本實施例的詳細步驟。Fig. 7 is a flow chart of an anti-cheating method according to an embodiment of the present invention. Please refer to FIG. 7 , the method of this embodiment is applicable to the electronic device 10 in the above-mentioned embodiment, and the detailed steps of this embodiment will be described below with various components in the electronic device 10 .

於步驟S710,處理器130利用觸控感測裝置30偵測滑鼠裝置20於觸控感測裝置30之上的實際軌跡資訊。於步驟S720,處理器130擷取用以控制游標的滑鼠軌跡資訊。步驟S710~步驟S720的實施方式相同於圖2說明的實施例,於此不再贅述。需注意的是,於步驟S730,處理器130依據實際軌跡資訊與滑鼠軌跡資訊來偵測作弊操作。於本實施例中,步驟S730可實施為步驟S731~步驟S733。In step S710 , the processor 130 uses the touch sensing device 30 to detect the actual track information of the mouse device 20 on the touch sensing device 30 . In step S720, the processor 130 retrieves mouse track information for controlling the cursor. The implementation manners of step S710 to step S720 are the same as the embodiment illustrated in FIG. 2 , and will not be repeated here. It should be noted that in step S730, the processor 130 detects cheating operations according to the actual track information and the mouse track information. In this embodiment, step S730 can be implemented as steps S731 to S733.

於步驟S731,處理器130根據實際軌跡資訊中的多個觸控定位座標獲取實際運動相關資料。實際運動相關資料可包括實際位移量、實際移動方向、實際移動速度、實際移動加速度,或上述資料的統計量等等。In step S731 , the processor 130 acquires actual movement related data according to a plurality of touch positioning coordinates in the actual trajectory information. The actual motion-related data may include actual displacement, actual moving direction, actual moving speed, actual moving acceleration, or statistics of the above-mentioned data, and the like.

於步驟S732,處理器130根據該滑鼠軌跡資訊中的多個游標定位座標獲取游標運動相關資料。游標運動相關資料可包括游標位移量、游標移動方向、游標移動速度、游標移動加速度,或上述資料的統計量等等。In step S732, the processor 130 obtains cursor motion related data according to a plurality of cursor positioning coordinates in the mouse track information. The cursor movement related data may include cursor displacement, cursor movement direction, cursor movement speed, cursor movement acceleration, or statistics of the above information, and the like.

於步驟S733,處理器130將實際運動相關資料與游標運動相關資料輸入至機器學習模型,以由機器學習模型決定是否偵測到作弊操作。處理器130可將實際運動相關資料與游標運動相關資料輸入至經訓練的機器學習模型而根據機器學習模型的輸出判斷是否偵測到作弊操作。舉例而言,上述機器學習模型可例如是支持向量機(support vector machine,SVM)分類模型或最鄰近搜索法(K-nearest neighbor algorithm,KNN)分類模型等,但可不限於此。於一實施例中,機器學習模型例如可輸出作弊操作的存在機率,處理器130可根據上述存在機率判斷是否偵測到作弊操作。In step S733, the processor 130 inputs the actual movement-related data and the cursor movement-related data into the machine learning model, so that the machine learning model determines whether a cheating operation is detected. The processor 130 may input the actual motion-related data and the cursor motion-related data into the trained machine learning model, and judge whether a cheating operation is detected according to the output of the machine learning model. For example, the above machine learning model may be, for example, a support vector machine (support vector machine, SVM) classification model or a nearest neighbor algorithm (K-nearest neighbor algorithm, KNN) classification model, etc., but is not limited thereto. In one embodiment, the machine learning model may output, for example, the existence probability of the cheating operation, and the processor 130 may determine whether the cheating operation is detected according to the above existence probability.

綜上所述,於本發明實施例中,可透過觸控感測裝置來偵測滑鼠裝置的實際軌跡資訊,並比對實際軌跡資訊與用以控制游標的滑鼠軌跡資訊。於是,依據基於使用者實際動作的實際軌跡資訊與用以控制游標的滑鼠軌跡資訊,偽造使用者操作的作弊操作的存在可得以有效地且準確地偵測出來。藉此,可有效地掌握哪些玩家有使用不當的腳本並進而防止玩家的作弊行為,進而較佳地維護遊戲的公平性。To sum up, in the embodiment of the present invention, the actual track information of the mouse device can be detected through the touch sensing device, and the actual track information is compared with the mouse track information used to control the cursor. Therefore, according to the actual trajectory information based on the user's actual actions and the mouse trajectory information used to control the cursor, the existence of cheating operations that forge user operations can be effectively and accurately detected. In this way, it is possible to effectively grasp which players have improperly used scripts, thereby preventing players from cheating, and thus better maintaining the fairness of the game.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed above with the embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the technical field may make some changes and modifications without departing from the spirit and scope of the present invention. The scope of protection of the present invention should be defined by the scope of the appended patent application.

10:電子裝置 110:顯示器 120:儲存裝置 130:處理器 20:滑鼠裝置 30:觸控感測裝置 111:感測元件陣列 CS11、CS12、CS21:觸控感測元件 113:掃描驅動電路 112:接收感測電路 114:掃描線 115:感測線 d1:觸控原始資料 FC11、FC12、FC21:圖幀胞元 F1、F2、F3:觸控感測圖幀 T1、T2:移動軌跡 B1:物件框 P1:中心點 PL、PR、PB、PU:極值點 PC:中心參考點 Z1:語義分割區域 Z2:其他區域 S210~S230、S510~S533、S610~S633、S710~S733:步驟 10: Electronic device 110: Display 120: storage device 130: Processor 20:Mouse device 30: Touch sensing device 111: sensing element array CS11, CS12, CS21: touch sensing components 113: Scan driving circuit 112: Receive sensing circuit 114: scan line 115: Sensing line d1: touch original data FC11, FC12, FC21: picture frame cell F1, F2, F3: touch sensor frame T1, T2: moving track B1: Object Box P1: center point PL, PR, PB, PU: extreme points PC: Center reference point Z1: Semantic segmentation area Z2: other areas S210~S230, S510~S533, S610~S633, S710~S733: steps

圖1是依照本發明一實施例的電子裝置的示意圖。 圖2是依照本發明一實施例的防作弊方法的流程圖。 圖3A是依照本發明一實施例的觸控感測裝置的示意圖。 圖3B是依照本發明一實施例的觸控感測圖幀的示意圖。 圖4A是依照本發明一實施例的利用機器學習模型獲取實際軌跡資訊的示意圖。 圖4B是依照本發明一實施例的利用機器學習模型獲取實際軌跡資訊的示意圖。 圖5是依照本發明一實施例的防作弊方法的流程圖。 圖6是依照本發明一實施例的防作弊方法的流程圖。 圖7是依照本發明一實施例的防作弊方法的流程圖。 FIG. 1 is a schematic diagram of an electronic device according to an embodiment of the invention. Fig. 2 is a flow chart of an anti-cheating method according to an embodiment of the present invention. FIG. 3A is a schematic diagram of a touch sensing device according to an embodiment of the invention. FIG. 3B is a schematic diagram of a touch sensing frame according to an embodiment of the invention. FIG. 4A is a schematic diagram of acquiring actual trajectory information by using a machine learning model according to an embodiment of the present invention. FIG. 4B is a schematic diagram of acquiring actual trajectory information by using a machine learning model according to an embodiment of the present invention. Fig. 5 is a flow chart of an anti-cheating method according to an embodiment of the present invention. Fig. 6 is a flow chart of an anti-cheating method according to an embodiment of the present invention. Fig. 7 is a flow chart of an anti-cheating method according to an embodiment of the present invention.

S210~S230:步驟 S210~S230: steps

Claims (16)

一種防作弊方法,適用於連接一滑鼠裝置的一電子裝置,所述方法包括:利用一觸控感測裝置偵測該滑鼠裝置於該觸控感測裝置之上的實際軌跡資訊,其中該滑鼠裝置移動於該觸控感測裝置之上;擷取用以控制一游標的滑鼠軌跡資訊;以及依據該實際軌跡資訊與該滑鼠軌跡資訊來偵測偽造使用者操作的一作弊操作。 An anti-cheating method applicable to an electronic device connected to a mouse device, the method comprising: using a touch sensing device to detect the actual track information of the mouse device on the touch sensing device, wherein The mouse device moves over the touch sensing device; captures mouse track information used to control a cursor; and detects a cheat for forging user operations based on the actual track information and the mouse track information operate. 如請求項1所述的防作弊方法,其中利用該觸控感測裝置偵測該滑鼠裝置於該觸控感測裝置之上的該實際軌跡資訊的步驟包括:透過該觸控感測裝置獲取多張觸控感測圖幀;以及將各該些觸控感測圖幀輸入至一機器學習模型而獲取該滑鼠裝置於該觸控感測裝置上的該實際軌跡資訊。 The anti-cheating method as described in claim 1, wherein the step of using the touch sensing device to detect the actual trajectory information of the mouse device on the touch sensing device includes: using the touch sensing device Obtaining a plurality of touch sensing image frames; and inputting each of the touch sensing image frames into a machine learning model to obtain the actual trajectory information of the mouse device on the touch sensing device. 如請求項2所述的防作弊方法,其中將各該些觸控感測圖幀輸入至該機器學習模型而獲取該滑鼠裝置於該觸控感測裝置上的該實際軌跡資訊的步驟包括:將各該些觸控感測圖幀輸入至該機器學習模型而獲取各該些觸控感測圖幀中對應至該滑鼠裝置的一物件框;以及根據各該些觸控感測圖幀中該物件框內的一參考點的位置獲取該實際軌跡資訊。 The anti-cheating method as described in claim 2, wherein the step of inputting each of the touch-sensing image frames into the machine learning model to obtain the actual track information of the mouse device on the touch-sensing device includes : Input each of the touch sensing image frames into the machine learning model to obtain an object frame corresponding to the mouse device in each of the touch sensing image frames; and according to each of the touch sensing image frames The actual trajectory information is obtained from the position of a reference point within the object frame in the frame. 如請求項2所述的防作弊方法,其中將各該些觸控感測圖幀輸入至該機器學習模型而獲取該滑鼠裝置於該觸控感測裝置上的該實際軌跡資訊的步驟包括:將各該些觸控感測圖幀輸入至該機器學習模型而獲取各該些觸控感測圖幀中對應至該滑鼠裝置的語義分割區域;以及根據各該些觸控感測圖幀中該語義分割區域的邊界的獲取該實際軌跡資訊。 The anti-cheating method as described in claim 2, wherein the step of inputting each of the touch-sensing image frames into the machine learning model to obtain the actual track information of the mouse device on the touch-sensing device includes : Input each of the touch sensing image frames into the machine learning model to obtain the semantic segmentation area corresponding to the mouse device in each of the touch sensing image frames; and according to each of the touch sensing image frames The actual trajectory information of the boundary of the semantically segmented region in the frame is acquired. 如請求項1所述的防作弊方法,其中擷取用以控制該游標的該滑鼠移動軌跡的步驟包括:從該電子裝置所執行的一作業系統或一應用程式取得用以控制該游標的該滑鼠軌跡資訊。 The anti-cheating method as described in Claim 1, wherein the step of retrieving the mouse movement track used to control the cursor includes: obtaining the track used to control the cursor from an operating system or an application program executed by the electronic device The mouse track information. 如請求項1所述的防作弊方法,其中依據該實際軌跡資訊與該滑鼠軌跡資訊來偵測該作弊操作的步驟包括:根據該實際軌跡資訊中的多個觸控定位座標獲取一預設時段內的一實際移動資料;根據該滑鼠軌跡資訊中的多個游標定位座標獲取該預設時段內的一游標移動資料;以及比對該實際移動資料與該游標移動資料而判斷是否偵測到該作弊操作。 The anti-cheating method as described in claim 1, wherein the step of detecting the cheating operation according to the actual track information and the mouse track information includes: obtaining a preset according to a plurality of touch positioning coordinates in the actual track information An actual movement data within a time period; obtain a cursor movement data within the preset time period according to multiple cursor positioning coordinates in the mouse track information; and compare the actual movement data with the cursor movement data to determine whether to detect to the cheating operation. 如請求項1所述的防作弊方法,其中依據該實際軌跡資訊與該滑鼠軌跡資訊來偵測該作弊操作的步驟包括: 根據該實際軌跡資訊中的多個觸控定位座標獲取一實際軌跡圖像;根據該滑鼠軌跡資訊中的多個游標定位座標獲取一游標軌跡圖像;以及依據該實際軌跡圖像與該游標軌跡圖像判斷是否偵測到該作弊操作。 The anti-cheating method as described in Claim 1, wherein the step of detecting the cheating operation based on the actual track information and the mouse track information includes: Acquiring an actual trajectory image according to a plurality of touch positioning coordinates in the actual trajectory information; obtaining a cursor trajectory image according to a plurality of cursor positioning coordinates in the mouse trajectory information; and obtaining a cursor trajectory image according to the actual trajectory image and the cursor The trajectory image determines whether the cheating operation is detected. 如請求項1所述的防作弊方法,其中依據該實際軌跡資訊與該滑鼠軌跡資訊來偵測該作弊操作的步驟包括:根據該實際軌跡資訊中的多個觸控定位座標獲取一實際運動相關資料;根據該滑鼠軌跡資訊中的多個游標定位座標獲取一游標運動相關資料;以及將該實際運動相關資料與該游標運動相關資料輸入至一機器學習模型,以由該機器學習模型決定是否偵測到該作弊操作。 The anti-cheating method as described in claim 1, wherein the step of detecting the cheating operation according to the actual trajectory information and the mouse trajectory information includes: obtaining an actual movement according to a plurality of touch positioning coordinates in the actual trajectory information Relevant data; obtaining a cursor movement-related data according to multiple cursor positioning coordinates in the mouse track information; and inputting the actual movement-related data and the cursor movement-related data into a machine learning model, so as to be determined by the machine learning model Whether to detect this cheat operation. 一種電子裝置,連接一滑鼠裝置與一觸控感測裝置,包括:一儲存裝置;以及一處理器,耦接該觸控感測裝置與該儲存裝置,經配置以:利用該觸控感測裝置偵測該滑鼠裝置於該觸控感測裝置之上的實際軌跡資訊,其中該滑鼠裝置移動於該觸控感測裝置之上;擷取用以控制一游標的滑鼠軌跡資訊;以及 依據該實際軌跡資訊與該滑鼠軌跡資訊來偵測偽造使用者操作的一作弊操作。 An electronic device connected to a mouse device and a touch sensing device, including: a storage device; and a processor, coupled to the touch sensing device and the storage device, configured to: utilize the touch sensing The detection device detects the actual trajectory information of the mouse device on the touch sensing device, wherein the mouse device moves on the touch sensing device; and retrieves the mouse trajectory information for controlling a cursor ;as well as A cheating operation of forging user operations is detected according to the actual track information and the mouse track information. 如請求項9所述的電子裝置,其中該處理器更經配置以:透過該觸控感測裝置獲取多張觸控感測圖幀;以及將各該些觸控感測圖幀輸入至一機器學習模型而獲取該滑鼠裝置於該觸控感測裝置上的該實際軌跡資訊。 The electronic device as described in claim 9, wherein the processor is further configured to: obtain a plurality of touch sensing image frames through the touch sensing device; and input each of the touch sensing image frames to a A machine learning model is used to obtain the actual trajectory information of the mouse device on the touch sensing device. 如請求項10所述的電子裝置,其中該處理器更經配置以:將各該些觸控感測圖幀輸入至該機器學習模型而獲取各該些觸控感測圖幀中對應至該滑鼠裝置的一物件框;以及根據各該些觸控感測圖幀中該物件框內的一參考點的位置獲取該實際軌跡資訊。 The electronic device as described in claim 10, wherein the processor is further configured to: input each of the touch sensing image frames into the machine learning model to obtain each of the touch sensing image frames corresponding to the an object frame of the mouse device; and obtaining the actual trajectory information according to the position of a reference point in the object frame in each of the touch sensing image frames. 如請求項10所述的電子裝置,其中該處理器更經配置以:將各該些觸控感測圖幀輸入至該機器學習模型而獲取各該些觸控感測圖幀中對應至該滑鼠裝置的語義分割區域;以及根據各該些觸控感測圖幀中該語義分割區域的邊界的獲取該實際軌跡資訊。 The electronic device as described in claim 10, wherein the processor is further configured to: input each of the touch sensing image frames into the machine learning model to obtain each of the touch sensing image frames corresponding to the a semantically segmented area of the mouse device; and acquiring the actual trajectory information according to the boundary of the semantically segmented area in each of the touch sensing image frames. 如請求項9所述的電子裝置,其中該處理器更經配置以: 從該電子裝置所執行的一作業系統或一應用程式取得用以控制該游標的該滑鼠軌跡資訊。 The electronic device as claimed in item 9, wherein the processor is further configured to: The mouse track information for controlling the cursor is obtained from an operating system or an application program executed by the electronic device. 如請求項9所述的電子裝置,其中該處理器更經配置以:根據該實際軌跡資訊中的多個觸控定位座標獲取一預設時段內的一實際移動資料;根據該滑鼠軌跡資訊中的多個游標定位座標獲取該預設時段內的一游標移動資料;以及比對該實際移動資料與該游標移動資料而判斷是否偵測到該作弊操作。 The electronic device as described in claim 9, wherein the processor is further configured to: obtain an actual movement data within a preset period of time according to a plurality of touch positioning coordinates in the actual trajectory information; according to the mouse trajectory information Obtaining a cursor movement data within the preset period of time at multiple cursor positioning coordinates; and comparing the actual movement data with the cursor movement data to determine whether the cheating operation is detected. 如請求項9所述的電子裝置,其中該處理器更經配置以:根據該實際軌跡資訊中的多個觸控定位座標獲取一實際軌跡圖像;根據該滑鼠軌跡資訊中的多個游標定位座標獲取一游標軌跡圖像;以及依據該實際軌跡圖像與該游標軌跡圖像判斷是否偵測到該作弊操作。 The electronic device as described in claim 9, wherein the processor is further configured to: acquire an actual trajectory image according to a plurality of touch positioning coordinates in the actual trajectory information; obtain an actual trajectory image according to a plurality of cursors in the mouse trajectory information Locating coordinates to obtain a cursor track image; and judging whether the cheating operation is detected according to the actual track image and the cursor track image. 如請求項9所述的電子裝置,其中該處理器更經配置以:根據該實際軌跡資訊中的多個觸控定位座標獲取一實際運動相關資料; 根據該滑鼠軌跡資訊中的多個游標定位座標獲取一游標運動相關資料;以及將該實際運動相關資料與該游標運動相關資料輸入至一機器學習模型,以由該機器學習模型決定是否偵測到該作弊操作。 The electronic device as described in claim 9, wherein the processor is further configured to: obtain an actual movement-related data according to a plurality of touch positioning coordinates in the actual trajectory information; Obtain a cursor motion-related data according to multiple cursor positioning coordinates in the mouse track information; and input the actual motion-related data and the cursor motion-related data into a machine learning model, so that the machine learning model determines whether to detect to the cheating operation.
TW110114179A 2021-04-20 2021-04-20 Anti-cheating method and electronic device TWI779566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110114179A TWI779566B (en) 2021-04-20 2021-04-20 Anti-cheating method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110114179A TWI779566B (en) 2021-04-20 2021-04-20 Anti-cheating method and electronic device

Publications (2)

Publication Number Publication Date
TWI779566B true TWI779566B (en) 2022-10-01
TW202242614A TW202242614A (en) 2022-11-01

Family

ID=85462584

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110114179A TWI779566B (en) 2021-04-20 2021-04-20 Anti-cheating method and electronic device

Country Status (1)

Country Link
TW (1) TWI779566B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201308128A (en) * 2011-08-04 2013-02-16 Univ Nat Cheng Kung Moving trajectory generation method
TW201514838A (en) * 2013-10-15 2015-04-16 Wistron Corp Operation method for electronic apparatus
TW201642089A (en) * 2015-04-23 2016-12-01 鴻海精密工業股份有限公司 Mouse pad with touch detection function
CN107037896A (en) * 2017-05-26 2017-08-11 徐孝海 Split mouse

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201308128A (en) * 2011-08-04 2013-02-16 Univ Nat Cheng Kung Moving trajectory generation method
TW201514838A (en) * 2013-10-15 2015-04-16 Wistron Corp Operation method for electronic apparatus
TW201642089A (en) * 2015-04-23 2016-12-01 鴻海精密工業股份有限公司 Mouse pad with touch detection function
CN107037896A (en) * 2017-05-26 2017-08-11 徐孝海 Split mouse

Also Published As

Publication number Publication date
TW202242614A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
US9746934B2 (en) Navigation approaches for multi-dimensional input
US9266026B2 (en) Method and apparatus for dynamically adjusting game or other simulation difficulty
US8958631B2 (en) System and method for automatically defining and identifying a gesture
JP5710846B2 (en) Control stick with multiple sensors to improve input sensitivity and function
TWI457793B (en) Real-time motion recognition method and inertia sensing and trajectory
CN103809737A (en) Method and device for human-computer interaction
JP2016534481A (en) System and method for providing a response to user input using information regarding state changes and predictions of future user input
KR20130042499A (en) A system for portable tangible interaction
JP2014525081A (en) User identification by gesture recognition
CN103518172A (en) Gaze-assisted computer interface
KR20150116897A (en) Detecting natural user-input engagement
CN107300973A (en) screen rotation control method, system and device
CN104049779A (en) Method and device for achieving rapid mouse pointer switching among multiple displayers
US20170344104A1 (en) Object tracking for device input
CN114391132A (en) Electronic equipment and screen capturing method thereof
TWI779566B (en) Anti-cheating method and electronic device
US9740242B2 (en) Motion control assembly with battery pack
JP5911962B2 (en) Systems and methods for facilitating analysis of brain injury and damage
CN115253304A (en) Anti-cheating method and electronic device
US20150138162A1 (en) Latency measuring and testing system and method
Torok et al. Evaluating and customizing user interaction in an adaptive game controller
CN110007748B (en) Terminal control method, processing device, storage medium and terminal
EP3584688A1 (en) Information processing system, information processing method, and program
TW202042019A (en) Auto feed forward/backward augmented reality learning system
WO2021075103A1 (en) Information processing device, information processing method, and program

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent