[SOLVED] Using webcam for capture image

Discussion in 'UDOO QUAD' started by ömür, May 13, 2016.

  1. ömür

    ömür New Member

    Joined:
    May 13, 2016
    Messages:
    3
    Likes Received:
    1
    Hi everyone,

    I have one project that must process images with c language. I have finished my class and can check the image. But how can I get image from a webcam that is pluged to udoo quad. I have ask this question to MR. Google and have find some links. One of them is this link. Can anybody share helpfull links. Or is it possible to do this.

    Thanks
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    In the link you gave is a reference to a github from Francesco. When you look in the source you see a shotimage.sh that takes a still from a webcam.
    Code:
    if [ -f "/etc/udoo-config.conf" ]
    then
            WEBCAM="/dev/v4l/by-id/usb-Vimicro_Vimicro_USB_Camera__Altair_-video-index0"
    else
            WEBCAM="/dev/video0"
    fi
    
    fswebcam -d $WEBCAM -r 640x480 --no-banner ../public/webcam.jpg
    
     
    Last edited by a moderator: May 25, 2016
  3. ömür

    ömür New Member

    Joined:
    May 13, 2016
    Messages:
    3
    Likes Received:
    1
    @waltervl thanks for your replay. I'm by the way to exam it. One more question. Can I activite the camare with sensor. İf one product is come to sensor the sensor will activite the camere?
     
  4. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  5. ömür

    ömür New Member

    Joined:
    May 13, 2016
    Messages:
    3
    Likes Received:
    1
    @waltervl thanks a lot. I'll do it today and I hope it will be done.
     
    Andrea Rovai likes this.

Share This Page