搜索
有爱,有技术,有你^_^)y
╱人◕‿‿◕人╲订下契约(注册新用户)

合作站点账号登陆

QQ登录

只需一步,快速开始

快捷导航
查看: 707|回复: 1
收起左侧

[交流] 想自己在树莓派上实现桌面实时传输

[复制链接]

该用户从未签到

8

主题

7

好友

4100

积分

序章

积分
4100
发表于 2013-10-13 22:52:33 | 显示全部楼层 |阅读模式

╱人◕‿‿◕人╲定下契约

您需要 登录 才可以下载或查看,没有账号?╱人◕‿‿◕人╲订下契约(注册新用户)

x
想自己做个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

签名被小宅喵吞掉了~~~~(>_<)~~~~
回复

使用道具 举报

签到天数: 1 天

连续签到: 1 天

[LV.1]初来乍到

2

主题

14

好友

1万

积分

懒人

积分
12303
发表于 2013-10-18 15:50:45 | 显示全部楼层
Arduino 个大坑.
签名被小宅喵吞掉了~~~~(>_<)~~~~
回复 支持 反对

使用道具 举报

本版积分规则

小黑屋|手机版|技术宅(Z站|基宅) ( 粤ICP备18082987号-1 )

GMT+8, 2025-5-1 14:09 , Processed in 0.114311 second(s), 19 queries , Redis On.

Copyright © 2018 技术宅社区

Powered by Discuz! X3.5

快速回复 返回顶部 返回列表