CN102497488A - Method and device for removing image black margins - Google Patents
Method and device for removing image black margins Download PDFInfo
- Publication number
- CN102497488A CN102497488A CN2011103913323A CN201110391332A CN102497488A CN 102497488 A CN102497488 A CN 102497488A CN 2011103913323 A CN2011103913323 A CN 2011103913323A CN 201110391332 A CN201110391332 A CN 201110391332A CN 102497488 A CN102497488 A CN 102497488A
- Authority
- CN
- China
- Prior art keywords
- pixel
- row
- data
- accumulated value
- threshold values
- 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.)
- Pending
Links
Images
Landscapes
- Image Input (AREA)
Abstract
The invention provides a method for removing image black margins. The method comprises the following steps: carrying out row-field scanning on a digital image signal, and acquiring row data and column data of an image; carrying out statistics on a pixel accumulated value of each pixel point row by row and carrying out statistics on a pixel accumulated value of each pixel point column by column; successively comparing a preset pixel threshold value with the pixel accumulated value of each row, and determining that the data is valid when the pixel accumulated value of a certain row is greater than the preset pixel threshold value; successively comparing a preset pixel threshold value with the pixel accumulated value of each column, and determining that the data is valid when the pixel accumulated value of a certain column is greater than the preset pixel threshold value; acquiring the initial position of an effective signal of the data; and outputting the image data according to the initial position of the effective signal. The invention also provides a device for removing image black margins, and the device can be used for improving the removal reliability and removal efficiency of the image black margins.
Description
Technical field
The present invention relates to image and show the field, be specifically related to a kind of image black surround and remove method and apparatus.
Background technology
Analog picture signal does not have data effective index signal (DE) in transmission course at present, therefore when image restoring, confirms the position of DE often according to existing video standard.But owing to reasons such as delay decay in the analog signal transmission process, thereby cause data-bias, the position of DE does not match in coming with video standard, so when showing, occur black surround around the image.Just need the position of adjustment DE to come the removal of images black surround for this phenomenon.
The technical method of existing removal of images black surround has: the one, confirm the position of DE through first active data in the search data, and the shortcoming of this method is to receive noise jamming easily, causes DE position probing mistake; The 2nd, go to be provided with the DE position by software according to video standard, and travel through the DE position within the specific limits, up to finding the true picture original position, the shortcoming of this method is that search time is long, speed is slow.
Summary of the invention
The present invention proposes a kind of image black surround removal method, can improve reliability and removal efficient that the image black surround is removed.
Based on above-mentioned purpose, the technical scheme of employing is:
A kind of image black surround removal method comprises step:
(1) data image signal is carried out row-field scanning, obtain the line data and the columns certificate of image;
(2) add up the pixel accumulated value of each pixel line by line, and the pixel accumulated value that pursues each pixel of row statistics;
(3) the pixel accumulated value of preset pixel threshold values with each row compared one by one,, judge that this line data is effective when certain capable pixel accumulated value during greater than said preset pixel threshold values;
(4) the said preset pixel threshold values and the pixel accumulated value of each row are compared one by one,, judge that this columns is according to effectively when the pixel accumulated value of certain row during greater than said preset pixel threshold values;
(5) obtain the original position of data useful signal according to step (3) and (4);
(6) according to the original position of said data useful signal, output image data.
The inventive method adds up earlier the pixel accumulated value of each pixel line by line and by the pixel accumulated value that is listed as each pixel of statistics, the pixel accumulated value with each each row of row compares with the pixel threshold values of presetting one by one again; If the pixel accumulated value, is then thought corresponding row data or columns greater than preset pixel threshold values according to effective, thereby obtain the location parameter of data useful signal, then according to data useful signal output image data; As long as have a small amount of non-black data just can correctly detect the DE position in the ranks,, and can reduce the influence of various burst noises like this, prevent erroneous judgement, the raising reliability the view data less-restrictive; And can in the time, find the location parameter of data useful signal at a two field picture, improved the efficient that black surround is removed.
The present invention proposes a kind of image black surround removal device, can improve reliability and removal efficient that the image black surround is removed.
Based on above-mentioned purpose, the technical scheme of employing is:
A kind of image black surround removal device comprises:
Scanning element is used for data image signal is carried out row-field scanning, obtains the line data and the columns certificate of image;
Statistic unit is used for adding up line by line the pixel accumulated value of each pixel, and the pixel accumulated value that pursues each pixel of row statistics;
Comparing unit is used for the pixel accumulated value of preset pixel threshold values with each row compared one by one, when certain capable pixel accumulated value during greater than said preset pixel threshold values, judges that this line data is effective; And the said preset pixel threshold values and the pixel accumulated value of each row compared one by one, when the pixel accumulated value of certain row during, judge that this columns is according to effectively greater than said preset pixel threshold values;
Acquiring unit is used for the original position according to the comparative result acquisition data useful signal of said comparing unit;
Output unit is used for the original position according to the data useful signal, output image data.
Apparatus of the present invention add up earlier the pixel accumulated value of each pixel line by line and by the pixel accumulated value that is listed as each pixel of statistics, the pixel accumulated value with each each row of row compares with the pixel threshold values of presetting one by one again; If the pixel accumulated value, is then thought corresponding row data or columns greater than preset pixel threshold values according to effective, thereby obtain the location parameter of data useful signal, then according to data useful signal output image data; As long as have a small amount of non-black data just can correctly detect the DE position in the ranks,, and can reduce the influence of various burst noises like this, prevent erroneous judgement, the raising reliability the view data less-restrictive; And can in the time, find the location parameter of data useful signal at a two field picture, improved the efficient that black surround is removed.
Description of drawings
Fig. 1 is an embodiment flow chart of the inventive method;
Fig. 2 is a structural representation of apparatus of the present invention;
Fig. 3 is another structural representation of apparatus of the present invention.
Embodiment
For ease of understanding, set forth the present invention below in conjunction with accompanying drawing.
Please refer to Fig. 1, the present invention proposes a kind of image black surround removal method, comprises step:
101, the scanning digital view data is obtained raw column data;
Data image signal is carried out row-field scanning, obtain the line data and the columns certificate of image.
102, add up the pixel accumulated value of each row and each row;
Add up the pixel accumulated value of each pixel line by line, and add up the pixel accumulated value of each pixel by row.
103, compare with preset pixel threshold values line by line by row, obtain data useful signal location parameter;
The pixel accumulated value of preset pixel threshold values with each row compared one by one,, judge that this line data is effective when pixel accumulated value of certain row during greater than preset pixel threshold values; The preset pixel threshold values and the pixel accumulated value of each row are compared one by one,, judge that this columns is according to effective when the pixel accumulated value of certain row during greater than preset pixel threshold values; Obtain the original position of data useful signal.
104, according to data active position parameter output image data.
According to the original position of data useful signal, output image data.
The inventive method adds up earlier the pixel accumulated value of each pixel line by line and by the pixel accumulated value that is listed as each pixel of statistics, the pixel accumulated value with each each row of row compares with the pixel threshold values of presetting one by one again; If the pixel accumulated value, is then thought corresponding row data or columns greater than preset pixel threshold values according to effective, thereby obtain the location parameter of data useful signal, then according to data useful signal output image data; As long as have a small amount of non-black data just can correctly detect the DE position in the ranks,, and can reduce the influence of various burst noises like this, prevent erroneous judgement, the raising reliability the view data less-restrictive; And can in the time, find the location parameter of data useful signal at a two field picture, improved the efficient that black surround is removed.
Wherein, in step 103, when comparing with preset pixel threshold values line by line, can begin from any delegation; When comparing with preset pixel threshold values by row, can be from any row beginning; In order to obtain the location parameter of data useful signal faster, preferably, compare with preset pixel threshold values line by line since first row; And by the pixel threshold values that is listed as and presets relatively since first row.
In above execution mode, if input is analog picture signal, then need to convert analog picture signal to data image signal, carry out above-mentioned 101 steps again.
For example, with the pixel accumulated value of all pixels of the 1st row and preset pixel threshold relatively, if less than preset pixel threshold, then think the 1st capable be not the image valid data; Continue relatively the 2nd row; The 3rd row ... if, find to think then that greater than preset pixel threshold the 30th row is the image valid data always relatively to the 30th when row; Thereby think that the 30th row is the initial row position of DE; Continue relatively to go down, when the accumulated value of finding certain delegation again less than preset pixel threshold, then this moment, corresponding line number was the end line position of DE.Adopt the comparative approach identical for columns according to handling, each row accumulated value and threshold value are done comparison, up to the row original position that finds DE with line data.
Then introduce a kind of image black surround removal device, please refer to Fig. 2, comprising:
Scanning element T1 is used for data image signal is carried out row-field scanning, obtains the line data and the columns certificate of image;
Statistic unit T2 is used for adding up line by line the pixel accumulated value of each pixel, and the pixel accumulated value that pursues each pixel of row statistics;
Comparing unit T3 is used for the pixel accumulated value of preset pixel threshold values with each row compared one by one, when pixel accumulated value of certain row during greater than preset pixel threshold values, judges that this line data is effective; And the preset pixel threshold values and the pixel accumulated value of each row compared one by one, when the pixel accumulated value of certain row during, judge that this columns is according to effective greater than preset pixel threshold values;
Acquiring unit T4 is used for the original position according to the comparative result acquisition data useful signal of comparing unit;
Output unit T5 is used for the original position according to the data useful signal, output image data.
Apparatus of the present invention add up earlier the pixel accumulated value of each pixel line by line and by the pixel accumulated value that is listed as each pixel of statistics, the pixel accumulated value with each each row of row compares with the pixel threshold values of presetting one by one again; If the pixel accumulated value, is then thought corresponding row data or columns greater than preset pixel threshold values according to effective, thereby obtain the location parameter of data useful signal, then according to data useful signal output image data; As long as have a small amount of non-black data just can correctly detect the DE position in the ranks,, and can reduce the influence of various burst noises like this, prevent erroneous judgement, the raising reliability the view data less-restrictive; And can in the time, find the location parameter of data useful signal at a two field picture, improved the efficient that black surround is removed.
Wherein, comparing unit T3 compares with preset pixel threshold values since first row line by line; Comparing unit T3 since first row by the pixel threshold values that is listed as and presets relatively.
Please refer to Fig. 3, above-mentioned image black surround removal device also comprises:
Converting unit T6 is used for converting the analog picture signal of input to data image signal.
Above embodiment of the present invention does not constitute the qualification to protection range of the present invention.Any modification of within spirit of the present invention and principle, being done, be equal to replacement and improvement etc., all should be included within the claim protection range of the present invention.
Claims (8)
1. an image black surround removal method is characterized in that, comprises step:
(1) data image signal is carried out row-field scanning, obtain the line data and the columns certificate of image;
(2) add up the pixel accumulated value of each pixel line by line, and the pixel accumulated value that pursues each pixel of row statistics;
(3) the pixel accumulated value of preset pixel threshold values with each row compared one by one,, judge that this line data is effective when certain capable pixel accumulated value during greater than said preset pixel threshold values;
(4) the said preset pixel threshold values and the pixel accumulated value of each row are compared one by one,, judge that this columns is according to effectively when the pixel accumulated value of certain row during greater than said preset pixel threshold values;
(5) obtain the original position of data useful signal according to step (3) and (4);
(6) according to the original position of said data useful signal, output image data.
2. image black surround removal method according to claim 1 is characterized in that,
In said step (3), compare with said preset pixel threshold values line by line since first row.
3. image black surround removal method according to claim 1 is characterized in that,
In said step (4), compare by row and said preset pixel threshold values since first row.
4. according to each described image black surround removal method of claim 1 to 3, it is characterized in that,
In said step (1) before, input be analog picture signal the time, earlier convert analog picture signal to data image signal.
5. an image black surround removal device is characterized in that, comprising:
Scanning element is used for data image signal is carried out row-field scanning, obtains the line data and the columns certificate of image;
Statistic unit is used for adding up line by line the pixel accumulated value of each pixel, and the pixel accumulated value that pursues each pixel of row statistics;
Comparing unit is used for the pixel accumulated value of preset pixel threshold values with each row compared one by one, when certain capable pixel accumulated value during greater than said preset pixel threshold values, judges that this line data is effective; And the said preset pixel threshold values and the pixel accumulated value of each row compared one by one, when the pixel accumulated value of certain row during, judge that this columns is according to effectively greater than said preset pixel threshold values;
Acquiring unit is used for the original position according to the comparative result acquisition data useful signal of said comparing unit;
Output unit is used for the original position according to said data useful signal, output image data.
6. image black surround removal device according to claim 5 is characterized in that,
Said comparing unit compares with said preset pixel threshold values since first row line by line.
7. image black surround removal device according to claim 5 is characterized in that,
Said comparing unit compares by row and said preset pixel threshold values since first row.
8. according to each described image black surround removal device of claim 5 to 7, it is characterized in that said image black surround removal device also comprises:
Converting unit is used for converting the analog picture signal of input to data image signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011103913323A CN102497488A (en) | 2011-11-30 | 2011-11-30 | Method and device for removing image black margins |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011103913323A CN102497488A (en) | 2011-11-30 | 2011-11-30 | Method and device for removing image black margins |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102497488A true CN102497488A (en) | 2012-06-13 |
Family
ID=46189272
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011103913323A Pending CN102497488A (en) | 2011-11-30 | 2011-11-30 | Method and device for removing image black margins |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102497488A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102984437A (en) * | 2012-12-17 | 2013-03-20 | 广东威创视讯科技股份有限公司 | Removal method and device for analog video signal letter box based on FPGA |
CN104361335A (en) * | 2014-11-03 | 2015-02-18 | 山西同方知网数字出版技术有限公司 | Method for automatically removing black edges of scanning images |
CN104915944A (en) * | 2014-03-14 | 2015-09-16 | 北京风行在线技术有限公司 | Method and device for determining black margin position information of video |
CN105376485A (en) * | 2015-11-09 | 2016-03-02 | 南京大学 | Bidirectional real-time vehicle chassis image synthetic method based on linear array type camera |
CN105488821A (en) * | 2015-11-20 | 2016-04-13 | 厦门雅迅网络股份有限公司 | Image center point correction method and apparatus |
CN110223309A (en) * | 2019-05-20 | 2019-09-10 | 深圳新视智科技术有限公司 | Edge detection method, device, computer equipment and storage medium |
CN111652237A (en) * | 2019-03-04 | 2020-09-11 | 海信视像科技股份有限公司 | OSD image detection method and device in video image and terminal equipment |
CN112995535A (en) * | 2021-02-05 | 2021-06-18 | 北京百度网讯科技有限公司 | Method, apparatus, device and storage medium for processing video |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008072753A (en) * | 1998-12-24 | 2008-03-27 | Ricoh Co Ltd | Image reading apparatus, method for detecting black pixel, and method for detecting blank sheet of original |
CN101751568A (en) * | 2008-12-12 | 2010-06-23 | 汉王科技股份有限公司 | ID No. locating and recognizing method |
CN102111640A (en) * | 2010-11-30 | 2011-06-29 | 广东威创视讯科技股份有限公司 | Effective image area detection method and system |
-
2011
- 2011-11-30 CN CN2011103913323A patent/CN102497488A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008072753A (en) * | 1998-12-24 | 2008-03-27 | Ricoh Co Ltd | Image reading apparatus, method for detecting black pixel, and method for detecting blank sheet of original |
CN101751568A (en) * | 2008-12-12 | 2010-06-23 | 汉王科技股份有限公司 | ID No. locating and recognizing method |
CN102111640A (en) * | 2010-11-30 | 2011-06-29 | 广东威创视讯科技股份有限公司 | Effective image area detection method and system |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102984437A (en) * | 2012-12-17 | 2013-03-20 | 广东威创视讯科技股份有限公司 | Removal method and device for analog video signal letter box based on FPGA |
CN104915944A (en) * | 2014-03-14 | 2015-09-16 | 北京风行在线技术有限公司 | Method and device for determining black margin position information of video |
CN104915944B (en) * | 2014-03-14 | 2018-08-07 | 北京风行在线技术有限公司 | A kind of method and apparatus for determining the black surround location information of video |
CN104361335A (en) * | 2014-11-03 | 2015-02-18 | 山西同方知网数字出版技术有限公司 | Method for automatically removing black edges of scanning images |
CN104361335B (en) * | 2014-11-03 | 2017-07-07 | 山西同方知网数字出版技术有限公司 | A kind of processing method that black surround is automatically removed based on scan image |
CN105376485A (en) * | 2015-11-09 | 2016-03-02 | 南京大学 | Bidirectional real-time vehicle chassis image synthetic method based on linear array type camera |
CN105488821A (en) * | 2015-11-20 | 2016-04-13 | 厦门雅迅网络股份有限公司 | Image center point correction method and apparatus |
CN111652237A (en) * | 2019-03-04 | 2020-09-11 | 海信视像科技股份有限公司 | OSD image detection method and device in video image and terminal equipment |
CN111652237B (en) * | 2019-03-04 | 2023-08-25 | 海信视像科技股份有限公司 | OSD image detection method and device in video image and terminal equipment |
CN110223309A (en) * | 2019-05-20 | 2019-09-10 | 深圳新视智科技术有限公司 | Edge detection method, device, computer equipment and storage medium |
CN112995535A (en) * | 2021-02-05 | 2021-06-18 | 北京百度网讯科技有限公司 | Method, apparatus, device and storage medium for processing video |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102497488A (en) | Method and device for removing image black margins | |
US10685997B2 (en) | Solid-state imaging apparatus and imaging apparatus | |
CN1130069C (en) | False contour correcting apparatus and method | |
CN101572826B (en) | Ultrasonic video display device and method | |
CN1797534A (en) | Information processing device for relaying streaming data | |
US10812748B2 (en) | Apparatus, system, and moving object | |
RU2014137122A (en) | IMAGE CAPTURE DEVICE, IMAGE CAPTURE SYSTEM AND CONTROL METHOD FOR IMAGE CAPTURE DEVICE | |
US20220182526A1 (en) | Control device, control method and non-transitory computer readable storage medium | |
CN105450908A (en) | Method and device for removing black edge from video image | |
KR101805629B1 (en) | Method and apparatus for processing image according to a condition of the image | |
US20110013689A1 (en) | Digital signal receiver | |
CN102984437A (en) | Removal method and device for analog video signal letter box based on FPGA | |
US8165421B2 (en) | Method and apparatus for image processing by using stored image | |
CN105430382A (en) | Method and device for detecting black edge of video image | |
CN102202025B (en) | Method for pulse interference detection and elimination | |
JP2007221407A (en) | Video processing device, method and program | |
US8559526B2 (en) | Apparatus and method for processing decoded images | |
CN111479078B (en) | Image sensor chip, electronic device and method for operating image sensor chip | |
JP4309449B2 (en) | Noise reduction circuit, noise reduction method, and video apparatus | |
US20200021776A1 (en) | Methods and devices for compensating sag effect | |
JP2010206790A (en) | Method and device for filtering digital signal, and image alignment method | |
US8203651B2 (en) | Video signal synchronization | |
US9826193B2 (en) | Apparatus and method of converting image signal | |
KR101444842B1 (en) | Control method of monitoring camera and monitoring camera adopting the same | |
CN1722814B (en) | Preventing picture jitter in a digitized video signal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120613 |