aleixrasp
Posts: 2
Joined: Wed Apr 06, 2016 9:25 am

Pi NO IR Camera for plants

Wed Apr 06, 2016 9:50 am

Hi guys I am a little bit new on this :) and I would like to ask some questions regarding the NO IR camera of raspberry.

I have read that this camera can be used to monitorize the health of the plants with infragram and its web software (http://infragram.org/). It seems to be very interesting, as there are really good applications for it.

Have anyone of you used this camera to monitorize the health of any plant or equivalent? I would like to learn how to do it.

Thanks for your help:)

inches
Posts: 16
Joined: Tue May 03, 2016 7:55 pm

Re: Pi NO IR Camera for plants

Sat May 07, 2016 4:43 pm

Hi there. I'm trying to do the same but I'm not sure how to use the Infragram analyzer.

I either don't know how to read the image output, or use the tool. I put the blue filter in front of my Pi NoIR cam when I took the picture.

http://imgur.com/a/Drf1n

You can see Grey, HVS, and original at the link above.

User avatar
Gavinmc42
Posts: 3165
Joined: Wed Aug 28, 2013 3:31 am

Re: Pi NO IR Camera for plants

Mon May 09, 2016 1:25 am

A piece of blue filter comes with the Noir camera.

You also might want to look at using a red filter instead.
http://www.maxmax.com/endvi.htm

I suggest capturing the RAW data then processing it as you know what each pixel bayer filter colour is.
Or even better? raspistillyuv outputting RGB888 data.

Mathematica can do colour image processing.
You could do it in Python with PIL or any other language that can handle 2d arrays.

Ideally for real time using the -ifx effects filter option of raspistill would be the fastest but there is no NDVI or ENDVI option :cry:
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

inches
Posts: 16
Joined: Tue May 03, 2016 7:55 pm

Re: Pi NO IR Camera for plants

Mon May 09, 2016 1:44 am

I appreciate your info!

So capture using raspistillyuv (with or without the red or blue filter?)

Then do processing in mathmatica? What kind of processing is necessary? I don't really understand how to pull out the colors so that the healthy parts are one color and the less healthy are another.

Also, what image effects are you suggesting from the available?

Thanks for your help!

User avatar
Gavinmc42
Posts: 3165
Joined: Wed Aug 28, 2013 3:31 am

Re: Pi NO IR Camera for plants

Mon May 09, 2016 4:10 am

If you sort the RGB out for each pixel (actually bayer pixel group) depending which filters you use you then add, subtract, divide to get a single value for each bayer group.
Which formula depends on the colour filter you use.

Basically this gets you a mono image at 1/4 resolution unless you use demosaicing in the RGB stage.
https://pypi.python.org/pypi/colour-demosaicing.

You could treat this as a black and white photo but what most people do is use false colour mapping.
http://www.maxmax.com/ndvi_color_mapping.htm.
This is what you typically see done in thermal imaging cameras.
The human eye is more sensitive to colour than shades of grey.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

inches
Posts: 16
Joined: Tue May 03, 2016 7:55 pm

Re: Pi NO IR Camera for plants

Mon May 09, 2016 4:15 am

Thanks for the extra info. It looks like I need to understand more fundamental aspects of what I'm trying to do. I was thinking this was more mainstream and there was an easy process or step by step for the noir cam to do this

User avatar
Gavinmc42
Posts: 3165
Joined: Wed Aug 28, 2013 3:31 am

Re: Pi NO IR Camera for plants

Mon May 09, 2016 1:04 pm

It becomes mainstream as soon as someone figures it out and others copy:)
Not sure how many Noirs have been sold and who is using them?
I have 4 I want to stick in drones one day.
Waiting for Compute Pi3 so I can run two cams at once and do real time NVDI and stereo 3D.

The maxmax website has got lots of info.

Got me thinking, monochrome Pi cameras with external filter wheels.
Maxmax can remove the cfa, ie the bayer pattern.

http://www.jtwastronomy.com/tutorials/debayer.html
Bit more of a challenge with the tiny Pi image sensors :o

Got some old PS eye3 webcams I got for $2each, good practice?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

inches
Posts: 16
Joined: Tue May 03, 2016 7:55 pm

Re: Pi NO IR Camera for plants

Mon May 09, 2016 1:14 pm

Let's figure out then! I have hydroponic gardens I want to monitor. And my dad is a farmer. I want to send up drones to check his fields.

User avatar
Gavinmc42
Posts: 3165
Joined: Wed Aug 28, 2013 3:31 am

Re: Pi NO IR Camera for plants

Tue May 10, 2016 1:20 am

Pi based navigation system
https://emlid.com/
Large UAV platform
http://www.hobbyking.com/hobbyking/stor ... 20mm_.html

Wing based UAVs are better for endurance and larger farms.
Quad/Hex/Octocopters are not efficient, but are suitable for spot fertilizer spraying.

Farming drones are becoming big business
http://www.riseabove.com.au/agriculture-drones/
http://www.falconuav.com.au/

New regs mean farmers can go upto 25Kg drones here is Oz, that is a big drone.
http://www.abc.net.au/news/2016-04-01/n ... rs/7293392
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Peterleroux
Posts: 21
Joined: Fri Mar 29, 2013 8:51 pm
Location: Johannesburg, South Africa

Re: Pi NO IR Camera for plants

Thu May 12, 2016 2:42 pm

There are quite a few NoIRs floating around, some for 'art' photography (which is what I mostly use mine for), some for scientific imaging. Here's a test I did using a red filter (red eye from a red/blue stero glasses set), which might work better than a blue:
Image
On the left is the 'raw' image out of the camera, on the right is the processed image (using the red filter settings and the Fastie colormap at Infragram.org).

The strength of this type of imaging is as a remote sensing technology, I stand to be corrected, but I imagine that if you can walk up to a plant, you can assess the health directly by visual inspection. But if you want to assess the health of hte hwole farm in a morning, a NoIR on a drone is a good plan.

User avatar
Gavinmc42
Posts: 3165
Joined: Wed Aug 28, 2013 3:31 am

Re: Pi NO IR Camera for plants

Thu May 12, 2016 11:47 pm

Peterleroux,

That's one of the first red filter pics I have seen on a Pi forum.
It would be nice if we could do the colour mapping on the Pi instead of relying on infragram.
Even better if it was a GPU effects option:)

Drone based camera the area, then go local.
Portable for handheld field use up close and personal.
Ground crawling robot inspectors, spray for bugs or add fertilizer.
Use Noir camera to detect weeds from real crops.

Seen cameras on booms with red and blue? LEDS controlling solenoid valves.
Run them at night to have consistent lighting.
Serious PC grunt can now be replaced with a Pi at each camera, for lower cost.

Go tiny robots, solar powered, charge in daytime, run around at night flashing LEDs slashing weeds.
Cost $200, have a 100 of them?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
Gavinmc42
Posts: 3165
Joined: Wed Aug 28, 2013 3:31 am

Re: Pi NO IR Camera for plants

Mon May 16, 2016 7:39 am

Interesting snaps on Adafruit page, Noir V2 with different filters

https://blog.adafruit.com/2016/05/13/ra ... pberry_pi/

Wonder if anyone makes tiny 10mm filters?
Make a RC servo filter wheel that spins over the front of the lens?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Peterleroux
Posts: 21
Joined: Fri Mar 29, 2013 8:51 pm
Location: Johannesburg, South Africa

Re: Pi NO IR Camera for plants

Mon May 16, 2016 12:12 pm

Gavinmc42 wrote:Interesting snaps on Adafruit page, Noir V2 with different filters

https://blog.adafruit.com/2016/05/13/ra ... pberry_pi/

Wonder if anyone makes tiny 10mm filters?
Make a RC servo filter wheel that spins over the front of the lens?
Here's the filter wheel on my NoIR compact camera- manual, not motorised, but printable on Shapeways right now. I ended up cutting gel filters to fit- a red, blue, and an exposed B+W film for a makeshift 680nm IR filter
Image

More info on the build here.

User avatar
Gavinmc42
Posts: 3165
Joined: Wed Aug 28, 2013 3:31 am

Re: Pi NO IR Camera for plants

Tue May 17, 2016 2:03 am

This is the sort of thing the new Pi Zero's would be great for.
Use 4 Zero's in the box, different filter for each.
Multi spectral imaging :ugeek:
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Peterleroux
Posts: 21
Joined: Fri Mar 29, 2013 8:51 pm
Location: Johannesburg, South Africa

Re: Pi NO IR Camera for plants

Tue May 17, 2016 5:38 am

Multiple zeros running off one shutter sounds like a great idea for multispectral, and also for stereoscopic photography :o

gordon77
Posts: 4003
Joined: Sun Aug 05, 2012 3:12 pm

Re: Pi NO IR Camera for plants

Tue May 17, 2016 5:43 am

Peterleroux wrote:Multiple zeros running off one shutter sounds like a great idea for multispectral, and also for stereoscopic photography :o
Now just get multiple Zero's ;)

Peterleroux
Posts: 21
Joined: Fri Mar 29, 2013 8:51 pm
Location: Johannesburg, South Africa

Re: Pi NO IR Camera for plants

Tue May 17, 2016 8:46 am

Now just get multiple Zero's ;)[/quote]
:roll: :| :cry:
Hopefully that gets easier in the next few months- at least we now know what was happenning while they were out of production

Return to “Camera board”