TWI826336B - Frame image acquisition method - Google Patents
Frame image acquisition method Download PDFInfo
- Publication number
- TWI826336B TWI826336B TW112124897A TW112124897A TWI826336B TW I826336 B TWI826336 B TW I826336B TW 112124897 A TW112124897 A TW 112124897A TW 112124897 A TW112124897 A TW 112124897A TW I826336 B TWI826336 B TW I826336B
- Authority
- TW
- Taiwan
- Prior art keywords
- block
- frame
- image
- relationship
- comic
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000015572 biosynthetic process Effects 0.000 claims abstract description 48
- 238000003786 synthesis reaction Methods 0.000 claims abstract description 48
- 239000000654 additive Substances 0.000 claims abstract description 24
- 230000000996 additive effect Effects 0.000 claims abstract description 24
- 238000010586 diagram Methods 0.000 claims description 12
- 238000013473 artificial intelligence Methods 0.000 claims description 11
- 238000004364 calculation method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000013467 fragmentation Methods 0.000 description 2
- 238000006062 fragmentation reaction Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013135 deep learning Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000003062 neural network model Methods 0.000 description 1
- 239000003973 paint Substances 0.000 description 1
Images
Landscapes
- Processing Or Creating Images (AREA)
Abstract
Description
本發明相關於一種數位漫畫的圖像擷取技術,特別是相關於一種畫框圖像的擷取方法。The present invention relates to an image capturing technology for digital comics, and in particular, to a frame image capturing method.
數位漫畫一般是指儲存成數位資料的紙本漫畫,也包括直接以數位方式所繪製出的漫畫資料,這類的數位漫畫需要藉由電腦來進行顯示。而隨著行動裝置的普遍化,人們利用電腦閱讀數位漫畫的方式逐漸從桌上型電腦轉移至手機上。Digital comics generally refer to paper comics that are stored as digital data, and also include comic data that are directly drawn digitally. This type of digital comics needs to be displayed by a computer. With the popularization of mobile devices, the way people use computers to read digital comics has gradually shifted from desktop computers to mobile phones.
漫畫通常是在單一頁面中含有多個畫框,藉此以依序顯示的圖像來說明故事,發揮分鏡(storyboard)的作用。然而,將數位漫畫的單一頁面整個顯示在手機的畫面上時往往會過於擁擠而難以閱讀。因此,目前有將自漫畫的單一頁面中所擷取出各個畫框分別單獨顯示在手機的畫面上的技術,但是,卻往往會隨著畫框的擷取而衍生有圖像、文字支離破碎的問題。Comics usually contain multiple frames on a single page, thereby illustrating the story with images displayed in sequence, functioning as a storyboard. However, when a single page of a digital comic is displayed entirely on the screen of a mobile phone, it is often too crowded and difficult to read. Therefore, there is currently a technology that extracts each frame from a single page of a comic and displays it individually on the screen of a mobile phone. However, this often leads to the problem of fragmented images and text as the frames are extracted. .
因此,本發明的目的即在提供一種畫框圖像的擷取方法,能夠在擷取漫畫畫框的同時保持其完整性,以解決習知技術之問題。Therefore, the purpose of the present invention is to provide a method for capturing a frame image, which can capture a comic frame while maintaining its integrity, so as to solve the problems of the conventional technology.
本發明為解決習知技術之問題所採用之技術手段係提供一種畫框圖像的擷取方法,用於取得一漫畫頁面圖像中的各個漫畫畫框圖像,該畫框圖像的擷取方法包含下列步驟:一圖塊範圍辨識步驟,以一人工智慧圖像辨識單元對於該漫畫頁面圖像進行一圖像辨識處理,而得到該漫畫頁面圖像中的各個畫框圖塊的畫框圖塊範圍資訊以及各個物件圖塊的物件圖塊範圍資訊;一圖塊關係判斷步驟,以一判斷單元根據該畫框圖塊範圍資訊及該物件圖塊範圍資訊,自該畫框圖塊與各個該物件圖塊之間的相對位置關係,判斷出對應於該畫框圖塊的各個加法關係圖塊,而得到圖塊加法關係資訊,其中該加法關係圖塊係為與該畫框圖塊有位置重疊且與該畫框圖塊在位置上歸屬於同一個漫畫畫框的該物件圖塊;以及一圖塊合成步驟,以一圖像處理單元根據該圖塊加法關係資訊,對於該漫畫頁面圖像中的各個該畫框圖塊,將該畫框圖塊與該畫框圖塊所對應的各個該加法關係圖塊在保持彼此之間的該相對位置關係不變的情況下對應合併,而得到該漫畫畫框圖像。The technical means adopted by the present invention to solve the problems of the conventional technology is to provide a frame image capturing method for obtaining each comic frame image in a comic page image. The capture of the frame image The obtaining method includes the following steps: a block range identification step, using an artificial intelligence image recognition unit to perform an image recognition process on the comic page image to obtain the picture of each frame block in the comic page image; frame block range information and object block range information of each object block; a block relationship determination step, using a judgment unit to determine from the frame block based on the frame block range information and the object block range information and the relative positional relationship between each of the object blocks, determine each addition relationship block corresponding to the picture frame block, and obtain the block addition relationship information, wherein the addition relationship block is related to the picture frame block The object block has a position overlap and belongs to the same comic frame as the frame block; and a block synthesis step is to use an image processing unit according to the additive relationship information of the block, for the Each picture frame block in the comic page image corresponds to each additive relationship block corresponding to the picture frame block while maintaining the relative positional relationship between each other unchanged. Merge to obtain the comic frame image.
在本發明的一實施例中係提供一種畫框圖像的擷取方法,其中在該圖塊範圍辨識步驟中,該人工智慧圖像辨識單元所進行的該圖像辨識處理係將該漫畫頁面圖像中的一人物圖案部分辨識為該物件圖塊。In one embodiment of the present invention, a frame image capturing method is provided, wherein in the block range recognition step, the image recognition processing performed by the artificial intelligence image recognition unit is to convert the comic page A character pattern in the image is partially identified as the object tile.
在本發明的一實施例中係提供一種畫框圖像的擷取方法,其中在該圖塊範圍辨識步驟中,該人工智慧圖像辨識單元所進行的該圖像辨識處理係將該漫畫頁面圖像中的位於一對話框圖案中的文字對話部分辨識為該物件圖塊。In one embodiment of the present invention, a frame image capturing method is provided, wherein in the block range recognition step, the image recognition processing performed by the artificial intelligence image recognition unit is to convert the comic page The text dialog portion of the image located within a dialog box pattern is identified as the object tile.
在本發明的一實施例中係提供一種畫框圖像的擷取方法,其中在該圖塊範圍辨識步驟中,該畫框圖塊範圍資訊係為該畫框圖塊的對角線二端點的座標資訊,該物件圖塊範圍資訊係為該物件圖塊的對角線二端點的座標資訊。In one embodiment of the present invention, a method for capturing a frame image is provided, wherein in the block range identification step, the frame block range information is two diagonal ends of the frame block. The coordinate information of the point. The object block range information is the coordinate information of the two diagonal endpoints of the object block.
在本發明的一實施例中係提供一種畫框圖像的擷取方法,其中在該圖塊關係判斷步驟中,該加法關係圖塊係進一步為至少一部分凸出於該畫框圖塊之外的該物件圖塊。In one embodiment of the present invention, a method for capturing a frame image is provided, wherein in the block relationship determination step, the additive relationship block is further at least partially protruding outside the frame block. of this object's tiles.
在本發明的一實施例中係提供一種畫框圖像的擷取方法,其中該圖塊關係判斷步驟更包括:一減法關係判斷子步驟,根據該畫框圖塊範圍資訊及該物件圖塊範圍資訊,自該畫框圖塊與各個該物件圖塊之間的相對位置關係,判斷出對應於該畫框圖塊的各個減法關係圖塊,而得到圖塊減法關係資訊,其中該減法關係圖塊係為與該畫框圖塊有位置重疊但與該畫框圖塊在位置上歸屬於不同的該漫畫畫框的該物件圖塊,以及該圖塊合成步驟更包括:一減法合成子步驟,根據該圖塊減法關係資訊,對於該漫畫頁面圖像中的各個該畫框圖塊,將該畫框圖塊所對應的各個該減法關係圖塊自該畫框圖塊移除。In one embodiment of the present invention, a method for capturing a frame image is provided, wherein the block relationship determination step further includes: a subtraction relationship determination sub-step, based on the frame block range information and the object block Range information, from the relative positional relationship between the picture frame block and each object block, determines each subtraction relationship block corresponding to the picture frame block, and obtains block subtraction relationship information, wherein the subtraction relationship The block is the object block that overlaps with the frame block but belongs to a different comic frame in position than the frame block, and the block synthesis step further includes: a subtractive synthesizer Step: According to the block subtraction relationship information, for each of the picture frame blocks in the comic page image, remove each of the subtraction relationship blocks corresponding to the picture frame block from the picture frame block.
在本發明的一實施例中係提供一種畫框圖像的擷取方法,其中在該圖塊合成步驟的該減法合成子步驟中,係以留白方式將該畫框圖塊所對應的各個該減法關係圖塊自該畫框圖塊移除。In an embodiment of the present invention, a method for capturing a frame image is provided, wherein in the subtractive synthesis sub-step of the block synthesis step, each corresponding frame image block is left blank. The subtraction relation tile is removed from the frame tile.
在本發明的一實施例中係提供一種畫框圖像的擷取方法,其中該圖塊合成步驟更包括:一圖像修復子步驟,在該減法合成子步驟之後,以一圖像修復演算法來填補該畫框圖塊在該減法合成子步驟中的被移除部分。In an embodiment of the present invention, a frame image capturing method is provided, wherein the block synthesis step further includes: an image repair sub-step, and after the subtraction synthesis sub-step, an image repair algorithm is used Method to fill in the removed portion of the frame tile in the subtractive synthesis sub-step.
經由本發明所採用之技術手段,本發明的畫框圖像的擷取方法係在擷取漫畫頁面圖像中的畫框圖塊的同時也會去取得物件圖塊,並將畫框圖塊及歸屬於同一個漫畫畫框的所有的物件圖塊對應合併而得到漫畫畫框圖像,藉此能夠保持漫畫畫框中的所有的該物件圖塊的完整性,從而解決圖像、文字支離破碎的問題。再者,在較佳的實施例中,本發明的畫框圖像的擷取方法會將歸屬於不同的漫畫畫框的該物件圖塊自該畫框圖塊移除,以減少該漫畫畫框圖像中的異物干擾,提升可讀性。並且,本發明的畫框圖像的擷取方法也能夠進一步地填補圖像的被移除部分,以消弭因部分圖像的欠缺或空白所致的突兀感,以不至於減低漫畫的吸引力。Through the technical means adopted in the present invention, the frame image capturing method of the present invention not only captures the frame tiles in the comic page image, but also acquires the object tiles, and converts the frame tiles into And all the object tiles belonging to the same comic frame are correspondingly merged to obtain the comic frame image, thereby maintaining the integrity of all the object tiles in the comic frame, thereby solving the problem of fragmentation of images and text. problem. Furthermore, in a preferred embodiment, the frame image capturing method of the present invention will remove the object tiles belonging to different comic frames from the frame tiles to reduce the number of comic frames. Frame foreign objects in the image to improve readability. In addition, the frame image capturing method of the present invention can also further fill in the removed parts of the image to eliminate the abruptness caused by the lack or blankness of part of the image, so as not to reduce the attractiveness of the comic. .
以下根據第1圖至第7圖,而說明本發明的實施方式。該說明並非為限制本發明的實施方式,而為本發明之實施例的一種。The embodiments of the present invention will be described below based on FIGS. 1 to 7 . This description is not intended to limit the implementation of the present invention, but is one example of the present invention.
如第1圖至第7圖所示,依據本發明的一實施例的一畫框圖像的擷取方法係用於取得一漫畫頁面圖像MP中的各個漫畫畫框圖像,該畫框圖像的擷取方法包含:一圖塊範圍辨識步驟S10、一圖塊關係判斷步驟S20以及一圖塊合成步驟。As shown in Figures 1 to 7, a method for capturing a frame image according to an embodiment of the present invention is used to obtain each comic frame image in a comic page image MP. The frame image The image capturing method includes: a block range identification step S10, a block relationship determination step S20 and a block synthesis step.
如第1圖至第3圖所示,在該圖塊範圍辨識步驟S10中,係以一人工智慧圖像辨識單元1對於該漫畫頁面圖像MP進行一圖像辨識處理,而得到該漫畫頁面圖像MP中的各個畫框圖塊F1、F2、F3、F4、F5、F6的畫框圖塊範圍資訊(以單點鏈線示意)以及各個物件圖塊C1、C2、C3、C4、C5、T1、T2、T3的物件圖塊範圍資訊(以二點鏈線示意)。As shown in Figures 1 to 3, in the block range identification step S10, an artificial intelligence
具體而言,在該圖塊範圍辨識步驟S10中,該人工智慧圖像辨識單元1係用於自該漫畫頁面圖像MP中找出各個該畫框圖塊、各個該物件圖塊、以及彼等所各自對應的該畫框圖塊範圍資訊及該物件圖塊範圍資訊,其較佳地可利用深度學習來進行該圖像辨識處理,例如:利用YOLO(you only look once)系列的物件辨識神經網路模型。當然,本發明並不以此為限,只要能夠有效地進行該圖像辨識處理,而自該漫畫頁面圖像MP中得到各個畫框圖塊的畫框圖塊範圍資訊及各個物件圖塊的物件圖塊範圍資訊,也可使用其它的人工智慧圖像辨識單元。Specifically, in the block range identification step S10, the artificial intelligence
再者,在本實施例中,該人工智慧圖像辨識單元1所進行的該圖像辨識處理係將該漫畫頁面圖像MP中的一人物圖案部分辨識為該物件圖塊C1、C2、C3、C4、C5,以及將該漫畫頁面圖像MP中的位於一對話框圖案中的文字對話部分辨識為該物件圖塊T1、T2、T3。具體而言,該漫畫頁面圖像MP中的各種物件(諸如:人物、建築物、背景、文字對話、效果圖案)都能夠作為該人工智慧圖像辨識單元1的該圖像辨識處理的對象的物件圖塊。但考量到該圖像辨識處理的執行效率以及反映在漫畫閱讀上的效果,僅針對該人物圖案部分的該物件圖塊C1、C2、C3、C4、C5以及該文字對話部分的該物件圖塊T1、T2、T3進行該圖像辨識處理是一個較佳的選擇。Furthermore, in this embodiment, the image recognition processing performed by the artificial intelligence
此外,在本實施例中,該畫框圖塊範圍資訊係為該畫框圖塊F1、F2、F3、F4、F5、F6的對角線二端點的座標資訊,該物件圖塊範圍資訊係為該物件圖塊C1、C2、C3、C4、C5、T1、T2、T3的對角線二端點的座標資訊。換言之,該畫框圖塊範圍資訊及該物件圖塊範圍資訊係以矩形框來定義該畫框圖塊及該物件圖塊的範圍,以藉此大幅減低後續進行位置關係的運算時的負擔。應注意的是,該畫框圖塊範圍資訊及該物件圖塊範圍資訊只是用於後續進行該畫框圖塊及該物件圖塊的位置關係的運算的資訊,而並不是用來表示該畫框圖塊及該物件圖塊的實際輪廓形狀。舉例而言,如第3圖所示,該物件圖塊C1、C2、C3、C4、C5皆為具有人物輪廓形狀的圖塊,而該物件圖塊C1、C2、C3、C4、C5的以二點鏈線示意的物件圖塊範圍資訊則皆為矩形。In addition, in this embodiment, the picture frame block range information is the coordinate information of the two diagonal endpoints of the picture frame blocks F1, F2, F3, F4, F5, and F6, and the object block range information is It is the coordinate information of the two diagonal endpoints of the object's blocks C1, C2, C3, C4, C5, T1, T2, and T3. In other words, the frame block range information and the object block range information use a rectangular frame to define the range of the frame block and the object block, thereby greatly reducing the burden of subsequent calculations of positional relationships. It should be noted that the frame block range information and the object block range information are only used for subsequent calculations of the positional relationship between the frame block and the object block, and are not used to represent the picture. The actual outline shape of the frame block and the object block. For example, as shown in Figure 3, the object blocks C1, C2, C3, C4, and C5 are all blocks with human outline shapes, and the object blocks C1, C2, C3, C4, and C5 are The object block range information represented by the two-point chain line is all rectangular.
如第1圖及第3圖所示,在該圖塊關係判斷步驟S20中,係以一判斷單元2(第4圖及第5圖)根據該畫框圖塊範圍資訊及該物件圖塊範圍資訊,自該畫框圖塊與各個該物件圖塊之間的相對位置關係,判斷出對應於該畫框圖塊的各個加法關係圖塊,而得到圖塊加法關係資訊,其中該加法關係圖塊係為與該畫框圖塊有位置重疊且與該畫框圖塊在位置上歸屬於同一個漫畫畫框的該物件圖塊。As shown in Figures 1 and 3, in the block relationship judgment step S20, a judgment unit 2 (Figures 4 and 5) is used based on the frame block range information and the object block range. Information, from the relative positional relationship between the picture frame block and each of the object blocks, determine each addition relationship block corresponding to the picture frame block, and obtain the block addition relationship information, wherein the addition relationship diagram The block is the object block that overlaps the frame block and belongs to the same comic frame as the frame block.
具體而言,在該圖塊關係判斷步驟S20中,該判斷單元2係用於判斷出有哪些物件圖塊是和特定的畫框圖塊歸屬於同一個漫畫畫框,而歸屬於該畫框圖塊的該漫畫畫框的這些物件圖塊便會被判斷為是對應於該畫框圖塊的加法關係圖塊(加法關係判斷子步驟S21)。舉例而言,在第3圖的該漫畫頁面圖像MP中,由於該物件圖塊C1及該物件圖塊T1皆與該畫框圖塊F1有位置重疊,且皆與該畫框圖塊F1在位置上歸屬於右上角的漫畫畫框,因此在該加法關係判斷子步驟S21中,該物件圖塊C1及該物件圖塊T1皆會被該判斷單元2判斷為是對應於該畫框圖塊F1的加法關係圖塊。同樣地,在第3圖的該漫畫頁面圖像MP中,由於該物件圖塊C5及該物件圖塊T3皆與該畫框圖塊F6有位置重疊,雖然該物件圖塊C5同時與該畫框圖塊F5及該畫框圖塊F6皆有位置重疊,但從重疊的位置、重疊的比例大小、……等位置關係能夠判斷出該物件圖塊C5及該物件圖塊T3皆與該畫框圖塊F6在位置上歸屬於最下側的漫畫畫框,因此在該加法關係判斷子步驟S21中,該物件圖塊C5及該物件圖塊T3皆會被該判斷單元2判斷為是對應於該畫框圖塊F6的加法關係圖塊。Specifically, in the block relationship determination step S20, the
如第1圖及第3圖至第5圖所示,在該圖塊合成步驟S30中,係以一圖像處理單元3根據該圖塊加法關係資訊,對於該漫畫頁面圖像MP中的各個該畫框圖塊F1、F2、F3、F4、F5、F6,將該畫框圖塊F1、F2、F3、F4、F5、F6與該畫框圖塊F1、F2、F3、F4、F5、F6所對應的各個該加法關係圖塊在保持彼此之間的該相對位置關係不變的情況下對應合併,而得到該漫畫畫框圖像。As shown in Figure 1 and Figures 3 to 5, in the block synthesis step S30, an
具體而言,如第3圖至第5圖所示,在該圖塊合成步驟S30中,該圖像處理單元3係將歸屬於同一個該漫畫畫框的該畫框圖塊與所對應的各個該加法關係圖塊藉由圖像處理而合併(加法合成子步驟S31)。舉例而言,如第4圖所示,該畫框圖塊F6係與該物件圖塊C5及該物件圖塊T3歸屬於同一個該漫畫畫框,因此在該加法合成子步驟S31中,該圖像處理單元3會將該畫框圖塊F6、該物件圖塊C5及該物件圖塊T3在保持彼此之間的該相對位置關係不變的情況下對應合併,而得到人物圖案(該物件圖塊C5)完整未支離破碎的漫畫畫框圖像MF6。如第5圖所示,該畫框圖塊F1係與該物件圖塊C1及該物件圖塊T1歸屬於同一個該漫畫畫框,因此在該加法合成子步驟S31中,該圖像處理單元3會將該畫框圖塊F1、該物件圖塊C1及該物件圖塊T1在保持彼此之間的該相對位置關係不變的情況下對應合併,而得到文字對話(該物件圖塊T1)完整未支離破碎的漫畫畫框圖像MF1。Specifically, as shown in Figures 3 to 5, in the block synthesis step S30, the
應注意的是,該圖像處理單元3所進行合併的對象是「物件圖塊」,而不一定是物件圖塊範圍資訊所指定的範圍。因此,如第4圖所示,在該物件圖塊C5與該畫框圖塊F6合併時,位於該物件圖塊C5的物件圖塊範圍資訊所指定的範圍內的該物件圖塊C4、C3的部分並不會被拿來與該畫框圖塊F6合併。如第5圖所示,在該物件圖塊T1與該畫框圖塊F1合併時,由於位於該物件圖塊T1的物件圖塊範圍資訊所指定的範圍外的對話框圖案本來就不是該物件圖塊T1的一部分,故當然並不會被拿來與該畫框圖塊F1合併。It should be noted that the objects merged by the
藉由上述方式,本發明的畫框圖像的擷取方法係在擷取漫畫頁面圖像中的該畫框圖塊的同時也會去取得該物件圖塊,並將該畫框圖塊及歸屬於同一個漫畫畫框的所有的該物件圖塊對應合併而得到該漫畫畫框圖像,藉此能夠保持漫畫畫框中的所有的該物件圖塊的完整性,從而解決圖像、文字支離破碎的問題。Through the above method, the frame image capturing method of the present invention acquires the object tile while capturing the frame tile in the comic page image, and combines the frame tile and All the object tiles belonging to the same comic frame are correspondingly merged to obtain the comic frame image, thereby maintaining the integrity of all the object tiles in the comic frame, thereby solving the problem of images and text The problem of fragmentation.
較佳地,在本實施例中,在該圖塊關係判斷步驟S20中,該加法關係圖塊係進一步為至少一部分凸出於該畫框圖塊之外的該物件圖塊。具體而言,大多數的該物件圖塊為整體位在同一個漫畫畫框的該畫框圖塊內,後續無論是否被合併至該畫框圖塊,皆不會對所得到的該漫畫畫框圖像造成影響。舉例而言,第4圖的該物件圖塊T3無論是否被合併至該畫框圖塊F6,皆不會對所得到的該漫畫畫框圖像MF6造成影響。第5圖的該物件圖塊C1無論是否被合併至該畫框圖塊F1,皆不會對所得到的該漫畫畫框圖像MF1造成影響。因此,藉由將整體位在同一個漫畫畫框的該畫框圖塊內(即,未凸出於該畫框圖塊之外)的該物件圖塊預先排除,能夠大幅減少後續在該圖塊合成步驟S30中所要處理的該加法關係圖塊的數量,從而提升處理效率。此外,在該加法合成子步驟S31中,也能夠藉由不將該加法關係圖塊整體,而只將該加法關係圖塊的凸出於該畫框圖塊之外的部分與該畫框圖塊合併,從而進一步提升處理效率。Preferably, in this embodiment, in the block relationship determination step S20, the additive relationship block is further at least partially protruding from the object block outside the picture frame block. Specifically, most of the object tiles are located entirely within the frame tiles of the same comic frame. No matter whether they are merged into the frame tiles or not, the resulting comic will not be modified. Frame images are affected. For example, whether the object block T3 in Figure 4 is merged into the frame block F6 or not, it will not affect the obtained comic frame image MF6. Regardless of whether the object block C1 in Figure 5 is merged into the frame block F1, it will not affect the obtained comic frame image MF1. Therefore, by preliminarily excluding the object blocks that are entirely within the frame block of the same comic frame (that is, not protruding outside the frame block), it is possible to significantly reduce the number of subsequent errors in the frame block. The number of additive relationship blocks to be processed in the block synthesis step S30 is thereby improved to improve processing efficiency. In addition, in the additive synthesis sub-step S31, it is also possible to combine the additive relationship block with the frame diagram only by combining the portion of the additive relationship diagram that protrudes outside the frame diagram instead of the entire additive relationship block. Block merging further improves processing efficiency.
較佳地,如第1圖、第3圖及第6圖所示,在本發明的實施例的畫框圖像的擷取方法中,該圖塊關係判斷步驟S20更包括:一減法關係判斷子步驟S22,根據該畫框圖塊範圍資訊及該物件圖塊範圍資訊,自該畫框圖塊與各個該物件圖塊之間的相對位置關係,判斷出對應於該畫框圖塊的各個減法關係圖塊,而得到圖塊減法關係資訊,其中該減法關係圖塊係為與該畫框圖塊有位置重疊但與該畫框圖塊在位置上歸屬於不同的該漫畫畫框的該物件圖塊,以及該圖塊合成步驟S30更包括:一減法合成子步驟S32,根據該圖塊減法關係資訊,對於該漫畫頁面圖像中的各個該畫框圖塊,將該畫框圖塊所對應的各個該減法關係圖塊自該畫框圖塊移除。Preferably, as shown in Figures 1, 3 and 6, in the frame image capturing method according to the embodiment of the present invention, the block relationship determination step S20 further includes: a subtraction relationship determination. Sub-step S22: Based on the frame block range information and the object block range information, from the relative position relationship between the picture frame block and each of the object blocks, determine each corresponding to the picture frame block. Subtract the relationship block to obtain block subtraction relationship information, where the subtraction relationship block is the comic frame that has a position overlap with the frame block but belongs to a different position from the frame block. The object tiles and the tile synthesis step S30 further include: a subtraction synthesis sub-step S32. According to the subtraction relationship information of the tiles, for each frame tile in the comic page image, the frame tile is Each corresponding subtraction relation block is removed from the picture frame block.
具體而言,在該減法關係判斷子步驟S22中,該判斷單元2係用於判斷出有哪些物件圖塊是和特定的畫框圖塊有重疊但卻歸屬於不同的該漫畫畫框,而這類的物件圖塊便會被判斷為是對應於該畫框圖塊的減法關係圖塊。舉例而言,在第3圖的該漫畫頁面圖像MP中,該物件圖塊C5與該畫框圖塊F5有重疊,但從重疊的位置、重疊的比例大小、……等位置關係能夠判斷出該物件圖塊C5在位置上歸屬於最下側的漫畫畫框而非是該畫框圖塊F5的漫畫畫框,因此該物件圖塊C5便會被該判斷單元2判斷為是對應於該畫框圖塊F5的減法關係圖塊。接著,在該減法合成子步驟S32中,該圖像處理單元3會將被判斷成該減法關係圖塊的該物件圖塊C5自該畫框圖塊F5移除。該圖像處理單元3主要有兩種移除該減法關係圖塊的方式:截除方式及留白方式。截除方式即是自該畫框圖塊F5剪去要移除的部分,留白方式則是將要移除的部分塗白。由於截除方式會容易使得該畫框圖塊F5的形狀變得複雜,故在該圖塊合成步驟S30的該減法合成子步驟S32中,係以留白方式將該畫框圖塊所對應的各個該減法關係圖塊自該畫框圖塊移除為佳。應注意的是,該圖像處理單元3所進行移除的對象是「物件圖塊」,而並不是物件圖塊範圍資訊所指定的範圍。因此,如第6圖所示,該畫框圖塊F5只有與該物件圖塊C5的人物輪廓形狀相重疊的部分被移除,而並非是該物件圖塊C5的物件圖塊範圍資訊所指定的範圍皆被移除。藉由上述方式,能夠將歸屬於不同的漫畫畫框的該物件圖塊自該畫框圖塊移除,以減少該漫畫畫框圖像中的異物干擾,提升可讀性。Specifically, in the subtraction relationship determination sub-step S22, the
此外,雖然在第1圖中係顯示該減法關係判斷子步驟S22與該加法關係判斷子步驟S21同時進行,該減法合成子步驟S32與該加法合成子步驟S31同時進行,但本發明並不以此為限,該減法關係判斷子步驟S22可在該加法關係判斷子步驟S21之前、之後或同時進行,該減法合成子步驟S32亦可在該加法合成子步驟S31之前、之後或同時進行。In addition, although it is shown in Figure 1 that the subtraction relationship determination sub-step S22 and the addition relationship determination sub-step S21 are performed simultaneously, and the subtraction synthesis sub-step S32 and the addition synthesis sub-step S31 are performed simultaneously, the present invention does not use the method. To this extent, the subtraction relationship determination sub-step S22 can be performed before, after, or at the same time as the addition relationship determination sub-step S21. The subtraction synthesis sub-step S32 can also be performed before, after, or at the same time as the addition synthesis sub-step S31.
較佳地,如第1圖及第7圖所示,在本發明的實施例的畫框圖像的擷取方法中,該圖塊合成步驟S30更包括:一圖像修復子步驟S33,在該減法合成子步驟S32之後,以一圖像修復演算法來填補該畫框圖塊在該減法合成子步驟S32中的被移除部分R。Preferably, as shown in Figures 1 and 7, in the frame image capturing method according to the embodiment of the present invention, the block synthesis step S30 further includes: an image repair sub-step S33. After the subtractive synthesis sub-step S32, an image restoration algorithm is used to fill in the removed portion R of the frame block in the subtractive synthesis sub-step S32.
具體而言,在該圖像修復子步驟S33中,該圖像處理單元3係將該畫框圖塊在該減法合成子步驟S32中以截除、留白或其他方式所移除的部分(即,該被移除部分)利用圖像修復(Inpainting)的方式來填補成完整的圖塊。舉例而言,如第7圖所示,該畫框圖塊F5的該被移除部分R原本雖然是該物件圖塊C5的人物圖案的一部分,但該圖像處理單元3則是將該被移除部分R視為該畫框圖塊F5的損壞或丟失的部分,因此在經過圖像修復之後,該畫框圖塊F5中不再有該物件圖塊C5的元素存在。藉由上述方式,能夠填補圖像的被移除部分,以消弭因部分圖像的欠缺或空白所致的突兀感,以不至於減低漫畫的吸引力。Specifically, in the image repair sub-step S33, the
以上之敘述以及說明僅為本發明之較佳實施例之說明,對於此項技術具有通常知識者當可依據以下所界定申請專利範圍以及上述之說明而作其他之修改,惟此些修改仍應是為本發明之發明精神而在本發明之權利範圍中。The above descriptions and explanations are only descriptions of the preferred embodiments of the present invention. Those with ordinary knowledge of this technology may make other modifications based on the patent scope defined below and the above explanations, but these modifications should still be made. It is for the spirit of the present invention and within the scope of rights of the present invention.
1:人工智慧圖像辨識單元 2:判斷單元 3:圖像處理單元 C1:物件圖塊 C2:物件圖塊 C3:物件圖塊 C4:物件圖塊 C5:物件圖塊 F1:畫框圖塊 F2:畫框圖塊 F3:畫框圖塊 F4:畫框圖塊 F5:畫框圖塊 F6:畫框圖塊 MF1:漫畫畫框圖像 MF6:漫畫畫框圖像 MP:漫畫頁面圖像 R:被移除部分 S10:圖塊範圍辨識步驟 S20:圖塊關係判斷步驟 S21:加法關係判斷子步驟 S22:減法關係判斷子步驟 S30:圖塊合成步驟 S31:加法合成子步驟 S32:減法合成子步驟 S33:圖像修復子步驟 T1:物件圖塊 T2:物件圖塊 T3:物件圖塊 1: Artificial intelligence image recognition unit 2: Judgment unit 3:Image processing unit C1: Object tile C2: Object tile C3: Object tile C4: Object tile C5: Object tile F1: Frame tile F2: Frame tile F3: Frame tile F4: Frame tile F5: Frame tile F6: Frame tile MF1: Comic frame image MF6: Comic frame image MP: Comic page image R: removed part S10: Block range identification step S20: Steps to determine block relationship S21: Addition relationship judgment sub-step S22: substep of subtraction relationship judgment S30: Tile synthesis steps S31: Additive synthesis sub-step S32: Subtractive synthesis sub-step S33: Image restoration sub-step T1: Object tile T2: Object tile T3: Object tile
[第1圖]為顯示根據本發明的一實施例的畫框圖像的擷取方法的流程示意圖; [第2圖]為顯示一漫畫頁面圖像的示意圖; [第3圖]為顯示根據本發明的實施例的畫框圖像的擷取方法的圖塊範圍辨識步驟的示意圖; [第4圖]為顯示根據本發明的實施例的畫框圖像的擷取方法的圖塊合成步驟的示意圖; [第5圖]為顯示根據本發明的實施例的畫框圖像的擷取方法的圖塊合成步驟的示意圖; [第6圖]為顯示根據本發明的實施例的畫框圖像的擷取方法的圖塊合成步驟的減法合成子步驟的示意圖; [第7圖]為顯示根據本發明的實施例的畫框圖像的擷取方法的圖塊合成步驟的圖像修復子步驟的示意圖。 [Figure 1] is a schematic flowchart showing a method for capturing a frame image according to an embodiment of the present invention; [Picture 2] is a schematic diagram showing an image of a comic page; [Figure 3] is a schematic diagram showing the block range identification step of the frame image capturing method according to an embodiment of the present invention; [Figure 4] is a schematic diagram showing the block synthesis steps of the frame image capturing method according to an embodiment of the present invention; [Figure 5] is a schematic diagram showing the block synthesis steps of the frame image capturing method according to an embodiment of the present invention; [Figure 6] is a schematic diagram showing the subtractive synthesis sub-step of the block synthesis step of the frame image capturing method according to an embodiment of the present invention; [Fig. 7] is a schematic diagram showing the image repair sub-step of the block synthesis step of the frame image capturing method according to an embodiment of the present invention.
S10:圖塊範圍辨識步驟 S10: Block range identification step
S20:圖塊關係判斷步驟 S20: Steps to determine block relationship
S21:加法關係判斷子步驟 S21: Addition relationship judgment sub-step
S22:減法關係判斷子步驟 S22: substep of subtraction relationship judgment
S30:圖塊合成步驟 S30: Tile synthesis steps
S31:加法合成子步驟 S31: Additive synthesis sub-step
S32:減法合成子步驟 S32: Subtractive synthesis sub-step
S33:圖像修復子步驟 S33: Image restoration sub-step
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW112124897A TWI826336B (en) | 2023-07-04 | 2023-07-04 | Frame image acquisition method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW112124897A TWI826336B (en) | 2023-07-04 | 2023-07-04 | Frame image acquisition method |
Publications (1)
Publication Number | Publication Date |
---|---|
TWI826336B true TWI826336B (en) | 2023-12-11 |
Family
ID=90053289
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW112124897A TWI826336B (en) | 2023-07-04 | 2023-07-04 | Frame image acquisition method |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI826336B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112990378A (en) * | 2021-05-08 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Scene recognition method and device based on artificial intelligence and electronic equipment |
CN114996494A (en) * | 2022-06-24 | 2022-09-02 | 广东电网有限责任公司 | Image processing method, image processing device, electronic equipment and storage medium |
CN115170388A (en) * | 2022-07-28 | 2022-10-11 | 西南大学 | Character line draft generation method, device, equipment and medium |
CN115578483A (en) * | 2021-06-21 | 2023-01-06 | 哈皮尼思(北京)文化科技有限公司 | Method, device and equipment for generating strip-diffuse image and computer storage medium |
-
2023
- 2023-07-04 TW TW112124897A patent/TWI826336B/en active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112990378A (en) * | 2021-05-08 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Scene recognition method and device based on artificial intelligence and electronic equipment |
CN115578483A (en) * | 2021-06-21 | 2023-01-06 | 哈皮尼思(北京)文化科技有限公司 | Method, device and equipment for generating strip-diffuse image and computer storage medium |
CN114996494A (en) * | 2022-06-24 | 2022-09-02 | 广东电网有限责任公司 | Image processing method, image processing device, electronic equipment and storage medium |
CN115170388A (en) * | 2022-07-28 | 2022-10-11 | 西南大学 | Character line draft generation method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112348815B (en) | Image processing method, image processing apparatus, and non-transitory storage medium | |
CN113139445A (en) | Table recognition method, apparatus and computer-readable storage medium | |
CN109410215A (en) | Image processing method, device, electronic equipment and computer-readable medium | |
CN104966092B (en) | A kind of image processing method and device | |
CN110210440B (en) | Table image layout analysis method and system | |
CN105844277B (en) | Label identification method and device | |
CN110892255A (en) | Image processing apparatus, image processing method, and program for detecting defects from an image | |
CN111881659B (en) | Processing method and system of table picture, readable storage medium and computer equipment | |
CN101393635A (en) | Watermark information embedding, extracting method and processing system | |
JP3740351B2 (en) | Image processing apparatus and method, and recording medium on which execution program for the method is recorded | |
TWI826336B (en) | Frame image acquisition method | |
CN117058129B (en) | Automatic bridge apparent disease identification method based on image processing | |
CN114359030A (en) | Method for synthesizing human face backlight picture | |
US20110187721A1 (en) | Line drawing processing apparatus, storage medium storing a computer-readable program, and line drawing processing method | |
CN109741426B (en) | Cartoon form conversion method and device | |
CN117011658A (en) | Image processing method, apparatus, device, storage medium, and computer program product | |
CN113947529B (en) | Image enhancement method, model training method, component identification method and related equipment | |
JP3638845B2 (en) | Image processing apparatus and method | |
CN115049628A (en) | Method and system for automatically generating house type structure | |
CN110909187B (en) | Image storage method, image reading method, image memory and storage medium | |
CN113837020A (en) | Cosmetic progress detection method, device, equipment and storage medium | |
CN116167925A (en) | Image restoration method, device, electronic equipment and computer readable storage medium | |
CN112906819A (en) | Image recognition method, device, equipment and storage medium | |
JP2846486B2 (en) | Image input device | |
CN111899184A (en) | Image defect repairing and neural network training method, device, equipment and system |