{"action":"created","issue":{"url":"https://api.github.com/repos/rhiot/rhiot/issues/239","labels_url":"https://api.github.com/repos/rhiot/rhiot/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/rhiot/rhiot/issues/239/comments","events_url":"https://api.github.com/repos/rhiot/rhiot/issues/239/events","html_url":"https://github.com/rhiot/rhiot/issues/239","id":111863906,"number":239,"title":"camel-webcam component","user":{"login":"levackt","id":10286403,"avatar_url":"https://avatars.githubusercontent.com/u/10286403?v=3","gravatar_id":"","url":"https://api.github.com/users/levackt","html_url":"https://github.com/levackt","followers_url":"https://api.github.com/users/levackt/followers","following_url":"https://api.github.com/users/levackt/following{/other_user}","gists_url":"https://api.github.com/users/levackt/gists{/gist_id}","starred_url":"https://api.github.com/users/levackt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levackt/subscriptions","organizations_url":"https://api.github.com/users/levackt/orgs","repos_url":"https://api.github.com/users/levackt/repos","events_url":"https://api.github.com/users/levackt/events{/privacy}","received_events_url":"https://api.github.com/users/levackt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rhiot/rhiot/labels/feature","name":"feature","color":"bfdadc"},{"url":"https://api.github.com/repos/rhiot/rhiot/labels/hardware","name":"hardware","color":"d4c5f9"},{"url":"https://api.github.com/repos/rhiot/rhiot/labels/r&d","name":"r&d","color":"fef2c0"},{"url":"https://api.github.com/repos/rhiot/rhiot/labels/raspberry_pi","name":"raspberry_pi","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"levackt","id":10286403,"avatar_url":"https://avatars.githubusercontent.com/u/10286403?v=3","gravatar_id":"","url":"https://api.github.com/users/levackt","html_url":"https://github.com/levackt","followers_url":"https://api.github.com/users/levackt/followers","following_url":"https://api.github.com/users/levackt/following{/other_user}","gists_url":"https://api.github.com/users/levackt/gists{/gist_id}","starred_url":"https://api.github.com/users/levackt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levackt/subscriptions","organizations_url":"https://api.github.com/users/levackt/orgs","repos_url":"https://api.github.com/users/levackt/repos","events_url":"https://api.github.com/users/levackt/events{/privacy}","received_events_url":"https://api.github.com/users/levackt/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-10-16T16:21:22Z","updated_at":"2015-10-23T10:36:40Z","closed_at":null,"body":"Would be cool to have a webcam, for one thing, the spy-machine #209 will need a spycam. :)\r\n\r\nOther use cases that come to mind include motion detection which can trigger storing the image or uploading to the cloudlet, or you could use it for barcode scanning and a host of other things.\r\n\r\nI tried the laptop webcam as well as an old EyeToy I have lying around.\r\n\r\nThe component supports polling the webcam for an image, ie producer, or scheduled for timelapse images, or waits for motion. \r\nThere's WebcamVerticle which uses the default scheduled consumer taking a frame per second.\r\n\r\nExamples:\r\nTake a single pic\r\nfrom(\"jms:cam\").to(\"webcam:cam\")\r\n\r\nScheduled (take a pic every 5 seconds)\r\nfrom(\"webcam:cam?scheduled=true&consumer.delay=5000\").to(\"mock:foo\")\r\n\r\nMotion (take a pic every half-second and compare for change/motion.\r\nfrom(\"webcam:motion\").to(\"mock:foo\")\r\n\r\nThe library is from http://webcam-capture.sarxos.pl/  and the licence looks ok to a non-lawyer.\r\n"},"comment":{"url":"https://api.github.com/repos/rhiot/rhiot/issues/comments/150539570","html_url":"https://github.com/rhiot/rhiot/issues/239#issuecomment-150539570","issue_url":"https://api.github.com/repos/rhiot/rhiot/issues/239","id":150539570,"user":{"login":"thberger","id":294191,"avatar_url":"https://avatars.githubusercontent.com/u/294191?v=3","gravatar_id":"","url":"https://api.github.com/users/thberger","html_url":"https://github.com/thberger","followers_url":"https://api.github.com/users/thberger/followers","following_url":"https://api.github.com/users/thberger/following{/other_user}","gists_url":"https://api.github.com/users/thberger/gists{/gist_id}","starred_url":"https://api.github.com/users/thberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thberger/subscriptions","organizations_url":"https://api.github.com/users/thberger/orgs","repos_url":"https://api.github.com/users/thberger/repos","events_url":"https://api.github.com/users/thberger/events{/privacy}","received_events_url":"https://api.github.com/users/thberger/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T10:36:40Z","updated_at":"2015-10-23T10:36:40Z","body":"Hi guys,\r\n\r\ngood news: The webcam-component basically works with the Raspberry Pi Camera Module. But I had to do some extra work:\r\n\r\n1. It is important that a specific kernel module for the v4l2 driver is loaded on the Pi. By default, this is not the case, but sudo modprobe bcm2835-v4l2 works.\r\n\r\n2. I had to add com.github.sarxos:v4l4j to the classpath. It is not declared as Maven dependendy of the webcam module, is there a reason for that? I also need this library when I tried with my MacBook's iSight camera.\r\n\r\nIf this is done, I am able to capture images with the route. However, I have problems to start the application again, then it fails with an exception:\r\n\r\nau.edu.jcu.v4l4j.exceptions.V4L4JException: Error starting the capture\r\n\r\nThis problem can only be solved if I hard-reboot the Pi, sudo reboot doesn't work properly anymore.\r\nMaybe I can solve some issues, I'll keep you updated!\r\n\r\nThomas"}}