TW202022795A - Image processing circuit - Google Patents

Image processing circuit Download PDF

Info

Publication number
TW202022795A
TW202022795A TW107144848A TW107144848A TW202022795A TW 202022795 A TW202022795 A TW 202022795A TW 107144848 A TW107144848 A TW 107144848A TW 107144848 A TW107144848 A TW 107144848A TW 202022795 A TW202022795 A TW 202022795A
Authority
TW
Taiwan
Prior art keywords
memory
image
control unit
parameters
neural network
Prior art date
Application number
TW107144848A
Other languages
Chinese (zh)
Other versions
TWI694413B (en
Inventor
楊得煒
Original Assignee
奇景光電股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 奇景光電股份有限公司 filed Critical 奇景光電股份有限公司
Priority to TW107144848A priority Critical patent/TWI694413B/en
Application granted granted Critical
Publication of TWI694413B publication Critical patent/TWI694413B/en
Publication of TW202022795A publication Critical patent/TW202022795A/en

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

An image processing circuit is provided. A memory control unit first moves a reference image and parameters from a first memory to a third memory. A convolution neural network circuit obtains the parameters from the third memory. The memory control unit also moves at least one portion of the reference image from the third memory to a second memory, in which a storage capacity of the third memory is larger than that of the second memory. A depth decoder obtains the reference image from the second memory for calculating depth information according to the reference image and a structured image received from an infrared sensor, and stores the depth information into the second memory.

Description

影像處理電路 Image processing circuit

本發明是有關於一種影像處理電路,且特別是有關於一種卷積神經網路電路的記憶體架構。 The present invention relates to an image processing circuit, and particularly relates to a memory architecture of a convolutional neural network circuit.

近年來,卷積神經網路的技術已受到學術界與業界的大量關注,並且在很多領域上都有了突破性的發展,特別是在影像處理上。當使用卷積神經網路來進行影像處理的應用時,往往會需要大量的記憶體來儲存影像以及卷積神經網路中的參數,因此如何設計適當的硬體架構來儲存或搬運這些資料,為此領域技術人員所關心的議題。 In recent years, the technology of convolutional neural networks has received a lot of attention from academia and industry, and has made breakthrough developments in many fields, especially in image processing. When a convolutional neural network is used for image processing applications, a large amount of memory is often required to store images and parameters in the convolutional neural network. Therefore, how to design an appropriate hardware architecture to store or transport these data? This is a topic of concern to those skilled in the art.

本發明的實施例提出一種影像處理電路,包括第一記憶體、第二記憶體、記憶體控制單元、卷積神經網路電路與深度解碼器。其中第一記憶體儲存有參考影像與多個參數,第二記憶體的儲存空間小於第一記憶體的儲存空間。記憶體控制單元電性連接至第一記憶體與第二記憶體,卷積神經網路電路電性連接至第二記憶體,深度解碼器電性連接至第二記憶體。深度解碼器用以從紅外線感測器接收結構化 影像。在第一模式下:記憶體控制單元將參考影像與參數從第一記憶體移動至第三記憶體,其中第三記憶體電性連接至卷積神經網路電路、記憶體控制單元與第二記憶體,並且第三記憶體的儲存空間大於第二記憶體的儲存空間;卷積神經網路電路從第三記憶體取得參數,記憶體控制單元將參考影像的至少一部份從第三記憶體移動至第二記憶體;以及深度解碼器從第二記憶體取得部份的參考影像,根據此部份的參考影像與結構化影像計算出深度資訊,並將深度資訊儲存至第二記憶體。 An embodiment of the present invention provides an image processing circuit including a first memory, a second memory, a memory control unit, a convolutional neural network circuit, and a depth decoder. The first memory stores a reference image and a plurality of parameters, and the storage space of the second memory is smaller than that of the first memory. The memory control unit is electrically connected to the first memory and the second memory, the convolutional neural network circuit is electrically connected to the second memory, and the depth decoder is electrically connected to the second memory. The depth decoder is used to receive the structured image. In the first mode: the memory control unit moves the reference image and parameters from the first memory to the third memory, where the third memory is electrically connected to the convolutional neural network circuit, the memory control unit and the second Memory, and the storage space of the third memory is greater than the storage space of the second memory; the convolutional neural network circuit obtains parameters from the third memory, and the memory control unit transfers at least a part of the reference image from the third memory The body moves to the second memory; and the depth decoder obtains part of the reference image from the second memory, calculates the depth information based on the reference image and the structured image of this part, and stores the depth information in the second memory .

在一些實施例中,影像處理電路更包括匯流排與多工器。匯流排電性連接至記憶體控制單元、第二記憶體與卷積神經網路電路,多工器電性連接至匯流排、第三記憶體與卷積神經網路電路。在第一模式中,卷積神經網路電路是透過多工器從第三記憶體取得參數。 In some embodiments, the image processing circuit further includes a bus and a multiplexer. The bus is electrically connected to the memory control unit, the second memory and the convolutional neural network circuit, and the multiplexer is electrically connected to the bus, the third memory and the convolutional neural network circuit. In the first mode, the convolutional neural network circuit obtains parameters from the third memory through the multiplexer.

在一些實施例中,在第一模式中,記憶體控制單元還透過匯流排將參數的一部份從第三記憶體移動至第二記憶體;以及當記憶體控制單元透過匯流排將參考影像的部份從第三記憶體移動至第二記憶體的同時,卷積神經網路電路直接從第二記憶體取得上述的參數。 In some embodiments, in the first mode, the memory control unit also moves a part of the parameter from the third memory to the second memory through the bus; and when the memory control unit transfers the reference image through the bus While moving the part from the third memory to the second memory, the convolutional neural network circuit directly obtains the above-mentioned parameters from the second memory.

在一些實施例中,上述部份的參數是對應至卷積神經網路的層。 In some embodiments, the above-mentioned parameters correspond to the layers of the convolutional neural network.

在一些實施例中,第二記憶體還接收來自紅外線感測器的灰階影像。卷積神經網路電路還從第二記憶體取得深度資訊與灰階影像,並根據灰階影像、深度資訊與參數 執行物件偵測程序或物件辨識程序。 In some embodiments, the second memory also receives the grayscale image from the infrared sensor. The convolutional neural network circuit also obtains depth information and grayscale images from the second memory, and based on the grayscale images, depth information and parameters Perform object detection process or object recognition process.

在一些實施例中,上述部份的參考影像包含至少一列的像素。 In some embodiments, the part of the reference image includes at least one column of pixels.

在一些實施例中,上述的第二記憶體為靜態隨機存取記憶體,第三記憶體為動態隨機存取記憶體。 In some embodiments, the aforementioned second memory is a static random access memory, and the third memory is a dynamic random access memory.

在一些實施例中,第一記憶體為快閃記憶體。 In some embodiments, the first memory is a flash memory.

在一些實施例中,記憶體控制單元切換在第一模式與第二模式之間。在第二模式中:記憶體控制單元將參考影像與參數從第一記憶體移動至第二記憶體;卷積神經網路電路從第二記憶體取得參數;以及深度解碼器從第二記憶體取得參考影像,根據參考影像與結構化影像計算出深度資訊,並將深度資訊儲存至第二記憶體。 In some embodiments, the memory control unit is switched between the first mode and the second mode. In the second mode: the memory control unit moves the reference image and parameters from the first memory to the second memory; the convolutional neural network circuit obtains the parameters from the second memory; and the depth decoder from the second memory Obtain the reference image, calculate the depth information based on the reference image and the structured image, and store the depth information in the second memory.

在一些實施例中,記憶體控制單元根據實體開關、偵測電路或韌體設定切換在第一模式與第二模式之間。 In some embodiments, the memory control unit switches between the first mode and the second mode according to physical switches, detection circuits, or firmware settings.

在上述的影像處理電路中,可以減少記憶體的空間需求,或在不同模式下採用不同的記憶體架構。 In the above-mentioned image processing circuit, the space requirement of the memory can be reduced, or different memory structures can be adopted in different modes.

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

100‧‧‧電子裝置 100‧‧‧Electronic device

110‧‧‧紅外線感測器 110‧‧‧Infrared sensor

111‧‧‧紅外線投射器 111‧‧‧Infrared projector

120‧‧‧影像處理電路 120‧‧‧Image processing circuit

121‧‧‧第一記憶體 121‧‧‧First memory

122‧‧‧第二記憶體 122‧‧‧Second memory

123‧‧‧第三記憶體 123‧‧‧Third memory

130‧‧‧記憶體控制單元 130‧‧‧Memory Control Unit

140‧‧‧卷積神經網路電路 140‧‧‧Convolutional Neural Network Circuit

150‧‧‧深度解碼器 150‧‧‧Depth Decoder

160‧‧‧匯流排 160‧‧‧Bus

170‧‧‧多工器 170‧‧‧Multiplexer

[圖1]是根據一實施例繪示電子裝置的電路示意圖。 [Fig. 1] is a schematic diagram showing a circuit of an electronic device according to an embodiment.

[圖2]是根據一實施例繪示電子裝置的電路示意圖。 [Fig. 2] is a schematic diagram showing a circuit of an electronic device according to an embodiment.

關於本文中所使用之『第一』、『第二』、...等,並非特別指次序或順位的意思,其僅為了區別以相同技術用語描述的元件或操作。 Regarding the "first", "second", ... etc. used in this text, it does not specifically refer to the order or sequence, but only to distinguish elements or operations described in the same technical terms.

[第一實施例] [First Embodiment]

圖1是根據一實施例繪示電子裝置的電路示意圖。請參照圖1,電子裝置100包括了紅外線感測器110、紅外線投射器111與影像處理電路120。電子裝置100可以實作為手機、平板電腦、筆記型電腦或其他合適的電子裝置。在一些實施例中,電子裝置100還可包括其他元件,例如攝影機等等,本發明並不在此限。影像處理電路120則包括了第一記憶體121、第二記憶體122、第三記憶體123、記憶體控制單元130、卷積神經網路電路140、深度解碼器150、匯流排160與多工器170。其中,第二記憶體122電性連接至紅外線感測器110、深度解碼器150、卷積神經網路電路140。匯流排160電性連接至第二記憶體122、記憶體控制單元130、多工器170。第一記憶體121電性連接至記憶體控制單元130,多工器170是電性連接至卷積神經網路電路140與第三記憶體123。 FIG. 1 is a schematic diagram of a circuit of an electronic device according to an embodiment. Please refer to FIG. 1, the electronic device 100 includes an infrared sensor 110, an infrared projector 111 and an image processing circuit 120. The electronic device 100 may be implemented as a mobile phone, a tablet computer, a notebook computer, or other suitable electronic devices. In some embodiments, the electronic device 100 may also include other components, such as a camera, etc. The invention is not limited thereto. The image processing circuit 120 includes a first memory 121, a second memory 122, a third memory 123, a memory control unit 130, a convolutional neural network circuit 140, a depth decoder 150, a bus 160, and a multiplexer.器170. Wherein, the second memory 122 is electrically connected to the infrared sensor 110, the depth decoder 150, and the convolutional neural network circuit 140. The bus 160 is electrically connected to the second memory 122, the memory control unit 130, and the multiplexer 170. The first memory 121 is electrically connected to the memory control unit 130, and the multiplexer 170 is electrically connected to the convolutional neural network circuit 140 and the third memory 123.

在此實施例中,影像處理電路120是用於執行一個影像處理程序,例如是物件偵測程序或物件辨識程序。在執行影像處理程序時需要關於場景的深度圖,此深度圖是透過比較兩張紅外線影像中特定圖案之間的位移 (disparity)所計算出,在此將這兩張影像稱為參考影像與結構化影像。參考影像中的圖案是預設的,亦稱為金圖案(golden pattern),此預設圖案例如是隨機設置的多個圓點或是長條圖,本發明並不限制此預設圖案為何。結構化影像是透過紅外線投射器111投射出上述的預設圖案至場景中,然後由紅外線感測器110來感測所得到的影像,換言之結構化影像中也具有上述的預設圖案。然而,受到場景中深度的影響,結構化影像中的預設圖案會有相對應的位移,因此透過計算參考影像與結構化影像中某一位置的位移便可以計算出該位置的景深。在此實施例中,上述的參考影像是儲存在第一記憶體121中。 In this embodiment, the image processing circuit 120 is used to execute an image processing procedure, such as an object detection procedure or an object recognition procedure. The depth map of the scene is needed when executing the image processing program. This depth map is based on comparing the displacement between specific patterns in two infrared images (disparity) is calculated, and these two images are referred to as the reference image and the structured image here. The pattern in the reference image is a preset, which is also called a golden pattern. The preset pattern is, for example, a plurality of dots or a bar graph randomly set. The present invention does not limit the preset pattern. The structured image is projected into the scene through the infrared projector 111 with the aforementioned preset pattern, and then the infrared sensor 110 senses the resulting image. In other words, the structured image also has the aforementioned preset pattern. However, due to the influence of the depth in the scene, the preset pattern in the structured image will have a corresponding displacement. Therefore, by calculating the displacement of a certain position in the reference image and the structured image, the depth of field at that position can be calculated. In this embodiment, the above-mentioned reference image is stored in the first memory 121.

另一方面,卷積神經網路電路140是用以執行卷積神經網路。一般來說,卷積神經網路具有多個層,而每一層都具有多個參數,這些參數是事先經過訓練所決定的。在此實施例中,上述的參數也是儲存在第一記憶體121中。 On the other hand, the convolutional neural network circuit 140 is used to implement a convolutional neural network. Generally speaking, a convolutional neural network has multiple layers, and each layer has multiple parameters, which are determined by training in advance. In this embodiment, the aforementioned parameters are also stored in the first memory 121.

在一些實施例中,第一記憶體121與第三記憶體123的儲存空間皆大於第二記憶體122的儲存空間,但第二記憶體122的讀取速度則大於第一記憶體121與第三記憶體123的讀取速度。舉例來說,第一記憶體121為快閃記憶體,第二記憶體122為靜態隨機存取記憶體,第三記憶體123為動態隨機存取記憶體,但本發明並不在此限。特別的是,上述的參數與參考影像會先從第一記憶體121搬移至第三記憶體123,再從第三記憶體123搬移至第二記憶體122。 In some embodiments, the storage space of the first memory 121 and the third memory 123 are both greater than the storage space of the second memory 122, but the read speed of the second memory 122 is greater than that of the first memory 121 and the first memory. 3. Reading speed of memory 123. For example, the first memory 121 is a flash memory, the second memory 122 is a static random access memory, and the third memory 123 is a dynamic random access memory, but the invention is not limited thereto. In particular, the aforementioned parameters and reference images are first moved from the first memory 121 to the third memory 123, and then from the third memory 123 to the second memory 122.

具體來說,記憶體控制單元130會將參考影像 與參數從第一記憶體121移動至第三記憶體123,此時多工器170選擇輸入端“0”。接下來,多工器170可繼續選擇輸入端“0”,此時記憶體控制單元130將至少部分的參考影像從第三記憶體123移動至第二記憶體122。深度解碼器150會從第二記憶體122取得此部分的參考影像,並根據參考影像與從紅外線感測器110接收到的結構化影像來計算出深度資訊,最後將深度資訊儲存至第二記憶體122中。在一些實施例中,由於深度解碼器150是一列(row)一列地計算深度資訊,因此上述部分的參考影像只需要包括一或多列的像素,換言之記憶體控制單元130每次是將一或多列像素從第三記憶體123移動至第二記憶體122,如此一來並不需要一次把全部的參考影像都載入至第二記憶體122,可以減少第二記憶體122的空間需求。 Specifically, the memory control unit 130 converts the reference image The AND parameter moves from the first memory 121 to the third memory 123, and at this time, the multiplexer 170 selects the input terminal "0". Next, the multiplexer 170 can continue to select the input “0”, and at this time the memory control unit 130 moves at least part of the reference image from the third memory 123 to the second memory 122. The depth decoder 150 obtains this part of the reference image from the second memory 122, calculates the depth information based on the reference image and the structured image received from the infrared sensor 110, and finally stores the depth information in the second memory体122中. In some embodiments, since the depth decoder 150 calculates the depth information row by row, the above-mentioned part of the reference image only needs to include one or more rows of pixels. In other words, the memory control unit 130 performs one or more Multiple rows of pixels are moved from the third memory 123 to the second memory 122, so it is not necessary to load all the reference images into the second memory 122 at once, and the space requirement of the second memory 122 can be reduced.

另一方面,卷積神經網路電路140有兩種方式從第三記憶體123取得參數。第一種方法是多工器170選擇輸入端“1”,而卷積神經網路電路140透過多工器170從第三記憶體123中讀取參數。第二種方法是多工器170選擇輸入端“0”,記憶體控制單元130先將參數從第三記憶體123移動至第二記憶體122,接下來卷積神經網路電路140直接從第二記憶體122中讀取參數,在此同時記憶體控制單元130可以透過匯流排160將參考影像從第三記憶體123移動至第二記憶體122,如此一來參數與參考影像的讀取可以同時進行。在一些實施例中,移動至第二記憶體122的參數是對應至卷積神經網路的一層(而非所有層),如此一來也可以 減少第二記憶體122的空間需求。 On the other hand, the convolutional neural network circuit 140 obtains parameters from the third memory 123 in two ways. The first method is that the multiplexer 170 selects the input terminal “1”, and the convolutional neural network circuit 140 reads the parameters from the third memory 123 through the multiplexer 170. The second method is that the multiplexer 170 selects the input terminal "0", the memory control unit 130 first moves the parameters from the third memory 123 to the second memory 122, and then the convolutional neural network circuit 140 directly moves from the first The parameters are read from the second memory 122. At the same time, the memory control unit 130 can move the reference image from the third memory 123 to the second memory 122 through the bus 160, so that the parameters and the reference image can be read Simultaneously. In some embodiments, the parameters moved to the second memory 122 correspond to one layer (not all layers) of the convolutional neural network, so that it can also The space requirement of the second memory 122 is reduced.

在一些實施例中,紅外線感測器110除了會感測結構化影像以外,也會感測一灰階影像。此灰階影像中並沒有投射的圖案,也就是說灰階影像的像素只會反應場景中的物件,並且灰階影像會傳送至第二記憶體122。卷積神經網路電路140會從第二記憶體122中取得參數、深度資訊與灰階影像,並根據這些灰階影像、深度資訊與參數執行物件偵測程序或物件辨識程序,例如人臉辨識程序或人臉識別程序,然而,本發明並不限制物件偵測程序與物件辨識程序的內容。 In some embodiments, the infrared sensor 110 not only senses the structured image, but also senses a grayscale image. There is no projected pattern in the grayscale image, which means that the pixels of the grayscale image only reflect the objects in the scene, and the grayscale image will be sent to the second memory 122. The convolutional neural network circuit 140 obtains parameters, depth information, and grayscale images from the second memory 122, and performs object detection procedures or object recognition procedures, such as face recognition, based on these grayscale images, depth information, and parameters The process or the face recognition process, however, the present invention does not limit the content of the object detection process and the object recognition process.

[第二實施例] [Second Embodiment]

圖2是根據一實施例繪示電子裝置的電路示意圖。在圖2的實施例中,影像處理電路120並沒有第三記憶體123,因此上述的參考影像與參數是從第一記憶體121移動至第二記憶體122。卷積神經網路電路140可從第二記憶體取得參數。深度解碼器150從第二記憶體122取得參考影像,根據參考影像與結構化影像計算出深度資訊,並將深度資訊儲存至第二記憶體122。 FIG. 2 is a schematic diagram of a circuit of an electronic device according to an embodiment. In the embodiment of FIG. 2, the image processing circuit 120 does not have the third memory 123, so the above-mentioned reference image and parameters are moved from the first memory 121 to the second memory 122. The convolutional neural network circuit 140 can obtain parameters from the second memory. The depth decoder 150 obtains the reference image from the second memory 122, calculates depth information based on the reference image and the structured image, and stores the depth information in the second memory 122.

相較於圖1的第一實施例來說,圖2的第二實施例較適用於解析度較小的影像,因此可將所有的參數與整張參考影像直接存在第二記憶體122中。然而,本發明並不在此限,第一實施例與第二實施例可以適用於任意解析度的影像。值得注意的是,圖1與圖2的差別僅在於第三記憶體123,而其他元件皆相同,因此影像處理電路120並不需要 太多修改便可以適用於不同的產品。上述的第一實施例被稱為第一模式,第二實施例被稱為第二模式,記憶體控制單元130可切換在第一模式與第二模式之間。在一些實施例中,影像處理電路120中可設置一個偵測電路(未繪示),由此偵測電路來判斷是否存在第三記憶體123,若存在第三記憶體123則記憶體控制單元130會執行第一模式,否則執行第二模式。或者,記憶體控制單元130也可以根據實體開關或韌體設定來切換在第一模式與第二模式之間,此實體開關可以設置在電路板或其他任意的位置上,而韌體設定可以事先燒錄記憶體控制單元130或其他控制器中,本發明並不在此限。 Compared with the first embodiment in FIG. 1, the second embodiment in FIG. 2 is more suitable for images with a smaller resolution, so all parameters and the entire reference image can be directly stored in the second memory 122. However, the present invention is not limited to this, and the first embodiment and the second embodiment can be applied to images of any resolution. It is worth noting that the difference between FIG. 1 and FIG. 2 is only the third memory 123, and other components are the same, so the image processing circuit 120 does not need Too many modifications can be applied to different products. The above-mentioned first embodiment is called the first mode, and the second embodiment is called the second mode. The memory control unit 130 can be switched between the first mode and the second mode. In some embodiments, a detection circuit (not shown) may be provided in the image processing circuit 120, and the detection circuit is used to determine whether the third memory 123 exists, and if the third memory 123 exists, the memory control unit 130 will execute the first mode, otherwise execute the second mode. Alternatively, the memory control unit 130 can also switch between the first mode and the second mode according to a physical switch or firmware setting. The physical switch can be set on the circuit board or any other position, and the firmware setting can be preset In the burning memory control unit 130 or other controllers, the present invention is not limited thereto.

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

100‧‧‧電子裝置 100‧‧‧Electronic device

110‧‧‧紅外線感測器 110‧‧‧Infrared sensor

111‧‧‧紅外線投射器 111‧‧‧Infrared projector

120‧‧‧影像處理電路 120‧‧‧Image processing circuit

121‧‧‧第一記憶體 121‧‧‧First memory

122‧‧‧第二記憶體 122‧‧‧Second memory

123‧‧‧第三記憶體 123‧‧‧Third memory

130‧‧‧記憶體控制單元 130‧‧‧Memory Control Unit

140‧‧‧卷積神經網路電路 140‧‧‧Convolutional Neural Network Circuit

150‧‧‧深度解碼器 150‧‧‧Depth Decoder

160‧‧‧匯流排 160‧‧‧Bus

170‧‧‧多工器 170‧‧‧Multiplexer

Claims (10)

一種影像處理電路,包括:一第一記憶體,儲存有一參考影像與多個參數;一第二記憶體,其中該第二記憶體的儲存空間小於該第一記憶體的儲存空間;一記憶體控制單元,電性連接至該第一記憶體與該第二記憶體;一卷積神經網路電路,電性連接至該第二記憶體;以及一深度解碼器,電性連接至該第二記憶體,用以從一紅外線感測器接收一結構化影像,其中在一第一模式下:該記憶體控制單元將該參考影像與該些參數從該第一記憶體移動至一第三記憶體,其中該第三記憶體電性連接至該卷積神經網路電路、該記憶體控制單元與該第二記憶體,並且該第三記憶體的儲存空間大於該第二記憶體的該儲存空間;該卷積神經網路電路從該第三記憶體取得該些參數,該記憶體控制單元將該參考影像的至少一部份從該第三記憶體移動至該第二記憶體;以及該深度解碼器從該第二記憶體取得該參考影像的該至少一部份,根據該參考影像的該至少一部份與該結構化影像計算出深度資訊,並將該深度資訊儲存至該第二記憶 體。 An image processing circuit includes: a first memory storing a reference image and a plurality of parameters; a second memory, wherein the storage space of the second memory is smaller than the storage space of the first memory; a memory The control unit is electrically connected to the first memory and the second memory; a convolutional neural network circuit is electrically connected to the second memory; and a depth decoder is electrically connected to the second memory Memory for receiving a structured image from an infrared sensor, wherein in a first mode: the memory control unit moves the reference image and the parameters from the first memory to a third memory Body, wherein the third memory is electrically connected to the convolutional neural network circuit, the memory control unit and the second memory, and the storage space of the third memory is larger than the storage of the second memory Space; the convolutional neural network circuit obtains the parameters from the third memory, the memory control unit moves at least part of the reference image from the third memory to the second memory; and the The depth decoder obtains the at least part of the reference image from the second memory, calculates depth information based on the at least part of the reference image and the structured image, and stores the depth information in the second memory body. 如申請專利範圍第1項所述之影像處理電路,更包括:一匯流排,電性連接至該記憶體控制單元、該第二記憶體與該卷積神經網路電路;以及一多工器,電性連接至該匯流排、該第三記憶體與該卷積神經網路電路,其中在該第一模式中,該卷積神經網路電路是透過該多工器從該第三記憶體取得該些參數。 The image processing circuit described in item 1 of the scope of patent application further includes: a bus, electrically connected to the memory control unit, the second memory and the convolutional neural network circuit; and a multiplexer , Electrically connected to the bus, the third memory and the convolutional neural network circuit, wherein in the first mode, the convolutional neural network circuit is connected to the third memory through the multiplexer Obtain these parameters. 如申請專利範圍第2項所述之影像處理電路,其中在該第一模式中:該記憶體控制單元還透過該匯流排將該些參數的一部份從該第三記憶體移動至該第二記憶體;以及當該記憶體控制單元透過該匯流排將該參考影像的該至少一部份從該第三記憶體移動至該第二記憶體的同時,該卷積神經網路電路直接從該第二記憶體取得該些參數的該部份。 For the image processing circuit described in claim 2, wherein in the first mode: the memory control unit also moves a part of the parameters from the third memory to the first mode through the bus Two memories; and when the memory control unit moves the at least part of the reference image from the third memory to the second memory through the bus, the convolutional neural network circuit directly The second memory obtains the part of the parameters. 如申請專利範圍第3項所述之影像處理電路,其中該些參數的該部份是對應至一卷積神經網路的一層。 For the image processing circuit described in item 3 of the scope of patent application, the part of the parameters corresponds to a layer of a convolutional neural network. 如申請專利範圍第1項所述之影像處理電路,其中該第二記憶體還接收來自該紅外線感測器的一灰階影像,該卷積神經網路電路還從該第二記憶體取得該深度資訊與該灰階影像,並根據該灰階影像、該深度資訊與該些參數執行一物件偵測程序或一物件辨識程序。 According to the image processing circuit described in claim 1, wherein the second memory also receives a gray-scale image from the infrared sensor, and the convolutional neural network circuit also obtains the second memory from the second memory. Depth information and the grayscale image, and execute an object detection process or an object recognition process based on the grayscale image, the depth information, and the parameters. 如申請專利範圍第1項所述之影像處理電路,其中該參考影像的該至少一部份包含該參考影像中至少一列的像素。 In the image processing circuit described in claim 1, wherein the at least a part of the reference image includes at least one row of pixels in the reference image. 如申請專利範圍第1項所述之影像處理電路,其中該第二記憶體為靜態隨機存取記憶體,該第三記憶體為動態隨機存取記憶體。 In the image processing circuit described in claim 1, wherein the second memory is a static random access memory, and the third memory is a dynamic random access memory. 如申請專利範圍第7項所述之影像處理電路,其中該第一記憶體為快閃記憶體。 The image processing circuit described in item 7 of the scope of patent application, wherein the first memory is a flash memory. 如申請專利範圍第1項所述之影像處理電路,其中該記憶體控制單元切換在該第一模式與一第二模式之間,在該第二模式中:該記憶體控制單元將該參考影像與該些參數從該第一記憶體移動至該第二記憶體;該卷積神經網路電路從該第二記憶體取得該些參數; 以及該深度解碼器從該第二記憶體取得該參考影像,根據該參考影像與該結構化影像計算出該深度資訊,並將該深度資訊儲存至該第二記憶體。 According to the image processing circuit described in claim 1, wherein the memory control unit switches between the first mode and a second mode, in the second mode: the memory control unit uses the reference image And the parameters are moved from the first memory to the second memory; the convolutional neural network circuit obtains the parameters from the second memory; And the depth decoder obtains the reference image from the second memory, calculates the depth information according to the reference image and the structured image, and stores the depth information in the second memory. 如申請專利範圍第9項所述之影像處理電路,其中該記憶體控制單元根據實體開關、偵測電路或韌體設定切換在該第一模式與該第二模式之間。 According to the image processing circuit described in claim 9, wherein the memory control unit is switched between the first mode and the second mode according to physical switches, detection circuits, or firmware settings.
TW107144848A 2018-12-12 2018-12-12 Image processing circuit TWI694413B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107144848A TWI694413B (en) 2018-12-12 2018-12-12 Image processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107144848A TWI694413B (en) 2018-12-12 2018-12-12 Image processing circuit

Publications (2)

Publication Number Publication Date
TWI694413B TWI694413B (en) 2020-05-21
TW202022795A true TW202022795A (en) 2020-06-16

Family

ID=71895933

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107144848A TWI694413B (en) 2018-12-12 2018-12-12 Image processing circuit

Country Status (1)

Country Link
TW (1) TWI694413B (en)

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9747546B2 (en) * 2015-05-21 2017-08-29 Google Inc. Neural network processor
KR20170024275A (en) * 2015-08-25 2017-03-07 삼성전자주식회사 Image processing apparatus, method of processing image and electronic system including the same
CN106650923B (en) * 2015-10-08 2019-04-09 上海兆芯集成电路有限公司 Neural network unit with neural memory and neural processing unit and sequencer
CN106651748B (en) * 2015-10-30 2019-10-22 华为技术有限公司 A kind of image processing method and image processing apparatus
US10896367B2 (en) * 2017-03-07 2021-01-19 Google Llc Depth concatenation using a matrix computation unit
US11222260B2 (en) * 2017-03-22 2022-01-11 Micron Technology, Inc. Apparatuses and methods for operating neural networks
CN107679621B (en) * 2017-04-19 2020-12-08 赛灵思公司 Artificial neural network processing device
US20180314629A1 (en) * 2017-04-27 2018-11-01 British Cayman Islands Intelligo Technology Inc. Managing parallel access to a plurality of flash memories
CN108304265B (en) * 2018-01-23 2022-02-01 腾讯科技(深圳)有限公司 Memory management method, device and storage medium
CN108829610B (en) * 2018-04-02 2020-08-04 浙江大华技术股份有限公司 Memory management method and device in neural network forward computing process

Also Published As

Publication number Publication date
TWI694413B (en) 2020-05-21

Similar Documents

Publication Publication Date Title
US9967516B2 (en) Stereo matching method and device for performing the method
US10373591B2 (en) Display device
US9697803B2 (en) Method and apparatus to reduce display latency of touch events using image replications
CN107610059B (en) Image processing method and mobile terminal
US8483491B2 (en) Calculation device and method
CN111080544B (en) Face distortion correction method and device based on image and electronic equipment
CN113963072B (en) Binocular camera calibration method and device, computer equipment and storage medium
US20160078803A1 (en) Display device and display system including the same
US9201108B2 (en) Method of analyzing coupling effect between signal lines in an integrated circuit
WO2020181522A1 (en) Defective pixel detection method, image processing chip, and electronic device
TWI694413B (en) Image processing circuit
US9977946B2 (en) Fingerprint sensor apparatus and method for sensing fingerprint
CN115660941B (en) Image moving method and device, electronic equipment and computer readable storage medium
US20150161937A1 (en) Overlapping detection display and method
US11593582B2 (en) Method and device for comparing media features
CN111405214B (en) Image processing circuit
US9347968B2 (en) Electronic device and input method
US10867399B2 (en) Image processing circuit for convolutional neural network
US20180157905A1 (en) Image processing device, image processing method, and storage medium
US20150097811A1 (en) Optical touch device and gesture detecting method thereof
US20200225877A1 (en) Information processing apparatus and memory control method
CN113420604A (en) Multi-person posture estimation method and device and electronic equipment
TWI469089B (en) Image determining method and object coordinate computing apparatus
CN106780319A (en) The processing method and processing device of super large image
KR101838207B1 (en) Apparatus for distinguishing similarity, and calculation method for calculation metrix correlation distance