how do i recieve webcam pics and transform each to a string ?
Printable View
how do i recieve webcam pics and transform each to a string ?
Can you be a lot more specific please?
What are you excepting from this?Quote:
Originally Posted by moti barski
i want to get a picture from a webcam.save the picture in a temporary variable.
then convert the bytes/data of the variable to a text string
hey moti barski
if u r willing to save images in database then there is no need to convert to string
as images can be easily stored in database andalso can be easily retrieved in image format directly in the form of binary data
:-)
You can use this to capture the feed. Then you will need to process the image.
http://www.vbforums.com/showthread.p...66#post2048466
Pino
ok so the best code i found in your link is exlent and simple
vb Code:
Private WithEvents _Camera As WebCamera Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load _Camera = New WebCamera _Camera.StartFeed() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click _Camera = New WebCamera _Camera.StartFeed() End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click If _Camera.Running Then _Camera.EndFeed() End If End Sub Private Sub _Camera_ImageChanged() Handles _Camera.ImageChanged Me.Text = "Changed at " & Now().ToString Dim NewImage As Image = _Camera.CurrentImage PictureBox1.Image = NewImage NewImage.Dispose() NewImage = Nothing End Sub
now is there a way to convert the image to a string with characters such as :
"0" for cyrcle "-" for line "/", "|" , "\" shaps and such
are you taking about an actual image transformation?
if there is a ball in the image you want it to give you a "0" where the ball was?
or are you talking about transforming the bytes/data of an image?
you need to clarify your question(s)... no one will help you if you cannot get your point across..
yes a ball to a "0" an horizon to "-" . i thought the only way was probably converting the image first but if it can do this faster (image to characters)its better. additionaly
it would be best if such a converted image is smaller then 22 characters
what you want is not gong to happen....
unless you use some type of image recognition algorithm/api
http://code.google.com/p/aforge/
http://www.codeproject.com/KB/cs/Bac...NeuralNet.aspx
http://channel9.msdn.com/forums/Tech...ition-in-NET-/
ok so the links weren't very helpfull so i will ask again.
how can i convert an image into symbles . for example a computer to | - | _
or a ball to 0 or a japanese to \ / .
Are you clear what you are asking?
What your asking for is pretty complex and if somone has the code I doubt they will just share it :)
Pino
i dont want to be blunt and rude.. so ill save my true raw comments....
if you are NOT going to take the time to READ those links then why should anyone help you..
you obviously need to get a better handle on coding concepts and how things work..
if you know nothing about bit matching and patterns... you need to read up on that first...
id bet that your knowledge on the task you wish to perform is as large as a null object...
pk let me ask you this, if i make the algorithm will anyone be interested to make the
code ?
let me elaborate just in case. if i make the eye algorithm would any of you be interested to make its code ?
additionaly i would like to say i have purchase yesterday a taek webcam which cost me
45 $ because i am seriouse about this.
senior zxed , i went to each of your links before comenting on then theire not to clear explanation wise and overall but i appriciate the help
Moti,
The links thta have been posted are likly to be the best you are going to get. What you are attempting to do (on a $45 camera) is what lots of major software compaines have spent years perfecting.
I'm not quite sure what else people can provide.
Pino
thank you... that was my point...
the links will give you ideas on how you can implement what you need and what the limitations are...
coding = hacking
what you want consists of a,b,c,d and e... so you need to look at a, b, c,d and e., and extract what you need...
each of those links has some form of implementation of what you need, you may need a code block that represents 1/1000th of the solution thats out there, you, yourself need to figure out how you will implement this...
no one is going to do all that work for you...
especially that part where a japanese person walking infront of a camera will spit out as \ / ... what would you want for white, black, middle eastern ? ....