capture video from camera

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • aljosa

    #1

    capture video from camera

    i'm trying to capture video from camera/webcam using python.
    so far i haven't found any library that would allow me to do that.

    cross-platform solution related to SDL/pygame would be nice but a
    simple solution to capture video under windows is ok.

    Aljosa Mohorovic

  • Fredrik Lundh

    #2
    Re: capture video from camera

    aljosa wrote:
    [color=blue]
    > i'm trying to capture video from camera/webcam using python.
    > so far i haven't found any library that would allow me to do that.
    >
    > cross-platform solution related to SDL/pygame would be nice but a
    > simple solution to capture video under windows is ok.[/color]

    first google hit for "python video capture":



    for linux, see:

    Articles on C++ programming, Software Engineering and technology.


    </F>

    Comment

    • aljosa

      #3
      Re: capture video from camera

      i searched on google and found http://videocapture.sourceforge.net/
      before i posted here.
      videocapture has no docs and doesn't provide additional options like
      motion detection nor any info on possibility of motion detection or
      howto implement (use of minimal system resources).

      i posted here to find out if anybody knows a better way to capture
      video.

      Fredrik Lundh wrote:[color=blue]
      > aljosa wrote:
      >[color=green]
      > > i'm trying to capture video from camera/webcam using python.
      > > so far i haven't found any library that would allow me to do that.
      > >
      > > cross-platform solution related to SDL/pygame would be nice but a
      > > simple solution to capture video under windows is ok.[/color]
      >
      > first google hit for "python video capture":
      >
      > http://videocapture.sourceforge.net/
      >
      > for linux, see:
      >
      > http://www.antonym.org/libfg
      >
      > </F>[/color]

      Comment

      • Fredrik Lundh

        #4
        Re: capture video from camera

        aljosa wrote:
        [color=blue]
        > i posted here to find out if anybody knows a better way to capture
        > video.[/color]

        what other requirements did you forget to mention ?

        </F>

        Comment

        • Sébastien Boisgérault

          #5
          Re: capture video from camera


          aljosa wrote:[color=blue]
          > i searched on google and found http://videocapture.sourceforge.net/
          > before i posted here.[/color]

          yup.
          [color=blue]
          > videocapture has no docs[/color]

          With the API docs in the ".zip" and the examples provided, you
          should be able to handle it.I did :)
          [color=blue]
          > and doesn't provide additional options like
          > motion detection nor any info on possibility of motion detection or
          > howto implement (use of minimal system resources).[/color]

          Sure. You may try to use some external lib such as Camellia
          (http://camellia.sourceforge.net/). There are (swig-generated)
          bindings for Ruby, writing a bridge to python should be
          straightforward

          By the way, if you want to be cross-platform, you can use pyv4l
          as a replacement of videocapture for Linux. Combine this with a
          pygame integration and you're done.

          Cheers,

          SB

          Comment

          • francois.schnell@gmail.com

            #6
            Re: capture video from camera


            aljosa wrote:[color=blue]
            >and doesn't provide additional options like
            > motion detection nor any info on possibility of motion detection or
            > howto implement[/color]

            An example for motion detection and even pythonic eye toys :)



            francois

            Comment

            • aljosa

              #7
              Re: capture video from camera

              i had no intention to say that videocapture is bad but it's not what
              i'm looking for.
              concerning docs, everybody has their own view on how docs should look
              like.

              that said, i should have written more clearly what i'm looking for.

              Comment

              • dan

                #8
                Re: capture video from camera

                aljosa wrote:[color=blue]
                > i had no intention to say that videocapture is bad but it's not what
                > i'm looking for.
                > concerning docs, everybody has their own view on how docs should look
                > like.
                >
                > that said, i should have written more clearly what i'm looking for.[/color]

                Hi aljosa,

                I hope you won't be deterred from posting further questions to the
                group by Fredrik's somewhat terse and unfriendly reply.

                comp.lang.pytho n is a forum generally noted for its pleasing admixture
                of erudition and encouragement. Fredrik is uncommonly distinguished in
                the scope and depth of his knowledge. He does himself, and the group in
                general, an injustice by the intolerance of his response.

                With best wishes,

                Dan

                Comment

                • K.S.Sreeram

                  #9
                  Re: capture video from camera

                  dan wrote:[color=blue]
                  > I hope you won't be deterred from posting further questions to the
                  > group by Fredrik's somewhat terse and unfriendly reply.
                  >
                  > comp.lang.pytho n is a forum generally noted for its pleasing admixture
                  > of erudition and encouragement. Fredrik is uncommonly distinguished in
                  > the scope and depth of his knowledge. He does himself, and the group in
                  > general, an injustice by the intolerance of his response.[/color]

                  People need to learn to be precise and to-the-point in their posts. If
                  not, its a waste of time for a lot of people.. more so for frequent
                  contributors like fredrik. I hope criticism like yours does not deter him!


                  -----BEGIN PGP SIGNATURE-----
                  Version: GnuPG v1.4.2.2 (MingW32)
                  Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

                  iD8DBQFEiOaArgn 0plK5qqURAm4QAK C/iirmfmFOZLaOPuR TTUMDnwBQkACaA8 Of
                  Cvz+VmWdD8Hh/X+etGLJMr4=
                  =VQpM
                  -----END PGP SIGNATURE-----

                  Comment

                  • dan

                    #10
                    Re: capture video from camera

                    K.S.Sreeram wrote:[color=blue]
                    > dan wrote:[color=green]
                    > > I hope you won't be deterred from posting further questions to the
                    > > group by Fredrik's somewhat terse and unfriendly reply.
                    > >
                    > > comp.lang.pytho n is a forum generally noted for its pleasing admixture
                    > > of erudition and encouragement. Fredrik is uncommonly distinguished in
                    > > the scope and depth of his knowledge. He does himself, and the group in
                    > > general, an injustice by the intolerance of his response.[/color]
                    >
                    > People need to learn to be precise and to-the-point in their posts. If
                    > not, its a waste of time for a lot of people.. more so for frequent
                    > contributors like fredrik. I hope criticism like yours does not deter him!
                    >[/color]
                    Hi K.S,

                    People learn through encouragement and appropriate example, not through
                    criticism...

                    Best wishes,

                    Dan

                    Comment

                    Working...