TWI739052B - Electronic device and operating method thereof - Google Patents
Electronic device and operating method thereof Download PDFInfo
- Publication number
- TWI739052B TWI739052B TW107147259A TW107147259A TWI739052B TW I739052 B TWI739052 B TW I739052B TW 107147259 A TW107147259 A TW 107147259A TW 107147259 A TW107147259 A TW 107147259A TW I739052 B TWI739052 B TW I739052B
- Authority
- TW
- Taiwan
- Prior art keywords
- magnification
- display
- display area
- original
- image
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/2628—Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- User Interface Of Digital Computer (AREA)
- Image Analysis (AREA)
Abstract
Description
本案涉及一種電子裝置及其操作方法。 This case involves an electronic device and its operation method.
部分市售的網路攝影機具有動態偵測功能,若網路攝影機偵測到目標區域有動靜時,其可以設定觸發某些動作,例如發送推播通知或是進行錄影等等。然而,市售網路攝影機的錄影不具備額外的處理或標記等功能,故在觀看錄影檔時,使用者必須以肉眼觀察影像的變化,更甚者,使用者若使用行動裝置,其相對較小的螢幕將導致不佳的使用者體驗。 Some commercially available webcams have a motion detection function. If the webcam detects movement in the target area, it can be set to trigger certain actions, such as sending push notifications or recording videos. However, the video recording of commercially available webcams does not have additional processing or marking functions. Therefore, when viewing the video files, users must observe the changes of the images with the naked eye. What's more, if the user uses a mobile device, it is relatively A small screen will result in a poor user experience.
本案的一實施例涉及一種電子裝置,其包含一顯示介面、一記憶體以及一處理器。該顯示介面包含一第一顯示區以及一第二顯示區。該記憶體儲存至少一指令。該處理器耦接於該記憶體,該處理器載入該至少一程式指令後,執行下列步驟:存取一影像紀錄檔,該影像紀錄檔具有複數個原始畫面;依據一原始顯示倍率同時於該第一顯示區以及該第二 顯示區顯示該些原始畫面;偵測該影像紀錄檔中是否有一第一物件;當於該影像紀錄檔中偵測到該第一物件時,依據一第一放大倍率於該第二顯示區中顯示包含該第一物件的一放大畫面,並依據該原始顯示倍率於該第一顯示區中顯示該放大畫面所對應的原始畫面,其中該第一放大倍率大於該原始顯示倍率。 An embodiment of this case relates to an electronic device, which includes a display interface, a memory, and a processor. The display interface includes a first display area and a second display area. The memory stores at least one command. The processor is coupled to the memory, and after loading the at least one program instruction, the processor executes the following steps: accessing an image log file, the image log file having a plurality of original frames; and simultaneously in accordance with an original display magnification The first display area and the second The display area displays the original images; detects whether there is a first object in the image log file; when the first object is detected in the image log file, in the second display area according to a first magnification Displaying an enlarged picture containing the first object, and displaying an original picture corresponding to the enlarged picture in the first display area according to the original display magnification, wherein the first magnification is greater than the original display magnification.
本案的另一實施例涉及一種操作方法。應用於一電子裝置,該電子裝置具有一第一顯示區以及一第二顯示區。該操作方法包含:存取影像紀錄檔,該影像紀錄檔具有複數個原始畫面;依據一原始顯示倍率同時於該第一顯示區以及該第二顯示區顯示該些原始畫面;偵測該影像紀錄檔中是否有一第一物件;當於該影像紀錄檔中偵測到該第一物件時,依據一第一放大倍率於該第二顯示區中顯示包含該第一物件的一放大畫面,並依據該原始顯示倍率於該第一顯示區中顯示該放大畫面所對應的原始畫面,其中該第一放大倍率大於該原始顯示倍率。 Another embodiment of this case relates to an operation method. Applied to an electronic device, the electronic device has a first display area and a second display area. The operation method includes: accessing an image log file, the image log file having a plurality of original frames; simultaneously displaying the original frames in the first display area and the second display area according to an original display magnification; detecting the image record Whether there is a first object in the file; when the first object is detected in the image log file, an enlarged screen containing the first object is displayed in the second display area according to a first magnification, and according to The original display magnification displays the original picture corresponding to the enlarged picture in the first display area, wherein the first magnification is greater than the original display magnification.
依據前述實施例,本案的電子裝置以及電子裝置操作方法可同時於第一及第二顯示區中顯示目標區域的影像,並自動追蹤影像紀錄檔當中的移動物件,再以合適的倍率於第二顯示區當中顯示移動物件的影像,是一種有效且直覺的技術。 According to the foregoing embodiment, the electronic device and the electronic device operating method of this application can simultaneously display the image of the target area in the first and second display areas, and automatically track the moving objects in the image log file, and then use the appropriate magnification on the second display area. Displaying images of moving objects in the display area is an effective and intuitive technique.
100:電子裝置 100: electronic device
120:顯示介面 120: display interface
121:第一顯示區 121: The first display area
122:第二顯示區 122: second display area
140:記憶體 140: memory
160:處理器 160: processor
200:電子裝置操作方法 200: How to operate electronic devices
S201~S206、S2041~S2042:步驟 S201~S206, S2041~S2042: steps
CA1:第一範圍 CA1: first range
CA2:第二範圍 CA2: second range
CA3:第三範圍 CA3: Third range
LP1~LP3:左上角點 LP1~LP3: upper left corner point
RP1~RP3:右下角點 RP1~RP3: bottom right corner point
CP1~CP3:中心點 CP1~CP3: center point
TF1:第一追蹤框 TF1: The first tracking frame
TF2:第二追蹤框 TF2: The second tracking frame
TF3:第三追蹤框 TF3: The third tracking frame
TDF:追蹤顯示框 TDF: Tracking display frame
A1~A7:端點 A1~A7: Endpoint
B1~B6:端點 B1~B6: End point
DIST1、DIST3:水平距離 DIST1, DIST3: horizontal distance
DIST2、DIST4:垂直距離 DIST2, DIST4: vertical distance
VF:虛擬框 VF: Virtual box
第1圖係根據本案部分實施例所繪示的電子裝置之示意圖;第2圖係根據本案部分實施例所繪示的電子裝置操作方法之流程圖;第3圖係根據本案部分實施例所繪示的顯示介面之示意圖;第4圖係根據本案部分實施例所繪示的物件偵測情境之示意圖;第5圖係根據本案部分實施例所繪示的顯示介面之示意圖;第6A圖係根據本案部分實施例所繪示的平滑演算程序之示意圖;第6B圖係根據本案部分實施例所繪示的平滑演算程序之示意圖;第7圖係根據本案部分實施例所繪示的電子裝置操作方法之流程圖;第8圖係根據本案部分實施例所繪示的判斷演算程序之示意圖;第9圖係根據本案部分實施例所繪示的判斷演算程序之示意圖;以及第10圖係根據本案部分實施例所繪示的顯示介面之示意圖。 Figure 1 is a schematic diagram of an electronic device drawn according to some embodiments of this case; Figure 2 is a flowchart of an electronic device operation method drawn according to some embodiments of this case; Figure 3 is drawn based on some embodiments of this case Figure 4 is a schematic diagram of the object detection scenario drawn according to some embodiments of this project; Figure 5 is a schematic diagram of the display interface drawn according to some embodiments of this project; Figure 6A is based on A schematic diagram of the smoothing calculation procedure drawn in some embodiments of this case; Figure 6B is a schematic diagram of the smoothing calculation procedure drawn according to some embodiments of this case; Figure 7 is a schematic diagram of the electronic device operation method drawn according to some embodiments of this case Figure 8 is a schematic diagram of the judgment calculation procedure drawn according to some embodiments of this case; Figure 9 is a schematic diagram of the judgment calculation procedure drawn according to some embodiments of this case; The schematic diagram of the display interface shown in the embodiment.
關於本文中所使用之『第一』、『第二』、...等,並非特別指稱次序或順位的意思,亦非用以限定本案,其僅為了區別以相同技術用語描述的元件或操作。 Regarding the "first", "second", etc. used in this article, they do not specifically refer to the order or sequence, nor are they used to limit the case. They are only used to distinguish elements or operations described in the same technical terms. .
關於本文中所使用之『耦接』或『連接』,均可指二或多個元件或裝置相互直接作實體接觸,或是相互間接作實體接觸,亦可指二或多個元件或裝置相互操作或動作。 Regarding the "coupling" or "connection" used in this text, it can mean that two or more components or devices are in direct physical contact with each other, or indirectly in physical contact with each other, or two or more components or devices are in mutual physical contact with each other. Operation or action.
請參考第1圖。第1圖係根據本案部分實施例所繪示的電子裝置之示意圖。在本案的一實施例中,電子裝置100包含顯示介面120、記憶體140以及處理器160。在一些實施例中,電子裝置100可為一種智慧型手機、平板電腦或筆記型電腦,但不以此為限。在一些實施例中,處理器160可包含但不限於單一處理單元或複數微處理器的集成,此單一處理單元或微處理器的集成可電性耦接於記憶體140,其中記憶體140可為內部或外部記憶體,包含揮發性或非揮發性的記憶體。在本實施例中,處理器160可自記憶體140存取至少一指令並執行該至少一指令,以進一步地實施由該至少一指令所界定的應用程序。為了方便理解,該至少一指令所界定的程序將於後面段落中詳述。於一些實施例中,處理器160可由特殊應用積體電路實現。上述關於處理器160之實施方式用於示例,且各種可實施處理器160的電路或模組等硬體元皆為本案所涵蓋之範圍。
Please refer to Figure 1. FIG. 1 is a schematic diagram of an electronic device according to some embodiments of the present application. In an embodiment of the present case, the
在一些實施例中,記憶體140除了儲存該至少一指令之外,更可儲存(或暫存)處理器160執行應用程序所需之
資料,以及儲存(或暫存)處理器160執行應用程序後產生之資料。
In some embodiments, in addition to storing the at least one instruction, the
在一些實施例中,顯示介面120可為電子裝置100中的硬體組件,例如,顯示介面120可為電子裝置100的液晶顯示器(Liquid Crystal Display)或有機發光二極體顯示器(Organic Light-Emitting Diode Display)。在一些實施例中,顯示介面120可包含電子裝置100中的軟體組件,例如,顯示介面120可包含透過電子裝置100的顯示器顯示一應用程序介面,為使用者提供影像或者提供與電子裝置100互動之功能。
In some embodiments, the
前述實施例中,電子裝置100可為一種智慧型手機、平板電腦或筆記型電腦,然其僅係用以說明而非用以限定本案。應理解,本案的電子裝置100可藉由其他可行之系統架構實施。例如,在一實施例中,電子裝置100中的記憶體140以及處理器160係設置於遠端伺服器(圖中未示)中,此遠端伺服器通訊耦接於某行動裝置(圖中未示),顯示介面120可為此行動裝置中的硬體組件或軟體組件。藉由此系統架構,遠端伺服器中處理器160可載入該至少一程式指令來執行本案的操作方法,並將執行結果傳輸至顯示介面120以進行顯示。藉此,本案的電子裝置100仍可完整地實施其功能。
In the foregoing embodiment, the
上述關於電子裝置100之各種實施方式用於示例,其他各種可實施相同功能或操作之軟硬體元件亦為本案所涵蓋之範圍。
The various implementations of the
請參考第2圖,於本案一實施例中,操作方法200
可由如第1圖所示的電子裝置100所執行,故可一併參考第1圖之實施例。詳細而言,此電子裝置100載入前述的程式指令以執行操作方法200。此程式指令儲存於非揮發性之電腦可讀式媒體(例如,記憶體140)當中。於本實施例中,操作方法200所包含之步驟將詳述於下列段落中。
Please refer to Figure 2. In an embodiment of this case, the
步驟S201:存取一影像紀錄檔,該影像紀錄檔具有複數個原始畫面。 Step S201: Access an image log file, the image log file having a plurality of original frames.
請一併參照第1圖以及第2圖,在一些實施例中,電子裝置100當中的處理器160可自一或多個儲存裝置(例如記憶體140)存取一目標區域的至少一影像紀錄檔,此影像紀錄檔具有一時間長度及複數個原始畫面(Original Frames)。此目標區域可為一室內區域或室外區域。在一實施例中,此目標區域的影像紀錄檔係由設置於某一飯店大廳的定向式網路攝影機(Web Camera)所擷取,且此影像紀錄檔的時間長度係為五小時。詳細而言,在此五小時中,設置於此飯店大廳當中的定向式網路攝影機持續自飯店大廳中擷取光訊號,其所擷取的光訊號經由數位訊號處理器(Digital Signal Processor,DSP)以一特定格式編碼後,方產生此影像紀錄檔。
Please refer to FIG. 1 and FIG. 2 together. In some embodiments, the
步驟S202:依據原始顯示倍率同時於顯示介面的第一顯示區以及第二顯示區中顯示原始畫面。 Step S202: Simultaneously display the original picture in the first display area and the second display area of the display interface according to the original display magnification.
請一併參照第1圖以及第2圖,在一些實施例中,電子裝置100當中的處理器160可將此影像紀錄檔的原始畫面顯示於顯示介面120上。
Please refer to FIG. 1 and FIG. 2 together. In some embodiments, the
為了更佳地理解,請一併參照本案的第3圖,在
一些實施例中,顯示介面120包含尺寸大致相同的第一顯示區121以及第二顯示區122,第一顯示區121以及第二顯示區122兩者大致並列地呈現於顯示介面120上。
For a better understanding, please refer to Figure 3 of this case together, in
In some embodiments, the
在一實施例中,電子裝置100的處理器160可執行對應前述特定格式之解碼應用程序,以讀取此影像紀錄檔,並將此影像紀錄檔的原始畫面顯示於顯示介面120上。
In one embodiment, the
如第3圖所示,在顯示介面120的第一顯示區121以及第二顯示區122當中,皆以原始顯示倍率呈現相同的原始畫面。應當理解,此實施例中所指的原始顯示倍率為全景倍率,全景倍率係為前述定向式網路攝影機以最短焦距進行影像擷取之倍率,即為前述定向式網路攝影機所能調整的最小放大倍率(例如,放大倍率可表示為1倍)。在此最短焦距下,前述定向式網路攝影機能擷取目標區域(例如:飯店大廳)當中較廣範圍的原始畫面。
As shown in FIG. 3, in the
在本案的其他實施例中,原始顯示倍率可因應需求作可行之調整。在一些實施例中,原始顯示倍率亦可為前述定向式網路攝影機可調焦距當中介於最長焦距以及最短焦距之間的數值。 In other embodiments of this case, the original display magnification can be adjusted as required. In some embodiments, the original display magnification can also be a value between the longest focal length and the shortest focal length among the adjustable focal lengths of the directional webcam.
步驟S203:偵測此影像紀錄檔中是否有第一物件。 Step S203: Detect whether there is a first object in the image log file.
請一併參照第1圖以及第2圖,在一些實施例中,電子裝置100的處理器160具有物件追蹤(Object Detection)應用程序,當處理器160存取此影像紀錄檔後,處理器160可藉由此物件追蹤應用程序讀取此至少一影像紀
錄檔中的原始畫面以進行物件偵測。在一些實施例中,處理器160存取此影像紀錄檔後,可持續監測此影像紀錄檔中之原始畫面的各畫素數值,並根據此影像紀錄檔中相鄰的原始畫面間的畫素數值變化來偵測物件。在一實施例中,此處所指的『相鄰』可指該些原始畫面基於時間遞移的相鄰關係。在一些實施例中,處理器160主要追蹤之物件係為人物臉部。在另一些實施例中,處理器160亦可用以追蹤非人物之物件。
Please refer to FIG. 1 and FIG. 2 together. In some embodiments, the
應當理解,由於此影像紀錄檔係由定向式網路攝影機所擷取,在此影像紀錄檔的全部時間長度中,飯店大廳的背景環境當不致有太大幅度或頻繁的變化,當此影像紀錄檔的相鄰的原始畫面間有較大幅度(或範圍)且連續的畫素變化,可判斷此畫素變化可能對應至某一物件之移動。 It should be understood that since this image record file is captured by a directional webcam, the background environment of the hotel lobby should not change too much or frequently during the entire length of the image record file. There are large amplitude (or range) and continuous pixel changes between adjacent original images of the file, and it can be judged that this pixel change may correspond to the movement of an object.
為了更佳地理解,請一併參照本案的第4圖,其係根據本案部分實施例所繪示的物件偵測情境之示意圖。在一實施例中,處理器160於影像紀錄檔的多個相鄰的原始畫面中偵測到有較大幅度的畫素變化,並將此具有較大幅度的畫素變化之區域進行人臉辨識,以定義出包含人臉的第一範圍CA1(如第4圖所示),處理器160則判斷此第一範圍CA1對應一第一物件,在本實施例中,此第一物件係為第一人物之臉部。詳細而言,若將此至少一影像紀錄檔中的每一個原始畫面(即,每幀)對應的所有畫素點理解為一平面座標系,在上述實施例中,處理器160可於此平面座標系的右側偵測到第一範圍CA1的畫素變化。如第4圖所示,處理器160可於第一範圍CA1左上角的一座標點標記一左上角點LP1,並於第一範圍CA1右
下角的一座標點標記一右下角點RP1。此左上角點LP1以及右下角點RP1可規劃出矩形的第一追蹤框TF1,此第一追蹤框TF1係用以追蹤第一範圍CA1的畫素變化。此外,依據此左上角點LP1以及右下角點RP1,可標記第一追蹤框TF1的中心點CP1。
For a better understanding, please also refer to Figure 4 of this case, which is a schematic diagram of an object detection scenario drawn according to some embodiments of this case. In one embodiment, the
步驟S204:當於影像紀錄檔中偵測到第一物件時,依據第一放大倍率於第二顯示區中顯示包含第一物件的放大畫面,並依據原始顯示倍率於第一顯示區中顯示放大畫面所對應的原始畫面。 Step S204: When the first object is detected in the image record file, display an enlarged screen containing the first object in the second display area according to the first magnification, and display the magnification in the first display area according to the original display magnification The original picture corresponding to the picture.
請一併參照第1圖以及第2圖,在一些實施例中,當電子裝置100當中的處理器160判斷此影像紀錄檔當中有物件之移動,處理器160可將對應此物件的放大畫面顯示於顯示介面120的第二顯示區122當中。
Please refer to FIG. 1 and FIG. 2 together. In some embodiments, when the
為了更佳地理解,請一併參照本案的第5圖,其係根據本案部分實施例所繪示的顯示介面之示意圖。如第5圖所示,在一些實施例中,當處理器160於連續的原始畫面中偵測到如第4圖所示的第一範圍CA1的畫素變化後,處理器160可依據第一放大倍率於第二顯示區122中顯示包含此第一物件的放大畫面。詳細而言,在一實施例中,處理器160可以如第4圖所示的第一追蹤框TF1為中心,並依據第一放大倍率向外延伸一定距離以框選畫面中具有第一物件的區域作為追蹤顯示框TDF,再將追蹤顯示框TDF中的影像放大為放大畫面顯示於第二顯示區122中,如第5圖所示。
For a better understanding, please also refer to Figure 5 of this case, which is a schematic diagram of the display interface drawn according to some embodiments of this case. As shown in Figure 5, in some embodiments, when the
在一些實施例中,當處理器160依據第一放大
倍率於第二顯示區122中顯示某一時間的此第一物件的放大畫面時,處理器160仍依據原始顯示倍率於第一顯示區121中顯示同一時間的原始畫面。在一些實施例中,處理器160更於第一顯示區121所顯示的飯店大廳影像當中標記追蹤顯示框TDF之位置,例如,處理器160可以紅色矩形於第一顯示區121中顯示此追蹤顯示框TDF。藉此,電子裝置100可應用顯示介面120的第一顯示區121以及第二顯示區122達成一種全景與局部放大之對照功效,以利使用者閱覽飯店大廳之影像。
In some embodiments, when the
承前所述,在一些實施例中,原始顯示倍率係指前述定向式網路攝影機以最短焦距進行影像擷取之倍率,即為最小放大倍率(例如,原始顯示倍率所對應之放大倍率可表示為1倍)。因此,在本實施例中,第一放大倍率應大於原始顯示倍率,例如,第一放大倍率可表示為2.2倍。應理解的是,在前述實施例中,原始顯示倍率以及第一放大倍率之數值僅係用以解釋而非用以限定本案,因應使用者或系統之需求,原始顯示倍率以及第一放大倍率可以其他數值實施。例如,在一些實施例中,當處理器160確認第一追蹤框TF1之尺寸後,處理器160可依據第一追蹤框TF1之尺寸與整體目標區域(即飯店大廳)尺寸之比例決定追蹤顯示框TDF之尺寸,再將第一追蹤框TF1中之影像顯示於第二顯示區122。
As mentioned above, in some embodiments, the original display magnification refers to the magnification at which the directional webcam performs image capture at the shortest focal length, that is, the minimum magnification (for example, the magnification corresponding to the original display magnification can be expressed as 1 times). Therefore, in this embodiment, the first magnification should be greater than the original display magnification, for example, the first magnification can be expressed as 2.2 times. It should be understood that, in the foregoing embodiments, the values of the original display magnification and the first magnification are only for explanation and not for limiting the case. According to the needs of the user or the system, the original display magnification and the first magnification can be Other values are implemented. For example, in some embodiments, after the
在一些實施例中,當處理器160於此至少一影像紀錄檔當中的某一時間點偵測到第一範圍CA1的畫素變化,並判斷此第一範圍CA1對應於第一物件時,處理器160將早於該
時間點於第二顯示區122當中漸進地自原始顯示倍率切換至第一放大倍率以顯示第一物件周圍的影像。例如,若處理器160於此至少一影像紀錄檔當中的第10分10秒時偵測到第一範圍CA1的畫素變化,在第二顯示區122中,處理器160可於第10分09秒至第10分10秒之間線性地自1倍的放大倍率切換至2.2倍的放大倍率,藉由此種漸進式的放大程序,可產生類似攝影機運鏡之變焦效果,避免過於突兀的畫面跳動。應理解的是,上述數值並非用以限制本案,因應使用者或系統之需求,此種漸進式的放大程序亦可依據其他可行之數值實施。
In some embodiments, when the
步驟S205:追蹤影像紀錄檔中的第一物件的移動軌跡,並平滑化移動軌跡以調整放大畫面。 Step S205: Track the movement trajectory of the first object in the image record file, and smooth the movement trajectory to adjust the zoomed-in image.
承前所述,在一些實施例中,處理器160存取此至少一影像紀錄檔後,可持續監測此至少一影像紀錄檔於全部時間長度中的各畫素數值以偵測物件。如第4圖之實施例所示,當處理器160於飯店大廳的邊緣偵測到第一範圍CA1之畫素變化後,處理器160可判斷此第一範圍CA1對應於第一物件。在一些實施例中,處理器160將依據特定時間間隔(例如,10毫秒)以持續監測第一範圍CA1之畫素變化,直至第一範圍CA1之畫素變化離開目標區域(即,飯店大廳)當中,藉此,處理器160可於目標區域中追蹤第一物件之移動軌跡。應當理解,因應使用者或系統之需求,此時間間隔可依據其他可行之數值實施。
As mentioned above, in some embodiments, after the
例如,在一些實施例中,於此至少一影像紀錄檔當中,處理器160於第一時間點的原始畫面中開始偵測到對應
第一範圍CA1之畫素變化,並且,處理器160於第二時間點的原始畫面中不再偵測到對應第一範圍CA1之畫素變化。亦即,第一物件於第一時間點與第二時間點的間隔中於目標區域中移動。在本實施例中,處理器可提前於第一時間點之前於第二顯示區122中漸進地放大第一範圍CA1即將出現區域之局部影像。於第一時間點起,處理器160於第二顯示區122中依據第一放大倍率顯示第一範圍CA1及其周遭區域之放大影像。於第一時間點至第二時間點之間,處理器160依據特定時間間隔(例如,每10毫秒)計算第一追蹤框TF1的中心點CP1對應於原始畫面之座標位置,並持續記錄此中心點CP1於兩時間點之間的移動。藉此,處理器160可於目標區域中追蹤第一物件之移動軌跡,並將此移動軌跡顯示於第二顯示區122當中。
For example, in some embodiments, among the at least one image log file, the
然而,對應於第一範圍CA1的第一物件在移動過程中,其於原始畫面中的相對位置將可能伴隨著程度不等的高低變化(例如,人行走過程中相對於地面的起伏),若直接以放大畫面呈現第一物件的軌跡於第二顯示區122當中,將可能產生畫面跳動之突兀感。因此,在一些實施例中,電子裝置100當中的處理器160具有軌跡平滑化(Trajectory Smoothing)應用程序,可用以平滑化物件之移動軌跡。例如,在一些實施例中,處理器160可依據特定時間間隔計算並記錄第一追蹤框TF1的中心點CP1對應於原始畫面的複數座標位置。處理器160更可將此中心點CP1對應之座標位置以折線(Polyline)平滑演算法進行處理。
However, during the movement of the first object corresponding to the first range CA1, its relative position in the original picture may be accompanied by varying degrees of height changes (for example, the ups and downs relative to the ground when a person is walking). Directly presenting the trajectory of the first object in the
為了更佳地理解,請一併參照本案的第6A以及第
6B圖,其係根據本案部分實施例所繪示的平滑演算程序之示意圖。如第6A圖所示,在一些實施例中,端點A1~A7表示了第一追蹤框TF1的中心點CP1於連續的七個時間點時對應於原始畫面的座標位置,此連續的端點A1~A7連接而成的軌跡將具有一定程度的高低起伏。如第6B圖所示,在一些實施例中,處理器160可依據選取如第6A圖所示的端點A1~A7當中的連續兩端點,並計算每兩端點的中點(如圖中所示的端點B1~B6),再進一步將每兩端點的中點連接為新的軌跡。藉此,處理器160可平滑化第一物件之移動軌跡。在本實施例中,於第一時間點與第二時間點之間,處理器160可依據第一放大倍率的放大畫面於顯示第二顯示區122中顯示平滑化後的第一物件之移動軌跡,藉此可優化運鏡效果,進而提升使用者體驗。
For a better understanding, please refer to Section 6A and Section 6 of this case together
Fig. 6B is a schematic diagram of the smoothing calculation procedure drawn according to some embodiments of this case. As shown in Figure 6A, in some embodiments, the endpoints A1 to A7 indicate that the center point CP1 of the first tracking frame TF1 corresponds to the coordinate position of the original frame at seven consecutive time points. This continuous endpoint The trajectory formed by the connection of A1~A7 will have a certain degree of ups and downs. As shown in Fig. 6B, in some embodiments, the
應理解,前述實施例並非用以限制本案,處理器160所執行的平滑演算程序可依據其他平滑化技術實現。此外,處理器160亦可多次地執行此平滑演算法,以獲得更佳的平滑移動軌跡。例如,在一些實施例中,處理器160可對如第6B圖所示的端點B1~B6再次實施折線平滑演算法,如此,將可生成由五個端點所構成的新移動軌跡。
It should be understood that the foregoing embodiments are not intended to limit the present case, and the smoothing calculation procedure executed by the
步驟S206:當不再於影像紀錄檔中偵測到第一物件時,將第二顯示區中依據第一放大倍率所顯示的放大畫面漸進地縮小為依據原始顯示倍率所顯示的原始畫面。 Step S206: When the first object is no longer detected in the image record file, gradually reduce the enlarged screen displayed according to the first magnification in the second display area to the original screen displayed according to the original display magnification.
承前所述,在一些實施例中,處理器160可持續監測此至少一影像紀錄檔於全部時間長度中的各畫素數值
以追蹤物件。如第4圖及第5圖之實施例所示,第一物件於第一時間點至第二時間點的間隔中於目標區域中移動,處理器160於第二時間點不再於原始畫面中偵測到對應第一範圍CA1之畫素變化。在本實施例中,於第二時間點時,處理器160仍依據第一放大倍率於第二顯示區122中顯示第一範圍CA1及其周遭之影像(即追蹤顯示框TDF範圍內之影像)。於第二時間點的下一時間點起,處理器160可於第二顯示區122當中漸進地自第一放大倍率切換至原始顯示倍率以顯示整體目標區域的原始畫面,藉此可避免突兀的畫面跳動。應理解,在一些實施例中,自對應第一物件的第一範圍CA1於目標區域中出現至消失的過程中,處理器160可依據第一追蹤框TF1的中心點CP1之移動軌跡,於第一顯示區121的原始畫面當中對應地顯示追蹤顯示框TDF之移動。
As mentioned above, in some embodiments, the
請參考第7圖,在一些實施例中,操作方法200在步驟204之後更可包含步驟2041以及步驟2042。
Please refer to FIG. 7. In some embodiments, the
步驟S2041:當於影像紀錄檔中偵測到第二物件時,判斷第二物件與第一物件間的距離是否大於一預設閾值。 Step S2041: When the second object is detected in the image log file, it is determined whether the distance between the second object and the first object is greater than a predetermined threshold.
應當理解,在一些實施例中,目標區域(例如為飯店大廳)中的原始畫面可能具有不只一個範圍的畫素變化,此狀況可能代表目標區域中具有兩個以上的移動物體。在此狀況下,處理器160可執行判斷演算法以判斷前述畫素變化是否確實代表目標區域中具有兩個以上的移動物體。例如,在一實施例中,若處理器160於同一時間點偵測到原始畫面中有兩個範圍以上的畫素變化,處理器160可計算前述
畫素變化於原始畫面中的相對距離,並判斷此距離是否超過預設閾值(Threshold),進而判斷其是否代表目標區域中具有兩個以上的移動物體。
It should be understood that, in some embodiments, the original picture in the target area (for example, a hotel lobby) may have more than one range of pixel changes, and this situation may indicate that there are more than two moving objects in the target area. In this situation, the
為了更佳地理解,請一併參照本案的第8圖,其係根據本案部分實施例所繪示的判斷演算程序之示意圖。應理解,本案的第8圖與第4圖有關,故請一併參照第4圖。承前所述,如第4圖之實施例所述,在此時間長度中的第一時間點,處理器160根據原始畫面判斷飯店大廳的邊緣有較大幅度的畫素變化,處理器160判斷此第一範圍CA1對應於第一物件。因此,處理器160獲取左上角點LP1以及右下角點RP1,藉此產生第一追蹤框TF1以追蹤第一範圍CA1的畫素變化。如第8圖所示,在此時間長度中的第三時間點(晚於第一時間點),處理器160於原始畫面中鄰近第一範圍CA1處偵測到另一畫素變化,此另一畫素變化對應於第二範圍CA2。在本實施例中,第二範圍CA2對應於第一人物的手部。類似於第4圖之實施例,對應於第二範圍CA2,處理器160將獲取左上角點LP2以及右下角點RP2,藉此產生第二追蹤框TF2以追蹤第二範圍CA2的畫素變化。同樣地,依據左上角點LP2以及右下角點RP2,處理器160可獲取第二追蹤框TF2的中心點CP2。
For a better understanding, please also refer to Figure 8 of this case, which is a schematic diagram of the judgment calculation procedure drawn according to some embodiments of this case. It should be understood that Figure 8 of this case is related to Figure 4, so please refer to Figure 4 together. Based on the foregoing, as described in the embodiment in Figure 4, at the first time point in this time length, the
在本實施例中,處理器160可執行判斷演算法以計算原始畫面中第一追蹤框TF1的中心點CP1以及第二追蹤框TF2的中心點CP2之間的水平距離DIST1以及垂直距離DIST2。
In this embodiment, the
在一些實施例中,處理器160可判斷水平距離
DIST1以及垂直距離DIST2當中的至少一者是否大於預設閾值。在一些實施例中,第一追蹤框TF1以及第二追蹤框TF2的八個角點可構成較大的一個虛擬框VF,可將對應水平距離的預設閾值設為虛擬框VF的一半寬度值,或可將對應垂直距離的預設閾值設為虛擬框VF的一半高度值,但不以此為限。
In some embodiments, the
在一些實施例中,處理器160可判斷水平距離DIST1以及垂直距離DIST2兩者綜合決定的另一距離(例如,兩距離的方均根)是否大於預設閾值。例如,在一些實施例中,第一追蹤框TF1以及第二追蹤框TF2的八個角點可構成較大的虛擬框VF,可將預設閾值設為虛擬框VF的對角線的一半寬度值,但不以此為限。
In some embodiments, the
步驟S2042:當距離不大於預設閾值時,判斷第一物件以及第二物件係屬於同一目標物,依據一第二放大倍率於第二顯示區中顯示包含第一物件以及第二物件當中至少一者的放大影像;當距離大於預設閾值時,依據第三放大倍率於第二顯示區中顯示包含第一物件以及第二物件的放大影像。 Step S2042: When the distance is not greater than the preset threshold, determine that the first object and the second object belong to the same target, and display at least one of the first object and the second object in the second display area according to a second magnification When the distance is greater than the preset threshold, the second display area displays the enlarged image including the first object and the second object in the second display area according to the third magnification.
在一些實施例中(如第8圖所示),由於水平距離DIST1以及垂直距離DIST2皆不大於預設閾值,處理器160可判斷第一範圍CA1以及第二範圍CA2皆係屬於同一目標物(即,第一人物)的兩個部位,處理器160可於第二顯示區122中顯示包含第一追蹤框TF1(對應於第一範圍CA1)或者第二追蹤框TF2(對應於第二範圍CA2)當中至少一者的放大影像。
In some embodiments (as shown in Figure 8), since neither the horizontal distance DIST1 and the vertical distance DIST2 are greater than the preset threshold, the
承前所述,在一些實施例中,處理器160主要係用以追蹤人物臉部,由於處理器160可於第二顯示區122中顯
示包含第一範圍CA1或者第二範圍CA2當中至少一者的放大影像,處理器160可選取垂直座標值相對較高的第一追蹤框TF1作為第一人物的主要追蹤框,從而於第二顯示區122中追蹤對應第一人物臉部的第一範圍CA1之移動,即如第5圖所示,處理器160可依據第一放大倍率於第二顯示區122中顯示以第一人物臉部為主之影像。應理解,在不同的使用者或系統需求下,處理器160亦可改以小於或等於第一放大倍率的第二放大倍率於第二顯示區122中顯示第一人物周遭之放大影像,藉以涵蓋第一人物的臉部、手部或是全身。
As mentioned above, in some embodiments, the
在一些實施例中,影像記錄檔中的第一物件以及第二物件間的距離亦可能大於預設閾值。請一併參照第4圖以及第9圖。承第4圖之實施例所述,在此時間長度中的第一時間點,處理器160根據原始畫面於飯店大廳的邊緣偵測到第一範圍CA1的畫素變化,處理器160即依據第一追蹤框TF1追蹤對應於第一範圍CA1的第一物件。如第9圖所示,在此時間長度中的第三時間點(晚於第一時間點),處理器160根據原始畫面於飯店大廳的另一邊緣偵測到另一畫素變化,此另一畫素變化對應於原始畫面中的第三範圍CA3。在本實施例中,第三範圍CA3對應於第二人物。類似於第4圖之實施例,對應於第三範圍CA3,處理器160將獲取左上角點LP3以及右下角點RP3,藉此產生第三追蹤框TF3以追蹤第三範圍CA3的畫素變化。同樣地,處理器160可獲取第三追蹤框TF3的中心點CP3。
In some embodiments, the distance between the first object and the second object in the image log file may also be greater than a preset threshold. Please refer to Figure 4 and Figure 9 together. As described in the embodiment in Fig. 4, at the first time point in this time length, the
在本實施例中,處理器160可執行判斷演算法以計算第一追蹤框TF1的中心點CP1以及第三追蹤框TF3的中心
點CP3之間的水平距離DIST3以及垂直距離DIST4,並判斷水平距離DIST3以及垂直距離DIST4是否大於預設閾值。例如,在本實施例中,對應於水平距離的預設閾值係為目標區域之寬度值的45%,而對應於垂直距離的預設閾值係為目標區域之高度值的80%,但不以此為限。
In this embodiment, the
在本實施例中,當水平距離DIST3大於水平距離的預設閾值時,或者垂直距離DIST4大於垂直距離的預設閾值時,處理器160可判斷第一範圍CA1以及第三範圍CA3非屬於同一目標物。在本實施例中,由於水平距離DIST3大於水平距離的預設閾值,處理器160判斷第一範圍CA1以及第三範圍CA3非屬於同一目標物,而是分別對應第一人物以及第二人物。藉此,處理器160可確實於此影像紀錄檔的原始畫面中辨識不同目標物之移動。應理解,前述實施例並非用以限定本案,在不同的使用者或系統需求下,處理器160執行判斷演算法的預設閾值可以不同。
In this embodiment, when the horizontal distance DIST3 is greater than the preset threshold of the horizontal distance, or the vertical distance DIST4 is greater than the preset threshold of the vertical distance, the
在一些實施例中,當處理器160於目標區域中辨識第一人物以及第二人物之移動,處理器160可於顯示介面120中顯示此二人物之移動。為了更佳地理解,請一併參照本案的第10圖,其係根據本案部分實施例所繪示的顯示介面之示意圖。如第10圖所示,在一些實施例中,處理器160可於顯示介面120的第一顯示區121以原始顯示倍率顯示整體目標區域的原始畫面,並於顯示介面120的第二顯示區122中依據第三放大倍率顯示目標區域中的放大影像,藉此在顯示介面120中同時顯示此二人物之移動。如第10圖所示,在本實施
例中,此第三放大倍率可等於原始顯示倍率。在一些實施例中,此第三放大倍率可為大於或等於原始顯示倍率並小於第一放大倍率之倍率。例如,若原始顯示倍率為1倍且第一放大倍率為2.2倍,第三放大倍率可為略大於原始顯示倍率並小於第一放大倍率的1.1倍。上述關於第一放大倍率至第三放大倍率之數值僅用於示例,其餘數值亦為本案所涵蓋之範圍。
In some embodiments, when the
應理解,在一些實施例中,處理器160可於顯示介面120的第一顯示區121以原始顯示倍率顯示整體目標區域的原始畫面,並於第一顯示區121顯示的原始畫面當中標記第一追蹤框TF1以及第三追蹤框TF3之位置。藉此,在第二顯示區122所應用的第三放大倍率接近或等於原始顯示倍率之狀況下,使用者可以更直覺地於第一顯示區121當中辨識第一人物以及第二人物之移動。
It should be understood that, in some embodiments, the
同樣地,在本實施例中,處理器160可持續追蹤第一人物以及第二人物於目標區域(飯店大廳)中的移動,並以類似第6A以及第6B圖之實施例之方式平滑化第一追蹤框TF1以及第三追蹤框TF3之移動軌跡,直至第一人物或第二人物離開目標區域(亦即,不再於目標區域中偵測到對應於第一人物或第二人物的畫素變化)。例如,承前所述,處理器160於第二時間點偵測到第一人物離開目標區域,若此時第二人物仍處於目標區域當中。處理器160將持續追蹤第二人物於目標區域當中之移動,並改以第四放大倍率的放大畫面於第二顯示區122中顯示第二人物之移動,且於第一顯示區121的原始畫面當中標記第三追蹤框TF3之位置。
Similarly, in this embodiment, the
在一實施例中,記憶體140可為一非揮發性的電腦可讀取媒體(Non-transitory computer readable medium),記憶體140當中儲存有該至少一指令,處理器160可存取該至少一指令以執行前述電子裝置的操作方法200當中的步驟S201~S206,其內容請參照前述實施例,於此不再贅述。
In one embodiment, the
依據上述實施例,本案揭露了一種電子裝置、電子裝置操作方法以及其電腦可讀取媒體,藉由本案之技術,可適度地縮放以顯示移動物件周遭之影像,藉由類似攝影機運鏡之效果追蹤影像紀錄檔當中的移動物件。另外,本案輔以目標區域的全景影像作為對照畫面,可提升使用者於閱覽影像紀錄檔時的使用體驗,係為一種有效且直覺的電子裝置及操作方法。 According to the above-mentioned embodiment, this case discloses an electronic device, an operation method of the electronic device, and a computer readable medium. With the technology of this case, it can be appropriately zoomed to display the image around the moving object, with an effect similar to the movement of a camera lens Track moving objects in the image log. In addition, this project is supplemented by the panoramic image of the target area as the control screen, which can enhance the user experience when viewing the image record file, and is an effective and intuitive electronic device and operation method.
雖然本案以實施例揭露如上,然其並非用以限定本案,任何熟習此技藝者,在不脫離本案之精神和範圍內,當可作各種之更動與潤飾,因此本案之保護範圍當視後附之申請專利範圍所界定者為準。 Although this case is disclosed as above with examples, it is not intended to limit the case. Anyone who is familiar with this technique can make various changes and modifications without departing from the spirit and scope of this case. Therefore, the scope of protection of this case should be attached hereafter. The scope of the patent application shall prevail.
100‧‧‧電子裝置 100‧‧‧Electronic device
120‧‧‧顯示介面 120‧‧‧Display interface
140‧‧‧記憶體 140‧‧‧Memory
160‧‧‧處理器 160‧‧‧Processor
Claims (17)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107147259A TWI739052B (en) | 2018-12-26 | 2018-12-26 | Electronic device and operating method thereof |
US16/722,173 US11082636B2 (en) | 2018-12-26 | 2019-12-20 | Electronic device and operating method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107147259A TWI739052B (en) | 2018-12-26 | 2018-12-26 | Electronic device and operating method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202025705A TW202025705A (en) | 2020-07-01 |
TWI739052B true TWI739052B (en) | 2021-09-11 |
Family
ID=71121883
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW107147259A TWI739052B (en) | 2018-12-26 | 2018-12-26 | Electronic device and operating method thereof |
Country Status (2)
Country | Link |
---|---|
US (1) | US11082636B2 (en) |
TW (1) | TWI739052B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200939747A (en) * | 2007-11-28 | 2009-09-16 | Sony Corp | Imaging apparatus and method, information processing apparatus and method, and recording medium storing a program therefor |
EP2330557A1 (en) * | 2008-10-27 | 2011-06-08 | Panasonic Corporation | Moving body detection method and moving body detection device |
TW201421338A (en) * | 2012-11-19 | 2014-06-01 | First Int Computer Inc | Video monitoring and analyzing method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040267122A1 (en) * | 2003-06-27 | 2004-12-30 | Desikachari Nadadur | Medical image user interface |
CN102438122B (en) | 2010-09-29 | 2016-05-11 | 鸿富锦精密工业(深圳)有限公司 | Camera device and utilize the method for its dynamic detection monitored object |
US9196087B2 (en) * | 2012-04-20 | 2015-11-24 | Here Global B.V. | Method and apparatus for presenting geo-traces using a reduced set of points based on an available display area |
JP6649864B2 (en) * | 2015-10-23 | 2020-02-19 | 株式会社モルフォ | Image processing apparatus, electronic device, image processing method, and program |
-
2018
- 2018-12-26 TW TW107147259A patent/TWI739052B/en active
-
2019
- 2019-12-20 US US16/722,173 patent/US11082636B2/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200939747A (en) * | 2007-11-28 | 2009-09-16 | Sony Corp | Imaging apparatus and method, information processing apparatus and method, and recording medium storing a program therefor |
EP2330557A1 (en) * | 2008-10-27 | 2011-06-08 | Panasonic Corporation | Moving body detection method and moving body detection device |
TW201421338A (en) * | 2012-11-19 | 2014-06-01 | First Int Computer Inc | Video monitoring and analyzing method |
Also Published As
Publication number | Publication date |
---|---|
TW202025705A (en) | 2020-07-01 |
US20200213531A1 (en) | 2020-07-02 |
US11082636B2 (en) | 2021-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7535486B2 (en) | Display control device, display control method, program, and portable apparatus | |
US9256324B2 (en) | Interactive operation method of electronic apparatus | |
TWI539823B (en) | Method for switching video images and monitoring system | |
US10694115B2 (en) | Method, apparatus, and terminal for presenting panoramic visual content | |
CN105474303A (en) | Information processing device, information processing method, and program | |
JP2012238293A (en) | Input device | |
US10979700B2 (en) | Display control apparatus and control method | |
CN112068698A (en) | Interaction method and device, electronic equipment and computer storage medium | |
JP2018180051A (en) | Electronic device and control method thereof | |
US20190130193A1 (en) | Virtual Reality Causal Summary Content | |
JP7043601B2 (en) | Methods and devices for generating environmental models and storage media | |
US11609638B2 (en) | Recognizing and tracking gestures | |
JPWO2018198499A1 (en) | Information processing apparatus, information processing method, and recording medium | |
CN110807413B (en) | Target display method and related device | |
WO2022166173A1 (en) | Video resource processing method and apparatus, and computer device, storage medium and program | |
WO2011096571A1 (en) | Input device | |
TWI739052B (en) | Electronic device and operating method thereof | |
Pingali et al. | User-following displays | |
CN114449162A (en) | Method and device for playing panoramic video, computer equipment and storage medium | |
CN112445342B (en) | Display screen control method and device and electronic equipment | |
US20090195674A1 (en) | Indicator system, computer readable medium, and indicating device | |
WO2017115587A1 (en) | Information processing device, control method, and program | |
JP6686319B2 (en) | Image projection device and image display system | |
KR200452031Y1 (en) | Recognition system for selecting menu using space touch | |
CN114973344A (en) | Face detection method, face detection device, terminal equipment and computer readable storage medium |