Bonsai shaper program, .raw from digital camera

Click For Summary

Discussion Overview

The discussion revolves around the development of a program designed to care for a bonsai tree using a digital camera that captures images in .raw format. Participants explore how to analyze the color data of leaves to determine their health based on specific green wavelength values, while also considering the challenges of lighting and image interpretation.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant proposes defining a "perfect range" of green values for bonsai leaves based on wavelength, specifically between 540 to 570 nm, and suggests using a mechanical arm for trimming leaves outside this range.
  • Another participant mentions using a 16-bit TIFF format to capture a wider range of green shades, highlighting the complexity of interpreting leaf colors due to lighting conditions.
  • Concerns are raised about the difficulty of accurately assessing leaf health based on color alone, as lighting can affect the appearance of leaves, potentially leading to misjudgments.
  • A suggestion is made to use a 3D camera to gain better spatial awareness of the plant, which could improve the accuracy of the program's assessments.
  • One participant shares a link to raw images and discusses the idea of analyzing dominant color frequencies while disregarding lightness, speculating that unhealthy leaves may show a skew towards red or yellow hues.

Areas of Agreement / Disagreement

Participants express a range of ideas and concerns, with no consensus reached on the best approach to analyze the .raw files or the effectiveness of the proposed methods. Multiple competing views regarding the challenges of lighting and color interpretation remain evident.

Contextual Notes

Participants note limitations in finding .raw file examples and the potential complexity of interpreting color data due to environmental factors affecting light and shadow on the leaves.

Who May Find This Useful

Individuals interested in plant care, digital imaging, color analysis, and automation in horticulture may find this discussion relevant.

fluidistic
Gold Member
Messages
3,934
Reaction score
286
Hi people,
I would like to create a sophisticated program that takes care of a bonsai. For simplicity let's assume that the bonsai is put into a cubic box with white walls, a digital camera able to produce .raw files and is under a compact fluorescent lamp.
I want to define what I'd call the "perfect range" of green value for the leaves, say from 540 to 570 nm wavelength so that if a leaf is outside this range, the program would cut it with the help of a mechanical arm.
Now, under such an illumination, I expect to be able to determine how 550 nm wavelength light is represented into the .raw file from the digital camera. I would like a real world example but I can't seem to find any example of .raw file on the web and I don't have a digital camera that produces such file extension.
How hard would it be to extract such information (colors) from a .raw file? Do you have any idea about this crazy project?
Thanks.

P.S.:The program would do many other things like taking care of humidity, etc. but for now let's tackle the visual part.
 
Technology news on Phys.org
Hey, my Cannon takes images in raw format. What I would do in your case is export to a 16 bit TIFF, so I have 2^16 shades of green to choose from.

Light is hard though. For instance, a leaf on top might need trimming if the camera captures a certain shade of dark green, but a leaf lower than it might be healthy, but come up as the exact same shade of dark green in the picture because its further from the light or slightly shadowed. You would want some 3D awareness of the plant to make these sorts of judgements, like from a 3D camera. Here's a Lytro watching flowers grow:
 
Fooality said:
Hey, my Cannon takes images in raw format. What I would do in your case is export to a 16 bit TIFF, so I have 2^16 shades of green to choose from.
I see, very nice. I guess that would be more than enough.

Light is hard though. For instance, a leaf on top might need trimming if the camera captures a certain shade of dark green, but a leaf lower than it might be healthy, but come up as the exact same shade of dark green in the picture because its further from the light or slightly shadowed. You would want some 3D awareness of the plant to make these sorts of judgements, like from a 3D camera. Here's a Lytro watching flowers grow:
Maybe a partial fix would be to shed the light from just above the camera (somehow like a flash from a digital camera).
Although if a leaf is dark green this shouldn't be a problem because it's still green. If however there is yellow light coming from leaf/ves then there would be problem.
I've searched on the web some pictures in .raw extension, still can't find any.
 
Here's a few raw images:
https://code.google.com/p/rawtohdri/downloads/detail?name=Canon_CR2_2.zip&can=2&q=
The suffix for what my Canon calls raw images is .cr2. They are about 20 megs each though, I would just work from a standard picture format, even jpeg just for simplicity.

One interesting thing to test would just be to get rid of all the luma (lightness darkness info) and look just at dominant color frequency, like you were talking about. I'll bet unhealthy leaves would always be skewed toward red/yellow.
 
  • Like
Likes   Reactions: fluidistic

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 41 ·
2
Replies
41
Views
5K
  • · Replies 6 ·
Replies
6
Views
6K
Replies
10
Views
5K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
3
Views
2K
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 18 ·
Replies
18
Views
12K