TW202002604A - Image processing method and electronic device - Google Patents

Image processing method and electronic device Download PDF

Info

Publication number
TW202002604A
TW202002604A TW107140469A TW107140469A TW202002604A TW 202002604 A TW202002604 A TW 202002604A TW 107140469 A TW107140469 A TW 107140469A TW 107140469 A TW107140469 A TW 107140469A TW 202002604 A TW202002604 A TW 202002604A
Authority
TW
Taiwan
Prior art keywords
type
data
video
processing
video data
Prior art date
Application number
TW107140469A
Other languages
Chinese (zh)
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 晨星半導體股份有限公司
Publication of TW202002604A publication Critical patent/TW202002604A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • H04N7/0117Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level involving conversion of the spatial resolution of the incoming video signal
    • H04N7/012Conversion between an interlaced and a progressive signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • H04N7/0125Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level one of the standards being a high definition standard

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Graphics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Television Systems (AREA)

Abstract

The present application discloses an image processing method and an electronic device. The method comprises the steps of: receiving a video signal; detecting a type of the video signal; processing the video signal according to the type of the video signal to generate a processed video data; writing the processed video data in the screen for display. Through the above manner, the application can reduce the occupation of the storage space by the video data, reduce the burden on the electronic device, and provide technical support for improving the smoothness of the screen display.

Description

影像處理方法及電子設備Image processing method and electronic equipment

本申請涉及電腦技術領域,特別是涉及一種影像處理方法及電子設備。This application relates to the field of computer technology, in particular to an image processing method and electronic equipment.

4K顯示技術是當前較為熱門的顯示技術之一,具有3840×2160超高清解析度,標準化的4K,能夠達到高清解析度的4倍,極大的滿足了人們的視覺享受需求。4K display technology is one of the most popular display technologies at present, with 3840×2160 ultra high definition resolution, standardized 4K, which can reach 4 times the high definition resolution, which greatly meets people's visual enjoyment needs.

當前的4K顯示技術以逐行顯示的方式應用於電視機、機上盒、顯示器等電子設備的顯示應用上,然而,本申請的發明人在長期的研發過程中發現,4K顯示技術往往需要處理大量的資料,從而需要預備更多的空間進行視頻圖像的存放和處理,進而會在一定程度上影響顯示的流暢性。The current 4K display technology is applied to the display applications of electronic devices such as televisions, set-top boxes, and monitors in a line-by-line display. However, the inventor of the present application has discovered in the long-term development process that 4K display technology often needs to be processed A large amount of data requires more space to store and process video images, which will affect the fluency of the display to a certain extent.

本申請主要解決的技術問題是提供一種影像處理方法及電子設備,能夠降低對儲存空間的要求,減輕電子設備的負擔,並為提升螢幕顯示的流暢度提供技術支援。The main technical problem solved by this application is to provide an image processing method and electronic equipment, which can reduce the storage space requirement, reduce the burden on electronic equipment, and provide technical support for improving the smoothness of the screen display.

為解決上述技術問題,本申請採用的一個技術方案是:提供一種影像處理方法,包括:接收視訊訊號;偵測所述視訊訊號的類型;根據所述視訊訊號的類型對所述視訊訊號進行處理以生成處理後的視頻資料;在螢幕中寫入所述處理後的視頻資料以進行顯示。In order to solve the above technical problems, a technical solution adopted by the present application is to provide an image processing method including: receiving a video signal; detecting the type of the video signal; and processing the video signal according to the type of the video signal To generate processed video data; write the processed video data on the screen for display.

為解決上述技術問題,本申請採用的另一個技術方案是:提供一種電子設備,包括:偵測模組,用於在接收到視訊訊號後,偵測所述視訊訊號的類型;處理模組,與所述偵測模組連接,用於根據所述視訊訊號的類型對所述視訊訊號進行處理以生成處理後的視頻資料;寫入模組,與所述處理模組連接,用於在螢幕中寫入所述處理後的視頻資料以進行顯示。In order to solve the above technical problems, another technical solution adopted by the present application is to provide an electronic device including: a detection module for detecting the type of the video signal after receiving the video signal; a processing module, Connected with the detection module, used to process the video signal according to the type of the video signal to generate processed video data; write module, connected to the processing module, used on the screen The processed video material is written in for display.

本申請的有益效果是:區別於習知技術的情況,本申請影像處理方法包括:接收視訊訊號;偵測視訊訊號的類型;根據視訊訊號的類型對視訊訊號進行處理以生成處理後的視頻資料;在螢幕中寫入處理後的視頻資料以進行顯示。通過上述方式,本申請能夠根據視訊訊號的類型對視訊訊號進行處理,並使得處理後的視頻資料的資料量減少,從而能夠降低對儲存空間的要求,減輕電子設備的負擔,並為提升螢幕顯示的流暢性提供技術支援。The beneficial effects of this application are: different from the case of the conventional technology, the image processing method of this application includes: receiving video signals; detecting the type of video signals; processing the video signals according to the types of video signals to generate processed video data ; Write the processed video data on the screen for display. In this way, the application can process the video signal according to the type of video signal, and reduce the amount of processed video data, thereby reducing the storage space requirement, reducing the burden on electronic equipment, and improving the screen display. Provide technical support for fluency.

下面將結合本申請實施例中的附圖,對本申請實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本申請一部分實施例,而不是全部實施例。基於本申請中的實施例,本領域普通技術人員在沒有做出創造性的勞動前提下所獲得的所有其他實施例,都屬於本申請保護的範圍。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without making creative work fall within the protection scope of the present application.

請參閱圖1,圖1是本申請影像處理方法一實施方式的流程示意圖。本實施方式中的影像處理方法可以用於本身帶有螢幕或者能夠外接螢幕的電子設備,如電視機、機上盒等。其中,該影像處理方法包括:Please refer to FIG. 1, which is a schematic flowchart of an embodiment of an image processing method of the present application. The image processing method in this embodiment can be used in electronic devices with a screen or an external screen, such as a TV set-top box and the like. Among them, the image processing method includes:

步驟S12:接收視訊訊號;Step S12: Receive a video signal;

其中,視訊訊號可以由電子設備直接通過資料線從外界接收、從雲端下載,或者還可以直接從電子設備的記憶體中獲取。Among them, the video signal can be received by the electronic device directly from the outside through the data line, downloaded from the cloud, or can also be directly obtained from the memory of the electronic device.

本實施方式中,接收到的視訊訊號可以是能實現3840×2160超高清解析度的4K逐行顯示信號,當然,也可以是已經本實施方式中的方案處理過的滿足螢幕輸出需求以及使用者觀看需求的視訊訊號,此處不做具體限定。In this embodiment, the received video signal may be a 4K progressive display signal that can achieve 3840×2160 UHD resolution. Of course, it may also be processed by the solution in this embodiment to meet the screen output requirements and users The video signal for viewing needs is not specifically limited here.

步驟S14:偵測視訊訊號的類型;Step S14: Detect the type of video signal;

本實施方式中,視訊訊號可以為不同類型的視訊訊號,例如可以根據視訊訊號的格式、視訊訊號所包含的資料量的大小、流暢度的高低等劃分為不同的類型。In this embodiment, the video signals may be different types of video signals. For example, they may be divided into different types according to the format of the video signal, the size of the data contained in the video signal, and the level of fluency.

具體地,可根據視訊訊號的顯示方式劃分為不同的類型,例如,逐行顯示類型、隔行顯示類型等。Specifically, it can be divided into different types according to the display method of the video signal, for example, a progressive display type, an interlaced display type, and the like.

步驟S16:根據視訊訊號的類型對視訊訊號進行處理以生成處理後的視頻資料;Step S16: Process the video signal according to the type of the video signal to generate processed video data;

需要指出的是,本實施方式中,在視訊訊號的類型不同時,所採用的處理方式也是不同的。具體地,處理方式主要包括視訊訊號的類型的轉換處理,以及視訊訊號的後端處理等。It should be noted that, in this embodiment, when the types of video signals are different, the processing methods used are also different. Specifically, the processing method mainly includes the conversion processing of the type of the video signal, and the back-end processing of the video signal.

例如,在偵測出視訊訊號的類型後,可進一步判斷該視訊訊號的類型是否為滿足使用者觀看以及螢幕顯示等需求的類型,在判斷結果為是時,可直接執行對視訊訊號的後端處理,而在判斷結果為否時,則可先對該視訊訊號進行類型的轉換處理,然後再進一步執行後端處理。For example, after detecting the type of the video signal, it can be further determined whether the type of the video signal satisfies the user's viewing and screen display requirements. When the judgment result is yes, the back end of the video signal can be directly executed Processing, and when the judgment result is negative, you can first perform type conversion processing on the video signal, and then further perform back-end processing.

具體地,請參閱圖2,在一個應用場景中,視訊訊號可包括第一類型的視頻資料、第二類型的視頻資料等。其中,第一類型的視頻資料的資料量較大,佔用的大量儲存空間,不能夠滿足本實施方式中的螢幕顯示要求以及使用者觀看要求,需要進行進一步的資料轉換處理。而第二類型的視頻資料的資料量則較小,無需進行轉換處理可直接進行後端處理。其中,步驟S16包括:Specifically, please refer to FIG. 2. In an application scenario, the video signal may include video data of the first type, video data of the second type, and so on. Among them, the first type of video data has a large data volume and takes up a lot of storage space, which cannot meet the screen display requirements and user viewing requirements in this embodiment, and further data conversion processing is required. The second type of video material has a smaller amount of data, and can be directly processed by the back-end without conversion processing. Among them, step S16 includes:

步驟S161:當確定視訊訊號為第一類型的視頻資料時,將第一類型的視頻資料轉換成第二類型的視頻資料,其中,第二類型的視頻資料的資料量小於第一類型的視頻資料;Step S161: When it is determined that the video signal is the first type of video data, the first type of video data is converted into the second type of video data, wherein the amount of the second type of video data is less than the first type of video data ;

此處需要指出的是,對於相同的視訊訊號,在由第一類型的視頻資料轉換為第二類型的視頻資料後,資料量變小,從而對於儲存空間的要求降低,並能夠減輕電子設備的負擔。其中,具體的轉換方式可以根據需求而定。It should be noted here that for the same video signal, after the first type of video data is converted to the second type of video data, the amount of data becomes smaller, thereby reducing the storage space requirements and reducing the burden on electronic devices . Among them, the specific conversion method can be determined according to demand.

在一個應用場景中,請參閱圖3,在將第一類型的視頻資料轉換成第二類型的視頻資料時,步驟S161進一步包括:In an application scenario, referring to FIG. 3, when converting the first type of video material into the second type of video material, step S161 further includes:

步驟S1611:對每一幀第一類型的視頻資料進行分組處理以生成多組圖像資料,其中,每組圖像資料包括M行圖像資料,M為大於等於2的正整數;Step S1611: Grouping the first-type video data of each frame to generate multiple sets of image data, wherein each set of image data includes M lines of image data, and M is a positive integer greater than or equal to 2;

容易理解地,每一幀視頻資料可包含多行圖像資料。本實施方式中,對每一幀視頻資料以行為單位進行分組,得到的每組中包括至少兩行圖像資料,例如可包括2行、3行等,具體行數可根據實際需求設定。Understandably, each frame of video data may include multiple lines of image data. In this embodiment, each frame of video data is grouped in units of rows, and each group obtained includes at least two lines of image data, for example, may include 2 lines, 3 lines, etc. The specific number of lines may be set according to actual needs.

步驟S1612:對每組圖像資料進行處理,保留一行圖像資料作為該組圖像資料的寫入資料,並刪除其它行的圖像資料,從而將第一類型的視頻資料轉換成第二類型的視頻資料。Step S1612: process each group of image data, reserve one line of image data as writing data of the group of image data, and delete other lines of image data, thereby converting the first type of video data into the second type Video material.

本實施方式中,根據對每一幀第一類型的視頻資料進行分組的情況,對所得到的每組圖像資料進行刪除處理,使得每組圖像資料僅保留該組中M行圖像資料中的一行即可。In this embodiment, according to the situation of grouping each frame of the first type of video data, each group of obtained image data is deleted, so that each group of image data only retains the M lines of image data in the group Just one line.

具體地,在對每組圖像資料進行刪除處理時,可以隨機保留其中的一行並刪除其它行的圖像資料;或者還可以根據一定的規則保留其中指定的一行圖像資料,並刪除剩餘的其它行的圖像資料,例如,在M為2時,可以保留每組圖像資料中的第一行,而將第二行圖像資料刪除,在經過處理轉換成第二類型的視頻資料後,能夠將視訊訊號的資料量減少一半。Specifically, when deleting the image data of each group, one line can be randomly retained and the image data of the other lines can be deleted; or the image data of a specified line can be retained according to certain rules, and the remaining The image data of other lines, for example, when M is 2, the first line of each group of image data can be retained, and the image data of the second line can be deleted and converted into the second type of video data after processing , Can reduce the amount of video signal data by half.

例如,接收到的視訊訊號為第一類型的視頻資料,該第一類型的視頻資料以每組M行進行分組,共分為N組,在對每組圖像資料進行處理時,每組中的M行僅保留其中的一行,最後得到的第二類型的圖像資料僅包含第一類型的圖像資料中的N行圖像資料,從而大大減小了資料量。For example, the received video signal is the first type of video data. The first type of video data is grouped into M groups of each group and divided into N groups. When processing each group of image data, each group Only one of the M lines is reserved, and the second type of image data obtained only contains N lines of image data in the first type of image data, thereby greatly reducing the amount of data.

在一個應用場景中,請參閱圖4,步驟S1612包括:In an application scenario, please refer to FIG. 4, step S1612 includes:

步驟S16121:保留一行圖像資料作為該組圖像資料的寫入資料,並刪除其它行的圖像資料;Step S16121: reserve one line of image data as writing data of the group of image data, and delete the image data of other lines;

其中,該步驟中具體的操作方式與上述步驟S1612中的描述相同,相關詳細內容請參見上述步驟,此處不再贅述。The specific operation mode in this step is the same as the description in the above step S1612. For the related details, please refer to the above steps, which will not be repeated here.

步驟S16122:將保留的圖像資料與空資料組合,從而生成第二類型的視頻資料。Step S16122: combine the retained image data with the empty data to generate the second type of video data.

本應用場景中,可按照預設的或者根據使用者需求而設定的組合方式,將保留的資料與空資料組合在一起得到完整的、能夠由螢幕正常顯示的第二類型的視頻資料。In this application scenario, the reserved data and the empty data can be combined according to a preset or a combination method set according to user needs to obtain a complete second type of video data that can be normally displayed on the screen.

具體地,在一個應用場景中,請參閱圖5,步驟S161進一步包括:Specifically, in an application scenario, please refer to FIG. 5, step S161 further includes:

步驟S1613:將每一幀第一類型的視頻資料分成奇數行資料和偶數行資料;Step S1613: Divide the first-type video data of each frame into odd-line data and even-line data;

步驟S1614:根據預設需求,選擇第一類型的視頻資料中的奇數行資料和偶數行資料中之一進行保留,並刪除另一類型的資料,從而將第一類型的視頻資料轉換成第二類型的視頻資料。Step S1614: According to the preset requirements, select one of the odd-line data and the even-line data in the first type of video data for retention, and delete the other type of data, thereby converting the first type of video data into the second Type of video material.

本實施方式中,奇數行資料和偶數行資料可按照視頻資料的寫入順序進行劃分。In this embodiment, the odd-line data and the even-line data can be divided according to the writing order of the video data.

具體地,在對視頻資料進行轉換處理時,可先對每一幀第一類型的視頻資料進行分離處理,得到對應的奇數行資料和偶數行資料,然後可進一步根據需求保留奇數行資料或者偶數行資料,刪除未選擇保留的資料,並可進一步將保留的奇數行資料或者偶數行資料與空資料組合,從而將該第一類型的視頻資料轉換成第二類型的視頻資料,此時所得到第二類型的視頻資料中一半為有效資料另一半為空資料,從而能夠大大減少視訊訊號的資料量。Specifically, when converting the video data, the first type of video data in each frame can be separated first to obtain the corresponding odd-line data and even-line data, and then the odd-line data or even-number data can be further reserved as required Line data, delete the data not selected for retention, and can further combine the reserved odd line data or even line data with empty data to convert the first type of video data into the second type of video data. Half of the second type of video data is valid data and the other half is empty data, which can greatly reduce the amount of video signal data.

步驟S162:對第二類型的視頻資料進行後端處理,以生成處理後的視頻資料。Step S162: Perform back-end processing on the second type of video data to generate processed video data.

需要指出的是,本實施方式中,第二類型的視頻資料包括原本就屬於第二類型的視頻資料,還包括經過轉換處理後由第一類型轉換為第二類型的視頻資料。在對第二類型的視頻資料進行後端處理時,例如可根據使用者的使用需求,具體如根據使用者所設定的播放條件對第二類型的視頻資料進行處理,以得到滿足要求的視頻資料。It should be noted that, in this embodiment, the second type of video material includes video material that originally belongs to the second type, and also includes video material converted from the first type to the second type after conversion processing. When performing back-end processing on the second type of video data, for example, the second type of video data can be processed according to the user's use requirements, such as according to the playback conditions set by the user to obtain video data that meets the requirements .

具體地,請參閱圖6,在一個應用場景中,步驟S162包括:Specifically, referring to FIG. 6, in an application scenario, step S162 includes:

步驟S1621:對第二類型的視頻資料進行圖像品質處理;Step S1621: Perform image quality processing on the second type of video material;

其中,本實施方式中的圖像品質處理可以包括對第二類型的視頻資料的亮度、對比度、色溫、色飽和度、色調等的處理,以提高圖像顯示的品質,從而進一步提升用戶的觀感體驗。Among them, the image quality processing in this embodiment may include processing of the brightness, contrast, color temperature, color saturation, hue, etc. of the second type of video data to improve the quality of the image display, thereby further enhancing the user's perception Experience.

步驟S1622:將經過圖像品質處理的第二類型的視頻資料進行時序處理;Step S1622: Perform sequential processing on the second type of video material that has undergone image quality processing;

具體地,在進行時序處理時,可按照預設的時脈和同步信號時序進行處理。經過時序處理,可對第二類型信號的頻率進行設置,例如,可以設置為預設的輸出頻率,或者根據使用者的使用需求設置為其它頻率。Specifically, when performing timing processing, the processing may be performed according to a preset clock and synchronization signal timing. After the sequential processing, the frequency of the second type signal can be set, for example, it can be set to a preset output frequency, or set to another frequency according to the user's use requirements.

步驟S1623:將經過時序處理的第二類型的視頻資料進行封包處理以生成處理後的視頻資料。Step S1623: Perform packet processing on the second type of video material that has undergone time series processing to generate processed video material.

具體地,在經過時序處理後,可對第二類型的視頻資料加上包頭等,然後進行封包處理,從而得到能夠傳輸至螢幕並寫入螢幕以及由螢幕顯示的視頻資料。Specifically, after the sequential processing, a header of the second type of video data may be added, and then packet processing is performed, thereby obtaining video data that can be transmitted to the screen and written to the screen and displayed by the screen.

步驟S18:在螢幕中寫入處理後的視頻資料以進行顯示。Step S18: Write the processed video data on the screen for display.

需要指出的是,本實施方式中,在得到處理後的視頻資料後,該處理後的視頻資料為第二類型的視頻資料,而第二類型的視頻資料由一部分的有效資料與一部分的空資料組合形成,在向螢幕中寫入時,可將空資料寫成與對應的有效資料相同的資料。如上所述,對每一幀第一類型的視頻資料分組,每組中包含有M行圖像資料,保留M行圖像資料中的一行,並刪除其它行的圖像資料。在向螢幕中寫入視頻資料時,同時打開M個閘控通道,在對應的每個分組的每行中,同時寫入與該分組中保留的一行圖像資料相同的圖像資料。顯然,這樣不僅能夠減少寫入的資料量,同時還能夠減少每一幀視頻資料的寫入時間,且能夠使得在資料量減少的情況下,顯示畫面仍能夠鋪滿整個螢幕。It should be noted that in this embodiment, after the processed video data is obtained, the processed video data is the second type of video data, and the second type of video data consists of a part of valid data and a part of empty data Combined to form, when writing to the screen, empty data can be written to the same data as the corresponding valid data. As described above, the first type of video data of each frame is grouped, each group contains M lines of image data, one line of the M lines of image data is retained, and the image data of other lines is deleted. When writing video data to the screen, M gate channels are opened at the same time, and in each row of each corresponding group, the same image data as the one row of image data retained in the group is simultaneously written. Obviously, this can not only reduce the amount of data written, but also reduce the writing time of each frame of video data, and can make the display screen fill the entire screen when the amount of data is reduced.

需要指出的是,上述方式中,通過偵測接收到的視訊訊號,並根據視訊訊號的類型對視訊訊號的每一幀視頻資料進行分組處理,在每組中保留一行圖像資料而刪除剩餘的圖像資料,並進一步進行後端處理以及在螢幕中顯示,由於對原本的視訊訊號中的資料進行了刪減處理,從而能夠減小視訊訊號的資料量,從而減少視頻資料對儲存空間的佔用,減輕電子設備的負擔,並進一步為提升螢幕顯示的流暢性提供技術支援。It should be noted that in the above method, by detecting the received video signal and grouping the video data of each frame of the video signal according to the type of the video signal, a line of image data is retained in each group to delete the remaining Image data, and further back-end processing and display on the screen, because the original video signal data is deleted, which can reduce the amount of video signal data, thereby reducing the storage space occupied by video data , Reduce the burden on electronic devices, and further provide technical support for improving the smoothness of the screen display.

需要指出的是,在一實施方式中,可對第二類型的視頻資料依據原有輸出頻率進行時序處理,此時,在螢幕中寫入該處理後的視頻資料後,可按照原有輸出頻率,依次輸出當前幀的第二類型的視頻資料至螢幕上以進行顯示。同時,可在寫入當前幀的第二類型的視頻資料之後,寫入下一幀的第二類型的視頻資料之前,斷開螢幕的背光源。It should be pointed out that in one embodiment, the second type of video data can be processed in sequence according to the original output frequency. In this case, after writing the processed video data on the screen, the original output frequency can be used , Sequentially output the second type of video data of the current frame to the screen for display. At the same time, after writing the second-type video data of the current frame and before writing the second-type video data of the next frame, the backlight of the screen can be turned off.

請參閱圖6,以接收到的視訊訊號為4K顯示技術中的逐行顯示的視訊訊號為例,原有輸出頻率為60Hz。根據本申請上述實施方式中的影像處理方法,在接收到該視訊訊號後,偵測到該視訊訊號的類型為逐行顯示,本實施方式中,逐行顯示的視訊訊號資料量較大,對儲存空間佔用要求較高,因此需要轉換為隔行顯示的視訊訊號。具體地,將該視訊訊號的每一幀視頻資料分成奇數行資料和偶數行資料,本例中,在資料轉換時,保留奇數行資料,刪除偶數行資料,並將保留的奇數行資料與空資料組合,得到隔行顯示的視頻資料。在轉換為隔行顯示的視頻資料後,進一步進行圖像品質處理以及將該隔行顯示的視頻資料按照原有的60Hz的輸出頻率進行時序處理,並在時序處理後,進一步進行封包處理,並按照原有的60Hz的輸出頻率輸出至螢幕上以進行顯示,具體在寫入視頻資料時,同時打開兩個閘控通道,將奇數行及與其對應刪除的偶數行同時寫入與該奇數行資料相同的資料,以使得在刪除偶數行資料的情況下,最終顯示的畫面仍能夠鋪滿整個螢幕。與處理前相比,由於處理後的視頻資料僅保留原有視頻資料行數2160行的一半,即1080行,並在寫入時同時打開兩個閘控通道進行,從而使得每一幀視頻資料的寫入時間減半,進而使得垂直空白間隙增大,本例中,進一步在垂直空白間隙斷開背光源,從而能夠進一步達到節省功耗的作用。Please refer to FIG. 6, taking the received video signal as the progressive video signal in the 4K display technology as an example, and the original output frequency is 60 Hz. According to the image processing method in the above embodiment of the present application, after receiving the video signal, it is detected that the type of the video signal is progressive display. In this embodiment, the amount of video signal data displayed progressively is large. Storage space requirements are high, so it needs to be converted into interlaced video signals. Specifically, each frame of video data of the video signal is divided into odd-line data and even-line data. In this example, during data conversion, the odd-line data is retained, the even-line data is deleted, and the retained odd-line data is blank Combination of data to get video data displayed in interlaced display. After converting to interlaced video data, further image quality processing and sequential processing of the interlaced video data according to the original 60Hz output frequency, and after sequential processing, further packet processing, and according to the original Some 60Hz output frequency is output to the screen for display. Specifically, when writing video data, two gate channels are opened at the same time, and the odd-numbered lines and the even-numbered lines deleted accordingly are written to the same data as the odd-numbered lines. Data, so that in the case of deleting even-numbered lines of data, the final displayed screen can still fill the entire screen. Compared with before processing, the processed video data only retains half of the original video data line 2160 lines, that is, 1080 lines, and at the same time open two gate control channels at the same time, so that each frame of video data The writing time is reduced by half, which in turn increases the vertical blank gap. In this example, the backlight is further disconnected in the vertical blank gap, so that the effect of saving power consumption can be further achieved.

另外,本實施方式中,可進一步結合OD(Over drive)技術,提升最終顯示畫面的刷新速度,從而減少運動畫面的卡頓。In addition, in this embodiment, the OD (Over drive) technology may be further combined to increase the refresh rate of the final display image, thereby reducing the motion picture freeze.

在另一實施方式中,在對第二類型的視頻資料進行後端處理時,可對該第二類型的視頻資料依據原有輸出頻率的M倍的輸出頻率進行時序處理,並根據相鄰兩幀的第二類型的視頻資料而生成中間過渡幀的視頻資料。在通過螢幕進行輸出時,按照原有輸出頻率的M倍的輸出頻率,依次輸出當前幀的第二類型的視頻資料和中間過渡幀的視頻資料至螢幕以進行顯示。In another embodiment, when performing back-end processing on the second type of video data, the second type of video data may be processed in time series according to an output frequency that is M times the original output frequency, and according to the adjacent two The video material of the second type of frame generates the video material of the intermediate transition frame. When outputting through the screen, the second-type video data of the current frame and the video data of the intermediate transition frame are sequentially output to the screen for display according to an output frequency that is M times the original output frequency.

本實施方式中,在將第一類型的視頻資料轉換為第二類型的視頻資料時,對每一幀第一類型的視頻資料進行分組,每組中包括M行圖像資料,而對每組圖像資料進行處理時,M行圖像資料中僅保留其中的一行作為該組圖像資料的寫入資料,而刪除其它行的圖像資料,從而使得最終在螢幕中寫入處理後的視頻資料時,輸出的時間變為原有輸出時間的

Figure 02_image001
。本實施方式中,對第二類型的視頻資料依據原有輸出頻率的M倍的輸出頻率進行時序處理,從而使得在原有的輸出一幀視頻資料的時間中對應輸出M幀視頻資料。In this embodiment, when converting the first type of video data into the second type of video data, each frame of the first type of video data is grouped, each group includes M lines of image data, and each group When the image data is processed, only one of the M lines of image data is kept as the write data of the group of image data, and the image data of the other lines are deleted, so that the processed video is finally written on the screen Data, the output time becomes the original output time
Figure 02_image001
. In this embodiment, the second type of video data is subjected to timing processing according to an output frequency that is M times the original output frequency, so that M frames of video data are correspondingly output during the time when the original frame of video data is output.

進一步地,本實施方式中的M幀視頻資料中包括當前幀的第二類型的視頻資料,以及M-1幀中間過渡幀的視頻資料。其中,中間過渡幀的視頻資料是依據當前幀的第二類型視頻資料和與當前幀相鄰的下一幀的第二類型的視頻資料生成的視頻資料。Further, the M-frame video material in this embodiment includes the second-type video material of the current frame and the M-1 frame intermediate transition frame video material. The video material of the intermediate transition frame is a video material generated according to the second type video material of the current frame and the second type video material of the next frame adjacent to the current frame.

具體請參閱圖7,本實施方式中同樣以接收到的視訊訊號為4K顯示技術中的逐行顯示的視訊訊號為例,原有輸出頻率為60Hz。其中,在資料轉換方面與上述圖6中的舉例的轉換過程類似,此處不再贅述,需要指明的是,在轉換為隔行顯示的視頻資料後,進一步進行圖像品質處理以及將該隔行顯示的視頻資料按照原有輸出頻率的2倍的輸出頻率進行時序處理,在時序處理後,進一步將進行封包處理,並寫入螢幕當中以進行顯示。同樣地,在寫入視頻資料時,同時打開兩個閘控通道,將奇數行及與其對應刪除的偶數行同時寫入與該奇數行資料相同的資料,以使得最終顯示的畫面能夠鋪滿整個螢幕。同時,在輸出時,根據相鄰的兩幀視頻資料生成中間過渡幀的視頻資料,並按照原有的60Hz的輸出頻率的2倍,即120Hz的輸出頻率輸出轉換後的隔行顯示的視頻資料以及生成的中間過渡幀的視頻資料。與上述圖6中的舉例相同,由於處理後的視頻資料僅保留原有視頻資料行數2160行的一半,即1080行,並在寫入時同時打開兩個閘控通道進行,從而使得每一幀視頻資料的寫入時間減半,通過這種方式,能夠在不增加視頻資料量且不影響正常顯示的情況下將輸出頻率提升至120Hz,從而能夠提升畫面的刷新速度,減小運動畫面的卡頓;另外,由於中間過渡幀的視頻資料的生成,以及輸出使得顯示畫面更加連貫,從而能夠提高圖像顯示的流暢性。Please refer to FIG. 7 for details. In this embodiment, the received video signal is also a progressive video signal in the 4K display technology. The original output frequency is 60 Hz. Among them, the data conversion is similar to the conversion process in the example shown in FIG. 6 above, and will not be repeated here. It should be noted that after converting to interlaced video data, further image quality processing and the interlaced display The video data is processed in time sequence at an output frequency that is twice the original output frequency. After the time sequence processing, further packet processing is performed and written to the screen for display. Similarly, when writing video data, open two gated channels at the same time, and write the odd-numbered lines and the even-numbered lines correspondingly deleted to the same data as the odd-numbered lines at the same time, so that the final displayed picture can cover the entire picture Screen. At the same time, at the time of output, the video data of the intermediate transition frame is generated based on the two adjacent video materials, and the converted interlaced video data and the output video data at the output frequency of 120 Hz are output at twice the original 60 Hz output frequency, and The video material of the generated intermediate transition frame. The same as the example in Figure 6 above, because the processed video data only retains half of the original video data line number 2160 lines, that is 1080 lines, and at the same time open two gated channels for writing, so that each The writing time of frame video data is halved. In this way, the output frequency can be increased to 120Hz without increasing the amount of video data and without affecting the normal display, which can improve the refresh rate of the picture and reduce the motion picture. Stuck; In addition, due to the generation and output of the video material of the intermediate transition frame, the display screen is more coherent, which can improve the smoothness of the image display.

另外,本實施方式中也可進一步結合OD技術,提升顯示畫面的刷新速度,從而減少運動畫面的卡頓。In addition, in this embodiment, the OD technology may be further combined to increase the refresh rate of the display image, thereby reducing the motion picture freeze.

其中,請參閱圖9,在一實施方式中,影像處理方法包括:Among them, please refer to FIG. 9. In one embodiment, the image processing method includes:

步驟S21:確定視訊訊號的處理模式,其中,處理模式包括正常模式和運動模式;Step S21: Determine the processing mode of the video signal, wherein the processing mode includes a normal mode and a sports mode;

其中,處理模式對應於電子設備對視訊訊號進行處理的方式,例如運動模式可以是滿足使用者對視頻的流暢性等需求的模式,在該模式下,電子設備在接收到視訊訊號後,需按照如上述各實施方式中所述的處理方式對該視訊訊號進行處理;而正常模式可以對視頻圖像的輸出無特殊要求的模式,該模式下,電子設備在接收到視訊訊號後可僅執行常規的處理,並正常輸出該視訊訊號。Among them, the processing mode corresponds to the way the electronic device processes the video signal. For example, the sports mode may be a mode that satisfies the user's requirements for the smoothness of the video. In this mode, after the electronic device receives the video signal, it needs to The processing method as described in the above embodiments processes the video signal; while the normal mode can have a mode without special requirements for the output of the video image, in this mode, the electronic device can only perform the normal after receiving the video signal Processing and output the video signal normally.

具體地,正常模式和運動模式的選擇均可以設置為電子設備預設的模式;或者也可根據使用者需求進行手動調整,例如,電子設備中預設為正常模式,使用者可以在觀看前或者觀看過程中等時段,通過電子設備介面控制、遙控等控制方式修改處理模式為運動模式;或者還可以系統自動根據視訊訊號的圖像的自身特性,自動設置為正常模式或運動模式。此處不做具體限定。Specifically, the selection of the normal mode and the sports mode can be set to the mode preset by the electronic device; or it can be manually adjusted according to user needs. For example, the electronic device is preset to the normal mode, and the user can During the middle period of the viewing process, the processing mode can be changed to sports mode through electronic device interface control, remote control and other control methods; or the system can automatically set to normal mode or sports mode according to the characteristics of the image of the video signal. There is no specific limit here.

步驟S22:當確定視訊訊號的處理模式為運動模式時,則執行上述偵測視訊訊號的類型、根據視訊訊號的類型對視訊訊號進行處理以生成處理後的視頻資料、和在螢幕中寫入處理後的視頻資料以進行顯示的步驟;Step S22: When it is determined that the processing mode of the video signal is the sports mode, the above-mentioned type of detecting the video signal, processing the video signal according to the type of the video signal to generate processed video data, and writing on the screen are performed The steps of displaying the later video materials;

步驟S23:當確定視訊訊號的處理模式為正常模式時,則正常處理接收的視訊訊號並在螢幕中正常顯示視訊訊號。Step S23: When it is determined that the processing mode of the video signal is the normal mode, the received video signal is processed normally and the video signal is normally displayed on the screen.

其中,本實施方式中,步驟S22和步驟S23之間不區分先後順序。In this embodiment, there is no distinction between step S22 and step S23.

需要指出的是,在確定視訊訊號的處理模式為運動模式時,則按照本申請上述影像處理方法實施方式中的處理方式對接收到的視訊訊號進行處理,具體內容請參見上述各實施方式,此處不再贅述;當確定視訊訊號的處理模式為正常模式時,則對接收到的視訊訊號執行常規的處理,並正常輸出該視訊訊號。It should be noted that when determining that the processing mode of the video signal is a sports mode, the received video signal is processed according to the processing method in the above-mentioned image processing method embodiment of the present application. For details, please refer to the above-mentioned embodiments. It will not be repeated here; when it is determined that the processing mode of the video signal is the normal mode, the conventional processing is performed on the received video signal, and the video signal is output normally.

在一個應用場景中,在播放視頻前,確定視訊訊號的處理模式為運動模式,則直接將接收到的視訊訊號按照上述處理方式進行處理並由螢幕輸出,而若初始的處理模式為正常模式,而在播放過程中將處理模式修改為運動模式,則在修改前按照正常模式對接收到的視訊訊號進行處理並由螢幕正常顯示,在修改後,將接收到的視訊訊號按照上述處理方式進行處理及顯示。In an application scenario, before the video is played, the video signal processing mode is determined to be the sports mode, then the received video signal is directly processed according to the above processing method and output by the screen, and if the initial processing mode is the normal mode, When the processing mode is changed to sports mode during playback, the received video signal is processed according to the normal mode before modification and displayed normally on the screen. After the modification, the received video signal is processed according to the above processing method And display.

請參閱圖10,圖10是本申請電子設備一實施方式的結構示意圖。其中,本實施方式中,電子設備可以為帶有螢幕或者能夠外接螢幕的電子設備,如電視機、機上盒等。該電子設備具體包括偵測模組12、處理模組14及寫入模組16。Please refer to FIG. 10, which is a schematic structural diagram of an embodiment of an electronic device of the present application. In this embodiment, the electronic device may be an electronic device with a screen or an external screen, such as a television or a set-top box. The electronic device specifically includes a detection module 12, a processing module 14, and a writing module 16.

其中,偵測模組12用於在接收到視訊訊號後,偵測視訊訊號的類型;Among them, the detection module 12 is used to detect the type of the video signal after receiving the video signal;

處理模組14與偵測模組12連接,用於根據視訊訊號的類型對視訊訊號進行處理以生成處理後的視頻資料;The processing module 14 is connected to the detection module 12 and is used to process the video signal according to the type of the video signal to generate processed video data;

寫入模組16與處理模組14連接,用於在螢幕中寫入處理後的視頻資料以進行顯示。The writing module 16 is connected to the processing module 14 for writing processed video data on the screen for display.

其中,請參閱圖11,在一實施方式中,處理模組14包括:轉換子模組141和後端處理子模組142。Please refer to FIG. 11. In an embodiment, the processing module 14 includes a conversion sub-module 141 and a back-end processing sub-module 142.

其中,轉換子模組141用於當確定視訊訊號為第一類型的視頻資料時,將第一類型的視頻資料轉換成第二類型的視頻資料,其中,第二類型的視頻資料的資料量小於第一類型的視頻資料;Wherein, the conversion submodule 141 is used to convert the first type of video data into the second type of video data when the video signal is determined to be the first type of video data, wherein the data amount of the second type of video data is less than The first type of video materials;

後端處理子模組142分別與轉換子模組141和偵測模組12連接,用於對第二類型的視頻資料進行後端處理,以生成處理後的視頻資料。The back-end processing sub-module 142 is connected to the conversion sub-module 141 and the detection module 12, respectively, and is used to perform back-end processing on the second type of video data to generate processed video data.

其中,請參閱圖12,在一實施方式中,轉換子模組141包括:第一分組單元1411和第一刪除單元1412。Please refer to FIG. 12. In an embodiment, the conversion sub-module 141 includes: a first grouping unit 1411 and a first deleting unit 1412.

其中,第一分組單元1411用於對每一幀第一類型的視頻資料進行分組處理以生成多組圖像資料,其中,每組圖像資料包括M行圖像資料,M為大於等於2的正整數;Among them, the first grouping unit 1411 is used to group each frame of the first type of video data to generate multiple sets of image data, wherein each set of image data includes M lines of image data, M is greater than or equal to 2 Positive integer

第一刪除單元1412與第一分組單元1411連接,用於對每組圖像資料進行處理,保留一行圖像資料作為該組圖像資料的寫入資料,並刪除其它行的圖像資料,從而將第一類型的視頻資料轉換成第二類型的視頻資料。The first deleting unit 1412 is connected to the first grouping unit 1411 for processing each group of image data, retaining one line of image data as writing data of the group of image data, and deleting other lines of image data, thereby Convert the first type of video data to the second type of video data.

其中,請參閱圖13,在一實施方式中,轉換子模組141包括:第二分組單元1413和第二刪除單元1414。Please refer to FIG. 13. In an embodiment, the conversion sub-module 141 includes: a second grouping unit 1413 and a second deleting unit 1414.

第二分組單元1413用於將每一幀第一類型的視頻資料分成奇數行資料和偶數行資料;The second grouping unit 1413 is used to divide the first-type video data of each frame into odd-line data and even-line data;

第二刪除單元1414與第二分組單元1413連接,用於根據預設需求,選擇第一類型的視頻資料中的奇數行資料和偶數行資料中之一進行保留,並刪除另一類型的資料,從而將第一類型的視頻資料轉換成第二類型的視頻資料。The second deleting unit 1414 is connected to the second grouping unit 1413, and is used to select one of odd-line data and even-line data in the first type of video data for retention according to a preset requirement, and delete another type of data. Thus, the first type of video material is converted into the second type of video material.

其中,請參閱圖14,在一實施方式中,後端處理子模組142包括:圖像品質處理單元1421、時序處理單元1422及封包處理單元1423。Referring to FIG. 14, in one embodiment, the back-end processing sub-module 142 includes an image quality processing unit 1421, a timing processing unit 1422, and a packet processing unit 1423.

其中,圖像品質處理單元1421用於對第二類型的視頻資料進行圖像品質處理;The image quality processing unit 1421 is used to perform image quality processing on the second type of video material;

時序處理單元1422與圖像品質處理單元1421連接,用於將經過圖像品質處理的第二類型的視頻資料進行時序處理;The timing processing unit 1422 is connected to the image quality processing unit 1421, and is used to perform timing processing on the second type of video data subjected to image quality processing;

封包處理單元1423與時序處理單元1422連接,用於將經過時序處理的第二類型的視頻資料進行封包處理以生成處理後的視頻資料。The packet processing unit 1423 is connected to the timing processing unit 1422, and is configured to perform packet processing on the second type of video data subjected to the timing processing to generate processed video data.

其中,在一實施方式中,時序處理單元1422還用於對第二類型的視頻資料依據原有輸出頻率進行時序處理;In one embodiment, the timing processing unit 1422 is also used to perform timing processing on the second type of video data according to the original output frequency;

寫入模組16還用於按照原有輸出頻率,依次輸出當前幀的第二類型的視頻資料至螢幕上以進行顯示,並在寫入當前幀的第二類型的視頻資料之後,寫入下一幀的第二類型的視頻資料之前,斷開螢幕的背光源。The writing module 16 is also used to sequentially output the second type video data of the current frame to the screen for display according to the original output frequency, and after writing the second type video data of the current frame, write Before one frame of the second type of video material, disconnect the screen backlight.

其中,在一實施方式中,時序處理單元1422還用於對第二類型的視頻資料依據原有輸出頻率的M倍的輸出頻率進行時序處理,並根據相鄰兩幀的第二類型的視頻資料而生成中間過渡幀的視頻資料;In one embodiment, the timing processing unit 1422 is also used to perform timing processing on the second type of video data according to the output frequency M times the original output frequency, and according to the second type of video data of two adjacent frames And generate video materials of intermediate transition frames;

寫入模組16還用於按照原有輸出頻率的M倍的輸出頻率,依次輸出當前幀的第二類型的視頻資料和中間過渡幀的視頻資料至螢幕以進行顯示。The writing module 16 is also used to sequentially output the second type video data of the current frame and the video data of the intermediate transition frame to the screen for display according to the output frequency M times the original output frequency.

其中,請參閱圖15,在一實施方式中,第一刪除單元1412包括:刪除子單元14121和組合子單元14122。Referring to FIG. 15, in an embodiment, the first deletion unit 1412 includes: a deletion subunit 14121 and a combination subunit 14122.

其中,刪除子單元14121用於保留一行圖像資料作為該組圖像資料的寫入資料,並刪除其它行的圖像資料;Among them, the deletion subunit 14121 is used to retain one line of image data as the writing data of the group of image data, and delete the image data of other lines;

組合子單元14122與刪除子單元14121連接,用於將保留的圖像資料與空資料組合,從而生成第二類型的視頻資料。The combining sub-unit 14122 is connected to the deleting sub-unit 14121, and is used to combine the retained image data with the empty data to generate a second type of video data.

其中,請參閱圖16,在一實施方式中,電子設備進一步包括:處理模式確定模組13。Please refer to FIG. 16. In an embodiment, the electronic device further includes: a processing mode determination module 13.

其中,處理模式確定模組13分別與偵測模組12及處理模組14連接,用於確定視訊訊號的處理模式,其中,處理模式包括正常模式和運動模式;Among them, the processing mode determination module 13 is respectively connected to the detection module 12 and the processing module 14 to determine the processing mode of the video signal, wherein the processing mode includes a normal mode and a sports mode;

其中,當處理模式確定模組13確定視訊訊號的處理模式為運動模式時,偵測模組12偵測視訊訊號的類型、處理模組14根據視訊訊號的類型對視訊訊號進行處理以生成處理後的視頻資料、以及寫入模組16在螢幕中寫入處理後的視頻資料以進行顯示;當處理模式確定模組13確定視訊訊號的處理模式為正常模式時,則處理模組14正常處理接收的視訊訊號,進一步並在螢幕中正常顯示視訊訊號。When the processing mode determination module 13 determines that the processing mode of the video signal is the sports mode, the detection module 12 detects the type of the video signal, and the processing module 14 processes the video signal according to the type of the video signal to generate the processed Video data and the writing module 16 writes the processed video data on the screen for display; when the processing mode determination module 13 determines that the processing mode of the video signal is the normal mode, the processing module 14 normally processes the reception The video signal of, further displays the video signal normally on the screen.

上述本申請電子設備實施方式中,電子設備各結構所執行的操作以及所達到的技術效果與上述本申請影像處理方法實施方式中的相同,相關詳細內容請參閱上述實施方式,此處不再贅述。In the above-mentioned embodiment of the electronic device of the present application, the operations performed and the technical effects achieved by the various structures of the electronic device are the same as those in the above-mentioned embodiment of the image processing method of the present application. For details, please refer to the above-mentioned embodiment, which will not be repeated here .

另外,在一實施例中,本申請中電子設備包括影像處理晶片,其中,上述電子設備實施方式中處理模組14及寫入模組16的功能均可由該影像處理晶片實現。In addition, in an embodiment, the electronic device in the present application includes an image processing chip, wherein the functions of the processing module 14 and the writing module 16 in the above-described electronic device implementation can be realized by the image processing chip.

在另一實施例中,本申請電子設備包括資料轉換晶片及資料處理晶片,該資料轉換晶片與資料處理晶片之間通過資料匯流排連接以進行資料傳輸。其中,上述電子設備實施方式中偵測模組12及處理模組14的轉換子模組141的功能均可由資料轉換晶片實現,而寫入模組16及處理模組14的後端處理子模組142的功能均可由影像處理晶片實現。In another embodiment, the electronic device of the present application includes a data conversion chip and a data processing chip, and the data conversion chip and the data processing chip are connected through a data bus for data transmission. Among them, the functions of the conversion sub-module 141 of the detection module 12 and the processing module 14 in the above-mentioned electronic device implementation can be realized by the data conversion chip, and the back-end processing sub-module of the writing module 16 and the processing module 14 The functions of group 142 can be realized by image processing chips.

以上所述僅為本申請的實施方式,並非因此限制本申請的專利範圍,凡是利用本申請說明書及附圖內容所作的等效結構或等效流程變換,或直接或間接運用在其他相關的技術領域,均同理包括在本申請的專利保護範圍內。The above are only the embodiments of the present application, and therefore do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by the description and drawings of this application, or directly or indirectly used in other related technologies In the field, the same reason is included in the scope of patent protection of this application.

12‧‧‧偵測模組14‧‧‧處理模組16‧‧‧寫入模組141‧‧‧轉換子模組142‧‧‧後端處理子模組1411‧‧‧第一分組單元1412‧‧‧第一刪除單元1413‧‧‧第二分組單元1414‧‧‧第二刪除單元1421‧‧‧圖像品質處理單元1422‧‧‧時序處理單元1423‧‧‧封包處理單元14121‧‧‧刪除子單元14122‧‧‧組合子單元13‧‧‧處理模式確定模組S12~S18、S161~S161、S1611~S1612、S16121~S16122、S1613~S1614、S1621~S1623、S21~S23‧‧‧步驟12‧‧‧ detection module 14‧‧‧ processing module 16‧‧‧ writing module 141‧‧‧ conversion sub-module 142‧‧‧ back-end processing sub-module 1411‧‧‧ first grouping unit 1412 ‧‧‧ First delete unit 1413‧‧‧Second grouping unit 1414‧‧‧Second delete unit 1421‧‧‧Image quality processing unit 1422‧‧‧Sequence processing unit 1423‧‧‧Packet processing unit 14121‧‧‧ Delete sub-unit 14122‧‧‧Combined sub-unit 13

為了更清楚地說明本申請實施例中的技術方案,下面將對實施例描述中所需要使用的附圖作簡單地介紹,顯而易見地,下面描述中的附圖僅僅是本申請的一些實施例,對於本領域普通技術人員來講,在不付出創造性勞動的前提下,還可以根據這些附圖獲得其他的附圖。其中: 圖1是本申請影像處理方法一實施方式的流程示意圖; 圖2是圖1中步驟S16的流程示意圖; 圖3是圖2中步驟S161的流程示意圖; 圖4是圖3中步驟S1612的流程示意圖; 圖5是圖2中步驟S161的流程示意圖; 圖6是圖2中步驟S162的流程示意圖; 圖7是本申請影像處理方法一應用例中視頻資料輸出與原始視頻資料輸出的時序圖的對比圖; 圖8是本申請影像處理方法另一應用例中視頻資料輸出與原始視頻資料輸出的時序圖的對比圖; 圖9是本申請影像處理方法另一實施方式的流程示意圖; 圖10是本申請電子設備一實施方式的結構示意圖; 圖11是圖8中處理模組14的結構示意圖; 圖12是圖9中轉換子模組141的結構示意圖; 圖13是圖9中轉換子模組141的結構示意圖; 圖14是圖9中後端處理子模組142的結構示意圖; 圖15是圖10中第一刪除單元1412的結構示意圖;以及 圖16是本申請電子設備另一實施方式的結構示意圖。In order to more clearly explain the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without paying any creative work, other drawings can be obtained based on these drawings. Among them: FIG. 1 is a schematic flowchart of an embodiment of an image processing method of the present application; FIG. 2 is a schematic flowchart of step S16 in FIG. 1; FIG. 3 is a schematic flowchart of step S161 in FIG. 2; FIG. 4 is a flowchart of step S1612 in FIG. Process flow diagram; FIG. 5 is a process flow diagram of step S161 in FIG. 2; FIG. 6 is a process flow diagram of step S162 in FIG. 2; FIG. 7 is a timing diagram of video data output and original video data output in an application example of the image processing method of the present application FIG. 8 is a comparison diagram of a timing chart of video data output and original video data output in another application example of the image processing method of the present application; FIG. 9 is a schematic flowchart of another embodiment of the image processing method of the present application; FIG. 10 FIG. 11 is a schematic structural view of an embodiment of an electronic device of the present application; FIG. 11 is a structural schematic view of the processing module 14 in FIG. 8; FIG. 12 is a structural schematic view of the conversion sub-module 141 in FIG. 9; Schematic diagram of the structure of the group 141; FIG. 14 is a diagram of the structure of the back-end processing submodule 142 in FIG. 9; FIG. 15 is a diagram of the structure of the first deletion unit 1412 in FIG. 10; and FIG. 16 is another embodiment of the electronic device of the present application Schematic diagram of the structure.

S12~S18‧‧‧步驟 S12~S18‧‧‧Step

Claims (18)

一種影像處理方法,包括: 接收視訊訊號; 偵測所述視訊訊號的類型; 根據所述視訊訊號的類型對所述視訊訊號進行處理以生成處理後的視頻資料; 在螢幕中寫入所述處理後的視頻資料以進行顯示。An image processing method, including: receiving a video signal; detecting the type of the video signal; processing the video signal according to the type of the video signal to generate processed video data; writing the processing on the screen After the video material is displayed. 如申請專利範圍第1項所述的影像處理方法,其中,根據所述視訊訊號的類型對所述視訊訊號進行處理以生成處理後的視頻資料的步驟,包括: 當確定所述視訊訊號為第一類型的視頻資料時,將所述第一類型的視頻資料轉換成第二類型的視頻資料,其中,所述第二類型的視頻資料的資料量小於所述第一類型的視頻資料; 對所述第二類型的視頻資料進行後端處理,以生成所述處理後的視頻資料。The image processing method according to item 1 of the patent application scope, wherein the step of processing the video signal according to the type of the video signal to generate processed video data includes: when it is determined that the video signal is the first When one type of video material is used, the first type of video material is converted into a second type of video material, wherein the amount of data of the second type of video material is less than that of the first type of video material; The second type of video material is subjected to back-end processing to generate the processed video material. 如申請專利範圍第2項所述的影像處理方法,其中,將所述第一類型的視頻資料轉換成第二類型的視頻資料的步驟,包括: 對每一幀所述第一類型的視頻資料進行分組處理以生成多組圖像資料,其中,每組圖像資料包括M行圖像資料,M為大於等於2的正整數; 對每組圖像資料進行處理,保留一行圖像資料作為該組圖像資料的寫入資料,並刪除其它行的圖像資料,從而將所述第一類型的視頻資料轉換成所述第二類型的視頻資料。The image processing method as described in item 2 of the patent application scope, wherein the step of converting the first type of video material into a second type of video material includes: for each frame of the first type of video material Perform group processing to generate multiple sets of image data, where each set of image data includes M lines of image data, M is a positive integer greater than or equal to 2; process each set of image data, and retain one line of image data as the Group the writing data of the image data, and delete the image data of other lines, thereby converting the video data of the first type into the video data of the second type. 如申請專利範圍第3項所述的影像處理方法,其中,將所述第一類型的視頻資料轉換成第二類型的視頻資料的步驟,包括: 將每一幀所述第一類型的視頻資料分成奇數行資料和偶數行資料; 根據預設需求,選擇所述第一類型的視頻資料中的奇數行資料和偶數行資料中之一進行保留,並刪除另一類型的資料,從而將所述第一類型的視頻資料轉換成所述第二類型的視頻資料。The image processing method according to item 3 of the patent application scope, wherein the step of converting the first type of video material into a second type of video material includes: converting each frame of the first type of video material Divided into odd-line data and even-line data; according to the preset requirements, select one of the odd-line data and even-line data in the first type of video data to retain, and delete the other type of data, so that the The first type of video material is converted into the second type of video material. 如申請專利範圍第3項所述的影像處理方法,其中,對每組圖像資料進行處理,保留一行圖像資料作為該組圖像資料的寫入資料,並刪除其它行的圖像資料,從而將所述第一類型的視頻資料轉換成所述第二類型的視頻資料的步驟,包括: 保留一行圖像資料作為該組圖像資料的寫入資料,並刪除其它行的圖像資料; 將保留的圖像資料與空資料組合,從而生成所述第二類型的視頻資料。The image processing method as described in item 3 of the patent application scope, in which each group of image data is processed, one line of image data is retained as writing data of the group of image data, and the image data of other lines is deleted, Therefore, the step of converting the first type of video data into the second type of video data includes: retaining one line of image data as writing data of the group of image data, and deleting other lines of image data; The retained image data and empty data are combined to generate the second type of video data. 如申請專利範圍第2項所述的影像處理方法,其中,對所述第二類型的視頻資料進行後端處理以生成所述處理後的視頻資料的步驟,包括: 對所述第二類型的視頻資料進行圖像品質處理; 將經過圖像品質處理的所述第二類型的視頻資料進行時序處理; 將經過所述時序處理的所述第二類型的視頻資料進行封包處理以生成所述處理後的視頻資料。The image processing method according to item 2 of the patent application scope, wherein the step of performing back-end processing on the second type of video material to generate the processed video material includes: Perform video image quality processing on the video data; perform time series processing on the second type video data processed through the image quality process; perform packet processing on the second type video data subjected to the time series processing to generate the processing After the video material. 如申請專利範圍第6項所述的影像處理方法,其中,將經過圖像品質處理的所述第二類型的視頻資料進行時序處理的步驟,包括: 對所述第二類型的視頻資料依據原有輸出頻率進行時序處理; 在螢幕中寫入所述處理後的視頻資料以進行顯示的步驟,包括: 按照原有輸出頻率,依次輸出當前幀的所述第二類型的視頻資料至所述螢幕上以進行顯示,並在寫入當前幀的所述第二類型的視頻資料之後,寫入下一幀的所述第二類型的視頻資料之前,斷開所述螢幕的背光源。The image processing method as described in item 6 of the patent application scope, wherein the step of performing sequential processing on the second type of video material subjected to image quality processing includes: according to the original There is an output frequency for sequential processing; the step of writing the processed video data on the screen for display includes: sequentially outputting the second type of video data of the current frame to the screen according to the original output frequency To display, and after writing the second-type video data of the current frame, and before writing the second-type video data of the next frame, turn off the backlight of the screen. 如申請專利範圍第6項所述的影像處理方法,其中,將經過圖像品質處理的所述第二類型的視頻資料進行時序處理的步驟,包括: 對所述第二類型的視頻資料依據原有輸出頻率的M倍的輸出頻率進行時序處理,並根據相鄰兩幀的所述第二類型的視頻資料而生成中間過渡幀的視頻資料; 在螢幕中寫入所述處理後的視頻資料以進行顯示的步驟,包括: 按照原有輸出頻率的M倍的輸出頻率,依次輸出當前幀的所述第二類型的視頻資料和中間過渡幀的視頻資料至所述螢幕以進行顯示。The image processing method as described in item 6 of the patent application scope, wherein the step of performing sequential processing on the second type of video material subjected to image quality processing includes: according to the original The output frequency with M times the output frequency is subjected to timing processing, and the video data of the intermediate transition frame is generated according to the second type of video data of two adjacent frames; the processed video data is written on the screen to The displaying step includes: sequentially outputting the second-type video data of the current frame and the video data of the intermediate transition frame to the screen for display according to an output frequency that is M times the original output frequency. 如申請專利範圍第1項所述的影像處理方法,其中,在執行偵測所述視訊訊號的類型的步驟之前,所述方法進一步包括: 確定所述視訊訊號的處理模式,其中,所述處理模式包括正常模式和運動模式; 其中,當確定所述視訊訊號的處理模式為運動模式時,則執行上述偵測所述視訊訊號的類型、根據所述視訊訊號的類型對所述視訊訊號進行處理以生成處理後的視頻資料、和在螢幕中寫入所述處理後的視頻資料以進行顯示的步驟; 當確定所述視訊訊號的處理模式為正常模式時,則正常處理接收的所述視訊訊號並在所述螢幕中正常顯示所述視訊訊號。The image processing method according to item 1 of the patent application scope, wherein, before performing the step of detecting the type of the video signal, the method further includes: determining a processing mode of the video signal, wherein the processing The mode includes a normal mode and a sports mode; wherein, when it is determined that the processing mode of the video signal is a sports mode, the above-mentioned detection of the type of the video signal is performed, and the video signal is processed according to the type of the video signal The steps of generating processed video data and writing the processed video data on the screen for display; when it is determined that the processing mode of the video signal is the normal mode, the received video signal is processed normally And the video signal is normally displayed on the screen. 一種電子設備,包括: 一偵測模組,用於在接收到視訊訊號後,偵測所述視訊訊號的類型; 一處理模組,與所述偵測模組連接,用於根據所述視訊訊號的類型對所述視訊訊號進行處理以生成處理後的視頻資料; 一寫入模組,與所述處理模組連接,用於在螢幕中寫入所述處理後的視頻資料以進行顯示。An electronic device, including: a detection module for detecting the type of the video signal after receiving the video signal; a processing module connected to the detection module for detecting the video signal The type of signal processes the video signal to generate processed video data; a writing module connected to the processing module for writing the processed video data on the screen for display. 如申請專利範圍第10項所述的電子設備,其中,所述處理模組包括: 一轉換子模組,用於當確定所述視訊訊號為第一類型的視頻資料時,將所述第一類型的視頻資料轉換成第二類型的視頻資料,其中,所述第二類型的視頻資料的資料量小於所述第一類型的視頻資料; 一後端處理子模組,分別與所述轉換子模組和所述偵測模組連接,用於對所述第二類型的視頻資料進行後端處理,以生成所述處理後的視頻資料。The electronic device according to item 10 of the patent application scope, wherein the processing module includes: a conversion sub-module for determining the first video signal when the video signal is the first type of video data The type of video data is converted into a second type of video data, wherein the amount of data of the second type of video data is less than that of the first type of video data; a back-end processing sub-module, respectively The module is connected to the detection module, and is used for back-end processing of the second type of video data to generate the processed video data. 如申請專利範圍第11項所述的電子設備,其中,所述轉換子模組包括: 一第一分組單元,用於對每一幀所述第一類型的視頻資料進行分組處理以生成多組圖像資料,其中,每組圖像資料包括M行圖像資料,M為大於等於2的正整數; 一第一刪除單元,與所述第一分組單元連接,用於對每組圖像資料進行處理,保留一行圖像資料作為該組圖像資料的寫入資料,並刪除其它行的圖像資料,從而將所述第一類型的視頻資料轉換成所述第二類型的視頻資料。The electronic device according to item 11 of the patent application scope, wherein the conversion sub-module includes: a first grouping unit configured to group each frame of the first type of video material to generate multiple groups Image data, wherein each group of image data includes M lines of image data, and M is a positive integer greater than or equal to 2; a first deletion unit, connected to the first grouping unit, is used for each group of image data Perform processing, retain one line of image data as writing data of the group of image data, and delete image data of other lines, thereby converting the video data of the first type into the video data of the second type. 如申請專利範圍第12項所述的電子設備,其中,所述轉換子模組包括: 一第二分組單元,用於將每一幀所述第一類型的視頻資料分成奇數行資料和偶數行資料; 一第二刪除單元,與所述第二分組單元連接,用於根據預設需求,選擇所述第一類型的視頻資料中的奇數行資料和偶數行資料中之一進行保留,並刪除另一類型的資料,從而將所述第一類型的視頻資料轉換成所述第二類型的視頻資料。The electronic device according to item 12 of the patent application scope, wherein the conversion submodule includes: a second grouping unit for dividing each frame of the first type of video data into odd-numbered lines and even-numbered lines Data; a second deletion unit, connected to the second grouping unit, used to select one of odd-line data and even-line data in the first type of video data for retention and deletion according to preset requirements Another type of material, thereby converting the first type of video material into the second type of video material. 如申請專利範圍第12項所述的電子設備,其中,第一刪除單元包括: 一刪除子單元,用於保留一行圖像資料作為該組圖像資料的寫入資料,並刪除其它行的圖像資料; 一組合子單元,與所述刪除子單元連接,用於將保留的圖像資料與空資料組合,從而生成所述第二類型的視頻資料。The electronic device as described in item 12 of the patent application scope, wherein the first deletion unit includes: a deletion subunit for retaining one line of image data as writing data of the group of image data, and deleting other lines of images Image data; a combined subunit, connected to the deleted subunit, for combining the retained image data with empty data to generate the second type of video data. 如申請專利範圍第11項所述的電子設備,其中,所述後端處理子模組包括: 一圖像品質處理單元,用於對所述第二類型的視頻資料進行圖像品質處理; 一時序處理單元,與所述圖像品質處理單元連接,用於將經過圖像品質處理的所述第二類型的視頻資料進行時序處理; 一封包處理單元,與所述時序處理單元連接,用於將經過所述時序處理的所述第二類型的視頻資料進行封包處理以生成所述處理後的視頻資料。The electronic device according to item 11 of the patent application scope, wherein the back-end processing submodule includes: an image quality processing unit for performing image quality processing on the second type of video data; A sequential processing unit, connected to the image quality processing unit, used for performing sequential processing on the second type of video material subjected to image quality processing; a packet processing unit, connected to the sequential processing unit, used for The second type of video material subjected to the time series processing is packetized to generate the processed video material. 如申請專利範圍第15項所述的電子設備,其中,所述時序處理單元,還用於對所述第二類型的視頻資料依據原有輸出頻率進行時序處理;所述寫入模組,還用於按照原有輸出頻率,依次輸出當前幀的所述第二類型的視頻資料至所述螢幕上以進行顯示,並在寫入當前幀的所述第二類型的視頻資料之後,寫入下一幀的所述第二類型的視頻資料之前,斷開所述螢幕的背光源。The electronic device according to item 15 of the patent application scope, wherein the timing processing unit is further used to perform timing processing on the second-type video data according to the original output frequency; the writing module also It is used to sequentially output the second type of video data of the current frame to the screen for display according to the original output frequency, and after writing the second type of video data of the current frame, write Before one frame of the second type of video material, the backlight of the screen is turned off. 如申請專利範圍第15項所述的電子設備,其中,所述時序處理單元,還用於對所述第二類型的視頻資料依據原有輸出頻率的M倍的輸出頻率進行時序處理,並根據相鄰兩幀的所述第二類型的視頻資料而生成中間過渡幀的視頻資料;所述寫入模組,還用於按照原有輸出頻率的M倍的輸出頻率,依次輸出當前幀的所述第二類型的視頻資料和中間過渡幀的視頻資料至所述螢幕以進行顯示。The electronic device according to item 15 of the patent application scope, wherein the timing processing unit is further used to perform timing processing on the output frequency of the second-type video data according to M times the original output frequency, and according to The two types of adjacent video data of the second type to generate the video data of the intermediate transition frame; the writing module is also used to sequentially output all the current frames according to the output frequency M times the original output frequency. The video data of the second type and the video data of the intermediate transition frame are displayed on the screen. 如申請專利範圍第10項所述的電子設備,其中,所述電子設備進一步包括: 一處理模式確定模組,分別與所述偵測模組及所述處理模組連接,用於確定所述視訊訊號的處理模式,其中,所述處理模式包括正常模式和運動模式; 其中,當所述處理模式確定模組確定所述視訊訊號的處理模式為運動模式時,所述偵測模組偵測所述視訊訊號的類型、所述處理模組根據所述視訊訊號的類型對所述視訊訊號進行處理以生成處理後的視頻資料、以及所述寫入模組在螢幕中寫入所述處理後的視頻資料以進行顯示;當所述處理模式確定模組確定所述視訊訊號的處理模式為正常模式時,則所述處理模組正常處理接收的所述視訊訊號,進一步並在所述螢幕中正常顯示所述視訊訊號。The electronic device according to item 10 of the patent application scope, wherein the electronic device further comprises: a processing mode determination module, respectively connected to the detection module and the processing module, for determining the A processing mode of a video signal, wherein the processing mode includes a normal mode and a sports mode; wherein, when the processing mode determination module determines that the processing mode of the video signal is a sports mode, the detection module detects The type of the video signal, the processing module processes the video signal according to the type of the video signal to generate processed video data, and the writing module writes the processed signal on the screen Video data for display; when the processing mode determination module determines that the processing mode of the video signal is the normal mode, the processing module normally processes the received video signal, further on the screen The video signal is displayed normally.
TW107140469A 2018-06-26 2018-11-14 Image processing method and electronic device TW202002604A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810672904.7A CN108965764B (en) 2018-06-26 2018-06-26 Image processing method and electronic device
CN201810672904.7 2018-06-26

Publications (1)

Publication Number Publication Date
TW202002604A true TW202002604A (en) 2020-01-01

Family

ID=64487065

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107140469A TW202002604A (en) 2018-06-26 2018-11-14 Image processing method and electronic device

Country Status (2)

Country Link
CN (1) CN108965764B (en)
TW (1) TW202002604A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110919195A (en) * 2019-12-11 2020-03-27 杭州东信光电科技有限公司 Imaging method for improving resolution by realizing flexographic plate making

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557459B (en) * 2009-01-19 2013-10-02 无锡中星微电子有限公司 Video signal receiving method, device and embedded system
CN102104712A (en) * 2009-12-22 2011-06-22 华为终端有限公司 Video data processing method, central processing unit and terminal
CN102685475B (en) * 2011-03-11 2015-04-29 杭州海康威视数字技术股份有限公司 Interlace compressed display method and system for reducing video frame rate
US20130242186A1 (en) * 2012-03-14 2013-09-19 Samsung Electronics Co., Ltd. Image processing apparatus and control method thereof
CN102769732B (en) * 2012-03-26 2018-06-26 新奥特(北京)视频技术有限公司 A kind of conversion method for realizing video field
CN102769731A (en) * 2012-03-26 2012-11-07 新奥特(北京)视频技术有限公司 Method for converting file non-interlaced scanning mode and file interstage scanning mode

Also Published As

Publication number Publication date
CN108965764A (en) 2018-12-07
CN108965764B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN105721818B (en) A kind of signal conversion method and device
CN105744358B (en) The processing method and processing device of video playing
US8063910B2 (en) Double-buffering of video data
CN107105185A (en) The transmission method and device of vision signal
CN107277595A (en) A kind of multi-channel video synchronous method and device
CN105681720B (en) The processing method and processing device of video playing
US20170034450A1 (en) Data processing method and device for led television, and led television
CN111026343A (en) Real-time synchronous display method for multiple spliced screens
TWI354981B (en) Method and related device of increasing efficiency
CN103248797A (en) Video resolution enhancing method and module based on FPGA (field programmable gate array)
WO2019080846A1 (en) Video data processing method and video data processing device
CN105704407A (en) A display processing apparatus, device and method
US8593575B2 (en) Video display apparatus for shortened-delay processing of a video signal and video processing method
JP5072419B2 (en) Image display device
CN200983644Y (en) Multi-screen display and combination control device
WO2012012936A1 (en) Video picture display device and method
CN211557374U (en) 4K ultra-high definition video control device
CN113573111A (en) 8K ultra-high-definition video conversion point screen system and method
TW202002604A (en) Image processing method and electronic device
US11037530B2 (en) Video processing circuit and method for handling multiple videos using single video processing path capable of increasing processing data rate and saving circuit area
CN110570793B (en) Testing method and device adaptive to different types of display screens and terminal equipment
US8570435B2 (en) Video processing method and device thereof
US6005630A (en) Method and apparatus for displaying images representing network application data along with interlaced images encoded in television signals.
CN209120335U (en) A kind of HDMI high image quality synchronization de interlacing system
CN105812923A (en) Play processing method and device based on video on demand