ip cameras and micropython

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
katesfb
Posts: 22
Joined: Sun Dec 18, 2016 8:09 pm

ip cameras and micropython

Post by katesfb » Thu Sep 20, 2018 10:17 pm

Hi,
We currently have a project that uses a raspberry pi to store images recorded using an IP camera connected to the Ethernet port. Is it possible to do this using, say, the pyboard/ESP8266 based boards and an Ethernet adapter like the WIZ820. I know there are dedicated camera boards that run micro-python but we would like to stick with the IP cameras if possible.

Any ideas on this would be much appreciated.

Cheers.

jickster
Posts: 629
Joined: Thu Sep 07, 2017 8:57 pm

Re: ip cameras and micropython

Post by jickster » Thu Sep 20, 2018 10:25 pm

What specifics do you have questions on?

Are you open to writing C/C++ code or do you want to write only Python?


Sent from my iPhone using Tapatalk Pro

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: ip cameras and micropython

Post by pythoncoder » Sat Sep 22, 2018 5:05 am

The ESP8266 is really only appropriate if you need a WiFi connection, and even then it has limited RAM. An SD card can be supported, but I wouldn't try adding a wired Ethernet adapter. The Pyboard is a better platform for larger projects.

If you want a wired connection a Pyboard with a supported Ethernet adapter is the way to go. Given that the connection to the camera is over Ethernet I can't see any obvious reason why the application shouldn't be written in Python. Where is the data to be stored? On a local SD card or on a remote server?
Peter Hinch
Index to my micropython libraries.

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: ip cameras and micropython

Post by pfalcon » Sun Sep 23, 2018 4:28 pm

I recently looked into IP cameras/video processing using MicroPython too. For example, I coded up a protype RTSP client which can save H.264 videostream to disk and would like to extend that to be able to play it on screen. SDL bindings are actually early result of that work.

Taking just RTSP client + saving on storage, the code for that would definitely fit to ESP8266, but I'm not so sure it would have enough networking/CPU/storage speed to process a realistic IP camera videostream bandwidth. It might have, with some optimizations, and it would be a cute demo indeed.
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

Post Reply