2017-08-21 00:17:24 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								<?xml version="1.0" encoding="UTF-8" ?>
							 | 
						
					
						
							
								
									
										
										
										
											2021-04-26 13:14:51 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								<class name="CameraServer" inherits="Object" version="3.4">
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									<brief_description>
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-23 11:14:14 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										Server keeping track of different cameras accessible in Godot.
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									</brief_description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									<description>
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-23 11:14:14 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										The [CameraServer] keeps track of different cameras accessible in Godot. These are external cameras such as webcams or the cameras on your phone.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										It is notably used to provide AR modules with a video feed from the camera.
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									</description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									<tutorials>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									</tutorials>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									<methods>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<method name="add_feed">
							 | 
						
					
						
							
								
									
										
										
										
											2021-07-30 15:28:05 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											<return type="void" />
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<argument index="0" name="feed" type="CameraFeed" />
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
												Adds a camera feed to the camera server.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</method>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<method name="feeds">
							 | 
						
					
						
							
								
									
										
										
										
											2021-07-30 15:28:05 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											<return type="Array" />
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
												Returns an array of [CameraFeed]s.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</method>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<method name="get_feed">
							 | 
						
					
						
							
								
									
										
										
										
											2021-07-30 15:28:05 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											<return type="CameraFeed" />
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<argument index="0" name="index" type="int" />
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
												Returns the [CameraFeed] with this id.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</method>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<method name="get_feed_count">
							 | 
						
					
						
							
								
									
										
										
										
											2021-07-30 15:28:05 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											<return type="int" />
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
												Returns the number of [CameraFeed]s registered.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</method>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<method name="remove_feed">
							 | 
						
					
						
							
								
									
										
										
										
											2021-07-30 15:28:05 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											<return type="void" />
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<argument index="0" name="feed" type="CameraFeed" />
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
												Removes a [CameraFeed].
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</method>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									</methods>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									<signals>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<signal name="camera_feed_added">
							 | 
						
					
						
							
								
									
										
										
										
											2021-07-30 15:28:05 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											<argument index="0" name="id" type="int" />
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<description>
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-23 11:14:14 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
												Emitted when a [CameraFeed] is added (e.g. webcam is plugged in).
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</signal>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<signal name="camera_feed_removed">
							 | 
						
					
						
							
								
									
										
										
										
											2021-07-30 15:28:05 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											<argument index="0" name="id" type="int" />
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											<description>
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-23 11:14:14 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
												Emitted when a [CameraFeed] is removed (e.g. webcam is unplugged).
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											</description>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</signal>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									</signals>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									<constants>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<constant name="FEED_RGBA_IMAGE" value="0" enum="FeedImage">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											The RGBA camera image.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</constant>
							 | 
						
					
						
							
								
									
										
										
										
											2019-06-19 22:21:13 +10:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										<constant name="FEED_YCBCR_IMAGE" value="0" enum="FeedImage">
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											The YCbCr camera image.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</constant>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										<constant name="FEED_Y_IMAGE" value="0" enum="FeedImage">
							 | 
						
					
						
							
								
									
										
										
										
											2019-06-16 11:22:38 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
											The Y component camera image.
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</constant>
							 | 
						
					
						
							
								
									
										
										
										
											2019-06-19 22:21:13 +10:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
										<constant name="FEED_CBCR_IMAGE" value="1" enum="FeedImage">
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											The CbCr component camera image.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										</constant>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									</constants>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								</class>
							 |