CN109640045A - Chip and image processing method - Google Patents
Chip and image processing method Download PDFInfo
- Publication number
- CN109640045A CN109640045A CN201811564570.8A CN201811564570A CN109640045A CN 109640045 A CN109640045 A CN 109640045A CN 201811564570 A CN201811564570 A CN 201811564570A CN 109640045 A CN109640045 A CN 109640045A
- Authority
- CN
- China
- Prior art keywords
- data
- image
- chip
- microcontroller
- processing module
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/14—Picture signal circuitry for video frequency region
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
Abstract
The present embodiments relate to chip technology field, a kind of chip and image processing method are provided, the chip includes microcontroller and the data receiver and image processing module that are electrically connected with microcontroller;The raw image data of data receiver reception image acquisition device;Raw image data is divided at least two parts data according to preset rules by microcontroller, wherein adjacent two parts data include repeated data;Image processing module carries out time-division processing at least two parts data under the control of the micro-controller and obtains the corresponding image of every partial data, and cuts the corresponding image of all repeated datas during time-division processing to obtain target image.The embodiment of the present invention realizes image procossing using the hardware resource of time-division processing mode time-sharing multiplex chip, can effectively reduce the expense of chip interior row caching, saves cost.
Description
Technical field
The present embodiments relate to chip technology fields, in particular to a kind of chip and image processing method.
Background technique
With the development of monitoring technology, the resolution ratio of video image increasingly develops to big resolution ratio.For big resolution ratio
Non-real-time images processing, it is constant that traditional way is to maintain the maximum resolution that chip can be handled, by the way of changing frequency
To adjust frame per second, saving power consumption.But the maximum resolution that chip can be handled is related to the size that chip interior row caches, and shows
Right traditional method needs more rows to cache expense, and bigger in identical technological level down buffer storage, and chip area is bigger, into
And chip cost is caused to increase.Therefore, how on the basis of guaranteeing picture quality to save cost as far as possible, be researcher urgently
Technical problem to be solved.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of chip and image processing method, to guarantee picture quality
On the basis of reduce chip interior row caching expense.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, the embodiment of the invention provides a kind of chip, the chip include microcontroller and with the micro-control
The data receiver and image processing module that device processed is electrically connected;The data receiver is adopted for receiving image collecting device
The raw image data of collection;The microcontroller, for the raw image data to be divided at least two according to preset rules
Partial data, wherein adjacent two parts data include repeated data;Described image processing module, in the microcontroller
Time-division processing is carried out at least two parts data under the control of device and obtains the corresponding image of every partial data, and at timesharing
The corresponding image of all repeated datas is cut during reason to obtain target image.
Second aspect, the embodiment of the invention also provides a kind of image processing methods, applied to above-mentioned chip, the core
Piece includes microcontroller and the data receiver and image processing module that are electrically connected with the microcontroller;Described image processing
Method includes: the raw image data that the data receiver receives image acquisition device;The microcontroller is according to pre-
If the raw image data is divided at least two parts data by rule, wherein adjacent two parts data include repeat number
According to;Described image processing module carries out time-division processing at least two parts data under the control of the microcontroller and obtains
The corresponding image of every partial data, and the corresponding image of all repeated datas is cut during time-division processing to obtain
Target image.
Compared with the prior art, a kind of chip and image processing method provided in an embodiment of the present invention, firstly, being connect by data
The raw image data of receiving end reception image acquisition device;Then, microcontroller is according to preset rules by original image number
According to being divided at least two parts data, while adjacent two parts data include repeated data;Next, image processing module pair
At least two parts data carry out time-division processing and obtain the corresponding image of every partial data, and institute is cut during time-division processing
There is the corresponding image of repeated data, has thus obtained final target image.The embodiment of the present invention uses time-division processing mode
The hardware resource of time-sharing multiplex chip realizes image procossing, can effectively reduce the expense of chip interior row caching, saves cost,
Meanwhile all repeated datas corresponding image is cut during image mosaic have to guarantee the smooth transition of stitching image
Effect guarantees picture quality.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the structural schematic diagram of chip provided in an embodiment of the present invention.
Fig. 2 shows 3 panes schematic diagrames provided in an embodiment of the present invention.
Fig. 3 shows the flow chart of image processing method provided in an embodiment of the present invention.
Fig. 4 shows the another structural schematic diagram of chip provided in an embodiment of the present invention.
Icon: 100,200- chip;10- image collecting device;110- data receiver;120- microcontroller;130- figure
As processing module;140- memory.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below
Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
First embodiment
Fig. 1 is please referred to, Fig. 1 shows the structural schematic diagram of chip 100 provided in an embodiment of the present invention.Chip 100 can be with
It is the chip with image-capable, for example, monitoring chip, picture processing chip etc..Chip 100 and image collecting device 10
Electrical connection, chip 100 include data receiver 110, microcontroller 120, image processing module 130 and memory 140, and data connect
Receiving end 110 is electrically connected with image collecting device 10, microcontroller 120 and data receiver 110 and image processing module 130 electricity
Connection, data receiver 110 is electrically connected with image processing module 130 and memory 140 simultaneously, and 130 He of image processing module
Memory 140 is electrically connected.
In the present embodiment, data receiver 110 is electrically connected with image collecting device 10, for receiving image collecting device
The raw image data of 10 acquisitions, image collecting device 10 can be camera, imaging sensor etc..Raw image data is figure
The big resolution ratio non-real-time data acquired as acquisition device 10.
In the present embodiment, microcontroller 120, for raw image data to be divided at least two according to preset rules
Divided data, wherein adjacent two parts data include repeated data.Preset rules include preset data processing width and default weight
Complex data width, default repeated data width can indicate with padding num, and the data width of repeated data is twice pre-
If repeated data, that is, the data width of repeated data can be expressed as padding num*2.Microcontroller 120, be also used to by
Width and default repeated data width are handled according to preset data, raw image data is divided at least two parts data, below
It describes in detail.
It is possible, firstly, to determine the data for needing to reprocess according to the filter radius of filter in image processing module 130
Width, that is, default repeated data width, default repeated data width can be indicated with padding num.Image processing module
It is all to be filtered according to point or block when filter is filtered in 130, in order to avoid being introduced due to boundary filtering difference
Image boundary, need according in image processing module 130 filter filter radius increase reprocessing data, for example, figure
As, there are two the filter being filtered according to block, one filter radius is 3, another filtering is partly in processing module 130
Diameter is 5, then the minimum for presetting repeated data width should be set as 8, that is, padding num=8.Determining default weight simultaneously
When complex data width, it is also necessary to consider that alignment of data operates.
Secondly, the resolution ratio for the maximum width and raw image data that can be handled according to chip 100, calculates original image
Data need the number divided, that is, the split screen number of 130 split screen of image processing module processing raw image data, for example, core
Piece 100 is maximum to support 2,000,000 (1920x1080) resolution ratio, under the premise of picture altitude is unrestricted, if original image number
According to resolution ratio be 4,000,000 (2688x1520), then raw image data will at least be divided into two parts, that is, original graph
As data will at least be divided into 2 panes, i.e., left half screen and right half screen;If the resolution ratio of raw image data is 8,000,000
(3840x2160), then raw image data will at least be divided into three parts, that is, raw image data will be at least divided
For 3 panes, i.e., left half screen, intermediate half screen and right half screen.
It should be pointed out that above-mentioned is the split screen processing under the premise of chip 100 does not limit picture altitude, such as fruit chip
100 is restricted for picture altitude, and the resolution ratio of raw image data has exceeded the maximum height limit of chip 100, then also needs
Divide the height of raw image data.For example, chip 100 is maximum to support 2,000,000 (1920x1080) resolution ratio, while chip
100 have picture altitude 1080 limitation, if the resolution ratio of raw image data is 4,000,000 (2688x1520),
Raw image data will at least be divided into four split screens, i.e. upper left half screen, upper right half screen, lower-left half screen and bottom right half screen.
Next, determine that preset data handles width according to default repeated data width padding num and split screen number,
Preset data width is exactly the width that raw image data is divided to later each section data, that is, image processing module
130 data widths per treatment, adjacent two parts data include repeated data, weight at least two parts data after division
The default repeated data width that the data width of complex data is twice, the i.e. data width of repeated data are padding num*2.
By taking raw image data is divided into 3 panes as an example, referring to figure 2., the left side of the right side of Zuo Banping and intermediate half screen includes number
According to the repeated data for the default repeated data width that width is twice, the left side of the right side of intermediate half screen and right half screen includes data
The repeated data for the default repeated data width that width is twice.Preset data, which handles width, to be no more than 100 energy of chip
The maximum width of processing is freely specified under the premise of meeting image alignment requirement again, it is not limited here.
After determining preset data processing width and default repeated data width, microcontroller 120 is according to preset data
Width and default repeated data width are handled, raw image data is divided at least two parts data, at least two parts number
According to including the first data and other data in addition to the first data.First data are that data receiver 110 receives earliest
A part of data, it is, data receiver 110 receives the timing of the first data earlier than other data.For example, if original
Image data is divided into 2 panes, then the first data are Zuo Banping, other data are right half screen;If raw image data quilt
3 panes are divided into, then the first data are Zuo Banping, other data are intermediate half screen and right half screen.
In the present embodiment, data receiver 110, after being also used to division under the control of microcontroller 120 at least
The first data transmission in two parts data to image processing module 130, will be at least in two parts data in addition to the first data
Other data transmissions to memory 140.For example, left half screen is transmitted if raw image data is divided into 2 panes
To image processing module 130, right half screen is sent to memory 140, image processing module 130 is in image collecting device 10
The data processing of right half screen is completed in the section vblank;If raw image data is divided into 3 panes, left half screen is passed
It send to image processing module 130, intermediate half screen and right half screen is sent to memory 140, image processing module 130 is adopted in image
The data processing of intermediate half screen and right half screen is completed in the section vblank of acquisition means 10.
Since image collecting device 10 has fixed timing, it can substantially be divided into effective data intervals and the section vblank
Two parts, in the effective data intervals of image collecting device 10, the first data processing is corresponding by image processing module 130
Image, while in the section vblank of image collecting device 10, image processing module 130 must be from memory 140 successively
Reading other data and handling is corresponding image, otherwise when the raw image data of former frame is untreated complete, the original of next frame
Beginning image data has been sent, it may appear that the situation of frame losing.Effective data intervals and the section vblank can be according to practical feelings
Condition is adjusted, it is not limited here, for example, the speed that image collecting device 10 transmits raw image data is 20 frames/second, then
The time for transmitting a frame raw image data is exactly 50 milliseconds, may only have in this 50 milliseconds 30 milliseconds in transmission data, then 30
Millisecond is properly termed as effective data intervals, and remaining 20 milliseconds are properly termed as the section vblank.
In the present embodiment, image processing module 130, under the control of microcontroller 120 at least two parts number
The corresponding image of every partial data is obtained according to time-division processing is carried out, and cuts all repeated datas pair during time-division processing
The image answered is to obtain target image.Since at least two parts data include the first data and other numbers in addition to the first data
According to, then image processing module 130, after being also used to by the first data processing be corresponding image, in the control of microcontroller 120
Under be successively read from memory 140 other data and handle be corresponding image.For example, if raw image data is divided
For 2 panes, then after image processing module 130 completes the processing of left half screen, from being read in memory 140 from right half screen carries out
Reason;If raw image data is divided into 3 panes, after image processing module 130 completes the processing of left half screen, from depositing
Intermediate half screen is read in reservoir 140 to be handled, and after the processing of intermediate half screen is completed, right half is read from memory 140
Screen is handled.
Meanwhile image processing module 130 is during time-division processing raw image data, it is also necessary to cut in real time all
The corresponding image of repeated data, can thus obtain final target image.By image processing module 130 in this present embodiment into
Before row data processing, just has determined that the repeated data that adjacent two parts data include, be integrated in Fig. 2, Zuo Banping
Right side and intermediate half screen left side include the default repeated data width that data width is twice repeated data, intermediate half screen
Right side and right half screen left side include data width be twice default repeated data width repeated data, then by each portion
Divided data processing is after image, it is only necessary to be cut repeated data, since repeated data corresponds to two parts data
Adjacent image, then it is twice of default repeated data width that adjacent two parts image needs cut data width altogether
The repeated data of (padding num*2), that is, it is default repeated data width that every parts of images, which only needs to cut width,
The data of (padding num).For example, needing to cut default repeated data width (padding in Fig. 2, on the right side of Zuo Banping
Num data), the left and right side of intermediate half screen be required to cut the data of default repeated data width (padding num),
Need to cut the data of default repeated data width (padding num) on the left of right half screen.
In other words, image processing module 130 is also used under the control of microcontroller 120, corresponding according to the first data
Image and the corresponding image of other data processing timing and default repeated data width, it is corresponding to cut all repeated datas
Image is to obtain target image.For example, if raw image data is divided into 3 panes, image processing module 130 according to
Left half screen, intermediate half screen, right half screen order carry out image procossing, and cut all repetitions in real time during the treatment
The corresponding image of data, it is, left half screen is processed into presetting on the right side of image and crop left half screen by image processing module 130
The corresponding image of repeated data width data;After completing the processing of left half screen, intermediate half screen is processed into image and is cut
The corresponding image of default repeated data width data of intermediate half screen two sides;After completing the processing of intermediate half screen, by right half
Screen is processed into the corresponding image of default repeated data width data on the left of image and crop right half screen, and target figure can be obtained
Picture.It should be pointed out that crop left half screen on the right side of the corresponding image of default repeated data width data process and will be intermediate
Half screen be processed into image process be it is parallel, similarly, the default repeated data width data for cutting intermediate half screen two sides is corresponding
Image process and be also parallel by the process that right half screen is processed into image.
Meanwhile the process of the default corresponding image of repeated data width data is cut from every parts of images, can be from
Other images in addition to the corresponding image of default repeated data width data are obtained in every parts of images, for example, it is assumed that left half
The data width of screen is 1920, and presetting repeated data width is 120, then the default repeated data width number on the right side of crop left half screen
It can be according to the process of corresponding image and left half screen be processed into the corresponding figure of data for directly acquiring serial number 0~1800 after image
Picture, to the corresponding image of the data of serial number 1801~1920 without obtaining.
In the present embodiment, image processing module 130 are also used to obtain and at least one-to-one image of two parts data
Statistical information, and according to statistical information carry out 3A calculating, to adjust the image parameter of target image, so that target image reaches
Image under current scene is optimal.Since raw image data has been carried out split screen in this implementation, then when obtaining statistical information
It is also what split screen obtained, gets to merge again after split screen information and just obtained statistical information.
Referring to figure 3., Fig. 3 shows the flow chart of image processing method provided by the embodiment of the present invention.At the image
Reason method is applied to chip 100, which includes:
Step S1, data receiver 110 receive the raw image data that image collecting device 10 acquires.
In the present embodiment, image collecting device 10 can be camera, imaging sensor etc., and raw image data is figure
The big resolution ratio non-real-time data acquired as acquisition device 10.
Raw image data is divided at least two parts data according to preset rules by step S2, microcontroller 120,
In, adjacent two parts data include repeated data.
In the present embodiment, preset rules include preset data processing width and default repeated data width, microcontroller
120 handle width and default repeated data width according to preset data, and raw image data is divided at least two parts data.
At least two parts data include the first data and other data in addition to the first data for this, and data receiver 110 receives
The timing of one data is earlier than other data.For example, raw image data is divided into 3 panes, then the first data are Zuo Banping,
Other data are intermediate half screen and right half screen.
In the present embodiment, data receiver 110 is under the control of microcontroller 120, by least two parts after division
The first data transmission in data to image processing module 130, by other at least two parts data in addition to the first data
Data transmission is to memory 140.For example, raw image data is divided into 3 panes, then left half screen is sent to image procossing
Intermediate half screen and right half screen are sent to memory 140 by module 130, and image processing module 130 is in image collecting device 10
The data processing of intermediate half screen and right half screen is completed in the section vblank.
Step S3, image processing module 130 carry out at timesharing at least two parts data under the control of microcontroller 120
Reason obtains the corresponding image of every partial data, and cuts the corresponding image of all repeated datas during time-division processing to obtain
To target image.
In the present embodiment, since at least two parts data include the first data and other numbers in addition to the first data
According to after then the first data processing is corresponding image by image processing module 130, from depositing under the control of microcontroller 120
Being successively read other data in reservoir 140 and handling is corresponding image.For example, raw image data is divided into 3 panes,
After then image processing module 130 completes the processing of left half screen, intermediate half screen is read from memory 140 and is handled, and
After intermediate half screen processing is completed, right half screen is read from memory 140 and is handled.
In the present embodiment, image processing module 130 is during time-division processing raw image data, it is also necessary in real time
The corresponding image of all repeated datas is cut, final target image can be thus obtained.For example, raw image data is divided
For 3 panes, then image processing module 130 carries out image procossing according to the order of left half screen, intermediate half screen, right half screen, and
The corresponding image of all repeated datas is cut in treatment process in real time, it is, image processing module 130 handles left half screen
At the corresponding image of default repeated data width data on the right side of image and crop left half screen;Left half screen is being handled into completion
Afterwards, intermediate half screen is processed into image and cuts the corresponding image of default repeated data width data of intermediate half screen two sides;?
After the processing of intermediate half screen is completed, right half screen is processed into the default repeated data width number on the left of image and crop right half screen
According to corresponding image, target image can be obtained.Meanwhile the default repeated data width data on the right side of crop left half screen is corresponding
The process of image and by the process that intermediate half screen is processed into image be it is parallel, similarly, cut the default weight of intermediate half screen two sides
The process of the corresponding image of complex data width data and be also parallel by the process that right half screen is processed into image.
It should be pointed out that data receiver 110 can also be in microcontroller when carrying out image procossing using chip 100
Raw image data is first sent to memory 140 under 120 control;Later, microcontroller 120 is handled wide according to preset data
Degree and default repeated data width, are divided at least two parts data for raw image data, for example, if raw image data
3 panes are divided into, then include left half screen, intermediate half screen and right half screen three parts data;Next, image processing module 130
Raw image data is read from memory 140 under the control of microcontroller 120, and successively obtains at least two parts data,
For example, image processing module 130 first reads left half from memory 140 if raw image data is divided into 3 panes
Screen is handled, and after the processing of left half screen is completed, intermediate half screen is read from memory 140 and is handled, in intermediate half screen
It handles and completes and then read right half screen from memory 140 to be handled;Meanwhile image processing module 130 according to at least
The processing timing of the one-to-one image of two parts data and default repeated data width, cut the corresponding figure of all repeated datas
Picture is to obtain target image, for example, image processing module 130 is according to a left side if raw image data is divided into 3 panes
Half screen, intermediate half screen, right half screen order carry out image procossing, and cut all repeat numbers in real time during the treatment
According to corresponding image, it is, left half screen is processed into the default weight on the right side of image and crop left half screen by image processing module 130
The corresponding image of complex data width data;After completing the processing of left half screen, intermediate half screen is processed into image and cutting
Between half screen two sides the corresponding image of default repeated data width data;After completing the processing of intermediate half screen, by right half screen
The corresponding image of default repeated data width data being processed on the left of image and crop right half screen, can be obtained target image.
Second embodiment
Referring to figure 4., Fig. 4 shows the structural schematic diagram of chip 200 provided in an embodiment of the present invention.Chip 200 and figure
As the electrical connection of acquisition device 10, chip 200 includes data receiver 110, microcontroller 120, image processing module 130 and storage
Device 140, data receiver 110 are electrically connected with image collecting device 10, at microcontroller 120 and data receiver 110 and image
Reason module 130 be electrically connected, different from the first embodiment, in chip 200 provided in this embodiment data receiver 110 with
Memory 140 is electrically connected, and memory 140 is electrically connected with image processing module 130.
In the present embodiment, data receiver 110 is electrically connected with image collecting device 10, for receiving image collecting device
The raw image data of 10 acquisitions.Raw image data is the big resolution ratio non-real-time data that image collecting device 10 acquires.Number
According to receiving end 110, it is also used to that raw image data is sent to memory 140 under the control of microcontroller 120.
In the present embodiment, microcontroller 120, for raw image data to be divided at least two according to preset rules
Divided data, wherein adjacent two parts data include repeated data.Preset rules include preset data processing width and default weight
Complex data width, that is, microcontroller 120 is also used to handle width and default repeated data width according to preset data, will be original
Image data is divided at least two parts data.For example, if raw image data is divided into 2 panes, including left half screen
With right half screen two parts data;If raw image data is divided into 3 panes, including left half screen, intermediate half screen and right half
Shield three parts data.Preset data handles the determination process of width and default repeated data width referring to first embodiment, herein
It repeats no more.
In the present embodiment, image processing module 130, under the control of microcontroller 120 at least two parts number
The corresponding image of every partial data is obtained according to time-division processing is carried out, and cuts all repeated datas pair during time-division processing
The image answered is to obtain target image.That is, image processing module 130, be also used under the control of microcontroller 120 from
Raw image data is read in memory 140, and successively obtains at least two parts data, for example, if raw image data quilt
2 panes are divided into, then image processing module 130 first reads left half screen from memory 140 and handled, and left half screen is handled
Complete and then read right half screen from memory 140 to be handled;If raw image data is divided into 3 panes,
Image processing module 130 first reads left half screen from memory 140 and is handled, after the processing of left half screen is completed, from storage
Intermediate half screen is read in device 140 to be handled, and completes and then read from memory 140 right half screen in the processing of intermediate half screen
It is handled.
Meanwhile image processing module 130 is during time-division processing raw image data, it is also necessary to cut in real time all
The corresponding image of repeated data, can thus obtain final target image.That is, image processing module 130, is also used to
According to the processing timing and default repeat number at least one-to-one image of two parts data under the control of microcontroller 120
According to width, the corresponding image of all repeated datas is cut to obtain target image.For example, if raw image data is divided into
3 panes, then image processing module 130 carries out image procossing according to the order of left half screen, intermediate half screen, right half screen, and is locating
The corresponding image of all repeated datas is cut during reason in real time, it is, image processing module 130 handles left half screen
At the corresponding image of default repeated data width data on the right side of image and crop left half screen;Left half screen is being handled into completion
Afterwards, intermediate half screen is processed into image and cuts the corresponding image of default repeated data width data of intermediate half screen two sides;?
After the processing of intermediate half screen is completed, right half screen is processed into the default repeated data width number on the left of image and crop right half screen
According to corresponding image, target image can be obtained.
Referring to figure 3., Fig. 3 shows the flow chart of image processing method provided by the embodiment of the present invention.At the image
Reason method is applied to chip 200, which includes:
Step S1, data receiver 110 receive the raw image data that image collecting device 10 acquires.
In the present embodiment, image collecting device 10 can be camera, imaging sensor etc., and raw image data is figure
The big resolution ratio non-real-time data acquired as acquisition device 10.
Raw image data is divided at least two parts data according to preset rules by step S2, microcontroller 120,
In, adjacent two parts data include repeated data.
In the present embodiment, preset rules include preset data processing width and default repeated data width, microcontroller
120 handle width and default repeated data width according to preset data, and raw image data is divided at least two parts data.
For example, raw image data is divided into 3 panes, then it include left half screen, intermediate half screen and right half screen three parts data.
Step S3, image processing module 130 carry out at timesharing at least two parts data under the control of microcontroller 120
Reason obtains the corresponding image of every partial data, and cuts the corresponding image of all repeated datas during time-division processing to obtain
To target image.
In the present embodiment, image processing module 130 is read from memory 140 former under the control of microcontroller 120
Beginning image data, and at least two parts data are successively obtained, for example, raw image data is divided into 3 panes, then at image
Reason module 130 first reads left half screen from memory 140 and is handled, after the processing of left half screen is completed, from memory 140
It reads intermediate half screen to be handled, be completed in the processing of intermediate half screen and then from being read in memory 140 from right half screen carries out
Reason.Meanwhile image processing module 130 is during time-division processing raw image data, it is also necessary to cut all repetitions in real time
The corresponding image of data, can thus obtain final target image.For example, raw image data is divided into 3 panes, then
Image processing module 130 carries out image procossing according to the order of left half screen, intermediate half screen, right half screen, and during processing
The corresponding image of all repeated datas is cut in real time, it is, left half screen is processed into image and cut out by image processing module 130
Cut the corresponding image of default repeated data width data on the right side of left half screen;After completing the processing of left half screen, by intermediate half
Screen is processed into image and cuts the corresponding image of default repeated data width data of intermediate half screen two sides;At by intermediate half screen
After reason is completed, right half screen is processed into the corresponding figure of default repeated data width data on the left of image and crop right half screen
Target image can be obtained in picture.
Chip and image processing method provided in an embodiment of the present invention, have the advantages that
Firstly, for the non real-time raw image data of big resolution ratio, according to preset data processing width and default repetition
Raw image data is divided at least two parts data by data width, so that after 130 pairs of image processing module divisions at least
Two parts data carry out time-division processing, and preset data processing width and default repeated data width can be specified freely, to solve
Except chip internal rows caching can handle chip the limitation of image maximum width, so that the expense of chip interior row caching is reduced,
Under same process level condition, chip area, save the cost can be reduced to a certain extent.
Secondly, carrying out time-division processing by increasing repeated data processing at least two parts data and obtaining every partial data
Corresponding image, and all repeated datas corresponding image is cut during time-division processing, target image can be obtained, from
And reduce the matching and calibration movement during image mosaic;Meanwhile the width by the way that repeated data is arranged is greater than at image
The filter radius in module 130 is managed, the image boundary that image mosaic after split screen may introduce at split screen can be eliminated, guaranteed
Target image smooth transition, and then guarantee that picture quality is not lost.
In conclusion a kind of chip provided in an embodiment of the present invention and image processing method, the chip include microcontroller
Device and the data receiver and image processing module being electrically connected with microcontroller;Data receiver, for receiving Image Acquisition
The raw image data of device acquisition;Microcontroller, for raw image data to be divided at least two according to preset rules
Divided data, wherein adjacent two parts data include repeated data;Image processing module, under the control of the micro-controller
Time-division processing is carried out at least two parts data and obtains the corresponding image of every partial data, and is cut during time-division processing
The corresponding image of all repeated datas is to obtain target image.The embodiment of the present invention uses time-division processing mode time-sharing multiplex
The hardware resource of chip realizes image procossing, can effectively reduce the expense of chip interior row caching, saves cost, meanwhile,
The corresponding image of all repeated datas is cut during image mosaic to be effectively ensured to guarantee the smooth transition of stitching image
Picture quality.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
Claims (10)
1. a kind of chip, which is characterized in that the chip includes microcontroller and the data that are electrically connected with the microcontroller
Receiving end and image processing module;
The data receiver, for receiving the raw image data of image acquisition device;
The microcontroller, for the raw image data to be divided at least two parts data according to preset rules, wherein
Adjacent two parts data include repeated data;
Described image processing module, for being carried out at timesharing under the control of the microcontroller at least two parts data
Reason obtains the corresponding image of every partial data, and all repeated datas corresponding image is cut during time-division processing
To obtain target image.
2. chip as described in claim 1, which is characterized in that the chip further includes memory, and the data receiver is same
When be electrically connected with the memory and described image processing module, described image processing module is electrically connected with the memory;
The data receiver is also used to the first number at least two parts data under the control of the microcontroller
According to be sent to described image processing module, by least two parts data in addition to first data other data pass
It send to the memory;
Described image processing module, be also used to by first data processing be corresponding image after, in the microcontroller
Control under to be successively read other described data from the memory and handle be corresponding image.
3. chip as claimed in claim 2, which is characterized in that the preset rules include preset data processing width and preset
Repeated data width;
The microcontroller is also used to handle width and default repeated data width according to preset data, by the original image
Data are divided at least two parts data, at least two parts data include the first data and except first data it
Other outer data.
4. chip as claimed in claim 3, which is characterized in that described image processing module is also used in the microcontroller
Under control, according to the processing timing of the corresponding image of first data and the corresponding image of other described data and described default
Repeated data width cuts the corresponding image of all repeated datas to obtain target image.
5. chip as described in claim 1, which is characterized in that the chip further includes memory, and the data receiver is same
When be electrically connected with the memory and described image processing module, described image processing module is electrically connected with the memory;
The data receiver is also used under the control of the microcontroller for the raw image data being sent to described deposit
Reservoir;
Described image processing module is also used to read the original graph from the memory under the control of the microcontroller
As data, and successively obtain at least two parts data.
6. chip as described in claim 1, which is characterized in that the chip further includes memory, the data receiver with
The memory electrical connection, the memory are electrically connected with described image processing module;
The data receiver is also used under the control of the microcontroller for the raw image data being sent to described deposit
Reservoir;
Described image processing module is also used to read the original image from the memory under the control of the controller
Data, and successively obtain at least two parts data.
7. such as chip described in claim 5 or 6, which is characterized in that the preset rules include preset data processing width and
Default repeated data width;
The microcontroller is also used to handle width and default repeated data width according to preset data, to the original image
Data are divided, and at least two parts data are obtained.
8. chip as claimed in claim 7, which is characterized in that described image processing module is also used in the microcontroller
Under control, according to wide with the processing timing and the default repeated data of the one-to-one image of at least two parts data
Degree cuts the corresponding image of all repeated datas to obtain target image.
9. chip as described in claim 1, which is characterized in that described image processing module is also used to obtain and described at least two
The statistical information of the one-to-one image of partial data, and 3A calculating is carried out according to the statistical information, to adjust the target
The image parameter of image.
10. a kind of image processing method, which is characterized in that be applied to the described in any item chips of claim 1-9, described image
Processing method includes:
The data receiver receives the raw image data of image acquisition device;
The raw image data is divided at least two parts data according to preset rules by the microcontroller, wherein adjacent
Two parts data include repeated data;
Described image processing module carries out time-division processing at least two parts data under the control of the microcontroller and obtains
The corresponding image of all repeated datas is cut to the corresponding image of every partial data, and during time-division processing to obtain
To target image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811564570.8A CN109640045B (en) | 2018-12-20 | 2018-12-20 | Chip and image processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811564570.8A CN109640045B (en) | 2018-12-20 | 2018-12-20 | Chip and image processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109640045A true CN109640045A (en) | 2019-04-16 |
CN109640045B CN109640045B (en) | 2021-05-18 |
Family
ID=66075978
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811564570.8A Active CN109640045B (en) | 2018-12-20 | 2018-12-20 | Chip and image processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109640045B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4089254B2 (en) * | 2002-03-13 | 2008-05-28 | 富士ゼロックス株式会社 | Image processing device |
US7616813B2 (en) * | 2004-08-18 | 2009-11-10 | Ricoh Company, Ltd. | Background area extraction in document layout analysis |
CN105988469A (en) * | 2015-02-10 | 2016-10-05 | 苏州宝时得电动工具有限公司 | Automatic walking equipment |
CN106791621A (en) * | 2016-12-06 | 2017-05-31 | 深圳市元征科技股份有限公司 | The monitored picture forming method and system of supervising device |
CN108475416A (en) * | 2017-06-30 | 2018-08-31 | 深圳市大疆创新科技有限公司 | The method and apparatus for handling image |
-
2018
- 2018-12-20 CN CN201811564570.8A patent/CN109640045B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4089254B2 (en) * | 2002-03-13 | 2008-05-28 | 富士ゼロックス株式会社 | Image processing device |
US7616813B2 (en) * | 2004-08-18 | 2009-11-10 | Ricoh Company, Ltd. | Background area extraction in document layout analysis |
CN105988469A (en) * | 2015-02-10 | 2016-10-05 | 苏州宝时得电动工具有限公司 | Automatic walking equipment |
CN106791621A (en) * | 2016-12-06 | 2017-05-31 | 深圳市元征科技股份有限公司 | The monitored picture forming method and system of supervising device |
CN108475416A (en) * | 2017-06-30 | 2018-08-31 | 深圳市大疆创新科技有限公司 | The method and apparatus for handling image |
Also Published As
Publication number | Publication date |
---|---|
CN109640045B (en) | 2021-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170263198A1 (en) | System and method for adjusting luminance of a display screen | |
CN103118247B (en) | Video data handling procedure and device, video cascade system and chip | |
US20150092982A1 (en) | Image processing apparatus and control method thereof | |
CN103379351A (en) | Video processing method and video processing device | |
CN1218561C (en) | Noise filtering image sequence | |
CN108510540A (en) | Stereoscopic vision video camera and its height acquisition methods | |
CN104767913B (en) | A kind of adaptive video denoising system of contrast | |
CN107977989A (en) | A kind of method and apparatus of definite image shift amount | |
CN108053438A (en) | Depth of field acquisition methods, device and equipment | |
CN101753799A (en) | Median filtering method and median filtering circuit using the same | |
CN1663697A (en) | Visual data processing system for fruit external appearance quality online detection technology | |
CN109640045A (en) | Chip and image processing method | |
CN104506867B (en) | Sample point self-adapted offset parameter method of estimation and device | |
CN104182940B (en) | Blurred image restoration method and system | |
CN105959512B (en) | 3D noise reduction implementation method and device | |
CN110956598B (en) | Ordering system and ordering method suitable for median filtering of images | |
CN110827355B (en) | Moving target rapid positioning method and system based on video image coordinates | |
CN110620874A (en) | Image processing method for parallel driving | |
CN109300097A (en) | Multi-sequence image fusion method based on adaptive piecemeal | |
CN103796007A (en) | Automatic adjustment method and system for naked-eye stereoscopic display device | |
CN107197190A (en) | The generation method and device of a kind of video clock | |
CN110809113B (en) | Infrared imaging automatic focusing system based on FPGA | |
CN106657996B (en) | Show the performance parameter detection method and system of equipment | |
CN106961555B (en) | Data processing method and device | |
CN112561992A (en) | Position determination method and device, storage medium and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |