본문 바로가기

IT/Tizen

[2019 서울 하드웨어 해커톤] 8일차 : 이미지 분석하기

 

* 워크숍 8일차 전체 동영상

 

 

* 스케쥴

 

 

* 누비슨 클라우드 관련 이슈

- 'The connection to the cloud server was lost' : 네트워크가 불안정할 때 발생 -> 재부팅 혹은 다른 네트워크 사용하기

 

- 모바일앱 프로퍼티가 나오지 않는 문제 : 재부팅 혹은 다른 컴퓨터에서 시도하기

 

- [공지] 오늘 저녁 6시 누비슨 대표님의 A/S가 예정되어 있습니다.

 

 

* Television - Smart Surveillance Camera with Telegram

- 발표자료 : [링크]

- 완성 소스 : git://git.tizen.org/apps/native/smart-surveillance-camera (브랜치 : television)

- 실습 소스 : git://git.tizen.org/apps/native/smart-surveillance-camera (브랜치 : television_dev)

- RPI에 추가 설치용 패키지

iotjs-1.0.0-99.armv7l.rpm.zip
0.32MB

- Camera State Diagram

 

- Camera APIs

 

 

- mmfw_camcorder_camera0.ini 초기파일

; < Camera/Camcorder Configure Control INI file >
;
; - Header List -
; 1.  Camera
; 2.  Strobe
; 3.  Effect
; 4.  Photograph
; 5.  Capture
; 6.  Detect
;
; - Note -
; If you want to add a new header,
; add a new enum value to "enum ConfigureCategoryControl"
; and new default table for it in mm_camcorder_configure.c/.h
;

[Camera]
; Input index - real setting value
;;; 0:PRIMARY_CAMERA, 1:SECONDARY_CAMERA
; Input index - MSL value(convert array index)
;;; -1:NONE, 0:CAMERA0, 1:CAMERA1
InputIndex = 0,-255 || 0
DeviceName = USB_CAMERA
PreviewResolution = 320,240 | 640,480 || 320,240
CaptureResolution = 320,240 | 640,480 || 640,480
VideoResolution = 320,240 | 640,480 || 640,480
FPS0 = 0,15,30 || 15
FPS1 = 0,15,30 || 15
; PictureForamt - MSL value
;;; 0:NV12, 1:NV12T, 2:NV16, 3:NV21, 4:YUYV, 5:UYVY, 6:422P, 7:I420, 8:YV12, 9:RGB565, 10:RGB888, 11:RGBA, 12:ARGB, 13:ENCODED, 14:INTERLEAVED_JPEG_UYVY, 15:ENCODED_H264
PictureFormat = 7 || 7
Overlay = 0,1 || 1
; Recommend display rotation
;;; 0:NONE, 1:90, 2:180, 3:270
RecommendDisplayRotation = 0
; Recommend preview format for capture
;;; 0:NV12, 1:NV12T, 2:NV16, 3:NV21, 4:YUYV, 5:UYVY, 6:422P, 7:I420, 8:YV12, 9:RGB565, 10:RGB888, 11:RGBA, 12:ARGB, 13:ENCODED, 14:INTERLEAVED_JPEG_UYVY, 15:ENCODED_H264
RecommendPreviewFormatCapture = 7
; Recommend preview format for record
;;; 0:NV12, 1:NV12T, 2:NV16, 3:NV21, 4:YUYV, 5:UYVY, 6:422P, 7:I420, 8:YV12, 9:RGB565, 10:RGB888, 11:RGBA, 12:ARGB, 13:ENCODED, 14:INTERLEAVED_JPEG_UYVY, 15:ENCODED_H264
RecommendPreviewFormatRecord = 7
; Recommend preview resolution
;;; 0: NORMAL ratio(4:3), 1: WIDE ratio(16:9), 2: SQUARE ratio(1:1)
RecommendPreviewResolution = 320,240 | 320,240 | 320,240 || 320,240
; Camera facing direction
;;; 0:REAR, 1:FRONT
FacingDirection = 0
FrameStabilityCount = 1


[Strobe]
;StrobeControl - Not support
;StrobeCapabilities - Not support
; Strobe mode - real setting value
;;; N/A
; Strobe mode - MSL value(convert array index)
;;; 0:OFF, 1:ON, 2:AUTO, 3:REDEYE_REDUCTION, 4:SLOW_SYNC, 5:FRONT_CURTAIN, 6:REAR_CURTAIN, 7:PERMANENT
StrobeMode = 0,-255,-255,-255,-255,-255,-255,-255 || 0
;StrobeStatus - Not support
;StrobeEV - Not support


[Effect]
Brightness = 0,8 || 4
;Contrast = 1,7 || 4
;Saturation = 0,4 || 2
;Sharpness = 0,4 || 2

; White balance - real setting value
;;; 0:AUTO, 1:DAYLIGHT, 2:CLOUDY, 3:TUNGSTEN, 4:FLUORESCENT
; White balance - MSL value(convert array index)
;;; 0:NONE, 1:AUTO, 2:DAYLIGHT, 3:CLOUDY, 4:FLUORESCENT, 5:INCANDESCENT, 6:SHADE, 7:HORIZON, 8:FLASH, 9:CUSTOM
WhiteBalance = -255,0,-255,-255,-255,-255,-255,-255,-255,-255 || 0

; Color tone - real setting value
;;; 1:NONE, 2:MONO, 3:SEPIA, 4:AQUA, 5:ANTIQUE, 6:NEGATIVE, 7:SHARPEN, 8:SKETCH, 9:WASHED, 10:VINTAGE_WARM
;;; 11:VINTAGE_COLD, 12:SOLARIZE, 13:POSTERIZE, 14:POINT_BLUE, 15:POINT_RED_YELLOW, 16:POINT_COLOR_3, 17:POINT_GREEN, 18:POINT_RED, 19:POINT_YELLOW, 20:CARTOONIZE
; Color tone - MSL value(convert array index)
;;; 0:NONE, 1:MONO, 2:SEPIA, 3:NEGATIVE, 4:BLUE, 5:GREEN, 6:AQUA, 7:VIOLET, 8:ORANGE, 9:GRAY, 10:RED,
;;; 11:ANTIQUE, 12:WARM, 13:PINK, 14:YELLOW, 15:PURPLE, 16:EMBOSS, 17:OUTLINE, 18:SOLARIZATION, 19:SKETCH, 20:WASHED,
;;; 21:VINTAGE_WARM, 22:VINTAGE_COLD, 23:POSTERIZATION, 24:CARTOON, 25:SELECTIVE_RED, 26:SELECTIVE_GREEN, 27:SELECTIVE_BLUE, 28:SELECTIVE_YELLOW, 29:SELECTIVE_RED_YELLOW
ColorTone = 1,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255 || 1
; Flip - real setting value
;;; 0:NONE, 1:VERTICAL, 2:HORIZONTAL
; Flip - MSL value(convert array index)
;;; 0:HORIZONTAL, 1:VERTICAL, 2:NONE
;Flip = 2,1,0 || 0

; Wide Dynamic Range - real setting value
;;; 0:OFF, 1:ON
; Wide Dynamic Range - MSL value(convert array index)
;;; 0:OFF, 1:ON, 2:AUTO
WDR = 0,-255,-255 || 0

; Part color mode - real setting value
;;; 0:OFF, 1:SWAP, 2:ACCENT
; Part color mode - MSL value(convert array index)
;;; 0:OFF, 1:SWAP, 2:ACCENT
;PartColorMode = 0,1,2 || 0

; Part color - real setting value
;;; 0:VIOLET, 1:PURPLE, 2:MAGENTA_1, 3:MAGENTA_2, 4:RED_1, 5:RED_2, 6:BROWN, 7:YELLOW, 8:GREEN_1, 9:GREEN_2, 10:GREEN_3,
;;; 11:GREEN_4, 12:COBALT, 13:CYAN, 14:BLUE_1, 15:BLUE_2, 16:GRAY
; Part color - MSL value(convert array index)
;;; 0:VIOLET, 1:PURPLE, 2:MAGENTA_1, 3:MAGENTA_2, 4:RED_1, 5:RED_2, 6:BROWN, 7:YELLOW, 8:GREEN_1, 9:GREEN_2, 10:GREEN_3,
;;; 11:GREEN_4, 12:COBALT_BLUE, 13:CYAN, 14:BLUE_1, 15:BLUE_2, 16:GRAY
;PartColor = 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 || 0


[Photograph]
;LensInit = 0,1 || 0
;DigitalZoom = 0,10 || 0
;OpticalZoom = 0,0 || 0

; Focus mode - real setting value
;;; 0:AUTO, 1:MANUAL, 2:PAN, 3:TOUCH_AUTO, 4:CONTINUOUS
; Focus mode - MSL value(convert array index)
;;; 0:NONE, 1:PAN, 2:AUTO, 3:MANUAL, 4:TOUCH_AUTO, 5:CONTINUOUS
FocusMode = 0,-255,-255,-255,-255,-255 || 0

; Auto focus type - real setting value
;;; 0:NORMAL, 1:MACRO, 2:FULL
; Auto focus - MSL value(convert array index)
;;; 0:NONE, 1:NORMAL, 2:MACRO, 3:FULL
AFType = 0,-255,-255,-255 || 0

; Auto exposure type - real setting value
;;; 0:BASE, 1:MATRIX, 2:CENTER, 3:SPOT, 4:MAX
; Auto exposure mode - MSL value(convert array index)
;;; 0,OFF 1,ALL 2,CENTER1  3,CENTER2 4,CENTER3 5,SPOT1 6,SPOT2 7,CUSTOM1 8,CUSTOM2
AEType = -255,0,-255,-255,-255,-255,-255,-255,-255 || 0

;ExposureValue - Not support
;FNumber - Not support
;ShutterSpeed - Not support

; ISO - real setting value
;;; 0:AUTO, 1:50, 2:100, 3:200, 4:400, 5:800, 6:1600
; ISO - MSL value(convert array index)
;;; 0:AUTO, 1:50, 2:100, 3:200, 4:400, 5:800, 6:1600, 7:3200
ISO = 0,-255,-255,-255,-255,-255,-255,-255 || 0

; Program mode - real setting value
;;; 1:NONE, 2:PORTRAIT, 3:NIGHTSHOT, 4:BACK_LIGHT, 5:LANDSCAPE, 6:SPORTS, 7:PARTY_INDOOR, 8:BEACH_SNOW, 9:SUNSET, 10:DUSK_DAWN,
;;; 11:FALL_COLOR, 12:FIREWORKS, 13:TEXT, 14:CANDLE_LIGHT
; Program mode - MSL value(convert array index)
;;; 0:NORMAL, 1:PORTRAIT, 2:LANDSCAPE, 3:SPORTS, 4:PARTY_N_INDOOR, 5:BEACH_N_INDOOR, 6:SUNSET, 7:DUSK_N_DAWN, 8:FALL_COLOR, 9:NIGHT_SCENE,
;;; 10:FIREWORK, 11:TEXT, 12:SHOW_WINDOW, 13:CANDLE_LIGHT, 14:BACKLIGHT
ProgramMode = 0,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255,-255 || 0

; Anti-handshake - real setting value
;;; 0:OFF, 1:ON
; Anti-handshake - MSL value(convert array index)
;;; 0:OFF, 1:ON, 2:AUTO, 3:MOVIE_ON
AntiHandshake = 0,-255,-255,-255 || 0

; Video-stabilization - real setting value
;;; 0:OFF, 1:ON
; Video-stabilization - MSL value(convert array index)
;;; 0:OFF, 1:ON
VideoStabilization = 0 || 0

; Face zoom mode
;;; 0:OFF, 1:ON
FaceZoomMode = 0 || 0
; Face zoom level
FaceZoomLevel = 0,0 || 0

; PTZ(Pan Tilt Zoom) type
;;; 0:Mechanical, 1:Electronic
;PtzType = 0,1 || 1

; Pan range for mechanical movement
;PanMecha = -10,10

; Pan range for electronic movement
;PanElec = -10,10

; Tilt range for mechanical movement
;TiltMecha = -10,10

; Tilt range for electronic movement
;TiltElec = -10,10


[Capture]
; Output mode
;;; No need to convert
;;; 0:NV12, 1:NV12T, 2:NV16, 3:NV21, 4:YUYV, 5:UYVY, 6:422P, 7:I420, 8:YV12, 9:RGB565, 10:RGB888, 11:RGBA, 12:ARGB, 13:ENCODED, 14:INTERLEAVED_JPEG_UYVY
OutputMode = 7,13 || 13
JpegQuality = 0,100 || 90
MultishotNumber = 1,1 || 1
SensorEncodedCapture = 0
; Support HDR
;;; 0: OFF, 1: ON, 2: ON and Original
SupportHDR = 0,-255,-255 || 0
FrameStabilityCount = 2


[Detect]
; Detect mode
;;; 0:OFF, 1:ON
DetectMode = 0,-255 || 0
;DetectNumber - Not support
;DetectFocusSelect - Not support
;DetectSelectNumber - Not support
;DetectStatus - Not support