TWI691205B - Method for processing augmented reality image - Google Patents

Method for processing augmented reality image Download PDF

Info

Publication number
TWI691205B
TWI691205B TW108102052A TW108102052A TWI691205B TW I691205 B TWI691205 B TW I691205B TW 108102052 A TW108102052 A TW 108102052A TW 108102052 A TW108102052 A TW 108102052A TW I691205 B TWI691205 B TW I691205B
Authority
TW
Taiwan
Prior art keywords
image
augmented reality
electronic device
photo
target object
Prior art date
Application number
TW108102052A
Other languages
Chinese (zh)
Other versions
TW202029777A (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 TW108102052A priority Critical patent/TWI691205B/en
Application granted granted Critical
Publication of TWI691205B publication Critical patent/TWI691205B/en
Publication of TW202029777A publication Critical patent/TW202029777A/en

Links

Images

Abstract

A method for processing augmented reality image is disclosed and includes following steps: taking a photo through a camera of an electronic device; identifying a target object from the photo through an identification algorithm; performing a background-removing procedure to the photo for generating an object image that corresponds to the target object through an image editing software; transforming the object image into an augmented reality (AR) image by the electronic device; displaying the AR image through a displaying unit of the electronic device; and, moving the AR image displayed on the electronic device to aim at an adjusted target in the environment, so as to simulate the appearance of the adjusted target after it is applied with the target object thereon.

Description

擴增實境影像處理方法 Augmented reality image processing method

本發明涉及一種影像處理方法,尤其涉及一種擴增實境影像的處理方法。 The invention relates to an image processing method, in particular to an augmented reality image processing method.

隨著網路的盛行,市場上出現了許多的網路購物平台,令消費者在家中即可進行購物,相當便利。 With the prevalence of the Internet, many online shopping platforms have appeared on the market, making it convenient for consumers to shop at home.

然而,網路購物最大的問題,在於消費者無法在購買前先行試用或試穿,因此常常買到不適合自己的物品,而這也構成了網路購物的退貨率居高不下的主要原因。 However, the biggest problem with online shopping is that consumers cannot try or try on them before buying, so they often buy items that are not suitable for them. This also constitutes the main reason for the high return rate of online shopping.

如上所述,相同的問題同樣出現在雜誌、型錄等平面刊物上。當消費者在上述平面刊物中看到感興趣的物品時,也常常因為無法試用或試穿而放棄進一步搜尋、購買此物品的念頭。 As mentioned above, the same problem also appears in print publications such as magazines and catalogs. When consumers see an item of interest in the above-mentioned print publication, they often give up the idea of further searching and buying this item because they cannot try or try on it.

另外,即使消費者在生活周遭看到了實體物品,仍可能因為無法取得這個實體物品(例如陌生路人所穿的衣服或建築物上的磁磚),或是取得困難(例如櫥窗內展示的手錶或球鞋)等原因,而阻卻了消費者的購買行為。 In addition, even if consumers see physical items around their lives, they may still be unable to obtain the physical items (such as clothes worn by strange passers-by or tiles on buildings), or difficult to obtain (such as watches displayed in the window or Shoes) and other reasons, but hindered the purchase behavior of consumers.

有鑑於上述問題,市場上實需提供一種新穎的技術,可協助消費者將感興趣的物品即時生成為擴增實際影像,以利消費者將物品套用至欲修改的目標上,藉此確定消費者的購買意願。 In view of the above-mentioned problems, there is a need to provide a novel technology on the market that can help consumers instantly generate items of interest as augmented actual images, so that consumers can apply items to the target to be modified, thereby determining consumption The purchase intention of the person.

本發明的主要目的,在於提供一種擴增實境影像處理方法,可便於使用者生成特定物品的擴增實境影像,並且藉由所生成的擴增實境影像來模擬使用了這個物品後的樣貌。 The main objective of the present invention is to provide an augmented reality image processing method that can facilitate the user to generate augmented reality images of a specific item, and the generated augmented reality images are used to simulate the use of this item Appearance.

為了達成上述的目的,本發明的擴增實境影像處理方法主要包括下列步驟:通過一電子裝置的一相機鏡頭拍攝一照片;通過一辨識演算法從該照片中辨識出一目標物件;通過影像編輯軟體對該照片執行去背程序以產生對應該目標物件的一物件影像;將該物件影像轉換成一擴增實境影像;於該電子裝置的一顯示單元上顯示該擴增實境影像;及,移動該電子裝置並將該擴增實境影像對準環境中的一修改目標,藉此模擬使用該目標物件修改了該修改目標後的樣貌。 In order to achieve the above object, the augmented reality image processing method of the present invention mainly includes the following steps: taking a photo through a camera lens of an electronic device; identifying a target object from the photo through a recognition algorithm; The editing software performs a de-backing process on the photo to generate an object image corresponding to the target object; converts the object image into an augmented reality image; displays the augmented reality image on a display unit of the electronic device; and , Moving the electronic device and aligning the augmented reality image with a modified target in the environment, thereby simulating that the target object is used to modify the appearance of the modified target.

本發明相對於相關技術所能達到的技術功效在於,通過電子裝置自動將生活周遭的實體物品或是網頁、雜誌、型錄上顯示的物品影像轉換成擴增實際影像,藉此利於使用者將這個物品直接套用在欲修改的目標上,以預先確認這個目標使用了這個物品後的樣貌。 The technical effect achieved by the present invention relative to the related art is that, through an electronic device, images of physical objects around the life or items displayed on web pages, magazines, and catalogs are automatically converted into augmented actual images, thereby facilitating users This item is directly applied to the target to be modified to confirm in advance the appearance of this target after using this item.

1:電子裝置 1: Electronic device

11:相機鏡頭 11: Camera lens

12:處理單元 12: Processing unit

13:儲存單元 13: Storage unit

131:辨識演算法 131: Identification algorithm

132:影像編輯軟體 132: Image editing software

133:3D資料庫 133: 3D database

14:顯示單元 14: display unit

15:輸入單元 15: input unit

2:使用者 2: user

3:電腦螢幕 3: computer screen

31:目標物件 31: target object

4:照片 4: Photos

5:AR影像 5: AR image

6:編輯後AR影像 6: AR image after editing

7:修改目標 7: Modify the target

S10~S24、S30~S44:處理步驟 S10~S24, S30~S44: processing steps

圖1為本發明的電子裝置的方塊圖的第一具體實施例。 FIG. 1 is a first specific embodiment of a block diagram of an electronic device of the present invention.

圖2為本發明的影像處理流程圖的第一具體實施例。 FIG. 2 is a first specific embodiment of the image processing flowchart of the present invention.

圖3A為本發明的AR影像的第一動作示意圖。 FIG. 3A is a schematic diagram of the first operation of the AR video of the present invention.

圖3B為本發明的AR影像的第二動作示意圖。 FIG. 3B is a schematic diagram of the second operation of the AR image of the present invention.

圖3C為本發明的AR影像的第三動作示意圖。 FIG. 3C is a schematic diagram of the third operation of the AR video of the present invention.

圖3D為本發明的AR影像的第四動作示意圖。 3D is a schematic diagram of the fourth operation of the AR image of the present invention.

圖4為本發明的影像處理流程圖的第一具體實施例。 FIG. 4 is a first specific embodiment of the image processing flowchart of the present invention.

茲就本發明之一較佳實施例,配合圖式,詳細說明如後。 The following is a detailed description of a preferred embodiment of the present invention with reference to the drawings.

本發明揭露了一種擴增實境(Augmented Reality,AR)影像處理方法(下面將於說明書中簡稱為處理方法),所述處理方法可以協助使用者快速地生成AR影像,藉此,使用者可以將AR影像對準修改目標(人、物或位置),藉此預先模擬這個修改目標被修改後的樣貌。 The present invention discloses an Augmented Reality (AR) image processing method (hereinafter will be referred to as a processing method in the specification for short). The processing method can help a user to quickly generate an AR image, by which the user can Align the AR image with the modified target (person, object or position), thereby simulating the modified appearance of this modified target in advance.

參閱圖1,為本發明的電子裝置的方塊圖的第一具體實施例。本發明的處理方法主要是應用於如圖1所示的電子裝置1,具體地,使用者可操作電子裝置1以即時將一個目標物件轉換成AR影像,並將AR影像套用在所述修改目標上,以便預先查看這個修改目標在實際套用了所述目標物件後的樣貌。如此一來,有利於使用者決定是否要購買與使用所述目標物件。 Referring to FIG. 1, it is a first specific embodiment of a block diagram of an electronic device of the present invention. The processing method of the present invention is mainly applied to the electronic device 1 shown in FIG. 1. Specifically, the user can operate the electronic device 1 to instantly convert a target object into an AR image, and apply the AR image to the modification target In order to check in advance the appearance of this modified target after the target object is actually applied. In this way, it is helpful for the user to decide whether to purchase and use the target object.

如圖1所示,所述電子裝置1主要包括相機鏡頭11、處理單元12、儲存單元13、顯示單元14及輸入單元15,其中相機鏡頭11、處理單元12、儲存單元13、顯示單元14及輸入單元15分別通過匯流排彼此電性連接。為便於使用者操作,電子裝置1主要可為手持式電子裝置,例如智慧型手機或平板電腦為例,但不加以限定。 As shown in FIG. 1, the electronic device 1 mainly includes a camera lens 11, a processing unit 12, a storage unit 13, a display unit 14, and an input unit 15, wherein the camera lens 11, the processing unit 12, the storage unit 13, the display unit 14 and The input units 15 are electrically connected to each other through bus bars. To facilitate user operation, the electronic device 1 can be a handheld electronic device, such as a smart phone or a tablet computer, as an example, but it is not limited.

於一實施例中,電子裝置1主要可通過相機鏡頭11來拍攝照片,並且通過處理單元12對所拍攝的照片進行處理。本實施例中,儲存單元13至少儲存有辨識演算法131及影像編輯軟體132。處理單元12主要可在取得相機鏡 頭11拍攝的照片後執行辨識演算法131,以通過辨識演算法131對照片進行處理,藉以從照片中辨識出目標物件的影像,並且進一步將目標物件的影像轉換成所述AR影像。 In an embodiment, the electronic device 1 can mainly take pictures through the camera lens 11 and process the taken pictures through the processing unit 12. In this embodiment, the storage unit 13 stores at least the identification algorithm 131 and the image editing software 132. The processing unit 12 can mainly obtain the camera mirror After the photo taken by the head 11, the recognition algorithm 131 is executed to process the photo by the recognition algorithm 131, so as to recognize the image of the target object from the photo, and further convert the image of the target object into the AR image.

具體地,使用者可操作電子裝置1以將相機鏡頭11對準感興趣的目標物件(例如實體物品、雜誌或網頁的內容等),並且拍攝照片,其中,所拍攝的照片中至少須包含所述目標物件,以及目標物件以外的背景資訊。 Specifically, the user can operate the electronic device 1 to aim the camera lens 11 at a target object of interest (such as physical objects, magazine or webpage content, etc.), and take a photo, wherein the taken photo must include at least all Describe the target object and background information other than the target object.

接著,在取得所述照片後,處理單元12可通過所述辨識演算法131從照片中辨識出屬於目標物件的部分,並且通過影像編輯軟體132對照片執行去背程序以產生對應至目標物件的物件影像。本實施例中,由去背程序產生的物件影像中僅會包含照片中的目標物件的影像,而不包含所述背影資訊。 Then, after obtaining the photo, the processing unit 12 can identify the part belonging to the target object from the photo through the recognition algorithm 131, and perform a de-backing process on the photo through the image editing software 132 to generate a corresponding to the target object Object image. In this embodiment, the object image generated by the de-backing process only includes the image of the target object in the photo, but does not include the back-view information.

接著,處理單元12可對物件影像做進一步的轉換處理,以將物件影像轉換成AR影像。本實施例中,由於物件影像中僅包含了目標物件,因此轉換處理所產生的AR影像即為目標物件的AR影像。 Then, the processing unit 12 may perform further conversion processing on the object image to convert the object image into an AR image. In this embodiment, since the object image only includes the target object, the AR image generated by the conversion process is the AR image of the target object.

舉例來說,若使用者通過電子裝置1的相機鏡頭11在店鋪中拍了一張照片,照片中包含目標物件(例如手錶)及背景資訊(例如錶盒、桌子及櫥櫃),則電子裝置1在取得照片後可通過辨識演算法131從照片中辨識出手錶的影像,並且通過影像編輯軟體132去除照片中的錶盒、桌子及櫥櫃等背景資訊,以完成去背程序並產生物件影像。並且,電子裝置1可進一步執行轉換處理,以將物件影像轉換為所述手錶的AR影像。當手錶的AR影像產生後,使用者即可自行移動電子裝置1以將AR影像套用在自己的手腕上,並查看自己配帶了所述手錶後的樣貌。 For example, if the user takes a photo in the store through the camera lens 11 of the electronic device 1, the photo contains the target object (such as a watch) and background information (such as a watch box, table, and cabinet), then the electronic device 1 After the photo is obtained, the image of the watch can be recognized from the photo by the recognition algorithm 131, and the background information such as the watch box, table, and cabinet in the photo is removed by the image editing software 132 to complete the backing process and generate the object image. Moreover, the electronic device 1 may further perform a conversion process to convert the object image into the AR image of the watch. After the AR image of the watch is generated, the user can move the electronic device 1 by himself to apply the AR image to his wrist, and check his appearance after wearing the watch.

於一實施例中,所述影像編輯軟體132可例如為Adole公司所開發的Photoshop編輯軟體,但不加以限定。所述影像編輯軟體132除了執行去背程序外,還可於所述AR影像生成後,對所述AR影像進行使用者所需的編輯動作。 In an embodiment, the image editing software 132 may be, for example, Photoshop editing software developed by Adole, but it is not limited. The image editing software 132 can perform the editing operation required by the user on the AR image after the AR image is generated, in addition to performing the de-keying process.

具體地,在AR影像生成後,處理單元12可通過影像編輯軟體132自動對AR影像進行相關編輯動作,或是通過輸入單元15接受使用者的外部操作,以由使用者手動對AR影像進行所需的編輯動作。於本實施例中,所述編輯動作可例如為放大、縮小、拉伸、變形、圖層置換或置入文字等,但不以此為限。本發明中,使用者可依據要套用的修改目標的特性(形狀、大小、位置、角度等)來編輯AR影像,以令AR影像可以在編輯完成後直接套用於所述修改目標上。 Specifically, after the AR image is generated, the processing unit 12 can automatically perform related editing operations on the AR image through the image editing software 132, or accept an external operation of the user through the input unit 15, so that the user can manually perform the operation on the AR image The required editing action. In this embodiment, the editing action may be, for example, enlarging, reducing, stretching, deforming, layer replacement, or placing text, etc., but it is not limited thereto. In the present invention, the user can edit the AR image according to the characteristics (shape, size, position, angle, etc.) of the modification target to be applied, so that the AR image can be directly applied to the modification target after the editing is completed.

電子裝置1可通過所述顯示單元14來顯示所述AR影像,藉此,使用者可以移動電子裝置1,以將顯示單元14上顯示的AR影像對準環境中的修改目標(例如人、寵物等物體或是牆壁、窗戶、地板等位置),以模擬在所述修改目標上實際套用了AR影像所代表的目標物件後的樣貌。 The electronic device 1 can display the AR image through the display unit 14, whereby the user can move the electronic device 1 to align the AR image displayed on the display unit 14 with a modification target (eg, person, pet) in the environment Objects or walls, windows, floors, etc.) to simulate the appearance of the modified object after the target object represented by the AR image is actually applied.

於一實施例中,所述顯示單元14與輸入單元15可為分開的元件(例如顯示單元14為螢幕,輸入單元15為鍵盤或觸控板),亦可整合為單一元件(例如為觸控螢幕),不加以限定。 In an embodiment, the display unit 14 and the input unit 15 may be separate components (for example, the display unit 14 is a screen, and the input unit 15 is a keyboard or a touchpad), or may be integrated into a single component (for example, touch Screen), not limited.

請同時參閱圖2,為本發明的影像處理流程圖的第一具體實施例。圖2揭露了本發明的處理方法的各個步驟,這些步驟主要由圖1所示的電子裝置1來實現。 Please also refer to FIG. 2, which is a first specific embodiment of the image processing flowchart of the present invention. FIG. 2 discloses various steps of the processing method of the present invention, and these steps are mainly implemented by the electronic device 1 shown in FIG. 1.

如圖2所示,要執行本發明的處理方法,首先由使用者操作電子裝置1,將電子裝置1的相機鏡頭11對準感興趣的目標物件(步驟S10),並且拍攝一張照片(步驟S12),其中,所述照片中至少包含了所述目標物件的影像。 As shown in FIG. 2, to execute the processing method of the present invention, the user first operates the electronic device 1, aligns the camera lens 11 of the electronic device 1 with the target object of interest (step S10 ), and takes a photo (step S12), wherein the photo contains at least an image of the target object.

於一實施例中,所述目標物件可能為使用者無法直接取得的物件(例如刊載於雜誌上的物件或顯示於電腦螢幕上的物件)。於此實施例中,使用者可直接操作電子裝置1拍攝包含目標物件在內的照片,並且於後續步驟中,再藉由處理單元12將目標物件的影像從整張照片中擷取出來。 In an embodiment, the target object may be an object that the user cannot directly obtain (such as an object published in a magazine or an object displayed on a computer screen). In this embodiment, the user can directly operate the electronic device 1 to take a photo including the target object, and in a subsequent step, the processing unit 12 extracts the image of the target object from the entire photo.

於另一實施例中,所述目標物件可能為使用者可以直接取得的實體物件(例如衣服、首飾或材料等)。於此實施例中,使用者可先將目標物件放置於一個目標背景中(例如全白的背景),接著再藉由電子裝置1拍攝上述照片。於本實施例中,電子裝置1所拍攝的照片中僅包含目標物件以及目標背景的影像。如此一來,處理單元12在後續程序中可使用較少的資源來完成辨識程序以及去背程序,藉此提升處理效能並且避免資源的浪費。 In another embodiment, the target object may be a physical object (such as clothes, jewelry, or materials) that the user can directly obtain. In this embodiment, the user can first place the target object on a target background (for example, a completely white background), and then take the above-mentioned photos through the electronic device 1. In this embodiment, the photograph taken by the electronic device 1 only includes images of the target object and the target background. In this way, the processing unit 12 can use fewer resources in the subsequent procedures to complete the identification procedure and the de-encryption procedure, thereby improving processing efficiency and avoiding waste of resources.

步驟S12後,電子裝置1的處理單元12執行所述辨識演算法131,以通過辨識演算法131來從照片中辨識出所述目標物件(步驟S14)。 After step S12, the processing unit 12 of the electronic device 1 executes the recognition algorithm 131 to recognize the target object from the photo through the recognition algorithm 131 (step S14).

值得一提的是,所述辨識演算法131可為一種人工智慧(Artificial Intelligence,AI)演算法,藉由預先訓練完成的人工智慧來對所述照片進行辨識,以從照片中辨識出目標物件。 It is worth mentioning that the identification algorithm 131 can be an artificial intelligence (Artificial Intelligence, AI) algorithm, which uses pre-trained artificial intelligence to identify the photo to identify the target object from the photo .

具體地,所述辨識演算法131的提供者可預先對所述人工智慧進行訓練,使得人工智慧認得複數目標物件(例如衣服、褲子、鞋子、手錶、飾品、電燈、吊扇、磁磚、窗簾等)的樣貌(包括圖像、顏色、形狀及其他可識別之特徵)。藉此,於上述步驟S14中,所述人工智慧可以對所取得的照片的圖像、顏色、 形狀及其他特徵進行分析,以從照片中區別出所述目標物件以及目標物件以外的背景資訊。 Specifically, the provider of the recognition algorithm 131 may train the artificial intelligence in advance, so that the artificial intelligence recognizes a plurality of target objects (such as clothes, pants, shoes, watches, accessories, electric lights, ceiling fans, tiles, curtains, etc.) ) Appearance (including image, color, shape and other recognizable features). Therefore, in the above step S14, the artificial intelligence can compare the image, color, The shape and other characteristics are analyzed to distinguish the target object and the background information other than the target object from the photo.

於上述步驟S14後,處理單元12已可將所接收的照片虛擬劃分成要保留的目標物件以及不需保留的背景資訊,因此,處理單元12可進一步執行影像編輯軟體132,並通過影像編輯軟體132對照片執行去背程序,以產生對應至目標物件的物件影像(步驟S16)。 After the above step S14, the processing unit 12 can virtually divide the received photos into target objects to be retained and background information that does not need to be retained. Therefore, the processing unit 12 can further execute the image editing software 132 and use the image editing software 132 Perform a debounce procedure on the photo to generate an object image corresponding to the target object (step S16).

具體地,於上述步驟S16中,處理單元12主要是通過影像編輯軟體132主動於照片中刪除被辨識演算法131認定是背景資訊的影像,並且保留被辨識演算法131認定是目標物件的影像,並且依據目標物件的影像來生成所述物件影像,藉此達到去背的目的。 Specifically, in the above step S16, the processing unit 12 mainly deletes the image recognized by the recognition algorithm 131 as background information in the photo through the image editing software 132, and retains the image recognized by the recognition algorithm 131 as the target object, And the object image is generated according to the image of the target object, thereby achieving the purpose of removing the back.

接著,處理單元12進一步對所生成的物件影像進行轉換處理,以將物件影像轉換成AR影像(步驟S18),並且通過電子裝置1的顯示單元14來顯示所述AR影像(S22)。 Next, the processing unit 12 further performs conversion processing on the generated object image to convert the object image into an AR image (step S18), and displays the AR image through the display unit 14 of the electronic device 1 (S22).

本實施例中,所述AR影像指的是可以與現實周遭的影像共存的影像,意即,當電子裝置1啟動相機鏡頭11並且載入AR影像時,顯示單元14可顯示相機鏡頭11所擷取的即時影像,並且可同時顯示所載入的AR影像。如此一來,使用者可以操作電子裝置1並且開啟相機鏡頭11,並且移動電子裝置1以將顯示單元14所顯示的AR影像對準環境中的一個修改目標(步驟S24),藉此模擬所述修改目標實際上套用了所述目標物件後的樣貌。 In this embodiment, the AR image refers to an image that can coexist with the image around the reality, which means that when the electronic device 1 activates the camera lens 11 and loads the AR image, the display unit 14 can display the captured image of the camera lens 11 The captured real-time image can display the loaded AR image at the same time. In this way, the user can operate the electronic device 1 and turn on the camera lens 11, and move the electronic device 1 to align the AR image displayed by the display unit 14 with a modification target in the environment (step S24), thereby simulating the The modification target actually applies the appearance of the target object.

值得一提的是,受限於拍照時的方向、角度以及距離,步驟S18所產生的AR影像可能無法滿足使用者的需求(例如尺寸太小或是具有形變)。因此,於所述步驟S18後,處理單元12還可進一步通過所述影像編輯軟體132對 所產生的AR影像進行編輯(步驟S20)。於此實施例中,處理單元12在上述步驟S22中主要是於顯示單元14上顯示編輯後的AR影像,藉此,有利於使用者將顯示單元14顯示的AR影像更適當地套用至修改目標上。 It is worth mentioning that the AR image generated in step S18 may not be able to meet the user's needs (for example, the size is too small or deformed) due to the direction, angle, and distance when taking pictures. Therefore, after the step S18, the processing unit 12 may further use the image editing software 132 to The generated AR image is edited (step S20). In this embodiment, the processing unit 12 mainly displays the edited AR image on the display unit 14 in the above step S22, thereby facilitating the user to more appropriately apply the AR image displayed on the display unit 14 to the modification target on.

於一實施例中,處理單元12可通過影像編輯軟體132自動對所述AR影像進行相關編輯動作(例如自動將歪斜的影像轉正),或是通過輸入單元15接受使用者的外部操作,以由使用者手動操作影像編輯軟體132而對AR影像進行所需的編輯動作。於本實施例中,所述影像編輯軟體132可例如為Photoshop軟體,所述編輯動作可例如為放大、縮小、拉伸、變形、圖層置換或置入文字等,但不以此為限。 In one embodiment, the processing unit 12 can automatically perform related editing operations on the AR image through the image editing software 132 (for example, automatically correct the skewed image), or accept an external operation of the user through the input unit 15 to The user manually operates the image editing software 132 to perform required editing operations on the AR image. In this embodiment, the image editing software 132 may be, for example, Photoshop software, and the editing operation may be, for example, zooming in, zooming out, stretching, deforming, layer replacement, or placing text, etc., but not limited thereto.

續請參閱圖3A至圖3D,分別為本發明的AR影像的第一動作示意圖至第四動作示意圖。 Please refer to FIG. 3A to FIG. 3D for the first to fourth schematic diagrams of the AR image of the present invention.

如圖3A所示,電腦螢幕3上顯示了一個目標物件31的影像,於圖3A的實施例中,所述目標物件31是以領帶為例。使用者2手持電子裝置1並將電子裝置1的相機鏡頭11對準電腦螢幕3,以拍攝一張照片4,並且使照片4中至少包含了目標物件31的影像。 As shown in FIG. 3A, an image of a target object 31 is displayed on the computer screen 3. In the embodiment of FIG. 3A, the target object 31 is a tie as an example. The user 2 holds the electronic device 1 and aligns the camera lens 11 of the electronic device 1 with the computer screen 3 to take a photo 4, and the photo 4 contains at least the image of the target object 31.

接著,如圖3B所示,電子裝置1取得了所述照片4後,處理單元12通過所述辨識演算法131對照片4進行分析,以區分出照片4中的目標物件31以及背景資訊。並且,處理單元12通過所述影像編輯軟體132執行去背程序以於照片4中刪除背景資訊,藉此保留目標物件31的影像並且生成對應目標物件31的物件影像。並且,處理單元12對所述物件影像進行轉換動作以生成對應目標物件31的AR影像5。 Next, as shown in FIG. 3B, after the electronic device 1 obtains the photo 4, the processing unit 12 analyzes the photo 4 through the identification algorithm 131 to distinguish the target object 31 and background information in the photo 4. In addition, the processing unit 12 executes the de-keying process through the image editing software 132 to delete the background information in the photo 4, thereby retaining the image of the target object 31 and generating an object image corresponding to the target object 31. Furthermore, the processing unit 12 performs a conversion operation on the object image to generate an AR image 5 corresponding to the target object 31.

於一實施例中,處理單元12主要是將所生成的物件影像轉換為2D的AR影像,但不加以限定。如圖1所示,所述儲存單元13還可儲存有3D資料庫133,所述3D資料庫133記錄了複數目標物件的三維資訊。於另一實施例中,電子裝置12還可依據所述3D資料庫133中的三維資訊來將所生成的物件影像轉換成3D的AR影像,以便於使用者的後續利用。 In an embodiment, the processing unit 12 mainly converts the generated object image into a 2D AR image, but it is not limited. As shown in FIG. 1, the storage unit 13 may also store a 3D database 133 that records three-dimensional information of a plurality of target objects. In another embodiment, the electronic device 12 can also convert the generated object image into a 3D AR image according to the three-dimensional information in the 3D database 133, so as to facilitate subsequent use by the user.

圖1是以將3D資料庫133儲存於電子裝置1的儲存單元13中為例,舉例說明。於其他實施例中,電子裝置1亦可通過無線通訊單元(圖未標示)連接網際網路,並且於要將物件影像轉換為3D的AR影像時,再通過網際網路連接遠端的3D資料庫,以存取3D資料庫中的三維資訊,不加以限定。 FIG. 1 is an example of storing the 3D database 133 in the storage unit 13 of the electronic device 1 as an example. In other embodiments, the electronic device 1 can also be connected to the Internet through a wireless communication unit (not shown), and when the object image is to be converted into a 3D AR image, the remote 3D data can be connected through the Internet Library to access the 3D information in the 3D database without limitation.

接著,如圖3C所示,使用者可通過輸入單元15對所生成的AR影像5進行編輯,以進一步產生編輯後AR影像6。具體地,使用者可通過電子裝置1的輸入單元15(例如觸控螢幕)來使用影像編輯軟體132,以對AR影像5執行如放大、縮小、旋轉、拉伸、變形、圖層置換或置入文字等編輯動作。 Next, as shown in FIG. 3C, the user can edit the generated AR image 5 through the input unit 15 to further generate the edited AR image 6. Specifically, the user can use the image editing software 132 through the input unit 15 (eg, touch screen) of the electronic device 1 to perform operations such as zooming in, zooming out, rotating, stretching, deforming, layer replacement, or placement on the AR image 5 Text and other editing actions.

接著,如圖3D所示,電子裝置1通過顯示單元14顯示編輯後AR影像6。使用者可操作電子裝置1,並將電子裝置1所顯示的編輯後AR影像6對準環境中的修改目標7(本實施例中以第二使用者為例)。藉此,電子裝置1可於顯示單元14上直接顯示使用者將目標物件(領帶)實際套用在所述修改目標(第二使用者)後的樣貌。於本實施例中,使用者可藉由生成並編輯AR影像6來確認所述領帶是否適合第二使用者配帶,藉此判斷是否要購買所述領帶。 Next, as shown in FIG. 3D, the electronic device 1 displays the edited AR image 6 through the display unit 14. The user can operate the electronic device 1 and align the edited AR image 6 displayed on the electronic device 1 with the modification target 7 in the environment (in this embodiment, the second user is taken as an example). In this way, the electronic device 1 can directly display on the display unit 14 the appearance of the user when the target object (tie) is actually applied to the modified target (second user). In this embodiment, the user can determine whether the tie is suitable for the second user by generating and editing the AR image 6 to determine whether to purchase the tie.

再例如,使用者可操作電子裝置1拍攝櫥櫃中展示的手錶的照片,並且藉由處理單元12生成所述手錶的AR影像。使用者可將生錶的AR影像對準手腕以模擬使用者帶上手錶後的樣貌,藉此判斷是否要購買所述手錶。 For another example, the user can operate the electronic device 1 to take a picture of the watch displayed in the cabinet, and the processing unit 12 generates an AR image of the watch. The user can point the AR image of the watch to the wrist to simulate the appearance of the user after wearing the watch, thereby judging whether to purchase the watch.

再例如,使用者可操作電子裝置1拍攝型錄上刊載的瓷磚的照片,並且藉由處理單元12生成所述瓷磚的AR影像。使用者可將瓷磚的AR影像對準想要鋪設的地板位置以模擬地板鋪上所述瓷磚後的樣貌,藉此判斷是否要購買所述瓷磚。 For another example, the user can operate the electronic device 1 to take a photo of the tile published in the catalog, and the processing unit 12 generates an AR image of the tile. The user can aim the AR image of the ceramic tile at the position of the floor to be laid to simulate the appearance of the floor after laying the ceramic tile, thereby judging whether to purchase the ceramic tile.

再例如,使用者可操作電子裝置1拍攝鄰居家中的窗簾的照片,並且藉由處理單元12生成所述窗簾的AR影像。使用者可將窗簾的AR影像對準家中的窗戶位置以模擬家中的窗戶設置了所述窗簾後的樣貌,藉此判斷是否要購買所述窗簾。 For another example, the user can operate the electronic device 1 to take a picture of a curtain in a neighbor's house, and the processing unit 12 generates an AR image of the curtain. The user can aim the AR image of the curtain at the position of the window in the home to simulate the appearance of the window in the home after the curtain is installed, thereby judging whether to purchase the curtain.

於其他實施例中,所述電子裝置1亦可例如為醫院的內視鏡設備。於此實施例中,醫師可利用內視鏡鏡頭拍攝病患體內正常部位、異常部位或癌細胞的照片,並且經過去背程序或反去背程序後生成對應的AR影像。藉此,醫師可利用顯示器所顯示的AR影像來進行上述正常部位、異常部位或癌細胞的透視定位,以令病患更容易瞭解自己的身體狀況。 In other embodiments, the electronic device 1 may also be an endoscope device in a hospital, for example. In this embodiment, the physician can use the endoscope lens to take pictures of normal parts, abnormal parts, or cancer cells in the patient's body, and generate the corresponding AR image after the back removal procedure or the anti-back removal procedure. In this way, the physician can use the AR image displayed on the display to perform the perspective positioning of the normal part, the abnormal part or the cancer cell, so that the patient can more easily understand his physical condition.

另外,除了生成上述AR影像以利使用者將AR影像套用於修改目標上的型態之外,使用者亦可藉由本發明提供的處理方法來對AR影像進行編輯,進而產生AR影片。 In addition, in addition to generating the above-mentioned AR image to facilitate the user to apply the AR image to modify the type on the target, the user can also edit the AR image by the processing method provided by the present invention, thereby generating an AR video.

續請參閱圖4,為本發明的影像處理流程圖的第一具體實施例。 Please refer to FIG. 4 for the first specific embodiment of the image processing flowchart of the present invention.

圖4揭露了與圖2相近的影像處理流程。具體地,使用者可操作電子裝置1以將相機鏡頭11對準目標物件(步驟S30),並且拍攝至少包含目標物件在內的一張照片(步驟S32)。接著,處理單元12通過辨識演算法131從照片中辨識出所述目標物件(步驟S34),並且通過影像編輯軟體132對照片執行去背程 序以產生對應至目標物件的物件影像(步驟S36)。並且,處理單元對所生成的物件影像進行轉換處理,以將物件影像轉換成AR影像(步驟S38)。 FIG. 4 reveals an image processing flow similar to FIG. 2. Specifically, the user can operate the electronic device 1 to align the camera lens 11 with the target object (step S30), and take a photo including at least the target object (step S32). Next, the processing unit 12 recognizes the target object from the photo through the recognition algorithm 131 (step S34), and performs a backtracking process on the photo through the image editing software 132 Sequence to generate an object image corresponding to the target object (step S36). And, the processing unit performs conversion processing on the generated object image to convert the object image into an AR image (step S38).

接著,處理單元12進一步執行所述影像編輯軟體132,其中,電子裝置1可自動或經由使用者手動操作影像編輯軟體132,以對所產生的AR影像進行編輯(步驟S40)。 Then, the processing unit 12 further executes the image editing software 132, wherein the electronic device 1 can automatically or manually operate the image editing software 132 to edit the generated AR image (step S40).

於圖4的實施例中,處理單元12在步驟S40後持續判斷電子裝置1或使用者的編輯動作是否完成(步驟S42),並且於編輯動作完成前返回步驟S40,以持續通過影像編輯軟體132來對AR影像進行編輯。 In the embodiment of FIG. 4, the processing unit 12 continues to determine whether the editing action of the electronic device 1 or the user is completed after step S40 (step S42 ), and returns to step S40 before the editing action is completed to continue to pass the image editing software 132 To edit AR images.

本實施例中,電子裝置1或使用者可通過影像編輯軟體132對AR影像進行多次的編輯動作以產生多個連續的AR影像,並且以多個AR影像構成一個AR影片。若處理單元12於步驟S40中判斷所述編輯動作已經完成,則處理單元12可輸出由複數個編輯後的AR影像所構成的編輯影片(步驟S44)。於一實施例中,處理單元12可於使用者觸發儲存按鍵,或是停止編輯達到一段設定時間時,判斷所述編輯動作已經完成,但不加以限定。 In this embodiment, the electronic device 1 or the user can perform multiple editing operations on the AR image through the image editing software 132 to generate multiple continuous AR images, and the multiple AR images constitute an AR video. If the processing unit 12 determines in step S40 that the editing operation has been completed, the processing unit 12 may output an edited movie composed of a plurality of edited AR images (step S44). In an embodiment, the processing unit 12 may determine that the editing operation has been completed when the user triggers the save button or stops editing for a set period of time, but it is not limited.

通過圖4所示的各個步驟,使用者可以將感興趣的目標物件當作創作素材,通過電子裝置1的相機鏡頭11捕捉目標物件的影像,並通過處理單元12、辨識演算法131、影像編輯軟體132及3D資料庫133來基於目標物件的影像創作出2D或3D的AR影片。藉此,可有效提升AR影片的創作品質與創作速度。 Through the steps shown in FIG. 4, the user can use the target object of interest as creative material, capture the image of the target object through the camera lens 11 of the electronic device 1, and pass the processing unit 12, recognition algorithm 131, and image editing The software 132 and the 3D database 133 create 2D or 3D AR videos based on the image of the target object. This can effectively improve the creative quality and creative speed of AR movies.

通過本發明的上述技術方案,使用者可輕易地將生活周遭所見且感興趣的物品即時轉換成AR影像,藉此益於使用者將這個物品套用在修改目標上,或是基於這個物品創作出對應的AR影片,相當便利。 Through the above technical solution of the present invention, the user can easily convert the objects seen and interested in life into AR images in real time, thereby benefiting the user to apply the object to the modification target or create based on the object The corresponding AR movie is quite convenient.

以上所述僅為本發明之較佳具體實例,非因此即侷限本發明之專利範圍,故舉凡運用本發明內容所為之等效變化,均同理皆包含於本發明之範圍內,合予陳明。 The above is only a preferred specific example of the present invention, and the patent scope of the present invention is not limited by this, so all equivalent changes in applying the content of the present invention are included in the scope of the present invention in the same way. Bright.

1:電子裝置 1: Electronic device

11:相機鏡頭 11: Camera lens

12:處理單元 12: Processing unit

13:儲存單元 13: Storage unit

131:辨識演算法 131: Identification algorithm

132:影像編輯軟體 132: Image editing software

133:3D資料庫 133: 3D database

14:顯示單元 14: display unit

15:輸入單元 15: input unit

Claims (10)

一種擴增實境影像的處理方法,應用於一電子裝置上,包括下列步驟:a)通過該電子裝置的一相機鏡頭拍攝刊載於雜誌或顯示於電腦螢幕上的一目標物件,以生成一照片;b)該電子裝置通過一辨識演算法於該照片中辨識出該目標物件;c)該電子裝置通過一影像編輯軟體對該照片執行一去背程序以產生對應該目標物件的一物件影像;d)將該物件影像轉換成一擴增實境影像,其中該擴增實境影像為可以和現實周遭的影像共存的影像;d1)通過該電子裝置的該相機鏡頭持續擷取周遭環境的一即時影像;e)於該電子裝置的一顯示單元上同時顯示該即時影像及該擴增實境影像;及f)移動該電子裝置以將該顯示單元顯示的該擴增實境影像對準該即時影像中的一修改目標,藉此模擬該修改目標套用了該目標物件後的樣貌。 An augmented reality image processing method, applied to an electronic device, includes the following steps: a) shooting a target object published in a magazine or displayed on a computer screen through a camera lens of the electronic device to generate a photo B) The electronic device recognizes the target object in the photo through an identification algorithm; c) The electronic device performs a de-keying process on the photo through an image editing software to generate an object image corresponding to the target object; d) Converting the object image into an augmented reality image, wherein the augmented reality image is an image that can coexist with the image around the reality; d1) The camera lens of the electronic device continuously captures an instant of the surrounding environment An image; e) simultaneously displaying the real-time image and the augmented reality image on a display unit of the electronic device; and f) moving the electronic device to align the augmented reality image displayed on the display unit with the real-time image A modified target in the image, thereby simulating the appearance of the modified target after applying the target object. 如請求項1所述的擴增實境影像的處理方法,其中更包括下列步驟:d1)該步驟d)後,通過該影像編輯軟體對該擴增實境影像進行編輯;其中,該步驟e)是顯示編輯後的該擴增實境影像。 The method for processing augmented reality images according to claim 1, further comprising the following steps: d1) after the step d), the augmented reality images are edited by the image editing software; wherein, the step e ) Shows the augmented reality image after editing. 如請求項2所述的擴增實境影像的處理方法,其中該步驟d1)是通過該影像編輯軟體對該擴增實境影像進行放大、縮小、拉伸、變形、圖層置換或置入文字的編輯動作。 The processing method of augmented reality image according to claim 2, wherein the step d1) is to enlarge, reduce, stretch, deform, replace the layer or place text by using the image editing software Editing actions. 如請求項2所述的擴增實境影像的處理方法,其中該步驟b)中,該辨識演算法是藉由預先訓練完成的一人工智慧演算法對該照片進行分析,以從該照片中辨識出該目標物件,其中該人工智慧演算法經由訓練而認得複數該目標物件的樣貌。 The processing method of augmented reality image as described in claim 2, wherein in step b), the identification algorithm is to analyze the photo by an artificial intelligence algorithm completed in advance to select from the photo The target object is identified, wherein the artificial intelligence algorithm recognizes the appearance of the multiple target object through training. 如請求項4所述的擴增實境影像的處理方法,其中該人工智慧演算法是對該照片的圖像、顏色及形狀特徵進行分析,以從該照片中區分該目標物件及背景資訊,並且該電子裝置於執行該去背程序時是於該照片中去除該背景資訊並且保留該目標物件以產生該物件影像。 The processing method of augmented reality image according to claim 4, wherein the artificial intelligence algorithm analyzes the image, color and shape characteristics of the photo to distinguish the target object and background information from the photo, And the electronic device removes the background information from the photo and retains the target object to generate the object image when performing the back-removal process. 如請求項1所述的擴增實境影像的處理方法,其中更包括下列步驟:a0)該步驟a前,將該目標物件置於一目標背景中;其中,該步驟a)中拍攝的該照片包含該目標物件及該目標背景。 The processing method of augmented reality image as described in claim 1, further comprising the following steps: a0) before the step a, placing the target object in a target background; wherein, the photographed in the step a) The photo contains the target object and the target background. 如請求項2所述的擴增實境影像的處理方法,其中更包括下列步驟:g)於該步驟d1)後,判斷該編輯動作是否完成;h)於該編輯動作完成前重覆執行該步驟d1);及i)於該編輯動作完成後輸出由複數個編輯後的該擴增實境影像構成的一編輯影片。 The method for processing augmented reality images according to claim 2, further comprising the following steps: g) after the step d1), determine whether the editing action is completed; h) repeatedly execute the editing action before the editing action is completed Step d1); and i) After the editing operation is completed, an edited video composed of a plurality of edited augmented reality images is output. 如請求項2所述的擴增實境影像的處理方法,其中該影像編輯軟體為Photoshop軟體。 The processing method of augmented reality image as described in claim 2, wherein the image editing software is Photoshop software. 如請求項1所述的擴增實境影像的處理方法,其中該步驟d)是將該物件影像轉換成一2D擴增實境影像。 The processing method of augmented reality image according to claim 1, wherein the step d) is to convert the object image into a 2D augmented reality image. 如請求項1所述的擴增實境影像的處理方法,其中該電子裝置連接一3D資料庫,並且該步驟d)是依據該3D資料庫中的三維資訊將該物件影像轉換成一3D擴增實境影像。 The processing method of augmented reality image according to claim 1, wherein the electronic device is connected to a 3D database, and the step d) is to convert the object image into a 3D augmentation based on the three-dimensional information in the 3D database Reality images.
TW108102052A 2019-01-18 2019-01-18 Method for processing augmented reality image TWI691205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108102052A TWI691205B (en) 2019-01-18 2019-01-18 Method for processing augmented reality image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108102052A TWI691205B (en) 2019-01-18 2019-01-18 Method for processing augmented reality image

Publications (2)

Publication Number Publication Date
TWI691205B true TWI691205B (en) 2020-04-11
TW202029777A TW202029777A (en) 2020-08-01

Family

ID=71134396

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108102052A TWI691205B (en) 2019-01-18 2019-01-18 Method for processing augmented reality image

Country Status (1)

Country Link
TW (1) TWI691205B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201821949A (en) * 2016-11-30 2018-06-16 香港商阿里巴巴集團服務有限公司 Augmented-reality-based offline interaction method and apparatus
TWM569006U (en) * 2018-05-11 2018-10-21 喆奇行銷股份有限公司 Augmented reality smart wearable device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201821949A (en) * 2016-11-30 2018-06-16 香港商阿里巴巴集團服務有限公司 Augmented-reality-based offline interaction method and apparatus
TWM569006U (en) * 2018-05-11 2018-10-21 喆奇行銷股份有限公司 Augmented reality smart wearable device

Also Published As

Publication number Publication date
TW202029777A (en) 2020-08-01

Similar Documents

Publication Publication Date Title
WO2022001593A1 (en) Video generation method and apparatus, storage medium and computer device
US11736756B2 (en) Producing realistic body movement using body images
US10832086B2 (en) Target object presentation method and apparatus
Gauglitz et al. World-stabilized annotations and virtual scene navigation for remote collaboration
US10165199B2 (en) Image capturing apparatus for photographing object according to 3D virtual object
CN100438580C (en) Method and apparatus for converting a photo to a caricature image
KR102127351B1 (en) User terminal device and the control method thereof
CN104427252A (en) Method for synthesizing images and electronic device thereof
US20190246037A1 (en) Image Enhancement and Repair Using Sample Data from Other Images
WO2020211427A1 (en) Segmentation and recognition method, system, and storage medium based on scanning point cloud data
CN114363689B (en) Live broadcast control method and device, storage medium and electronic equipment
Desnoyer et al. Aesthetic image classification for autonomous agents
CN106815803B (en) Picture processing method and device
US20140198177A1 (en) Realtime photo retouching of live video
Lo et al. Augmediated reality system based on 3D camera selfgesture sensing
TW200832285A (en) Method for image auto-selection and computer system
WO2024022349A1 (en) Image processing method and apparatus, and electronic device and storage medium
JP6410427B2 (en) Information processing apparatus, information processing method, and program
TWI691205B (en) Method for processing augmented reality image
Zhang Algorithmic photography: A case study of the Huawei moon mode controversy
CN116452745A (en) Hand modeling, hand model processing method, device and medium
TW201222476A (en) Image processing system and method thereof, computer readable storage media and computer program product
CN112511743A (en) Video shooting method and device
CN110177216A (en) Image processing method, device, mobile terminal and storage medium
WO2022120843A1 (en) Three-dimensional human body reconstruction method and apparatus, and computer device and storage medium

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees