Bonsai shaper program, .raw from digital camera

AI Thread Summary
The discussion centers on developing a sophisticated program for bonsai care, focusing on analyzing leaf color using a digital camera that produces .raw files. The goal is to identify a "perfect range" of green values (540 to 570 nm) and automate leaf trimming with a mechanical arm if leaves fall outside this range. Participants highlight the challenges of accurately assessing leaf health due to lighting conditions, suggesting that a 3D camera could provide better depth perception to differentiate between healthy and unhealthy leaves. One participant recommends exporting .raw files to 16-bit TIFF format for more color data, while another suggests using standard image formats like JPEG for simplicity. The conversation also touches on the potential effects of lighting on color perception and the idea of isolating dominant color frequencies to identify unhealthy leaves, which may lean towards red or yellow hues.
fluidistic
Gold Member
Messages
3,928
Reaction score
272
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 fluidistic
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Back
Top