Read JPG files using the Python language for Nikon SLR camera shutter times

2010-05-23  来源:本站原创  分类:Python  人气:200 

Source of knowledge
http://k.pconline.com.cn/question/101041.html
Nikon SLR cameras for the JPG files straight out of an effective, tried on my D90, and D40 also tried a number of pictures, can be used normally. If after the acquisition of second-hand cameras, computers and no light and shadow magic hand tools such as such as in the linux system. you can use this script to check the shutter a few.

import sys, struct
MAGIC = '\x00\xa7\x00\x04\x00\x00\x00\x01\x00\x00'
def read_shooter(jpg_file):
    data = jpg_file.read()
    idx = data.find(MAGIC)
    if idx >= 0:
        st = data[idx + len(MAGIC): idx + len(MAGIC) + 2]
        return struct.unpack('>H', st)[0]
相关文章
  • Read JPG files using the Python language for Nikon SLR camera shutter times 2010-05-23

    Source of knowledge http://k.pconline.com.cn/question/101041.html Nikon SLR cameras for the JPG files straight out of an effective, tried on my D90, and D40 also tried a number of pictures, can be used normally. If after the acquisition of second-han

  • Flow arrangements for software development (as an example in Python language) 2009-05-31

    Python language in the following example to illustrate the flow of software development arrangements For software development, implementation function of the preparation of the development of software code is only a small part of the whole story but

  • Ga Financial Python language to け に う into り そ 2010-09-06

    Of Jonathan Allen, who turned Yi N Submission date compilation of the Department of April 25, 2010 3:02 afternoon コ ミ ュ the writing is Te ィ . NET, Java, Architecture & Suites ピ ッ ク moving speech, オ Preferences ー ー プ ン ス タ グ standardization, Python Or

  • Python language tutorial arithmetic and arithmetic expressions 2011-01-05

    An expression can be decomposed into operators and operands, operators, functions that do something, they are by some math symbols or other special keywords; operator needs to operate on the data, such data is called operand. For example, 2 + 3 is a

  • python language web tour (python, mod_python, pyamf, flex, apache) 2010-08-10

    This article introduces how like python for web applications. (Windows environment) 1. Using the mod_python module for apache web server, python, and the communication between 1. Download and install apache2.2.11, python2.5 version download from the

  • linux create temporary files in the C language function tmpfile tmpnam function of <loading> 2010-11-27

    Temporary files are usually, the program needs to use temporary storage in the form of documents. This may be calculated in the intermediate results are stored, or made before the actual operation of file copy backup. For example, a data recording pr

  • PLisp: Integration in the LISP language Python (1) 2010-04-20

    Looked a little LISP books, suddenly felt, LISP principle is simple. LISP, only one kind of data structure: Symbolic Expression, referred to sexp. Process itself is sexp, processed data is sexp. That is, if you can explain the procedure written with

  • [ZT] Python expected to be the financial language 2010-04-29

    Jonathan Allen translator of Li (nasi) was released in at 0:18 on April 28, 2010 Securities and Exchange Commission (SEC) proposed that most asset-backed securities (Asset Backed Securities, referred to as ABS) to include a downloadable program, "the

  • Python programming language and Java Performance Comparison 2010-09-15

    Taken from http://developer.51cto.com/art/201003/187962.htm Python programming language currently in use requires continuous learning. Here we have a detailed look at how to better carry out the relevant knowledge. Recently I've been watching a wxPyt

  • Configuration of the Python programming environment based on VIM 2010-03-17

    1, configuration files in the directory / etc / or / etc / vim / Here, there is a document called the vimrc, which is the system common vim configuration files are valid for all users. In each user's home directory, can build their own private config

  • Python programs and C programs of integration (transfer) 2010-05-07

    Chen Jian, Software Engineer, IBM Liang Ren, Software Engineer, IBM Zhou yi, Software Engineer, IBM Description: Python is a rapid development of software for the programming language, its syntax is relatively simple, easy to master, but there is a p

  • Input and output functions with Python to read and write data 2010-05-27

    http://apps.hi.baidu.com/share/detail/970052 from: IBM Read, write and Python In the " Explore Python "series of the previous article, learning the basic Python data types and a number of container data types, such as tuple, string and list. Oth

  • Introduction to Syntax Summary python 2010-05-31

    1.python Is an interpreted language : One with a compiled language such as C or C++ The program can write files from the source ( The C or C++ Language ) Convert to a language of your computer ( Binary code, that is, 0 And 1). Through this process, t

  • Common library python! 2010-07-01

    Learning Python On this page ... (basic installation 2. Python Documentation 2.1 Recommended resource sites 2.2 Other references 2.3 Code Sample 3. Useful Tools 3.1 Python IDE 3.2 Built-in library to use reference 3.3 Common third-party libraries 3.4

  • Concise Notes on Python Tutorial 2010-08-03

    A kind of static type language during the compilation of data to determine the type of language. Most statically typed language is by requiring the use of any of its data type variable is declared before to ensure this. Java and C are statically type

  • Simple Python Tutorial notes of reading 2010-08-03

    A kind of static type language during the compilation of data to determine the type of language. Most statically typed language is by requiring the use of any of its data type variable is declared before to ensure this. Java and C are statically type

  • Getting Started with Python 2010-08-27

    1 Introduction Python scripting language has the most rich and powerful class libraries, sufficient to support the vast majority of everyday applications. Its name comes from a comedy, perhaps the first person who designed the language Python and Pyt

  • Some Python programming article online 2010-09-01

    newthreading - safer concurrency for Python security concurrency (1 response) http://www.starming.com/index.php?action=plugin&v=wave&tpl=union&ac=viewgrouppost&gid=73&tid=7607 Several Google App Engine open source program http://www.st

  • Python package with Pygtk and Py2exe problems 2010-11-15

    Recently spent a day with Pygtk developed a downloader Demo, this gadget can also be considered to be online upgrade of the original model, function is very simple, according to the configuration file of the Url address of download data to the local.

  • eclipse + pydev + django + python + mysql + python-dateutil + pil + setuptools installation 2010-11-19

    January 27, 2010, in order to facilitate the entry of students python, I write down my configuration and experience, because the python is the one hot, and secondly, the compatibility of different software pieces it is still a big problem, so write d