- UID
- 528124
- 在线时间
- 0 小时
- 最后登录
- 1970-1-1
- 注册时间
- 2013-9-8
- 宅魂
- 508 点
- 贡献
- 34 点
- 宅币
- 2324 枚
- 灵石
- 0 块
- 元气(技能点)
- 3 点
- 活跃
- 0 ℃
- 听众
- 7
- 收听
- 0
该用户从未签到
序章
- 积分
- 4100
|
想自己做个python的project来让能连上pi的设备都能实时获取pi的桌面这样我就不用老是要hdmi或者远程桌面协议来连,借此探讨怎么样获取更加流畅的桌面刷新率,我会持续更新我的项目进度!欢迎大家指正和建议!
From now on I plan to write the technical document by English, to improve my documentation ability.Although the last research about the video driver on Linux has not been finished yet, I plan to do this first. The purpose is to find a way to use raspberry pi outside more efficiently: I want to see the raspberry pi's screen from my telephone.
Normally we use the remote desktop protocol (RDP) to let the computer see the screen of raspberry pi and control it, and I can also get access to it through android phone, this time I want to build my own project to implement it by python. To be make it have more functions and improve the frame rate by configuring different resolutions. Since on Android phone I can also use python, so I plan to do it by python first. What I plan to do is listed below:
1. write a small project on raspberry pi to realize the function of screen shot.
2. find a way to send the screen image to my android phone and display it on the phone.
3. find a solution to improve the frame rate (image encoding/video stream, etc)
Now start, for sure I cannot achieve it very soon, so does the documentation.
Step 1 python screen shot
1. Library availiability
Normally we use “imagegrab“ function from PIL(Python Image Library), but this function is only available on Windows, from the internet it suggests to use pyscreenshot module(link: https://pypi.python.org/pypi/pyscreenshot), the steps to install:
(1) apt-get install python-pip // a tool to manage python packages
(2) sudo pip install pyscreenshot // install scree shot module
(3) sudo apt-get install python-imaging // install PIL library
(4) sudo apt-get install python-gtk2 // a backends
tips: different selections of backends has each small problems, see the discussion on:http://stackoverflow.com/questions/69645/take-a-screenshot-via-a-python-script-linux
here for test, I choose the gtk backend because it seems have a higher vote.
It seems work, it can capture the screen and save it as picture.
Step 2 Send the picture to the device which is connected to the pi through wifi
|
|