You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Capturing preview frames as movie to stdout. Press Ctrl-C to abort.
70
+
71
+
*** Error ***
72
+
An error occurred in the io-library ('Could not claim the USB device"): Could not claim interface 0 (Device or resource busy). Make sure no other program (gvfs-gphoto2-volume-monitor) or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
73
+
ERROR: Movie capture error... Exiting.
74
+
Movie capture finished (0 frames)
75
+
```
76
+
77
+
<br>
78
+
79
+
Status Code | MIME Type | Description
80
+
:-:|:-:|:-:
81
+
504 | `text/plain` | 503 이외의 카메라 연결 상태로 인한 촬영 실패
82
+
83
+
```
84
+
HTTP/1.1 504 GATEWAY TIMEOUT
85
+
Content-Type: text/plain
86
+
87
+
*** Error: No camera found. ***
88
+
```
89
+
90
+
<br>
91
+
92
+
Status Code | MIME Type | Description
93
+
:-:|:-:|:-:
94
+
500 | `text/plain` | 카메라 서버 프로그램 버그로 인한 오류
95
+
96
+
```
97
+
HTTP/1.1 500 INTERNAL SERVER ERROR
98
+
Content-Type: text/html
99
+
100
+
<!doctype html>
101
+
<html lang=en>
102
+
<title>500 Internal Server Error</title>
103
+
<h1>Internal Server Error</h1>
104
+
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>
105
+
```
106
+
53
107
<br>
54
108
109
+
55
110
### GET `/capture`
56
111
57
112
> 카메라에서 2592 x 1728 해상도의 JPEG 사진을 즉시 촬영하여 전송.
58
113
> 초점을 맞추고 셔터 소리가 날 때까지 약 2초의 딜레이가 있음.
59
114
60
-
MIME Type: image/jpeg
115
+
#### Response
116
+
117
+
Status Code | MIME Type | Description
118
+
:-:|:-:|:-:
119
+
200 | `image/jpeg`| 사진 촬영 성공
61
120
62
-
Response Example:
63
121
```
64
122
HTTP/1.1 200 OK
65
123
Content-Type: image/jpeg
66
124
67
125
<jpeg data here>
68
126
```
127
+
128
+
<br>
129
+
130
+
Status Code | MIME Type | Description
131
+
:-:|:-:|:-:
132
+
503 | `text/plain` | 카메라 연결 상태로 인한 촬영 실패.
133
+
134
+
```
135
+
HTTP/1.1 503 SERVICE UNAVAILABLE
136
+
Content-Type: text/plain
137
+
138
+
*** Error ***
139
+
Could not detect any camera
140
+
*** Error (-105: 'Unknown model') ***
141
+
```
142
+
143
+
<br>
144
+
145
+
Status Code | MIME Type | Description
146
+
:-:|:-:|:-:
147
+
500 | `text/plain` | 카메라 서버 프로그램 버그로 인한 오류
148
+
149
+
```
150
+
HTTP/1.1 500 INTERNAL SERVER ERROR
151
+
Content-Type: text/html
152
+
153
+
<!doctype html>
154
+
<html lang=en>
155
+
<title>500 Internal Server Error</title>
156
+
<h1>Internal Server Error</h1>
157
+
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>
0 commit comments