Results 1 to 19 of 19

Thread: webcam how to

  1. #1

    Thread Starter
    Banned
    Join Date
    Mar 2009
    Posts
    764

    webcam how to

    how do i recieve webcam pics and transform each to a string ?

  2. #2
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: webcam how to

    Can you be a lot more specific please?

    Quote Originally Posted by moti barski
    transform each to a string
    What are you excepting from this?

  3. #3

    Thread Starter
    Banned
    Join Date
    Mar 2009
    Posts
    764

    Re: webcam how to

    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

  4. #4
    Hyperactive Member su ki's Avatar
    Join Date
    Oct 2007
    Posts
    354

    Re: webcam how to

    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

    :-)
    * If my post helped you, please Rate it
    * If your problem is solved please also mark the thread resolved it is there in right top of page under thread tools
    * Why Rating is useful

  5. #5
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: webcam how to

    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

  6. #6

    Thread Starter
    Banned
    Join Date
    Mar 2009
    Posts
    764

    Re: webcam how to

    ok so the best code i found in your link is exlent and simple
    vb Code:
    1. 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

  7. #7
    Lively Member
    Join Date
    May 2008
    Posts
    75

    Re: webcam how to

    Quote Originally Posted by moti barski View Post
    ok so the best code i found in your link is exlent and simple
    vb Code:
    1. 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..

  8. #8

    Thread Starter
    Banned
    Join Date
    Mar 2009
    Posts
    764

    Re: webcam how to

    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

  9. #9
    Lively Member
    Join Date
    May 2008
    Posts
    75

    Re: webcam how to

    Quote Originally Posted by moti barski View Post
    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-/

  10. #10

    Thread Starter
    Banned
    Join Date
    Mar 2009
    Posts
    764

    Re: webcam how to

    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 \ / .

  11. #11
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: webcam how 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

  12. #12
    Member
    Join Date
    Feb 2009
    Posts
    55

    Re: webcam how to

    Quote Originally Posted by Pino View Post
    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
    wow, i agree,
    i would say even extremely complex and will require complex algorythms to detect shapes from the captured video/images.

    and i would want the code for that as well

  13. #13
    Lively Member
    Join Date
    May 2008
    Posts
    75

    Re: webcam how to

    Quote Originally Posted by moti barski View Post
    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 \ / .
    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...

  14. #14

    Thread Starter
    Banned
    Join Date
    Mar 2009
    Posts
    764

    Re: webcam how to

    pk let me ask you this, if i make the algorithm will anyone be interested to make the
    code ?

  15. #15
    Lively Member
    Join Date
    May 2008
    Posts
    75

    Re: webcam how to

    Quote Originally Posted by moti barski View Post
    pk let me ask you this, if i make the algorithm will anyone be interested to make the
    code ?
    if you make the algorithm., not only will someone codeit for you., but MIT will award you!!!

    do not confuse., "requirements" with "algorithm"

  16. #16

    Thread Starter
    Banned
    Join Date
    Mar 2009
    Posts
    764

    Re: webcam how to

    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.

  17. #17

    Thread Starter
    Banned
    Join Date
    Mar 2009
    Posts
    764

    Re: webcam how to

    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

  18. #18
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: webcam how to

    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

  19. #19
    Lively Member
    Join Date
    May 2008
    Posts
    75

    Re: webcam how to

    Quote Originally Posted by Pino View Post
    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 ? ....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width