LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get percentage of amount filled from image

I want to know if it is possible to get the percentage of how much a tank is filled with an image?
0 Kudos
Message 1 of 8
(3,675 Views)

What kind of image do you refer to?

You are aware that there is a "tank" control available in LV? Simply pass the percentage value to the tank and make sure it scales from 0 - 100.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 8
(3,660 Views)
What I wish to do is take an image from a tank, for example, and then obtain the percentage of how much of the tank is filled, just by using the picture taken from the tank as an input.
0 Kudos
Message 3 of 8
(3,652 Views)

That is a complete different task.

You can use IMAQ (Vision module) to analyze images. However, you have to create an application and "teach" it what you are looking for.

 

Biggest obstacles:

- Is the level of filling something you can clearly identify in the image? Is it the same for all levels?

- You want a %-age of filling: Tanks are not necessarily "linear". That means if the level of filling is at about 50% of the height of the tank, it still may fill 60% of the volume of the tank.

 

It would be easier to have some kind of filling level measurment in the tank directly. There are pretty good ones available for different environments (e.g. toxic, high temperature, ...) which usually work with capacity measurements.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 8
(3,646 Views)
Is there a way I could measure the height of the liquid and then divide that by the total height of the tank, that I would also need to measure with the image, and then multiply that by 100 to get the percentage?
0 Kudos
Message 5 of 8
(3,639 Views)

Hi Nando,

 

your calculation seems ok - as long as your tank has the same cross area for the whole height…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(3,636 Views)

Do you have example images you can post? this helps us to understand what you are facing....

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 7 of 8
(3,633 Views)
Not right now. I will post the images as soon as I have them.
0 Kudos
Message 8 of 8
(3,604 Views)