Image capture and analysis - avoiding wheel reinvention...
slashsplat
Posts: 63
I have a project requirement to capture a fairly high res picture of a flat paper up to 6' by 6'. Once captured, the image needs to be compared to the previous image and the difference identified. The "difference" will be a mark ranging from 1/4" to 1/3" in reasonably contrasting color (B&W is fine with some gray scale.)
The camera could be any adequate device, or a webcam with USB to the Propeller.
I have tried the search engine and even Google against this forum and cannot find anything close. Certainly this has been done. If anyone is familiar with any similar projects please direct me there.
Thank you in advance!
Also, if any of you out there are proficient in this area and interested in consulting, please contact me!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
slashsplat
/* Ira Chandler */
BotConnect.com
The camera could be any adequate device, or a webcam with USB to the Propeller.
I have tried the search engine and even Google against this forum and cannot find anything close. Certainly this has been done. If anyone is familiar with any similar projects please direct me there.
Thank you in advance!
Also, if any of you out there are proficient in this area and interested in consulting, please contact me!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
slashsplat
/* Ira Chandler */
BotConnect.com
Comments
6' = 72"
Nyquest says double the frequency
Your smallest feature is 1/4", so according to Nyquest we should divide 72" by 1/8" .. you need to resolve at least 390 pixels in each direction.
I'd feel a lot better with at least twice that resolution in both axes, so I'd look for a 1280x1024 camera. Or at least 1024x768.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Please use mikronauts _at_ gmail _dot_ com to contact me off-forum, my PM is almost totally full
Morpheus & Mem+dual Prop SBC w/ 512KB kit $119.95, 2MB memory IO board kit $89.95, both kits $189.95
www.mikronauts.com - my site 6.250MHz custom Crystals for running Propellers at 100MHz
Las - Large model assembler for the Propeller Largos - a feature full nano operating system for the Propeller
Do you really need a camera?
Can you get away with a 1 dimensional scan? Say a linear image sensor like CCD191.
Presumably the paper is some how moved past the sensor and could be scanned by other means, a laser and photo diode say.
Some of these things may be much easier to interface to a Prop. The average USB web cam is out of the question for the Prop. It is not up to being a USB host.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
http://www.rayslogic.com/propeller/Programming/Cameras/cameras.htm
There are higher res versions of this camera too...
One nice feature is that it can take data as both jpg and raw rgb, so it can be processed with a Propeller...
There's also a preview mode...
I'm about to hook up 2 of them to my PSM unit to take 3D stereo time-lapse photography!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
The paper is mounted in a frame and needs to be "seen" by the camera as a snapshot of the whole thing. The frame and camera will be stationary in regard to each other and the camera can be mounted at any reasonable distance from the paper, THOUGH it CANNOT be mounted directly ON-AXIS. There needs to be a clear line of sight (on axis) to the paper. So a 1D scan won't work. Lighting should not be a problem.
I know this would be a slam dunk PC-based project, but I REALLY want to do it with a Propeller...
I will now start trying to grok the responses so far!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
slashsplat
/* Ira Chandler */
BotConnect.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
Uh, it is like Airsoft, yeah, that's it... Harmless little balls of paint, yeah, balls of ... well maybe not paint...
MOLON LAVE
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
slashsplat
/* Ira Chandler */
BotConnect.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.
Robots are microcontrolled.
I am microcontrolled.
But you·can·call me micro.
If it's not Parallax then don't even bother.
I have changed my avatar so that I will no longer be confused with others who use generic avatars (and I'm more of a Prop head then a BS2 nut, anyway)
@micro--it's "thread," not "tread."
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PG
I just want to READ the target.
I would like to use pattern rec to ID the bulletholes and rings, and maybe figger out what the score is. No interest in aiming or shooting anything except a REAL gun at the Range.
The airsoft comment was a feeble attempt to deflect any anti-firearm salvos. A ruse, as it were...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
slashsplat
/* Ira Chandler */
BotConnect.com
Join the crowd, traitor.
Yea, I'm not an anti-gun person myself, and I saw a LOT of hate on the last thread involving the Propeller and weapons.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.
Robots are microcontrolled.
I am microcontrolled.
But you·can·call me micro.
If it's not Parallax then don't even bother.
I have changed my avatar so that I will no longer be confused with others who use generic avatars (and I'm more of a Prop head then a BS2 nut, anyway)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PG
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
slashsplat
/* Ira Chandler */
BotConnect.com
for steering, but I hope to get it functional this weekend if all goes well.
-Derrick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
slashsplat
/* Ira Chandler */
BotConnect.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.
Robots are microcontrolled.
I am microcontrolled.
But you·can·call me micro.
If it's not Parallax then don't even bother.
I have changed my avatar so that I will no longer be confused with others who use generic avatars (and I'm more of a Prop head then a BS2 nut, anyway)
A one L lama, he's a priest.
A two L llama, he's a beast.
And I will bet a silk pajama,
there's no such thing as a three L lllama.
Ogden Nash
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
slashsplat
/* Ira Chandler */
BotConnect.com
@mirco--kinda big for a goat, don't you think? At least slashsplat knows what it is.
-Derrick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.
Robots are microcontrolled.
I am microcontrolled.
But you·can·call me micro.
If it's not Parallax then don't even bother.
I have changed my avatar so that I will no longer be confused with others who use generic avatars (and I'm more of a Prop head then a BS2 nut, anyway)
Edit: perhaps I shouldn't go so off topic.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PG
Post Edited (Pi Guy) : 8/20/2009 5:58:41 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PG
@microcontrolled - Ya gotta live out here in the REAL world. We have llama, horses, goats, pigs, chickens, hunting dogs, coyotes, etc. all around us. We are right next to a Wildlife Management Area (for animals, not people).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
slashsplat
/* Ira Chandler */
BotConnect.com
You missed a few digits. Used to know 96--all learned instead of listening to my teach's boring lectures.
"Ya gotta live out here in the REAL world."
I agree. Nothin' better than·the good outdoors.
BTW--do you think this project could help aiming, too? I kinda suck accuracy.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PG
In addition, "calling" the shot is very important. This is when you say where the shot went before you see the result on the target. If you can accurately call the shots, you are paying attention at the time the round is sent, and that - in itself - will improve your shooting. One idea is to have the shooter "call" their shot on the screen, and then keep track of their accuracy. Over time, you should get better at "calling" and that will directly affect your accuracy. It amazed me that I could call the shots as well as I have, as if I had a snapshot of the instant the trigger broke...
The primary reasons for inaccuracy are easy to work on.
1. Natural point of aim. If the rifle is being "muscled" into place by your arms and body, you are not creating a structurally sound framework. Muscle positions are not repeatable. You need to use (offhand/standing, sitting, or prone) positions that are rigid and repeatable. If you close your eyes, wave the gun around some, and settle to the most comfortable position, you will probably see that when your eyes open, you are NOT pointing at the target.
2. Sight alignment. With iron sights, the target must be in a repeatably consistent position in the sight picture.
3. Trigger control. The movement of the trigger has a FAR great affect on accuracy than any other action in the process, including those above. Most rifles have poor triggers that could be improved easily and cheaply. Good triggers can make even more of a difference. A good AR trigger costs $250 to $300 and makes a huge difference, once you improve the first three.
Another pet issue for me is rifle weight. A 6 to 8# rifle if any caliber greater than .223 is too light to absorb the recoil. This causes flinch or overly stiff holds (and shaking). My match rifle .223 is 12#, and my .308 is 14#. With both, I can maintain the sight picture AFTER the shot.
Just some ideas...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
slashsplat
/* Ira Chandler */
BotConnect.com
-Phil
Some people shoot .22 Long Rifle rimfire (.22LR) at 1200 fps and 1/2" long. This would only be for 100 and 200 yards.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
slashsplat
/* Ira Chandler */
BotConnect.com
-Phil
John Abshier
P.S. Creedmoor Sports sell a Bullseye target system that has a camera down range that wirelessly connects to a laptop at the shooting position. It indicates where you hit and the most recent shot flashes.