Exact match. Not showing close matches.
PICList
Thread
'[SX] VIDEO image - Analogic to digital conversion'
2005\10\24@074452
by
LUCAn/a
|
|
Hi to everybody, http://forums.parallax.com/forums/emoticons/smilewinkgrin.gif
I am a new Italian consumer of this forum.
I work in the pharmaceutical sector and I would like to know if it is possible with SX28 to convert a signal coming from a B/W camera in a digital system.
I would like to be able to analyze an image taken back with the camera and to compare it with a standard.
Thanks to everybody
LUCA
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=92979
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
|
|
You would need a flash ADC and external RAM, but it could be done depending on what type of comparison you need.
Bean.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=92979#m92984
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
|
|
Thanks for the answer Bean,
my necessity is to verify if a pharmaceutical capsule is present or no inside a transparent blister.
Currently I have realized the system with a ray IR that (if there is the capsule) is interrupted.
I thought to a television camera B/W to recognize the presence or less of the capsule (dark stain on white background) therefore I thought about something of enough simple to directly realize with SX28
I would have need of a system that recognizes a dark stain in a certain position
Thanks
LUCA
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=92979#m92998
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
|
|
Is the "dark stain" the capsule ? Or is that what it sees if a capsule is missing ?
Will the camera be focused on a single position or are your trying to "see" multiple positions at one time ?
Bean.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=92979#m93000
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
|
|
The black stain is the capsule and the camera is fixed in the same position.
The camera focused on a single position must see multiple positions at one time.
I will try to explain me better :
The blister of the capsules is transparent and white fund, the capsules have some lodgings where they must be positionated therefore if the capsule is present the camera sees the dark stain, if the capsule is absent the camera sees the white fund in that position.
LUCA
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=92979#m93126
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
|
|
Yes it should be relatively easy to do, and you shouldn't need external memory. This is because you are only concerned with a binary value for each capsule, is it there one or not. Your SX would sync to the camera's output, then sample an 8x8 pixel swatch at each capsule's location. Then use a classifier function on the swatch, there are many different functions that can classify the swatch: majority rule, average, bayesian etc. Then once you determine whether the capsule is there you set or clear a bit in a variable. The SX28 has 128 bytes of variable space (plus a few more global variables). You wont be able to implement a true Bayesian classifier (requires full sample set, of which two swatches would completely fill the SX's memory). But you could easily implement the others, average is self explanitory, majority rule would go like this: sample video stream at capsule location eight times each time threshold the value (so you get a value of 0 or 255), find whether that row has majority dark or light pixels and store a 0 or 255 for that row, if it's a tie, store 128 for the row. You do this for each row (8 in total) after all 8 are done this way, do a majority rule for all of the rows, and set the value for the capsule position to true or false (values of 0 and 255 are totaled, values of 128 are ignored). If they are equally numbered (4 white, 4 black) then its a tie and the classifier failed. If you are clever with your variable use (and reuse variable when possible) you should be able to implement majority rule and average classifiers, where when there is a tie by majority rule, the average classifier breaks the tie.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=92979#m93136
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
|
|
Thanks to all for the help,
my true problem is to turn the video signal into a digital signal.
How do I do to convert the signal to make to know to my SX that in that position there is a black or white pixel ?
Do you have a code from which I can start ?
Which is the protocol to convers with the camera ?
LUCA
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=92979#m93257
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
|
|
I would use an LM1881 sync seperator IC to get the timing of each scanline.
Then you are going to need a fast comparitor or a flash A/D (4 bit would probably work) to test whether the pixel is dark or light.
The comparitor could be a bit touchy.
Basically,
Wait for vertical sync. Count lines until you get to the scanline your interest in. Wait till the pixel (horizontal) is being sent and capture the value of the flash A/D. Then compare the value to see how dark/light it is.
It's not going to be easy, but it is doable.
Bean.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=92979#m93271
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\10\26@160346 by kvwoodn/a
|
|
I came across an article on Atmel's website, and it might be of interest to this thread. The author interfaces a Gameboy camera to a robot. The cool thing about it is apparently the Gameboy camera has built-in edge detection and extraction which can be controlled via the mcu. Here is the link:
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=92979#m93359
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
More... (looser matching)
- Last day of these posts
- In 2005
, 2006 only
- Today
- New search...