TWI704804B - Electronic apparatus and automatic advertisement closing method thereof - Google Patents

Electronic apparatus and automatic advertisement closing method thereof Download PDF

Info

Publication number
TWI704804B
TWI704804B TW108126521A TW108126521A TWI704804B TW I704804 B TWI704804 B TW I704804B TW 108126521 A TW108126521 A TW 108126521A TW 108126521 A TW108126521 A TW 108126521A TW I704804 B TWI704804 B TW I704804B
Authority
TW
Taiwan
Prior art keywords
advertisement window
screen
current
closed
image block
Prior art date
Application number
TW108126521A
Other languages
Chinese (zh)
Other versions
TW202106041A (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 TW108126521A priority Critical patent/TWI704804B/en
Application granted granted Critical
Publication of TWI704804B publication Critical patent/TWI704804B/en
Publication of TW202106041A publication Critical patent/TW202106041A/en

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

An electronic apparatus and automatic advertisement closing method thereof are provided. The method is adapted to the electronic apparatus including display screen and includes following steps. A previous frame and a current frame displayed by the display screen are captured. Whether the current frame includes an advertisement window is determined according to the previous frame and the current frame. If the current frame includes the advertisement window, a closing object of the advertisement window is detected through a machine learning model. The advertisement window is closed according to the position of the closing object.

Description

電子裝置及其廣告自動關閉方法Electronic device and its advertisement automatic closing method

本發明是有關於一種電子裝置,且特別是有關於一種電子裝置及其廣告自動關閉方法。The present invention relates to an electronic device, and more particularly to an electronic device and a method for automatically closing advertisements.

隨著個人電腦的普及化以及網路的蓬勃發展,現代人已十分習慣利用個人電腦來處理各項事務,並透過個人電腦中的瀏覽器來瀏覽網路上的各種資訊。基於商業考量,目前大部分商業網站所提供的網頁中會夾帶許多與網頁內容相關或是與其他業者相關之各項商品或服務的廣告。每當使用者連結到這些網頁或於特定時機,廣告可能彈出而出現在使用者面前,藉此達到廣告行銷效果。With the popularization of personal computers and the rapid development of the Internet, modern people have become very accustomed to using personal computers to handle various tasks, and to browse various information on the Internet through the browser in the personal computer. Based on commercial considerations, most of the current commercial websites provide web pages with advertisements for various products or services related to web content or related to other businesses. Whenever users link to these webpages or at specific times, advertisements may pop up and appear in front of users, thereby achieving the effect of advertising marketing.

然而,這些廣告往往會打斷使用者的操作動作與分散使用者的注意力,而讓使用者感到困擾。一般來說,使用者需要點選可以關閉廣告的顯示物件,才可將廣告自顯示畫面中移除,這也讓使用者感到非常麻煩。However, these advertisements often interrupt the user's operation and distract the user's attention, and make the user feel distressed. Generally speaking, the user needs to click on the display object that can close the advertisement to remove the advertisement from the display screen, which also makes the user feel very troublesome.

有鑑於此,本發明提出一種電子裝置及其廣告自動關閉方法,其可自動關閉彈出式廣告而提昇電子裝置的操作便利性。In view of this, the present invention provides an electronic device and an advertisement automatic closing method thereof, which can automatically close pop-up advertisements to improve the operating convenience of the electronic device.

本發明實施例提供一種廣告自動關閉方法,適用於包括顯示螢幕的電子裝置,所述方法包括下列步驟。擷取顯示螢幕所顯示的先前畫面與當前畫面。依據先前畫面與當前畫面,判斷當前畫面是否包括廣告視窗。若當前畫面包括廣告視窗,透過機器學習模型偵測廣告視窗的關閉物件。依據關閉物件的位置關閉廣告視窗。The embodiment of the present invention provides a method for automatically closing advertisements, which is suitable for an electronic device including a display screen. The method includes the following steps. Capture the previous and current images displayed on the display screen. Based on the previous screen and the current screen, it is determined whether the current screen includes an advertisement window. If the current screen includes an advertising window, the closed object of the advertising window is detected through the machine learning model. Close the ad window according to the position of the closed object.

本發明實施例提供一種電子裝置,其包括顯示螢幕、記憶體與處理器。處理器耦接顯示螢幕與記憶體,並經配置以執行下列步驟。擷取顯示螢幕所顯示的先前畫面與當前畫面。依據先前畫面與當前畫面,判斷當前畫面是否包括廣告視窗。若當前畫面包括廣告視窗,透過機器學習模型偵測廣告視窗的關閉物件。依據關閉物件的位置關閉廣告視窗。An embodiment of the present invention provides an electronic device, which includes a display screen, a memory, and a processor. The processor is coupled to the display screen and the memory, and is configured to perform the following steps. Capture the previous and current images displayed on the display screen. Based on the previous screen and the current screen, it is determined whether the current screen includes an advertisement window. If the current screen includes an advertising window, the closed object of the advertising window is detected through the machine learning model. Close the ad window according to the position of the closed object.

基於上述,本發明實施例可依據顯示螢幕所顯示的先前畫面與當前畫面來判斷是否有廣告視窗出現。當顯示螢幕顯示廣告視窗時,本發明實施例可依據機器學習模型辨識出用以關閉廣告視窗的關閉物件。基此,在使用者未給予操控指令的情況下,本發明實施例可基於關閉物件的所在位置自動關閉廣告視窗。藉此,使用者的動作可不被廣告視窗打斷,而提昇使用者操作電子裝置的流暢性與便利性。Based on the above, the embodiment of the present invention can determine whether an advertisement window appears based on the previous screen and the current screen displayed on the display screen. When the advertisement window is displayed on the display screen, the embodiment of the present invention can identify the closed object used to close the advertisement window according to the machine learning model. Based on this, in the case that the user does not give a manipulation instruction, the embodiment of the present invention can automatically close the advertisement window based on the location of the closed object. Thereby, the user's actions are not interrupted by the advertisement window, and the fluency and convenience of the user's operation of the electronic device are improved.

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

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

圖1是依照本發明一實施例所繪示的電子裝置的示意圖,但此僅是為了方便說明,並不用以限制本發明。請參照圖1,電子裝置10包括顯示螢幕101、記憶體102、輸入裝置103,以及處理器104。電子裝置10例如是桌上型電腦、筆記型電腦、智慧型手機、平板電腦、遊戲機、電子書或智慧電視等等,本發明對此並不限制。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. Please refer to FIG. 1, the electronic device 10 includes a display screen 101, a memory 102, an input device 103, and a processor 104. The electronic device 10 is, for example, a desktop computer, a notebook computer, a smart phone, a tablet computer, a game console, an e-book, or a smart TV, etc. The present invention is not limited thereto.

顯示螢幕101例如是液晶顯示器(Liquid Crystal Display,LCD)、發光二極體(Light-Emitting Diode,LED)顯示器、場發射顯示器(Field Emission Display,FED)、有機發光二極體(Organic Light-Emitting Diode,OLED)或其他種類的顯示器,本發明並不限制於此。The display screen 101 is, for example, a Liquid Crystal Display (LCD), a Light-Emitting Diode (LED) display, a Field Emission Display (FED), or an Organic Light-Emitting Diode (Organic Light-Emitting Diode) display. Diode, OLED) or other types of displays, the present invention is not limited to this.

記憶體102用以儲存影像、程式碼、軟體模組等等資料,其可以例如是任意型式的固定式或可移動式隨機存取記憶體(random access memory,RAM)、唯讀記憶體(read-only memory,ROM)、快閃記憶體(flash memory)、硬碟或其他類似裝置、積體電路及其組合。The memory 102 is used to store images, program codes, software modules, and other data. It can be, for example, any type of fixed or removable random access memory (RAM), read-only memory (read -only memory, ROM), flash memory (flash memory), hard disk or other similar devices, integrated circuits and combinations thereof.

輸入裝置103用以接收使用者下達的使用者操作,例如是滑鼠、鍵盤、觸控裝置或遙控器等等。The input device 103 is used to receive user operations issued by the user, such as a mouse, a keyboard, a touch device, or a remote control.

處理器104例如是中央處理單元(Central Processing Unit,CPU),或是其他可程式化之一般用途或特殊用途的微處理器(Microprocessor)、數位訊號處理器(Digital Signal Processor,DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuits,ASIC)、可程式化邏輯裝置(Programmable Logic Device,PLD)、圖形處理器(Graphics Processing Unit,GPU或其他類似裝置或這些裝置的組合。處理器104可執行記錄於記憶體102中的程式碼、軟體模組、指令等等,以實現本發明實施例的廣告自動關閉方法。The processor 104 is, for example, a central processing unit (Central Processing Unit, CPU), or other programmable general-purpose or special-purpose microprocessor (Microprocessor), digital signal processor (Digital Signal Processor, DSP), programmable Controllers, Application Specific Integrated Circuits (ASIC), Programmable Logic Device (PLD), Graphics Processing Unit (GPU or other similar devices) or a combination of these devices. The processor 104 can execute program codes, software modules, instructions, etc. recorded in the memory 102 to implement the method for automatically closing advertisements in the embodiment of the present invention.

然而,除了顯示螢幕101、記憶體102、輸入裝置103,以及處理器104,電子裝置10還可以包括未繪示於圖1的其他元件,像是揚聲器、麥克風、相機、通訊模組等等,本發明對此不限制。However, in addition to the display screen 101, the memory 102, the input device 103, and the processor 104, the electronic device 10 may also include other components not shown in FIG. 1, such as speakers, microphones, cameras, communication modules, etc. The present invention is not limited to this.

圖2是依照本發明一實施例所繪示的廣告自動關閉方法的流程圖。請參照圖2,本實施例的方式適用於上述實施例中的電子裝置10,以下即搭配電子裝置10中的各項元件說明本實施例廣告自動關閉方法的詳細步驟。FIG. 2 is a flowchart of a method for automatically closing advertisements 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. The detailed steps of the method for automatically closing advertisements in this embodiment are described below in conjunction with various components in the electronic device 10.

於步驟S201,處理器104擷取顯示螢幕101所顯示的先前畫面與當前畫面。於一實施例中,處理器104可藉由像是Windows作業系統的“Desktop Duplication API”等等的桌面擷取技術來獲取顯示螢幕101所顯示的先前畫面與當前畫面。先前畫面的顯示時間早於當前畫面。換言之,處理器104先擷取先前畫面後再擷取當前畫面。In step S201, the processor 104 captures the previous frame and the current frame displayed on the display screen 101. In one embodiment, the processor 104 can obtain the previous screen and the current screen displayed on the display screen 101 through a desktop capture technology such as the "Desktop Duplication API" of the Windows operating system. The display time of the previous screen is earlier than the current screen. In other words, the processor 104 first captures the previous frame and then captures the current frame.

於步驟S202,處理器104依據先前畫面與當前畫面,判斷當前畫面是否包括廣告視窗。於本發明實施例中,廣告視窗屬於彈出式視窗。需說明的是,廣告視窗往往是反應於使用者開啟新視窗、新網頁或是啟動應用程式的時候彈出。基此,於一實施例中,處理器104系反應於開啟新視窗、新網頁或是應用程式而判斷當前畫面是否包括廣告視窗。In step S202, the processor 104 determines whether the current picture includes an advertisement window based on the previous picture and the current picture. In the embodiment of the present invention, the advertisement window is a pop-up window. It should be noted that the ad window is often reflected when the user opens a new window, a new web page, or launches an application. Based on this, in one embodiment, the processor 104 determines whether the current screen includes an advertisement window in response to opening a new window, a new web page, or an application.

此外,彈出式(Pop-up)的廣告視窗會遮蔽使用者欲瀏覽的畫面內容,即遮蔽先前畫面的部分內容而形成的當前畫面。基此,於一實施例中,處理器104可藉由比較先前畫面的影像內容與當前畫面的影像內容來判斷廣告視窗是否出現。或者,彈出式的廣告視窗的出現時機與使用者操作電子裝置10時所顯示的畫面內容有相關性。具體而言,彈出式的廣告視窗通常是使用者在使用瀏覽器瀏覽網頁或執行特定應用程式(像是遊戲程式等等)的時候彈出,且彈出式的廣告視窗會遮蔽先前畫面中的部份內容而形成當前畫面。基此,於一實施例中,處理器104可利用機器學習模型來預測當前畫面是否包括廣告視窗,上述機器學習模型例如是時間遞歸神經網路(recurrent neural network,RNN)模型或長短期記憶(Long Short Term Memory,LSTM)模型等可以處理有關於時間序列的訓練資料的模型。具體而言,處理器104可將包括至少一張先前畫面與當前畫面作為輸入影像序列而輸入至機器學習模型,而機器學習模型將判斷是否有廣告視窗出現於當前畫面。可知的,若要使用機器學習模型來預測是否有廣告出現於當前畫面,機器學習模型的訓練是必要的。當訓練此機器學習模型時,可依據多個訓練影像序列與對應的分類標籤進行訓練。上述的訓練影像序列包括至少兩張畫面影像,而分類標籤標可為「包括廣告視窗」與「未包括廣告視窗」兩種。基此,機器學習模型可將包括先前影像與當前影像的輸入影像序列分類為包括廣告視窗或未包括廣告視窗,以預測當前畫面是否包括廣告視窗。In addition, the pop-up advertisement window will cover the screen content that the user wants to browse, that is, the current screen formed by covering part of the content of the previous screen. Based on this, in one embodiment, the processor 104 can determine whether the advertisement window appears by comparing the image content of the previous screen with the image content of the current screen. Alternatively, the appearance timing of the pop-up advertisement window is related to the screen content displayed when the user operates the electronic device 10. Specifically, pop-up advertisement windows usually pop up when the user browses the web or executes specific applications (such as game programs, etc.) using the browser, and the pop-up advertisement windows will obscure parts of the previous screen. The content forms the current screen. Based on this, in one embodiment, the processor 104 can use a machine learning model to predict whether the current screen includes an advertising window. The machine learning model is, for example, a time recurrent neural network (RNN) model or long short-term memory ( Long Short Term Memory (LSTM) models and other models that can handle training data about time series. Specifically, the processor 104 may input at least one previous frame and the current frame as an input image sequence to the machine learning model, and the machine learning model will determine whether an advertisement window appears on the current frame. It can be seen that if a machine learning model is to be used to predict whether an advertisement will appear on the current screen, the training of the machine learning model is necessary. When training this machine learning model, it can be trained based on multiple training image sequences and corresponding classification labels. The above-mentioned training image sequence includes at least two screen images, and the classification label can be "including advertising window" and "not including advertising window". Based on this, the machine learning model can classify the input image sequence including the previous image and the current image as including or not including the advertisement window to predict whether the current picture includes the advertisement window.

接著,於步驟S203,若處理器104判定當前畫面包括廣告視窗,處理器104透過機器學習模型偵測廣告視窗的關閉物件。詳細來說,廣告視窗具有用以關閉廣告視窗的關閉物件。舉例而言,關閉物件可以是顯示於廣告視窗角落的圖示選項「X」、顯示於廣告視窗內的文字選項「關閉」,或者是實施為其他樣態的虛擬按鍵/圖示選項。關閉物件可能顯示於廣告視窗內的任何位置。反應於使用者透過輸入裝置103點選關閉物件時,廣告視窗將關閉。Next, in step S203, if the processor 104 determines that the current screen includes an advertisement window, the processor 104 detects the closed object of the advertisement window through a machine learning model. In detail, the advertisement window has a closing object for closing the advertisement window. For example, the closed object can be an icon option "X" displayed in the corner of the advertisement window, a text option "close" displayed in the advertisement window, or implemented as other virtual button/icon options. The closed object may be displayed anywhere in the ad window. In response to the user clicking the close object through the input device 103, the advertisement window will be closed.

於一實施例中,處理器104可利用機器學習模型辨識出廣告視窗中的關閉物件。上述的機器學習模型可以是深度學習中的CNN模型、Yolo模型、使用NMS算法的模型或其他可用以進行物件偵測的機器學習模型,本發明對此不限制。於此,用以辨識關閉物件的機器學習模型是事先由許多的樣本廣告視窗影像與標示出來的樣本關閉物件而訓練出來。於機器學習模型的訓練過程中,須先收集大量的樣本廣告視窗影像,藉著對樣本廣告視窗影像進行物件標示而於樣本廣告視窗影像上標示出樣本關閉物件。之後,在決定適合的機器學習模型之後,將大量的樣本廣告視窗影像與標示出來的樣本關閉物件輸入至機器學習模型來逐步訓練出一套可用以預測關閉物件的規則(即機器學習模型的參數),最終以建立出可用以偵測出關閉物件的機器學習模型。於一實施例中,機器學習演算法可自行萃取出用以偵測關閉物件的特徵而建立出用以偵測關閉物件的機器學習模型。藉此,處理器104可利用機學習模型而依據廣告視窗影像預測出關閉物件的所在位置。In one embodiment, the processor 104 may use a machine learning model to identify closed objects in the advertisement window. The above-mentioned machine learning model may be a CNN model, a Yolo model, a model using the NMS algorithm in deep learning, or other machine learning models that can be used for object detection, and the present invention is not limited thereto. Here, the machine learning model used to identify the closed object is trained in advance from many sample advertising window images and the marked sample closed object. In the training process of the machine learning model, a large number of sample advertisement window images must be collected first, and the sample closed object is marked on the sample advertisement window image by marking the sample advertisement window image. After determining a suitable machine learning model, input a large number of sample advertising window images and marked sample closed objects into the machine learning model to gradually train a set of rules that can be used to predict closed objects (that is, the parameters of the machine learning model) ) To finally establish a machine learning model that can be used to detect closed objects. In one embodiment, the machine learning algorithm can automatically extract the features used to detect the closed object to create a machine learning model for detecting the closed object. In this way, the processor 104 can use the machine learning model to predict the location of the closed object based on the advertisement window image.

在辨識出廣告視窗中的關閉物件之後,於步驟S204,處理器104依據關閉物件的位置關閉廣告視窗。具體而言,處理器104可依據關閉物件的位置來自動產生關聯於關閉物件的點選訊號給電子裝置10的作業系統。基此,電子裝置10的作業系統可判定收到點選關閉物件的點選訊號,進而關閉廣告視窗。After recognizing the closed object in the advertisement window, in step S204, the processor 104 closes the advertisement window according to the position of the closed object. Specifically, the processor 104 can automatically generate a click signal associated with the closed object to the operating system of the electronic device 10 according to the position of the closed object. Based on this, the operating system of the electronic device 10 can determine that it receives a click signal for clicking the object to be closed, and then closes the advertisement window.

圖3是依照本發明一實施例所繪示的偵測廣告視窗的示意圖。請參照圖3,先前畫面P1為使用者使用瀏覽器瀏覽網頁的顯示畫面。接著,當前畫面C1出現了彈出式的廣告視窗W1。於一實施例中,處理器104可比較先前畫面P1與當前畫面C1而識別出當前畫面C1包括相異於先前畫面P1的影像區塊,而此影像區塊Z1可被判斷為廣告視窗。接著,處理器104可利用機器學習模型偵測出影像區塊Z1中的關閉物件Obj1,並自行產生點選關閉物件Obj1的點選訊號,致使廣告視窗W1被關閉。FIG. 3 is a schematic diagram of detecting an advertisement window according to an embodiment of the invention. Please refer to FIG. 3, the previous screen P1 is a display screen of a user browsing a webpage using a browser. Then, a pop-up advertisement window W1 appears on the current screen C1. In one embodiment, the processor 104 can compare the previous frame P1 with the current frame C1 and recognize that the current frame C1 includes an image block different from the previous frame P1, and the image block Z1 can be determined as an advertisement window. Then, the processor 104 can use the machine learning model to detect the closing object Obj1 in the image block Z1, and generate a click signal for clicking the closing object Obj1, so that the advertisement window W1 is closed.

然而,用以偵測關閉物件的機器學習模型可能發生誤判的狀況,像是無法偵測出關閉物件等等,此時使用者還是會手動關閉廣告視窗。因而,於一實施例中,使用者關閉廣告視窗的使用者行為可用來作為更新機器學習模型的依據。以下將列舉實施例以說明之。However, the machine learning model used to detect closed objects may be misjudged, such as failing to detect closed objects, etc. At this time, the user still manually closes the advertisement window. Therefore, in one embodiment, the user behavior of the user closing the advertisement window can be used as a basis for updating the machine learning model. Examples will be listed below to illustrate.

圖4是依照本發明一實施例所繪示的廣告自動關閉方法的流程圖。請參照圖4,本實施例的方式適用於上述實施例中的電子裝置10,以下即搭配電子裝置10中的各項元件說明本實施例廣告自動關閉方法的詳細步驟。FIG. 4 is a flowchart of a method for automatically closing advertisements according to an embodiment of the present invention. Please refer to FIG. 4, the method of this embodiment is applicable to the electronic device 10 in the above-mentioned embodiment. The detailed steps of the method for automatically closing advertisements in this embodiment are described below in conjunction with various components in the electronic device 10.

首先,於步驟S401,處理器104擷取顯示螢幕101所顯示的先前畫面與當前畫面。於步驟S402,處理器104比較先前畫面與當前畫面,以判斷當前畫面是否包括相異於先前畫面的影像區塊。於本實施例中,步驟S402可實施為子步驟S4021~S4022。詳細而言,於步驟S4021,依據先前畫面與當前畫面,處理器104判斷當前畫面是否包括廣告視窗比較先前畫面與當前畫面,以判斷當前畫面是否包括相異於先前畫面的第一影像區塊。若當前畫面包括相異於先前畫面的第一影像區塊,於步驟S4022,處理器104對第一影像區塊進行影像特徵辨識而判斷第一影像區塊是否包括廣告內容。具體而言,處理器104可依據影像相減法來比較先前畫面與當前畫面,而當前畫面中相異於先前畫面的第一影像區塊有可能是廣告視窗或是使用者自己開啟的其他應用程式視窗。因此,於本實施例中,處理器104可對第一影像區塊進行文字辨識或影像圖徵辨識,以判斷第一影像區塊中是否包含關於廣告內容的特定關鍵字或特定圖徵。舉例而言,特定關鍵字例如為「廣告」、「特價」、「折扣」、「期間限定」等等。特定圖徵例如是品牌商標或商店商標等等。First, in step S401, the processor 104 captures the previous frame and the current frame displayed on the display screen 101. In step S402, the processor 104 compares the previous frame with the current frame to determine whether the current frame includes an image block different from the previous frame. In this embodiment, step S402 can be implemented as sub-steps S4021 to S4022. Specifically, in step S4021, based on the previous screen and the current screen, the processor 104 determines whether the current screen includes an advertisement window and compares the previous screen with the current screen to determine whether the current screen includes a first image block that is different from the previous screen. If the current frame includes a first image block that is different from the previous frame, in step S4022, the processor 104 performs image feature identification on the first image block to determine whether the first image block includes advertising content. Specifically, the processor 104 can compare the previous screen with the current screen according to the image subtraction method, and the first image block in the current screen that is different from the previous screen may be an advertisement window or another application opened by the user. Windows. Therefore, in this embodiment, the processor 104 can perform text recognition or image feature recognition on the first image block to determine whether the first image block contains a specific keyword or a specific image related to the advertisement content. For example, specific keywords are, for example, "advertisement", "special price", "discount", "limited period" and so on. The specific signs are, for example, brand trademarks or store trademarks.

若當前畫面包括相異於先前畫面的第一影像區塊且第一影像區塊包括廣告內容,於步驟S403,處理器104透過機器學習模型偵測廣告視窗的關閉物件。此步驟相似於步驟S203,於此不再贅述。於步驟S404,處理器104依據關閉物件的位置關閉廣告視窗。於本實施例中,步驟S404可實施為子步驟S4041~S4042。詳細而言,於步驟S4041,處理器104依據關閉物件的位置產生關閉物件的點選訊號。於步驟S4042,響應於關聯關閉物件的點選訊號,處理器104關閉廣告視窗。If the current screen includes a first image block different from the previous screen and the first image block includes advertising content, in step S403, the processor 104 detects the closed object of the advertising window through the machine learning model. This step is similar to step S203, and will not be repeated here. In step S404, the processor 104 closes the advertisement window according to the position of the closed object. In this embodiment, step S404 can be implemented as sub-steps S4041 to S4042. In detail, in step S4041, the processor 104 generates a click signal for closing the object according to the position of the closing object. In step S4042, in response to the click signal associated with the closed object, the processor 104 closes the advertisement window.

接著,於步驟S405,處理器104判斷廣告視窗是否關閉。具體而言,處理器104可比較當前畫面與下一畫面,像是對當前畫面與下一畫面進行影像相減,以判斷廣告視窗是否關閉。一般而言,若彈出式廣告視窗沒有成功被關閉,則當前畫面與下一畫面大致上相同,兩畫面不具有明顯的相異區塊。Next, in step S405, the processor 104 determines whether the advertisement window is closed. Specifically, the processor 104 may compare the current frame with the next frame, such as performing image subtraction on the current frame and the next frame, to determine whether the advertisement window is closed. Generally speaking, if the pop-up advertisement window is not successfully closed, the current screen and the next screen are roughly the same, and the two screens do not have obvious different blocks.

值得一提的是,若廣告視窗未成功被關閉,代表機器學習模型無法成功偵測出關閉物件,因而使用者一般而言會手動關閉廣告視窗,亦即透過輸入裝置103點選廣告視窗中的關閉物件。於是,若廣告視窗未關閉,於步驟S406,處理器104偵測透過輸入裝置103輸入的使用者行為。例如,處理器104可偵測滑鼠輸入事件、鍵盤輸入事件、觸控輸入事件等等。於步驟S407,處理器104獲取使用者行為點選顯示螢幕101的點選位置。此點選位置為關閉物件的所在位置。基此,於步驟S408,處理器104擷取點選位置四周的影像內容而獲取第二影像區塊。此第二影像區塊必定涵蓋關閉物件的部分或全部。於步驟S409,處理器104依據廣告視窗中與使用者行為相關聯的第二影像區塊更新機器學習模型,從而提升機器學習模型的精確度。舉例而言,圖5為依據本發明一實施例所繪示的取得關聯於關閉物件的影像區塊的範例示意圖。請參照圖5,若無法透過機器學習模型關閉廣告視窗W2,使用者將透過滑鼠點擊關閉物件Obj2。處理器104反應於偵測到滑鼠的點選訊號,而擷取此點選位置L1四周的影像區塊Z2,並將依據影像區塊Z2與廣告視窗W2更新機器學習模型的參數。藉此,關閉廣告視窗的使用者行為可用來繼續訓練機器學習模型,而可提升偵測出關閉物件的準確度。It is worth mentioning that if the advertisement window is not successfully closed, it means that the machine learning model cannot successfully detect the closed object. Therefore, users generally close the advertisement window manually, that is, click on the advertisement window through the input device 103 Close the object. Therefore, if the advertisement window is not closed, in step S406, the processor 104 detects the user behavior input through the input device 103. For example, the processor 104 can detect mouse input events, keyboard input events, touch input events, and so on. In step S407, the processor 104 obtains the click position of the user's behavior on the display screen 101. This click position is where the object is closed. Based on this, in step S408, the processor 104 captures the image content around the selected location to obtain the second image block. This second image block must cover part or all of the closed object. In step S409, the processor 104 updates the machine learning model according to the second image block associated with the user behavior in the advertisement window, thereby improving the accuracy of the machine learning model. For example, FIG. 5 is a schematic diagram illustrating an example of obtaining an image block associated with a closed object according to an embodiment of the invention. Please refer to Figure 5, if the advertisement window W2 cannot be closed through the machine learning model, the user will close the object Obj2 by clicking the mouse. The processor 104 responds to detecting the click signal of the mouse, and captures the image block Z2 around the click position L1, and updates the parameters of the machine learning model according to the image block Z2 and the advertising window W2. In this way, the user behavior of closing the advertisement window can be used to continue training the machine learning model, and the accuracy of detecting the closed object can be improved.

綜上所述,於本發明實施例中,可依據顯示螢幕所顯示的先前畫面與當前畫面來判斷是否有廣告視窗出現。當顯示螢幕顯示廣告視窗時,可依據機器學習模型辨識出用以關閉廣告視窗的關閉物件。於本發明的實施例中,可僅依據畫面影像資料來達成自動關閉廣告視窗的目的。在使用者未給予操控指令的情況下,本發明實施例可基於關閉物件的所在位置自動關閉廣告視窗。藉此,使用者的動作可不被廣告視窗打斷,而提昇使用者操作電子裝置的流暢性與便利性。除此之外,本發明實施例更可依據使用者關閉廣告視窗的使用者行為來更新機器學習模型,而提升機器學習模型的準確度。In summary, in the embodiment of the present invention, it can be determined whether an advertisement window appears based on the previous screen and the current screen displayed on the display screen. When the advertisement window is displayed on the display screen, the closing object used to close the advertisement window can be identified according to the machine learning model. In the embodiment of the present invention, the purpose of automatically closing the advertisement window can be achieved only based on the screen image data. In the case that the user does not give a manipulation instruction, the embodiment of the present invention can automatically close the advertisement window based on the location of the closed object. In this way, the user's actions are not interrupted by the advertisement window, and the fluency and convenience of the user's operation of the electronic device are improved. In addition, the embodiment of the present invention can update the machine learning model according to the user behavior of the user closing the advertisement window, so as to improve the accuracy of the machine learning model.

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

10:電子裝置10: Electronic device

101:顯示螢幕101: display screen

102:記憶體102: memory

103:輸入裝置103: input device

104:處理器104: processor

W1、W2:廣告視窗W1, W2: Advertising window

Obj1、Obj2:關閉物件Obj1, Obj2: close objects

L1:點選位置L1: Click location

Z1、Z2:影像區塊Z1, Z2: image block

P1:先前畫面P1: Previous screen

C1:當前畫面C1: Current screen

S201~S204、S401~S409、S4021~S4022、S4041~S4042:步驟S201~S204, S401~S409, S4021~S4022, S4041~S4042: steps

圖1是依照本發明一實施例所繪示的電子裝置的示意圖。 圖2是依照本發明一實施例所繪示的廣告自動關閉方法的流程圖。 圖3是依照本發明一實施例所繪示的偵測廣告視窗的示意圖。 圖4是依照本發明一實施例所繪示的廣告自動關閉方法的流程圖。 圖5為依據本發明一實施例所繪示的取得關聯於關閉物件的影像區塊的範例示意圖。 FIG. 1 is a schematic diagram of an electronic device according to an embodiment of the invention. FIG. 2 is a flowchart of a method for automatically closing advertisements according to an embodiment of the present invention. FIG. 3 is a schematic diagram of detecting an advertisement window according to an embodiment of the invention. FIG. 4 is a flowchart of a method for automatically closing advertisements according to an embodiment of the present invention. FIG. 5 is a schematic diagram illustrating an example of obtaining an image block associated with a closed object according to an embodiment of the present invention.

S201~S204:步驟 S201~S204: steps

Claims (12)

一種廣告自動關閉方法,適用於包括顯示螢幕的一電子裝置,所述方法包括:擷取該顯示螢幕所顯示的一先前畫面與一當前畫面;依據該先前畫面與該當前畫面,判斷該當前畫面是否包括一廣告視窗;若判定該當前畫面包括該廣告視窗,透過一機器學習模型偵測該廣告視窗的關閉物件;以及依據該關閉物件的位置關閉該廣告視窗。 A method for automatically closing advertisements is suitable for an electronic device that includes a display screen. The method includes: capturing a previous screen and a current screen displayed on the display screen; judging the current screen according to the previous screen and the current screen Whether an advertisement window is included; if it is determined that the current screen includes the advertisement window, a machine learning model is used to detect a closed object of the advertisement window; and the advertisement window is closed according to the position of the closed object. 如申請專利範圍第1項所述的廣告自動關閉方法,其中依據該先前畫面與該當前畫面,判斷該當前畫面是否包括該廣告視窗的步驟包括:比較該先前畫面與該當前畫面,以判斷該當前畫面是否包括相異於該先前畫面的一第一影像區塊。 For example, in the method for automatically closing advertisements as described in item 1 of the scope of patent application, the step of judging whether the current picture includes the advertisement window based on the previous picture and the current picture includes: comparing the previous picture with the current picture to determine the Whether the current frame includes a first image block different from the previous frame. 如申請專利範圍第2項所述的廣告自動關閉方法,其中依據該先前畫面與該當前畫面,判斷該當前畫面是否包括該廣告視窗的步驟更包括:若該當前畫面包括相異於該先前畫面的該第一影像區塊,對該第一影像區塊進行影像特徵辨識而判斷該第一影像區塊是否包括廣告內容。 For example, the method for automatically closing advertisements according to the second item of the scope of patent application, wherein the step of judging whether the current screen includes the advertisement window based on the previous screen and the current screen further includes: if the current screen includes a screen different from the previous screen Performing image feature identification on the first image block to determine whether the first image block includes advertising content. 如申請專利範圍第1項所述的廣告自動關閉方法,其中所述方法更包括:判斷該廣告視窗是否關閉;若該廣告視窗未關閉,偵測一使用者行為;以及依據該廣告視窗中與該使用者行為相關聯的第二影像區塊更新該機器學習模型。 For example, the method for automatically closing advertisements as described in item 1 of the scope of patent application, wherein the method further includes: determining whether the advertisement window is closed; if the advertisement window is not closed, detecting a user behavior; The second image block associated with the user behavior updates the machine learning model. 如申請專利範圍第4項所述的廣告自動關閉方法,其中依據該廣告視窗中與該使用者行為相關聯的該第二影像區塊更新該機器學習模型的步驟包括:獲取該使用者行為點選該顯示螢幕的點選位置;以及擷取該點選位置四周的影像內容而獲取該第二影像區塊。 According to the method for automatically closing advertisements according to item 4 of the scope of patent application, wherein the step of updating the machine learning model according to the second image block associated with the user behavior in the advertisement window includes: obtaining the user behavior points Select the click position of the display screen; and capture the image content around the click position to obtain the second image block. 如申請專利範圍第1項所述的廣告自動關閉方法,其中依據該關閉物件的位置關閉該廣告視窗的步驟包括:依據該關閉物件的位置產生該關閉物件的點選訊號;以及響應於關聯該關閉物件的該點選訊號,關閉該廣告視窗。 For example, in the method for automatically closing advertisements described in claim 1, wherein the step of closing the advertisement window according to the position of the closing object includes: generating a click signal of the closing object according to the position of the closing object; and responding to associating the closed object Close the click signal of the object and close the advertisement window. 一種電子裝置,包括:顯示螢幕;記憶體:以及 處理器,耦接該輸入裝置、該記憶體與該顯示螢幕,且經配置以:擷取該顯示螢幕所顯示的一先前畫面與一當前畫面;依據該先前畫面與該當前畫面,判斷該當前畫面是否包括一廣告視窗;若該當前畫面包括該廣告視窗,透過一機器學習模型偵測該廣告視窗的關閉物件;以及依據該關閉物件的位置關閉該廣告視窗。 An electronic device, including: a display screen; a memory: and The processor is coupled to the input device, the memory and the display screen, and is configured to: capture a previous frame and a current frame displayed on the display screen; determine the current frame based on the previous frame and the current frame Whether the screen includes an advertisement window; if the current screen includes the advertisement window, detect the closed object of the advertisement window through a machine learning model; and close the advertisement window according to the position of the closed object. 如申請專利範圍第7項所述的電子裝置,其中該處理器經配置以:比較該先前畫面與該當前畫面,以判斷該當前畫面是否包括相異於該先前畫面的一第一影像區塊。 The electronic device according to claim 7, wherein the processor is configured to: compare the previous frame with the current frame to determine whether the current frame includes a first image block that is different from the previous frame . 如申請專利範圍第8項所述的電子裝置,其中該處理器經配置以:若該當前畫面包括相異於該先前畫面的該第一影像區塊,對該第一影像區塊進行影像特徵辨識而判斷該第一影像區塊是否包括廣告內容。 The electronic device according to claim 8, wherein the processor is configured to: if the current frame includes the first image block that is different from the previous frame, perform image characteristics on the first image block Identify and determine whether the first image block includes advertising content. 如申請專利範圍第7項所述的電子裝置,其中電子裝置更包括輸入裝置,該處理器更經配置以:判斷該廣告視窗是否關閉;若該廣告視窗未關閉,偵測透過該輸入裝置輸入的一使用者 行為;以及依據該廣告視窗中與該使用者行為相關聯的第二影像區塊更新該機器學習模型。 For example, the electronic device described in item 7 of the scope of patent application, wherein the electronic device further includes an input device, and the processor is further configured to: determine whether the advertisement window is closed; if the advertisement window is not closed, detect input through the input device A user of Behavior; and update the machine learning model according to the second image block associated with the user behavior in the advertisement window. 如申請專利範圍第10項所述的電子裝置,其中該處理器經配置以:獲取該使用者行為點選該顯示螢幕的點選位置;以及擷取該點選位置四周的影像內容而獲取該第二影像區塊。 For example, the electronic device described in claim 10, wherein the processor is configured to: obtain the click position of the user behavior clicking the display screen; and capture the image content around the click position to obtain the The second image block. 如申請專利範圍第7項所述的電子裝置,其中該處理器經配置以:依據該關閉物件的位置產生該關閉物件的點選訊號;以及響應於關聯該關閉物件的該點選訊號,關閉該廣告視窗。 For example, the electronic device described in claim 7, wherein the processor is configured to: generate a click signal of the closed object according to the position of the closed object; and turn off in response to the click signal associated with the closed object The ad window.
TW108126521A 2019-07-26 2019-07-26 Electronic apparatus and automatic advertisement closing method thereof TWI704804B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108126521A TWI704804B (en) 2019-07-26 2019-07-26 Electronic apparatus and automatic advertisement closing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108126521A TWI704804B (en) 2019-07-26 2019-07-26 Electronic apparatus and automatic advertisement closing method thereof

Publications (2)

Publication Number Publication Date
TWI704804B true TWI704804B (en) 2020-09-11
TW202106041A TW202106041A (en) 2021-02-01

Family

ID=73643989

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108126521A TWI704804B (en) 2019-07-26 2019-07-26 Electronic apparatus and automatic advertisement closing method thereof

Country Status (1)

Country Link
TW (1) TWI704804B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114612167A (en) * 2022-05-12 2022-06-10 杭州桃红网络有限公司 Method for establishing automatic advertisement shutdown model and automatic advertisement shutdown model
CN115937855A (en) * 2023-03-10 2023-04-07 四川语璐科技有限公司 Intelligent device control method and system based on big data

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI787885B (en) * 2021-06-25 2022-12-21 凌華科技股份有限公司 Non-intrusive detection method and device for pop-up window button

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543096A (en) * 2003-04-30 2004-11-03 ���µ�����ҵ��ʽ���� Equipment and method for automatic detection of television advertisement
CN108279818A (en) * 2017-03-08 2018-07-13 广州市动景计算机科技有限公司 Close the method, apparatus and user terminal of webpage floating window

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543096A (en) * 2003-04-30 2004-11-03 ���µ�����ҵ��ʽ���� Equipment and method for automatic detection of television advertisement
CN108279818A (en) * 2017-03-08 2018-07-13 广州市动景计算机科技有限公司 Close the method, apparatus and user terminal of webpage floating window

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114612167A (en) * 2022-05-12 2022-06-10 杭州桃红网络有限公司 Method for establishing automatic advertisement shutdown model and automatic advertisement shutdown model
CN115937855A (en) * 2023-03-10 2023-04-07 四川语璐科技有限公司 Intelligent device control method and system based on big data

Also Published As

Publication number Publication date
TW202106041A (en) 2021-02-01

Similar Documents

Publication Publication Date Title
TWI704804B (en) Electronic apparatus and automatic advertisement closing method thereof
KR102047568B1 (en) Measuring web page rendering time
CN102999274B (en) Semantic zoom animation
US9384503B2 (en) Terminal apparatus, advertisement display control apparatus, and advertisement display method
US20180329801A1 (en) Detecting and correcting layout anomalies in real-time
JP2017510910A (en) Behavior event measurement system and related method
MX2014013215A (en) Detection of exit behavior of an internet user.
US20150058766A1 (en) Information processing methods and electronic devices
US10528980B2 (en) Targeted marketing using dynamically varied recommendations
US8069081B2 (en) Targeted advertising using object identification
US10592580B2 (en) Web UI builder application
US20200356251A1 (en) Conversion of handwriting to text in text fields
CN112783594A (en) Message display method and device and electronic equipment
CN107391165A (en) Control display methods, client and storage medium
US10877780B2 (en) Visibility detection using gesture fingerprinting
CN107239222A (en) The control method and terminal device of a kind of touch-screen
CN109582421A (en) A kind of page display method, device and equipment
WO2022062563A1 (en) Target information management method and apparatus, electronic device and storage medium
WO2020147007A1 (en) Information pushing method and related product
US20170013309A1 (en) System and method for product placement
US10908929B2 (en) Human versus bot detection using gesture fingerprinting
CN111949356A (en) Popup window processing method and device and electronic equipment
TWI774258B (en) Processing system and processing method for user interface
WO2017020719A1 (en) Method and device for classifying object information in page
US20220198769A1 (en) Machine learning artificial intelligence system for producing 360 virtual representation of an object