擅长:python、mysql、java
<p>我最后只能用拉斯皮斯蒂尔。。。在</p>
<pre><code> raspistill_params = (' -n'
+ ' -ISO ' + str(iso)
+ ' -ss ' + str(shutter_speed)
+ ' -mm ' + meter_mode
+ ' -ex ' + exposure_mode
+ ' ev ' + str(exposure_compensation)
+ ' -awb ' + awb_mode
+ ' -br ' + str(brightness)
+ ' -co ' + str(contrast)
+ ' -sa ' + str(saturation)
+ ' -sh ' + str(sharpness)
+ ' -drc ' + drc_strength
+ ' -rot ' + str(rotation)
+ ' -q ' + str(quality)
+ ' -w ' + str(width)
+ ' -h ' + str(height)
+ ' -ae ' + str(annotate_text_size) + ',0xff,0x808000 '
+ ' -a "' + annotate_text + '"'
+ ' -x GPS.GPSLatitudeRef=' + exif_lat_ref(latitude)
+ ' -x GPS.GPSLatitude=' + exif_latlong(latitude)
+ ' -x GPS.GPSLongitudeRef=' + exif_long_ref(longitude)
+ ' -x GPS.GPSLongitude=' + exif_latlong(longitude)
+ ' -o ' + filename
)
proc = subprocess.Popen("raspistill " + raspistill_params, shell=True, stdout=subprocess.PIPE)
ret_val = proc.communicate()
</code></pre>