My web cam snap

Rick Spencer rick.spencer at canonical.com
Fri Jan 15 13:13:47 UTC 2016


Hi Aiken.

The board I developed on/for was the rpi2. I have 2 webcams lying around,
and they both worked fine. The code is here:
https://code.launchpad.net/~rick-rickspencer3/+junk/rest-cam

Cheers, Rick

On Thu, Jan 14, 2016 at 11:48 PM, Aiken Qi <aiken.qi at canonical.com> wrote:

> Hi, Rick,
>
> May I know what hardware you are working on? Any plan to release the
> source code?
>
>
> Regards,
> Aiken Qi |Director Alliances PRC | Canonical Ltd | Beijing| China | +86
> 13683072422
>
> On Fri, Jan 15, 2016 at 12:47 AM, Rick Spencer <rick.spencer at canonical.com
> > wrote:
>
>> I built my latest snap, that I call rest-cam. I designed this snap really
>> as a building block for other functionality. The idea being that I can
>> attach a camera to a device, install the snap, and then write easy code
>> either on the same device or on different devices, web pages, desktops,
>> etc... to interact with the camera.
>>
>> Currently the functionality is pretty bare bones. If you want to write a
>> program that processes an image in some way, say uploads it to a cloud
>> service, etc... simply ask the api for the image:
>>
>> http://ipaddress:8082/api/photo
>> This will take a photo on demand and serve that file. This is the main
>> purpose of the snap. I am envision a lot of apps using
>> http://localhost:8082/api/photo .
>>
>> If you want to check if the camera is attached:
>> http://ipaddress:8082/api/status
>>
>> I also include a web page that you can use just to futz with the camera,
>> and you just get that at the root.
>> http://ipaddress:8082/
>>
>> I have some near term features to add. First, offering snappy config to
>> set the port, and also adding some simple authentication, which it totally
>> lacks, now. Then expanding the api to allow different size images.
>> Ultimately, I plan to add capturing video and streaming to the snap.
>>
>> If you have suggestions for improving the design, new features, or really
>> and feedback, that would be most welcome.
>>
>> Thanks.
>>
>> Cheers, Rick
>>
>>
>> --
>> snappy-app-devel mailing list
>> snappy-app-devel at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/snappy-app-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snappy-app-devel/attachments/20160115/990a062a/attachment.html>


More information about the snappy-app-devel mailing list