Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to find biggest white zone in an scanned image

Hi all,

I have a project and I'm stuck... can you please help me to move on?

I'm scanning some documents for a client and I have to apply a software barcode on the first page of the documents, but without covering information ... so I have to find the biggest white zone on the image.

If it's important, I'm scanning in B&W (binary).

I'll upload an example to understand what I mean. The red zone seems to be the biggest white zone in this image and I want to put the barcode in the middle. What I need is to find the coordinates of the white zone.

example

How to find biggest white zone in an scanned image

Hi all,

I have a project and I'm stuck... can you please help me to move on?

I'm scanning some documents for a client and I have to apply a software barcode on the first page of the documents, but without covering information ... so I have to find the biggest white zone on the image.

If it's important, I'm scanning in B&W (binary).

I'll upload an example to understand what I mean. The red zone seems to be the biggest white zone in this image and I want to put the barcode in the middle. What I need is to find the coordinates of the white zone.zone. The original image is down below.

example

Original image:

original

How to find biggest white zone in an scanned image

Hi all,

I have a project and I'm stuck... can you please help me to move on?

I'm scanning some documents for a client and I have to apply a software barcode on the first page of the documents, but without covering information ... so I have to find the biggest white zone on the image.

If it's important, I'm scanning in B&W (binary).

I'll upload an example to understand what I mean. The red zone seems to be the biggest white zone in this image and I want to put the barcode in the middle. What I need is to find the coordinates of the white zone. The original image is down below.

example

Original image:

original