ÀåÅÍ µðÁöÅÐÇö¹Ì°æ+¶óÁ¸®ÆÄÀÌ ¸ð¼Ç
°æ¹ÚÇѽùΠ2022-04 2022-04-27 12:10:14 Á¶È¸ 9329 Ãßõ 0
장터에서 판매했던 디지털현미경을 라즈베리파이에 붙여보았습니다.
UVC 지원으로 별도 드라이버 설정 없이 잘 인식이 됩니다.
¸ð¼Ç ¿µ»óÀº ¸µÅ© ÁÖ¼Ò·Î ´ëü ÇÕ´Ï´Ù.
http://rpi.sproc.co.kr:8084
motion.conf ÆÄÀÏ ¼³Á¤
daemon on
process_id_file /var/run/motion.pid
setup_mode off
logfile /var/log/motion.log
log_level 6
log_type all
videodevice /dev/video2
v4l2_palette 17
; tunerdevice /dev/tuner0
input -1
norm 0
frequency 0
rotate 0
width 320
height 240
framerate 15
minimum_frame_time 0
; netcam_url value
; netcam_userpass value
netcam_keepalive off
; netcam_proxy value
netcam_tolerant_check off
auto_brightness on
brightness 0
contrast 0
saturation 0
hue 0
roundrobin_frames 1
roundrobin_skip 1
switchfilter off
threshold 800
threshold_tune off
noise_level 0
noise_tune off
despeckle_filter EedDl
; area_detect value
; mask_file value
smart_mask_speed 0
lightswitch 0
minimum_motion_frames 1
pre_capture 0
post_capture 0
event_gap 60
max_movie_time 0
emulate_motion off
output_pictures on
output_debug_pictures off
quality 100
picture_type jpeg
ffmpeg_output_movies on
ffmpeg_output_debug_movies off
ffmpeg_timelapse 0
ffmpeg_timelapse_mode daily
ffmpeg_bps 500000
ffmpeg_variable_bitrate 0
ffmpeg_video_codec mpeg4
ffmpeg_deinterlace off
sdl_threadnr 0
use_extpipe off
;extpipe mencoder -demuxer rawvideo -rawvideo w=320:h=240:i420 -ovc x264 -x264encopts bframes=4:frameref=1:subq=1:scenecut=-1:nob_adapt:threads=1:keyint=1000:8x8dct:vbv_bufsize=4000:crf=24:partitions=i8x8,i4x4:vbv_maxrate=800:no-chroma-me -vf denoise3d=16:12:48:4,pp=lb -of avi -o %f.avi - -fps %fps
snapshot_interval 0
locate_motion_mode on
locate_motion_style redbox
text_right
; text_left CAMERA %t
text_changes off
text_double off
;exif_text %i%J/%K%L
target_dir /dev/null
ipv6_enabled off
stream_port 8082
stream_quality 100
stream_motion off
stream_maxrate 30
stream_localhost off
stream_limit 0
stream_auth_method 0
; stream_authentication username:password
webcontrol_port 8080
webcontrol_localhost off
webcontrol_html_output on
; webcontrol_authentication username:password
track_type 0
track_auto off
;track_port /dev/ttyS0
;track_motorx 0
;track_motorx_reverse 0
;track_motory 1
;track_motory_reverse 0
;track_maxx 200
;track_minx 50
;track_maxy 200
;track_miny 50
;track_homex 128
;track_homey 128
track_iomojo_id 0
track_step_angle_x 10
track_step_angle_y 10
track_move_wait 10
track_speed 255
track_stepsize 40
quiet on
; on_event_start value
; on_event_end value
; on_picture_save value
; on_motion_detected value
; on_area_detected value
; on_movie_start value
; on_movie_end value
; on_camera_lost value
; sql_log_picture on
; ; sql_log_snapshot on
; sql_log_movie off
; ; sql_log_timelapse off
; ; sql_query insert into security(camera, filename, frame, file_type, time_stamp, event_time_stamp) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
; database_type value
; database_dbname value
; database_host value
; database_user value
; database_password value
; database_port value
; sqlite3_db value
; video_pipe value
; motion_video_pipe value
thread /etc/motion/camera_1.conf
; thread /usr/local/etc/thread3.conf
; thread /usr/local/etc/thread4.conf
camera_1.conf ÆÄÀÏ ¼³Á¤
videodevice /dev/video0
input -1
target_dir /dev/null
stream_port 8083
Âü°íÇϼſä~ ÇãÇãÇã
±Ùµ¥ Á¦°¡ ÇÒ ¼ö ÀÖÀ»Áö¸¦ ¸ð¸£°Ú¾î¿ä
¾îÁ¦ Æ÷ƮȮÀÎÇÏ°í ¾Æ¹«¸® Á¢¼ÓÇÏ·Á°í Çصµ »çÀÌÆ®°¡ ¾Èµé°¡Á®¼
¼³Ä¡¸¦ À߸øÇÑ°Å°°´õ±º¿ä
systemctl start motion < ¼ºñ½º ½ÇÇà ÈÄ
motion < ¸ð¼Ç ½ÇÇà
Á¦ ¶óÁ¸® ÆÄÀÌ3´Â ³î°í ÀÖ½À´Ï´Ù.
ÀÌ°É ºÐ¸íÈ÷ wifi¹«Àü±â ¸¸µç´Ù°í »ç³ù´Âµ¥ ±ÍÂú´Ù°í ¼¶ø¿¡ ÃÄ¹Ú¾ÆµÎ°í ¸ð¸£´Âü ÇÏ°í ÀÖ½À´Ï´Ù....
¿©±âÀú±â »ç¿ëÇÏ°í ¸ðÀÚ¶ó¼ Çѵΰ³ ´õ »ç°í ½Í¾îµµ °¡°ÝÀÌ ¸¹ÀÌ ¿Ã¶ó ¼Õ°¡¶ô¸¸ »¡°í ÀÖ½À´Ï´Ù.
¿¹Àü¿£ 3¸ðµ¨ Áß°í°¡ 2¸¸¿øÀÌ¸é »ò¾ú´Âµ¥....¾Æ...ÇÏ°í½ÍÀº°Ç ¸¹°í ¶óÁ¸®ÆÄÀÌ´Â ¸ðÀÚ¶ó°í....ÇãÇãÇãÇã