File tree 3 files changed +32
-0
lines changed
3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/python
2
+ # camera module for photogrammetric timelapse
3
+ # 8/30/17
4
+
5
+ import os
6
+ import logging
7
+ import datetime
8
+ import picamera
9
+
10
+
11
+ class Camera (object ):
12
+ '''class to hold camera and file management functions'''
13
+
14
+ def __init__ (self ):
15
+ self .base_pi_path = base_pi_path
16
+ self .base_remote_path = longpaths .base_remote_path
17
+ self .remote_copy_path = '/Volumes/RAGU/longlapse/dayze'
18
+ self .host = longpaths .host
19
+ self .scp_host = longpaths .scp_host
20
+ self .copied = False
21
+ self .pixels = (2592 , 1944 )
22
+ self .framerate = 1
23
+ self .led = False
24
+ self .vflip = True
25
+ self .hflip = True
26
+ self .meter_mode = 'backlit'
27
+ self .iso = 100
28
+ self .awb_mode = 'off'
29
+ self .awb_gains = (Fraction (447 , 256 ), Fraction (255 , 256 ))
30
+ # self.exposure_mode = 'off' # exposure_mode off disables picam.analog_gain & picam.digital_gain, which are not directly settable; however picamera docs turning this off after gains have settled
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/python
2
2
# socket code adapted from Richard Garsthagen's scripts at pi3dscan.com
3
+ # NOTE: look into python socketserver module or tornado library to handle sockets
3
4
# 12/19/16
4
5
5
6
import socket
@@ -24,6 +25,7 @@ def config_socket():
24
25
25
26
sock = socket .socket (socket .AF_INET , socket .SOCK_DGRAM , socket .IPPROTO_UDP )
26
27
sock .setsockopt (socket .SOL_SOCKET , socket .SO_REUSEADDR , 1 )
28
+ # '' is a symbolic name for host parameter that means all available interfaces
27
29
sock .bind (('' , MCAST_PORT ))
28
30
mreq = struct .pack ("4sl" , socket .inet_aton (MCAST_GRP ), socket .INADDR_ANY )
29
31
sock .setsockopt (socket .IPPROTO_IP , socket .IP_ADD_MEMBERSHIP , mreq )
You can’t perform that action at this time.
0 commit comments