Android Question IP Camera Stream/Capture/Compare

Discussion in 'Android Questions' started by daniedb, Feb 10, 2015.

  1. daniedb

    daniedb Active Member Licensed User

    Hi Guys
    I want to know if the following will be possible, and any suggestions.
    I want to display a IP Camera Stream/Video in my Android app, take a Snapshot of a image (eg: image 1), take a second snapshot (image2) and then display the differences in the 2 images (Something how motion detection work)
    Any advice will be appreciated
    Thanks
    Danie
     
  2. daniedb

    daniedb Active Member Licensed User

    Really no one with a Starting point?

    Thanks
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    Because this is not something feasible without a good knowledge of computer vision and probably some C++ code (maybe with OpenCV) to implement it.
     
    NJDude likes this.
  4. daniedb

    daniedb Active Member Licensed User

    Erel. If I can just for now, get the video feed from the IP Camera and take snapshots, Anything available. All Cameras are Foscam

    Thanks
     
  5. Erel

    Erel Administrator Staff Member Licensed User

  6. daniedb

    daniedb Active Member Licensed User

    Hi again.

    The IP Camera manufacturer was kind enough to send me a APK example aswell as the .java and .so SDK files.
    But I have no clue on where to start using it in b4a

    If I understand correct, the Latest B4A version we can use the Java classes
    Any advice will be appreciated
    Thanks
     
  7. NJDude

    NJDude Expert Licensed User

    You will have to wrap that library to use it with B4A.
     
  8. daniedb

    daniedb Active Member Licensed User

    Thanks NJ Dude
    Any pointers or Tutorials on how to do this. I'm completely new with this
    Thanks
    Danie
     
  9. NJDude

    NJDude Expert Licensed User

    You will need to have knowledge of Java for a task like that, you can find a tutorial HERE
     
    DonManfred likes this.
  10. daniedb

    daniedb Active Member Licensed User

  11. KZero

    KZero Active Member Licensed User

    many IP Cameras now support RTSP protocol
    check if your camera support it
    if so you can only use the native VideoView to get the stream working
     
  12. daniedb

    daniedb Active Member Licensed User

    KZero.
    No Problem, I can view the IPCam on my android, but I need to take snapshots, and zoom/PTZ. thats the reason I need the SDK going
    Thanks Anyway
     
  13. coslad

    coslad Well-Known Member Licensed User

    ///SOLVED //////

    Hi Daniedb, which code you use to see the video sended from the IP camera? If a use Whatever app from playstore, it needs only camera's ip address, login and password , nothing else, and the app let me see video and move the camera, so I think it is not so hard to do, any idea?

    ///SOLVED //////
     
    Last edited: Jun 28, 2015
  14. coslad

    coslad Well-Known Member Licensed User

    ok .

    i found the ip cam library ,
    You even use webview :

    To see image :
    WebView1.loadUrl("http://192.168.1.79:80/snapshot.cgi?user=XXX&pwd=xxx")

    to send ptz command :

    Up :
    WebView1.loadUrl(http://192.168.1.79:80/decoder_control.cgi?command=0&user=xxx&pwd=zzz)

    Down :

    WebView1.loadUrl(http://192.168.1.79:80/decoder_control.cgi?command=2&user=xxx&pwd=zzz)

    I studied the html file that is used to send video from ipcam ,and inside it there is a timeout to reload the image ,i attach it (delete .zip extension)


    I found an usefull manual , i attach it
     

    Attached Files:

    Last edited: Jun 28, 2015
    GMan likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice