Python

共 19 篇文章

Intro to Python Image Processing in Computational Photography

Intro to Python Image Processing in Computational Photography

Computational photography is about enhancing the photographic process with computation. While we normally tend to think that this applies only to post-processing the end result (similar to photo editing), the possibilities are much richer since computation can be enabled at every step of the photographic process—starting with the scene illumination, continuing with the lens, and eventually even at the display of the captured image. This is important because it allows for doing much more and in different ways than what can be achieved with a normal camera. It is also important because the most prevalent type of camera nowadays—the mobile camera—is not particularly powerful compared to its larger sibling (the DSLR), yet it manages to do a good job by harnessing the computing power it has available on the device. We’ll take a look at two examples where computation can enhance photography—more precisely, we’ll see how simply taking more shots and using a bit of Python to combine them can create nice results in two situations where mobile camera hardware doesn’t really shine—low light and high dynamic range.

Python实现mysql中数据导成excel表格

Python实现mysql中数据导成excel表格

[infobg class=“warning” closebtn="" color="" bgcolor=""] 1、支持中文数据转换,此处数据库等信息均使用utf-8。 2、日期格式可自定义(对于东代码的朋友来说),默认格式:2015-04-21 20:31:21 3、目前仅实现了创建新表功能,同一表名会覆盖原表。 4、目前仅在windows平台测试过,linux平台可能需要修改下编码。 [/infobg] [toggle hide=“yes” title=“Python代码” color=""]

Python版方正教务系统查询

Python版方正教务系统查询

准确的说是Python+wxPython版河北师大方正教务系统查询。目前仅实现了信息查询、成绩查询、平均学分绩计算。 对获取到的课表信息格式不太满意就没加上。 代码过段时间再放上,实现原理就是绕过验证码登陆。 打包工具py2exe,有愿意折腾的可以反编译。 提示: [infobg class=“notice” closebtn="" color="" bgcolor=""] 1、由于加了菜单和状态栏导致程序打开时需要拉一下右下角将界面展开才能使用(能力有限,暂时没找到解决方案)。 2、软件存放路径请勿出现中文 3、点击“成绩查询”,在输出历年成绩时自动输出平均学分绩 4、平均学分绩计算若出现严重偏差可能是由于计算公式导致,届时欢迎指出。 5、技术有限,密码验证有些问题,目前仅支持正确的账号密码登陆,非正确的可能会出现软件一直处于未响应状态。 [/infobg]