Cammotion

App Image

 Download Latest Version 

This application uses:
Bugview Bugmotion Bugvonhippel 
   May 4th, 2009   ·   1345 views  /  803 downloads

Admin Administrators: GNUtoo

Category: Multimedia    Maturity: Beta    API version: not specified
Tags: VonHippel  camera  MotionDetector 

Description
Cammotion is an application that take photos from a v4l2 webcam when some movement is detected by the BUGmotion module.
It works the following way:
The java application launches mplayer,that displays the camera input fullscreen,and when a movement is detected,it takes a picture and put it in /home/root/.mplayer/screenshots. (the screenshot file names are like this: shot0001.png).That’s all for now.
while not having many features,it also has some limitations.
As I used mplayer the pictures are the size of the screen,that is 320×240,and you need a screen.

Requirements:
  • mplayer with v4l2 support (cross)compiled for the bug device
  • a kernel compiled with gspca or your v4l2 webcam driver.(kernel patching not needed,you only need a different kernel configuration(.config) and to recompile the kernel)
    Binaries for mplayer and the kernel will be avaliable soon
  • a standard v4l2 webcam such as a gspca one pluged into the von-hippel USB port

License:
The license is the GPLv3.
If you need a special exception because you want to combine this software with a software that has an incompatible license(such as GPLv2 only(not GPLv2 or later))

TODO (not implemented yet,planning):
* web serviece that display the pictures basic implementation in another app named BugGallery
  • timestamps
  • download the pictures as zip file from the web service
  • investigate how to have a headless mplayer that works without a real display(could also be used to increase the resolution)
Thanks to jconnolly and some people in #java for telling me how to handle the broken pipes:
  • the first time I didn’t empty stdout and stderr comming from the process so I had a broken pipe
  • the second time I did “sh”, ”-c”, “export”,”DISPLAY” etc… instead of “sh” ”-c” “export DISPLAY etc…”


Download Download Latest Version

Version Date Uploaded by Notes  
Version 3 May 4th, 2009 GNUtoo  updated deps...again(in the manifest) (more) updated deps...again(in the manifest) (collapse) download
Version 2 May 4th, 2009 GNUtoo  added dependency on: *von hippel *screen previously it only depended... (more) added dependency on: *von hippel *screen previously it only depended on motion thanks jconolly for the tip (collapse) download
Version 1 May 4th, 2009 GNUtoo  Cammotion is an application that take photos from a v4l2... (more) Cammotion is an application that take photos from a v4l2 webcam when some movement is detected by the BUGmotion module. It works the following way: The java application launches mplayer,that displays the camera input fullscreen,and when a movement is detected,it takes a picture and put it in /home/root/.mplayer/screenshots. (the screenshot file names are like this: shot0001.png).That's all for now. while not having many features,it also has some limitations. As I used mplayer the pictures are the size of the screen,that is 320x240,and you need a screen. Requirements: *mplayer with v4l2 support (cross)compiled for the bug device *a kernel compiled with gspca or your v4l2 webcam driver.(kernel patching not needed,you only need a different kernel configuration(.config) and to recompile the kernel) Binaries for mplayer and the kernel will be avaliable soon *a standard v4l2 webcam such as a gspca one License: The license is the GPLv3. If you need a special exception because you want to combine this software with a software that has an incompatible license(such as GPLv2 only(not GPLv2 or later)) TODO(not implemented yet,planning): *web serviece that display the pictures *timestamps *download the pictures as zip file from the web service *investigate how to have a headless mplayer that works without a real display(could also be used to increase the resolution) (collapse) download

This application is licensed under the GPL Version 3 license agreements.

Viewing Cammotion   Link

2 Comments

Comment_icon Login to add comment

kschultz

Bug Labs teamkschultz said on May 12th, 2009 02:43:41 PM

Very cool

GNUtoo

GNUtoo said on May 25th, 2009 07:59:08 AM

thanks. As I don't like unofficial binaries(they could be dangerous) I want to have my .config and my recipe of mplayer included in buglabs's buildbot... I was told it was easy to do for mplayer but not for the kernel... moreover it would have simplified a lot the installation of the application... as one would only have to opkg install the module and mplayer