Approve the Cookies
This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and our Privacy Policy.
OK
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Guest
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Register to forums    Log in

 
FORUMS Community Talk, Chatter & Stuff General Photography Talk 
Thread started 18 Oct 2017 (Wednesday) 16:17
Search threadPrev/next
sponsored links (only for non-logged)

Help with Junior High School Project

 
alphamalex
Senior Member
Avatar
902 posts
Gallery: 32 photos
Best ofs: 4
Likes: 301
Joined Mar 2011
Location: Lexington, KY, U.S.A
     
Oct 18, 2017 16:17 |  #1

My daughter's chemistry group has asked me if something they want to accomplish is possible.

Is there a tool (software, or cheap hardware?) that will analyze a photo and give you a color content chart, or table, etc.?

For example, they want to upload/download a photo, and have it analyze and report out like so:

Red = 10%
Green = 20%
Blue = 14%

etc.

I hope you get the picture. Any help would be much appreciated :)

Freddy ..


Freddy the Freeloader (external link) aka Freddy the Freeloader (external link)
5DIII, 5D II, 5Dc, 7D with 24-70 2.8L II, 24-70 2.8L, 24-105 F4L IS, 70-200 F2.8L IS, 100 2.8L IS Macro, 400 5.6L, 50 1.4, 85 1.8, 28-135, 55-250
Kenko EF/EFS Tubes, Canon 12mm Tube, EF 2x II Converter, 380EX, 580EX II, Manfrotto MT294A3, Manfrotto 804RC2 Head

  
  LOG IN TO REPLY
BigAl007
Cream of the Crop
Avatar
8,120 posts
Gallery: 556 photos
Best ofs: 1
Likes: 1682
Joined Dec 2010
Location: Repps cum Bastwick, Gt Yarmouth, Norfolk, UK.
     
Oct 19, 2017 11:22 |  #2

I wouldn't think that there would be anything commercially available. Based on experience from learning C programming as an electronics engineering student in the mid 90's, it is the sort of thing that should be pretty simple to do with one of the scripting languages such as Python or Perl. Doing it with a JPEG image might be a bit hard, since you would have to uncompress the data and hold it in memory. Using an uncompressed 8 bit TIFF should be OK though, since it should be pretty easy to find the start of the image data in the file. All you would then need to do is read the value of each byte knowing which order each channel will be in just check the value of each of the three bytes against the ranges of values for each of your chosen colours and increment the relevant counter. Once you get to the end of the image data you just calculate the percentage of each colour against the total number of pixels.

If you are dealing with a group of bright high school aged kids I would hope that at least one of them has some programming skills in an appropriate language. Unfortunately I no longer have the C code and libraries that I used back then, nor a complier, or I would have offered to write something up for you in C. The lecturer was actually a biologist, and his research was in digital image recognition. So he provided us with a library that would read and write TIFF files, and our assignments were to write a range of image filters, sharpening, blur, and some basic interpolation filters were included. This was back in 93/94, when JPEG was a really new and clever format.

If I can supply any specific information that might help just drop me a PM.

Alan


alanevans.co.uk (external link)

  
  LOG IN TO REPLY
alphamalex
THREAD ­ STARTER
Senior Member
Avatar
902 posts
Gallery: 32 photos
Best ofs: 4
Likes: 301
Joined Mar 2011
Location: Lexington, KY, U.S.A
     
Oct 21, 2017 06:49 as a reply to  @ BigAl007's post |  #3

Thank you for your input Alan.

I used to understand very well what you said, but it's been 5 years since I wrote any sort of code; now I just ask others to do it :oops:

I am glad to say though that we found this (external link) last night. I guess the saying is true; you can find anything on the internet!

The girls think this might do the trick; thanks again for your help.

Freddy ..


Freddy the Freeloader (external link) aka Freddy the Freeloader (external link)
5DIII, 5D II, 5Dc, 7D with 24-70 2.8L II, 24-70 2.8L, 24-105 F4L IS, 70-200 F2.8L IS, 100 2.8L IS Macro, 400 5.6L, 50 1.4, 85 1.8, 28-135, 55-250
Kenko EF/EFS Tubes, Canon 12mm Tube, EF 2x II Converter, 380EX, 580EX II, Manfrotto MT294A3, Manfrotto 804RC2 Head

  
  LOG IN TO REPLY
TeamSpeed
01010100 01010011
Avatar
40,862 posts
Gallery: 116 photos
Best ofs: 2
Likes: 8923
Joined May 2002
Location: Midwest
     
Oct 21, 2017 08:23 |  #4

Does the RGB calculator have to be accurate, or will improper wb and other factors that go into the manufacturing of the jpg not matter?


Past Equipment | My Personal Gallery (external link) My Business Gallery (external link)
"Man only has 5 senses, and sometimes not even that, so if they define the world, the universe, the dimensions of existence, and spirituality with just these limited senses, their view of what-is and what-can-be is very myopic indeed and they are doomed, now and forever."

  
  LOG IN TO REPLY
alphamalex
THREAD ­ STARTER
Senior Member
Avatar
902 posts
Gallery: 32 photos
Best ofs: 4
Likes: 301
Joined Mar 2011
Location: Lexington, KY, U.S.A
     
Oct 21, 2017 20:14 as a reply to  @ TeamSpeed's post |  #5

I don't think that level of accuracy and precision is required, but they will check with the teacher next week and we'll go from there.


Freddy the Freeloader (external link) aka Freddy the Freeloader (external link)
5DIII, 5D II, 5Dc, 7D with 24-70 2.8L II, 24-70 2.8L, 24-105 F4L IS, 70-200 F2.8L IS, 100 2.8L IS Macro, 400 5.6L, 50 1.4, 85 1.8, 28-135, 55-250
Kenko EF/EFS Tubes, Canon 12mm Tube, EF 2x II Converter, 380EX, 580EX II, Manfrotto MT294A3, Manfrotto 804RC2 Head

  
  LOG IN TO REPLY
WoytekM
Member
Avatar
101 posts
Gallery: 98 photos
Likes: 869
Joined Dec 2016
Location: Zgorzelec
Post edited over 6 years ago by WoytekM.
     
Oct 22, 2017 04:49 |  #6

Try it. http://www.rapidtables​.com/web/color/color-tester.htm (external link)
255=100%


Zgorzelec, Poland

  
  LOG IN TO REPLY
sponsored links (only for non-logged)

4,267 views & 0 likes for this thread, 4 members have posted to it.
Help with Junior High School Project
FORUMS Community Talk, Chatter & Stuff General Photography Talk 
AAA
x 1600
y 1600

Jump to forum...   •  Rules   •  Forums   •  New posts   •  RTAT   •  'Best of'   •  Gallery   •  Gear   •  Reviews   •  Member list   •  Polls   •  Image rules   •  Search   •  Password reset   •  Home

Not a member yet?
Register to forums
Registered members may log in to forums and access all the features: full search, image upload, follow forums, own gear list and ratings, likes, more forums, private messaging, thread follow, notifications, own gallery, all settings, view hosted photos, own reviews, see more and do more... and all is free. Don't be a stranger - register now and start posting!


COOKIES DISCLAIMER: This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and to our privacy policy.
Privacy policy and cookie usage info.


POWERED BY AMASS forum software 2.58forum software
version 2.58 /
code and design
by Pekka Saarinen ©
for photography-on-the.net

Latest registered member is semonsters
1041 guests, 107 members online
Simultaneous users record so far is 15,144, that happened on Nov 22, 2018

Photography-on-the.net Digital Photography Forums is the website for photographers and all who love great photos, camera and post processing techniques, gear talk, discussion and sharing. Professionals, hobbyists, newbies and those who don't even own a camera -- all are welcome regardless of skill, favourite brand, gear, gender or age. Registering and usage is free.