shadow-1 / yi-hack-v3

Alternative Firmware for Xiaomi Cameras based on Hi3518e Chipset
GNU General Public License v3.0
1.15k stars 152 forks source link

.py directly run by cam? #121

Open nicolasplanchon opened 6 years ago

nicolasplanchon commented 6 years ago

Hi there, Currently I download video/image after motion detection by my cam and then I can execute my .py on my computer to make image analysis. Obviously it's pretty slow...

To speed up my process, do you think it's possible to run my .py directly on the cam using a shell ?

Best regards, Nicolas.

shadow-1 commented 6 years ago

@nicolasplanchon Unfortunately these cameras will not be able to run a Python interpreter. The camera has a very weak processor, has almost no free RAM or free space. It's almost certain that your computer will be many times more powerful than the camera.

Having said this, if a lean program is written in a language such as C, this should not have any problems running on the camera.

To get better performance on your computer, you might want to try a different programming language, one that is compiled to machine code rather than interpreted.