├── .gitignore ├── Assets ├── Material.mat ├── Material.mat.meta ├── Simple.unity ├── Simple.unity.meta ├── WebCamTextureToCloudVision.cs ├── WebCamTextureToCloudVision.cs.meta ├── WebGLTemplates.meta └── WebGLTemplates │ ├── CloudVision.meta │ └── CloudVision │ ├── index.html │ ├── index.html.meta │ ├── thumbnail.png │ └── thumbnail.png.meta ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | ### Unity ### 2 | /[Ll]ibrary/ 3 | /[Tt]emp/ 4 | /[Oo]bj/ 5 | /[Bb]uild/ 6 | /[Bb]uilds/ 7 | /Assets/AssetStoreTools* 8 | 9 | # Autogenerated VS/MD solution and project files 10 | ExportedObj/ 11 | *.csproj 12 | *.unityproj 13 | *.sln 14 | *.suo 15 | *.tmp 16 | *.user 17 | *.userprefs 18 | *.pidb 19 | *.booproj 20 | *.svd 21 | 22 | 23 | # Unity3D generated meta files 24 | *.pidb.meta 25 | 26 | # Unity3D Generated File On Crash Reports 27 | sysinfo.txt 28 | 29 | # Builds 30 | *.apk 31 | *.unitypackage 32 | 33 | -------------------------------------------------------------------------------- /Assets/Material.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Material 10 | m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_CustomRenderQueue: 2000 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: 18 | data: 19 | first: 20 | name: _MainTex 21 | second: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | data: 26 | first: 27 | name: _BumpMap 28 | second: 29 | m_Texture: {fileID: 0} 30 | m_Scale: {x: 1, y: 1} 31 | m_Offset: {x: 0, y: 0} 32 | data: 33 | first: 34 | name: _DetailNormalMap 35 | second: 36 | m_Texture: {fileID: 0} 37 | m_Scale: {x: 1, y: 1} 38 | m_Offset: {x: 0, y: 0} 39 | data: 40 | first: 41 | name: _ParallaxMap 42 | second: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | data: 47 | first: 48 | name: _OcclusionMap 49 | second: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | data: 54 | first: 55 | name: _EmissionMap 56 | second: 57 | m_Texture: {fileID: 0} 58 | m_Scale: {x: 1, y: 1} 59 | m_Offset: {x: 0, y: 0} 60 | data: 61 | first: 62 | name: _DetailMask 63 | second: 64 | m_Texture: {fileID: 0} 65 | m_Scale: {x: 1, y: 1} 66 | m_Offset: {x: 0, y: 0} 67 | data: 68 | first: 69 | name: _DetailAlbedoMap 70 | second: 71 | m_Texture: {fileID: 0} 72 | m_Scale: {x: 1, y: 1} 73 | m_Offset: {x: 0, y: 0} 74 | data: 75 | first: 76 | name: _MetallicGlossMap 77 | second: 78 | m_Texture: {fileID: 0} 79 | m_Scale: {x: 1, y: 1} 80 | m_Offset: {x: 0, y: 0} 81 | m_Floats: 82 | data: 83 | first: 84 | name: _SrcBlend 85 | second: 1 86 | data: 87 | first: 88 | name: _DstBlend 89 | second: 0 90 | data: 91 | first: 92 | name: _Cutoff 93 | second: 0.5 94 | data: 95 | first: 96 | name: _Parallax 97 | second: 0.02 98 | data: 99 | first: 100 | name: _ZWrite 101 | second: 1 102 | data: 103 | first: 104 | name: _Glossiness 105 | second: 0.5 106 | data: 107 | first: 108 | name: _BumpScale 109 | second: 1 110 | data: 111 | first: 112 | name: _OcclusionStrength 113 | second: 1 114 | data: 115 | first: 116 | name: _DetailNormalMapScale 117 | second: 1 118 | data: 119 | first: 120 | name: _UVSec 121 | second: 0 122 | data: 123 | first: 124 | name: _Mode 125 | second: 0 126 | data: 127 | first: 128 | name: _Metallic 129 | second: 0 130 | m_Colors: 131 | data: 132 | first: 133 | name: _EmissionColor 134 | second: {r: 0, g: 0, b: 0, a: 1} 135 | data: 136 | first: 137 | name: _Color 138 | second: {r: 1, g: 1, b: 1, a: 1} 139 | -------------------------------------------------------------------------------- /Assets/Material.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4fd43ff8364114a4494f7623286eb526 3 | timeCreated: 1457322811 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Simple.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 3 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_TemporalCoherenceThreshold: 1 54 | m_EnvironmentLightingMode: 0 55 | m_EnableBakedLightmaps: 0 56 | m_EnableRealtimeLightmaps: 0 57 | m_LightmapEditorSettings: 58 | serializedVersion: 10 59 | m_Resolution: 2 60 | m_BakeResolution: 40 61 | m_AtlasSize: 1024 62 | m_AO: 0 63 | m_AOMaxDistance: 1 64 | m_CompAOExponent: 0 65 | m_CompAOExponentDirect: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 1024 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 1 75 | m_BakeBackend: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVRFilterTypeDirect: 0 81 | m_PVRFilterTypeIndirect: 0 82 | m_PVRFilterTypeAO: 0 83 | m_PVRFilteringMode: 0 84 | m_PVRCulling: 1 85 | m_PVRFilteringGaussRadiusDirect: 1 86 | m_PVRFilteringGaussRadiusIndirect: 5 87 | m_PVRFilteringGaussRadiusAO: 2 88 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 89 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 90 | m_PVRFilteringAtrousPositionSigmaAO: 1 91 | m_ShowResolutionOverlay: 1 92 | m_LightingDataAsset: {fileID: 0} 93 | m_UseShadowmask: 0 94 | --- !u!196 &4 95 | NavMeshSettings: 96 | serializedVersion: 2 97 | m_ObjectHideFlags: 0 98 | m_BuildSettings: 99 | serializedVersion: 2 100 | agentTypeID: 0 101 | agentRadius: 0.5 102 | agentHeight: 2 103 | agentSlope: 45 104 | agentClimb: 0.4 105 | ledgeDropHeight: 0 106 | maxJumpAcrossDistance: 0 107 | minRegionArea: 2 108 | manualCellSize: 0 109 | cellSize: 0.16666667 110 | manualTileSize: 0 111 | tileSize: 256 112 | accuratePlacement: 0 113 | debug: 114 | m_Flags: 0 115 | m_NavMeshData: {fileID: 0} 116 | --- !u!1 &412903920 117 | GameObject: 118 | m_ObjectHideFlags: 0 119 | m_PrefabParentObject: {fileID: 0} 120 | m_PrefabInternal: {fileID: 0} 121 | serializedVersion: 5 122 | m_Component: 123 | - component: {fileID: 412903925} 124 | - component: {fileID: 412903924} 125 | - component: {fileID: 412903923} 126 | - component: {fileID: 412903922} 127 | - component: {fileID: 412903921} 128 | m_Layer: 0 129 | m_Name: Main Camera 130 | m_TagString: MainCamera 131 | m_Icon: {fileID: 0} 132 | m_NavMeshLayer: 0 133 | m_StaticEditorFlags: 0 134 | m_IsActive: 1 135 | --- !u!81 &412903921 136 | AudioListener: 137 | m_ObjectHideFlags: 0 138 | m_PrefabParentObject: {fileID: 0} 139 | m_PrefabInternal: {fileID: 0} 140 | m_GameObject: {fileID: 412903920} 141 | m_Enabled: 1 142 | --- !u!124 &412903922 143 | Behaviour: 144 | m_ObjectHideFlags: 0 145 | m_PrefabParentObject: {fileID: 0} 146 | m_PrefabInternal: {fileID: 0} 147 | m_GameObject: {fileID: 412903920} 148 | m_Enabled: 1 149 | --- !u!92 &412903923 150 | Behaviour: 151 | m_ObjectHideFlags: 0 152 | m_PrefabParentObject: {fileID: 0} 153 | m_PrefabInternal: {fileID: 0} 154 | m_GameObject: {fileID: 412903920} 155 | m_Enabled: 1 156 | --- !u!20 &412903924 157 | Camera: 158 | m_ObjectHideFlags: 0 159 | m_PrefabParentObject: {fileID: 0} 160 | m_PrefabInternal: {fileID: 0} 161 | m_GameObject: {fileID: 412903920} 162 | m_Enabled: 1 163 | serializedVersion: 2 164 | m_ClearFlags: 1 165 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844} 166 | m_NormalizedViewPortRect: 167 | serializedVersion: 2 168 | x: 0 169 | y: 0 170 | width: 1 171 | height: 1 172 | near clip plane: 0.3 173 | far clip plane: 1000 174 | field of view: 60 175 | orthographic: 1 176 | orthographic size: 5 177 | m_Depth: -1 178 | m_CullingMask: 179 | serializedVersion: 2 180 | m_Bits: 4294967295 181 | m_RenderingPath: -1 182 | m_TargetTexture: {fileID: 0} 183 | m_TargetDisplay: 0 184 | m_TargetEye: 3 185 | m_HDR: 0 186 | m_AllowMSAA: 1 187 | m_AllowDynamicResolution: 0 188 | m_ForceIntoRT: 0 189 | m_OcclusionCulling: 1 190 | m_StereoConvergence: 10 191 | m_StereoSeparation: 0.022 192 | --- !u!4 &412903925 193 | Transform: 194 | m_ObjectHideFlags: 0 195 | m_PrefabParentObject: {fileID: 0} 196 | m_PrefabInternal: {fileID: 0} 197 | m_GameObject: {fileID: 412903920} 198 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 199 | m_LocalPosition: {x: 0, y: 0, z: -10} 200 | m_LocalScale: {x: 1, y: 1, z: 1} 201 | m_Children: [] 202 | m_Father: {fileID: 0} 203 | m_RootOrder: 0 204 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 205 | --- !u!1 &1882863344 206 | GameObject: 207 | m_ObjectHideFlags: 0 208 | m_PrefabParentObject: {fileID: 0} 209 | m_PrefabInternal: {fileID: 0} 210 | serializedVersion: 5 211 | m_Component: 212 | - component: {fileID: 1882863349} 213 | - component: {fileID: 1882863348} 214 | - component: {fileID: 1882863347} 215 | - component: {fileID: 1882863346} 216 | - component: {fileID: 1882863345} 217 | - component: {fileID: 1882863350} 218 | m_Layer: 0 219 | m_Name: Plane 220 | m_TagString: Untagged 221 | m_Icon: {fileID: 0} 222 | m_NavMeshLayer: 0 223 | m_StaticEditorFlags: 0 224 | m_IsActive: 1 225 | --- !u!114 &1882863345 226 | MonoBehaviour: 227 | m_ObjectHideFlags: 0 228 | m_PrefabParentObject: {fileID: 0} 229 | m_PrefabInternal: {fileID: 0} 230 | m_GameObject: {fileID: 1882863344} 231 | m_Enabled: 0 232 | m_EditorHideFlags: 0 233 | m_Script: {fileID: 11500000, guid: 1227e9d481d7e41aeb3a6f676cfd12ce, type: 3} 234 | m_Name: 235 | m_EditorClassIdentifier: 236 | requestedWidth: 640 237 | requestedHeight: 480 238 | --- !u!23 &1882863346 239 | MeshRenderer: 240 | m_ObjectHideFlags: 0 241 | m_PrefabParentObject: {fileID: 0} 242 | m_PrefabInternal: {fileID: 0} 243 | m_GameObject: {fileID: 1882863344} 244 | m_Enabled: 1 245 | m_CastShadows: 1 246 | m_ReceiveShadows: 1 247 | m_DynamicOccludee: 1 248 | m_MotionVectors: 1 249 | m_LightProbeUsage: 1 250 | m_ReflectionProbeUsage: 1 251 | m_RenderingLayerMask: 4294967295 252 | m_Materials: 253 | - {fileID: 2100000, guid: 4fd43ff8364114a4494f7623286eb526, type: 2} 254 | m_StaticBatchInfo: 255 | firstSubMesh: 0 256 | subMeshCount: 0 257 | m_StaticBatchRoot: {fileID: 0} 258 | m_ProbeAnchor: {fileID: 0} 259 | m_LightProbeVolumeOverride: {fileID: 0} 260 | m_ScaleInLightmap: 1 261 | m_PreserveUVs: 1 262 | m_IgnoreNormalsForChartDetection: 0 263 | m_ImportantGI: 0 264 | m_StitchLightmapSeams: 0 265 | m_SelectedEditorRenderState: 3 266 | m_MinimumChartSize: 4 267 | m_AutoUVMaxDistance: 0.5 268 | m_AutoUVMaxAngle: 89 269 | m_LightmapParameters: {fileID: 0} 270 | m_SortingLayerID: 0 271 | m_SortingLayer: 0 272 | m_SortingOrder: 0 273 | --- !u!64 &1882863347 274 | MeshCollider: 275 | m_ObjectHideFlags: 0 276 | m_PrefabParentObject: {fileID: 0} 277 | m_PrefabInternal: {fileID: 0} 278 | m_GameObject: {fileID: 1882863344} 279 | m_Material: {fileID: 0} 280 | m_IsTrigger: 0 281 | m_Enabled: 1 282 | serializedVersion: 3 283 | m_Convex: 0 284 | m_CookingOptions: 14 285 | m_SkinWidth: 0.01 286 | m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} 287 | --- !u!33 &1882863348 288 | MeshFilter: 289 | m_ObjectHideFlags: 0 290 | m_PrefabParentObject: {fileID: 0} 291 | m_PrefabInternal: {fileID: 0} 292 | m_GameObject: {fileID: 1882863344} 293 | m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} 294 | --- !u!4 &1882863349 295 | Transform: 296 | m_ObjectHideFlags: 0 297 | m_PrefabParentObject: {fileID: 0} 298 | m_PrefabInternal: {fileID: 0} 299 | m_GameObject: {fileID: 1882863344} 300 | m_LocalRotation: {x: -0.000000115202326, y: 0.7071067, z: -0.7071068, w: -0.00000011520231} 301 | m_LocalPosition: {x: 0, y: 0, z: 0} 302 | m_LocalScale: {x: 1.333, y: 1, z: 1} 303 | m_Children: [] 304 | m_Father: {fileID: 0} 305 | m_RootOrder: 1 306 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 307 | --- !u!114 &1882863350 308 | MonoBehaviour: 309 | m_ObjectHideFlags: 0 310 | m_PrefabParentObject: {fileID: 0} 311 | m_PrefabInternal: {fileID: 0} 312 | m_GameObject: {fileID: 1882863344} 313 | m_Enabled: 1 314 | m_EditorHideFlags: 0 315 | m_Script: {fileID: 11500000, guid: 59e2b4076ad88451e8ee6cabe2ea05f6, type: 3} 316 | m_Name: 317 | m_EditorClassIdentifier: 318 | url: https://vision.googleapis.com/v1/images:annotate?key= 319 | apiKey: 320 | captureIntervalSeconds: 5 321 | requestedWidth: 640 322 | requestedHeight: 480 323 | featureType: 1 324 | maxResults: 10 325 | -------------------------------------------------------------------------------- /Assets/Simple.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8821e3e7177aa4e72bee16269302fcb7 3 | timeCreated: 1457322763 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/WebCamTextureToCloudVision.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | 5 | public class WebCamTextureToCloudVision : MonoBehaviour { 6 | 7 | public string url = "https://vision.googleapis.com/v1/images:annotate?key="; 8 | public string apiKey = ""; 9 | public float captureIntervalSeconds = 5.0f; 10 | public int requestedWidth = 640; 11 | public int requestedHeight = 480; 12 | public FeatureType featureType = FeatureType.FACE_DETECTION; 13 | public int maxResults = 10; 14 | 15 | WebCamTexture webcamTexture; 16 | Texture2D texture2D; 17 | Dictionary headers; 18 | 19 | [System.Serializable] 20 | public class AnnotateImageRequests { 21 | public List requests; 22 | } 23 | 24 | [System.Serializable] 25 | public class AnnotateImageRequest { 26 | public Image image; 27 | public List features; 28 | } 29 | 30 | [System.Serializable] 31 | public class Image { 32 | public string content; 33 | } 34 | 35 | [System.Serializable] 36 | public class Feature { 37 | public string type; 38 | public int maxResults; 39 | } 40 | 41 | [System.Serializable] 42 | public class ImageContext { 43 | public LatLongRect latLongRect; 44 | public List languageHints; 45 | } 46 | 47 | [System.Serializable] 48 | public class LatLongRect { 49 | public LatLng minLatLng; 50 | public LatLng maxLatLng; 51 | } 52 | 53 | [System.Serializable] 54 | public class AnnotateImageResponses { 55 | public List responses; 56 | } 57 | 58 | [System.Serializable] 59 | public class AnnotateImageResponse { 60 | public List faceAnnotations; 61 | public List landmarkAnnotations; 62 | public List logoAnnotations; 63 | public List labelAnnotations; 64 | public List textAnnotations; 65 | } 66 | 67 | [System.Serializable] 68 | public class FaceAnnotation { 69 | public BoundingPoly boundingPoly; 70 | public BoundingPoly fdBoundingPoly; 71 | public List landmarks; 72 | public float rollAngle; 73 | public float panAngle; 74 | public float tiltAngle; 75 | public float detectionConfidence; 76 | public float landmarkingConfidence; 77 | public string joyLikelihood; 78 | public string sorrowLikelihood; 79 | public string angerLikelihood; 80 | public string surpriseLikelihood; 81 | public string underExposedLikelihood; 82 | public string blurredLikelihood; 83 | public string headwearLikelihood; 84 | } 85 | 86 | [System.Serializable] 87 | public class EntityAnnotation { 88 | public string mid; 89 | public string locale; 90 | public string description; 91 | public float score; 92 | public float confidence; 93 | public float topicality; 94 | public BoundingPoly boundingPoly; 95 | public List locations; 96 | public List properties; 97 | } 98 | 99 | [System.Serializable] 100 | public class BoundingPoly { 101 | public List vertices; 102 | } 103 | 104 | [System.Serializable] 105 | public class Landmark { 106 | public string type; 107 | public Position position; 108 | } 109 | 110 | [System.Serializable] 111 | public class Position { 112 | public float x; 113 | public float y; 114 | public float z; 115 | } 116 | 117 | [System.Serializable] 118 | public class Vertex { 119 | public float x; 120 | public float y; 121 | } 122 | 123 | [System.Serializable] 124 | public class LocationInfo { 125 | LatLng latLng; 126 | } 127 | 128 | [System.Serializable] 129 | public class LatLng { 130 | float latitude; 131 | float longitude; 132 | } 133 | 134 | [System.Serializable] 135 | public class Property { 136 | string name; 137 | string value; 138 | } 139 | 140 | public enum FeatureType { 141 | TYPE_UNSPECIFIED, 142 | FACE_DETECTION, 143 | LANDMARK_DETECTION, 144 | LOGO_DETECTION, 145 | LABEL_DETECTION, 146 | TEXT_DETECTION, 147 | SAFE_SEARCH_DETECTION, 148 | IMAGE_PROPERTIES 149 | } 150 | 151 | public enum LandmarkType { 152 | UNKNOWN_LANDMARK, 153 | LEFT_EYE, 154 | RIGHT_EYE, 155 | LEFT_OF_LEFT_EYEBROW, 156 | RIGHT_OF_LEFT_EYEBROW, 157 | LEFT_OF_RIGHT_EYEBROW, 158 | RIGHT_OF_RIGHT_EYEBROW, 159 | MIDPOINT_BETWEEN_EYES, 160 | NOSE_TIP, 161 | UPPER_LIP, 162 | LOWER_LIP, 163 | MOUTH_LEFT, 164 | MOUTH_RIGHT, 165 | MOUTH_CENTER, 166 | NOSE_BOTTOM_RIGHT, 167 | NOSE_BOTTOM_LEFT, 168 | NOSE_BOTTOM_CENTER, 169 | LEFT_EYE_TOP_BOUNDARY, 170 | LEFT_EYE_RIGHT_CORNER, 171 | LEFT_EYE_BOTTOM_BOUNDARY, 172 | LEFT_EYE_LEFT_CORNER, 173 | RIGHT_EYE_TOP_BOUNDARY, 174 | RIGHT_EYE_RIGHT_CORNER, 175 | RIGHT_EYE_BOTTOM_BOUNDARY, 176 | RIGHT_EYE_LEFT_CORNER, 177 | LEFT_EYEBROW_UPPER_MIDPOINT, 178 | RIGHT_EYEBROW_UPPER_MIDPOINT, 179 | LEFT_EAR_TRAGION, 180 | RIGHT_EAR_TRAGION, 181 | LEFT_EYE_PUPIL, 182 | RIGHT_EYE_PUPIL, 183 | FOREHEAD_GLABELLA, 184 | CHIN_GNATHION, 185 | CHIN_LEFT_GONION, 186 | CHIN_RIGHT_GONION 187 | }; 188 | 189 | public enum Likelihood { 190 | UNKNOWN, 191 | VERY_UNLIKELY, 192 | UNLIKELY, 193 | POSSIBLE, 194 | LIKELY, 195 | VERY_LIKELY 196 | } 197 | 198 | // Use this for initialization 199 | void Start () { 200 | headers = new Dictionary(); 201 | headers.Add("Content-Type", "application/json; charset=UTF-8"); 202 | 203 | if (apiKey == null || apiKey == "") 204 | Debug.LogError("No API key. Please set your API key into the \"Web Cam Texture To Cloud Vision(Script)\" component."); 205 | 206 | WebCamDevice[] devices = WebCamTexture.devices; 207 | for (var i = 0; i < devices.Length; i++) { 208 | Debug.Log (devices [i].name); 209 | } 210 | if (devices.Length > 0) { 211 | webcamTexture = new WebCamTexture(devices[0].name, requestedWidth, requestedHeight); 212 | Renderer r = GetComponent (); 213 | if (r != null) { 214 | Material m = r.material; 215 | if (m != null) { 216 | m.mainTexture = webcamTexture; 217 | } 218 | } 219 | webcamTexture.Play(); 220 | StartCoroutine("Capture"); 221 | } 222 | } 223 | 224 | // Update is called once per frame 225 | void Update () { 226 | 227 | } 228 | 229 | private IEnumerator Capture() { 230 | while (true) { 231 | if (this.apiKey == null) 232 | yield return null; 233 | 234 | yield return new WaitForSeconds(captureIntervalSeconds); 235 | 236 | Color[] pixels = webcamTexture.GetPixels(); 237 | if (pixels.Length == 0) 238 | yield return null; 239 | if (texture2D == null || webcamTexture.width != texture2D.width || webcamTexture.height != texture2D.height) { 240 | texture2D = new Texture2D(webcamTexture.width, webcamTexture.height, TextureFormat.RGBA32, false); 241 | } 242 | 243 | texture2D.SetPixels(pixels); 244 | // texture2D.Apply(false); // Not required. Because we do not need to be uploaded it to GPU 245 | byte[] jpg = texture2D.EncodeToJPG(); 246 | string base64 = System.Convert.ToBase64String(jpg); 247 | #if UNITY_WEBGL 248 | Application.ExternalCall("post", this.gameObject.name, "OnSuccessFromBrowser", "OnErrorFromBrowser", this.url + this.apiKey, base64, this.featureType.ToString(), this.maxResults); 249 | #else 250 | 251 | AnnotateImageRequests requests = new AnnotateImageRequests(); 252 | requests.requests = new List(); 253 | 254 | AnnotateImageRequest request = new AnnotateImageRequest(); 255 | request.image = new Image(); 256 | request.image.content = base64; 257 | request.features = new List(); 258 | 259 | Feature feature = new Feature(); 260 | feature.type = this.featureType.ToString(); 261 | feature.maxResults = this.maxResults; 262 | 263 | request.features.Add(feature); 264 | 265 | requests.requests.Add(request); 266 | 267 | string jsonData = JsonUtility.ToJson(requests, false); 268 | if (jsonData != string.Empty) { 269 | string url = this.url + this.apiKey; 270 | byte[] postData = System.Text.Encoding.Default.GetBytes(jsonData); 271 | using(WWW www = new WWW(url, postData, headers)) { 272 | yield return www; 273 | if (string.IsNullOrEmpty(www.error)) { 274 | Debug.Log(www.text.Replace("\n", "").Replace(" ", "")); 275 | AnnotateImageResponses responses = JsonUtility.FromJson(www.text); 276 | // SendMessage, BroadcastMessage or someting like that. 277 | Sample_OnAnnotateImageResponses(responses); 278 | } else { 279 | Debug.Log("Error: " + www.error); 280 | } 281 | } 282 | } 283 | #endif 284 | } 285 | } 286 | 287 | #if UNITY_WEBGL 288 | void OnSuccessFromBrowser(string jsonString) { 289 | Debug.Log(jsonString); 290 | AnnotateImageResponses responses = JsonUtility.FromJson(jsonString); 291 | Sample_OnAnnotateImageResponses(responses); 292 | } 293 | 294 | void OnErrorFromBrowser(string jsonString) { 295 | Debug.Log(jsonString); 296 | } 297 | #endif 298 | 299 | /// 300 | /// A sample implementation. 301 | /// 302 | void Sample_OnAnnotateImageResponses(AnnotateImageResponses responses) { 303 | if (responses.responses.Count > 0) { 304 | if (responses.responses[0].faceAnnotations != null && responses.responses[0].faceAnnotations.Count > 0) { 305 | Debug.Log("joyLikelihood: " + responses.responses[0].faceAnnotations[0].joyLikelihood); 306 | } 307 | } 308 | } 309 | } 310 | -------------------------------------------------------------------------------- /Assets/WebCamTextureToCloudVision.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 59e2b4076ad88451e8ee6cabe2ea05f6 3 | timeCreated: 1457322767 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/WebGLTemplates.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15255f4422bd5492f935d8bc7e1b88d9 3 | folderAsset: yes 4 | timeCreated: 1457515784 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/WebGLTemplates/CloudVision.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b93a70df659e64cd3948a968e9a7b706 3 | folderAsset: yes 4 | timeCreated: 1457516326 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/WebGLTemplates/CloudVision/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Unity WebGL Player | %UNITY_WEB_NAME% 7 | 10 | 56 | 57 | 58 | 59 | %UNITY_WEBGL_LOADER_GLUE% 60 | 61 | 62 | -------------------------------------------------------------------------------- /Assets/WebGLTemplates/CloudVision/index.html.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0574f05ae3041475a9226a2d2a0d2cdd 3 | timeCreated: 1457513160 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/WebGLTemplates/CloudVision/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comoc/UnityCloudVision/38dd9443c65e021ef5c957f9001f41f81415d8b5/Assets/WebGLTemplates/CloudVision/thumbnail.png -------------------------------------------------------------------------------- /Assets/WebGLTemplates/CloudVision/thumbnail.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb7d17b88131c45daa693c5752135fdd 3 | timeCreated: 1457513161 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_DisableAudio: 0 16 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_SolverIterationCount: 6 13 | m_QueriesHitTriggers: 1 14 | m_EnableAdaptiveForce: 0 15 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 16 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/Simple.unity 10 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_WebSecurityEmulationEnabled: 0 10 | m_WebSecurityEmulationHostUrl: http://www.mydomain.com/mygame.unity3d 11 | m_DefaultBehaviorMode: 1 12 | m_SpritePackerMode: 2 13 | m_SpritePackerPaddingPower: 1 14 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 15 | m_ProjectGenerationRootNamespace: 16 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 9 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} 38 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_TierSettings_Tier1: 42 | renderingPath: 1 43 | useCascadedShadowMaps: 1 44 | m_TierSettings_Tier2: 45 | renderingPath: 1 46 | useCascadedShadowMaps: 1 47 | m_TierSettings_Tier3: 48 | renderingPath: 1 49 | useCascadedShadowMaps: 1 50 | m_DefaultRenderingPath: 1 51 | m_DefaultMobileRenderingPath: 1 52 | m_TierSettings: [] 53 | m_LightmapStripping: 0 54 | m_FogStripping: 0 55 | m_LightmapKeepPlain: 1 56 | m_LightmapKeepDirCombined: 1 57 | m_LightmapKeepDirSeparate: 1 58 | m_LightmapKeepDynamicPlain: 1 59 | m_LightmapKeepDynamicDirCombined: 1 60 | m_LightmapKeepDynamicDirSeparate: 1 61 | m_FogKeepLinear: 1 62 | m_FogKeepExp: 1 63 | m_FogKeepExp2: 1 64 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshAreas: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_MinPenetrationForPenalty: 0.01 17 | m_BaumgarteScale: 0.2 18 | m_BaumgarteTimeOfImpactScale: 0.75 19 | m_TimeToSleep: 0.5 20 | m_LinearSleepTolerance: 0.01 21 | m_AngularSleepTolerance: 2 22 | m_QueriesHitTriggers: 1 23 | m_QueriesStartInColliders: 1 24 | m_ChangeStopsCallbacks: 0 25 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 26 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 15 7 | productGUID: da7685976cc6b45d2ae7d5ed21ee4465 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 4 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: comoc 16 | productName: UnityArUco 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 1 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 53 | iosShowActivityIndicatorOnLoading: -1 54 | androidShowActivityIndicatorOnLoading: -1 55 | tizenShowActivityIndicatorOnLoading: -1 56 | iosAppInBackgroundBehavior: 0 57 | displayResolutionDialog: 1 58 | iosAllowHTTPDownload: 1 59 | allowedAutorotateToPortrait: 1 60 | allowedAutorotateToPortraitUpsideDown: 1 61 | allowedAutorotateToLandscapeRight: 1 62 | allowedAutorotateToLandscapeLeft: 1 63 | useOSAutorotation: 1 64 | use32BitDisplayBuffer: 1 65 | preserveFramebufferAlpha: 0 66 | disableDepthAndStencilBuffers: 0 67 | androidBlitType: 0 68 | defaultIsNativeResolution: 1 69 | macRetinaSupport: 1 70 | runInBackground: 1 71 | captureSingleScreen: 0 72 | muteOtherAudioSources: 0 73 | Prepare IOS For Recording: 0 74 | Force IOS Speakers When Recording: 0 75 | deferSystemGesturesMode: 0 76 | hideHomeButton: 0 77 | submitAnalytics: 1 78 | usePlayerLog: 1 79 | bakeCollisionMeshes: 0 80 | forceSingleInstance: 0 81 | resizableWindow: 0 82 | useMacAppStoreValidation: 0 83 | macAppStoreCategory: public.app-category.games 84 | gpuSkinning: 0 85 | graphicsJobs: 0 86 | xboxPIXTextureCapture: 0 87 | xboxEnableAvatar: 0 88 | xboxEnableKinect: 0 89 | xboxEnableKinectAutoTracking: 0 90 | xboxEnableFitness: 0 91 | visibleInBackground: 0 92 | allowFullscreenSwitch: 1 93 | graphicsJobMode: 0 94 | fullscreenMode: 2 95 | xboxSpeechDB: 0 96 | xboxEnableHeadOrientation: 0 97 | xboxEnableGuest: 0 98 | xboxEnablePIXSampling: 0 99 | metalFramebufferOnly: 0 100 | n3dsDisableStereoscopicView: 0 101 | n3dsEnableSharedListOpt: 1 102 | n3dsEnableVSync: 0 103 | xboxOneResolution: 0 104 | xboxOneSResolution: 0 105 | xboxOneXResolution: 3 106 | xboxOneMonoLoggingLevel: 0 107 | xboxOneLoggingLevel: 1 108 | xboxOneDisableEsram: 0 109 | xboxOnePresentImmediateThreshold: 0 110 | switchQueueCommandMemory: 0 111 | videoMemoryForVertexBuffers: 0 112 | psp2PowerMode: 0 113 | psp2AcquireBGM: 1 114 | m_SupportedAspectRatios: 115 | 4:3: 1 116 | 5:4: 1 117 | 16:10: 1 118 | 16:9: 1 119 | Others: 1 120 | bundleVersion: 1.0 121 | preloadedAssets: [] 122 | metroInputSource: 0 123 | wsaTransparentSwapchain: 0 124 | m_HolographicPauseOnTrackingLoss: 1 125 | xboxOneDisableKinectGpuReservation: 0 126 | xboxOneEnable7thCore: 0 127 | vrSettings: 128 | cardboard: 129 | depthFormat: 0 130 | enableTransitionView: 0 131 | daydream: 132 | depthFormat: 0 133 | useSustainedPerformanceMode: 0 134 | enableVideoLayer: 0 135 | useProtectedVideoMemory: 0 136 | minimumSupportedHeadTracking: 0 137 | maximumSupportedHeadTracking: 1 138 | hololens: 139 | depthFormat: 1 140 | depthBufferSharingEnabled: 0 141 | enable360StereoCapture: 0 142 | oculus: 143 | sharedDepthBuffer: 0 144 | dashSupport: 0 145 | protectGraphicsMemory: 0 146 | useHDRDisplay: 0 147 | m_ColorGamuts: 00000000 148 | targetPixelDensity: 30 149 | resolutionScalingMode: 0 150 | androidSupportedAspectRatio: 1 151 | androidMaxAspectRatio: 2.1 152 | applicationIdentifier: 153 | Android: com.Company.ProductName 154 | Standalone: unity.comoc.UnityArUco 155 | Tizen: com.Company.ProductName 156 | iOS: com.Company.ProductName 157 | tvOS: com.Company.ProductName 158 | buildNumber: 159 | iOS: 0 160 | AndroidBundleVersionCode: 1 161 | AndroidMinSdkVersion: 16 162 | AndroidTargetSdkVersion: 0 163 | AndroidPreferredInstallLocation: 1 164 | aotOptions: 165 | stripEngineCode: 1 166 | iPhoneStrippingLevel: 0 167 | iPhoneScriptCallOptimization: 0 168 | ForceInternetPermission: 0 169 | ForceSDCardPermission: 0 170 | CreateWallpaper: 0 171 | APKExpansionFiles: 0 172 | keepLoadedShadersAlive: 0 173 | StripUnusedMeshComponents: 0 174 | VertexChannelCompressionMask: 214 175 | iPhoneSdkVersion: 988 176 | iOSTargetOSVersionString: 8.0 177 | tvOSSdkVersion: 0 178 | tvOSRequireExtendedGameController: 0 179 | tvOSTargetOSVersionString: 9.0 180 | uIPrerenderedIcon: 0 181 | uIRequiresPersistentWiFi: 0 182 | uIRequiresFullScreen: 1 183 | uIStatusBarHidden: 1 184 | uIExitOnSuspend: 0 185 | uIStatusBarStyle: 0 186 | iPhoneSplashScreen: {fileID: 0} 187 | iPhoneHighResSplashScreen: {fileID: 0} 188 | iPhoneTallHighResSplashScreen: {fileID: 0} 189 | iPhone47inSplashScreen: {fileID: 0} 190 | iPhone55inPortraitSplashScreen: {fileID: 0} 191 | iPhone55inLandscapeSplashScreen: {fileID: 0} 192 | iPhone58inPortraitSplashScreen: {fileID: 0} 193 | iPhone58inLandscapeSplashScreen: {fileID: 0} 194 | iPadPortraitSplashScreen: {fileID: 0} 195 | iPadHighResPortraitSplashScreen: {fileID: 0} 196 | iPadLandscapeSplashScreen: {fileID: 0} 197 | iPadHighResLandscapeSplashScreen: {fileID: 0} 198 | appleTVSplashScreen: {fileID: 0} 199 | appleTVSplashScreen2x: {fileID: 0} 200 | tvOSSmallIconLayers: [] 201 | tvOSSmallIconLayers2x: [] 202 | tvOSLargeIconLayers: [] 203 | tvOSLargeIconLayers2x: [] 204 | tvOSTopShelfImageLayers: [] 205 | tvOSTopShelfImageLayers2x: [] 206 | tvOSTopShelfImageWideLayers: [] 207 | tvOSTopShelfImageWideLayers2x: [] 208 | iOSLaunchScreenType: 0 209 | iOSLaunchScreenPortrait: {fileID: 0} 210 | iOSLaunchScreenLandscape: {fileID: 0} 211 | iOSLaunchScreenBackgroundColor: 212 | serializedVersion: 2 213 | rgba: 0 214 | iOSLaunchScreenFillPct: 100 215 | iOSLaunchScreenSize: 100 216 | iOSLaunchScreenCustomXibPath: 217 | iOSLaunchScreeniPadType: 0 218 | iOSLaunchScreeniPadImage: {fileID: 0} 219 | iOSLaunchScreeniPadBackgroundColor: 220 | serializedVersion: 2 221 | rgba: 0 222 | iOSLaunchScreeniPadFillPct: 100 223 | iOSLaunchScreeniPadSize: 100 224 | iOSLaunchScreeniPadCustomXibPath: 225 | iOSUseLaunchScreenStoryboard: 0 226 | iOSLaunchScreenCustomStoryboardPath: 227 | iOSDeviceRequirements: [] 228 | iOSURLSchemes: [] 229 | iOSBackgroundModes: 0 230 | iOSMetalForceHardShadows: 0 231 | metalEditorSupport: 1 232 | metalAPIValidation: 1 233 | iOSRenderExtraFrameOnPause: 1 234 | appleDeveloperTeamID: 235 | iOSManualSigningProvisioningProfileID: 236 | tvOSManualSigningProvisioningProfileID: 237 | iOSManualSigningProvisioningProfileType: 0 238 | tvOSManualSigningProvisioningProfileType: 0 239 | appleEnableAutomaticSigning: 0 240 | iOSRequireARKit: 0 241 | appleEnableProMotion: 0 242 | clonedFromGUID: 00000000000000000000000000000000 243 | templatePackageId: 244 | templateDefaultScene: 245 | AndroidTargetArchitectures: 5 246 | AndroidSplashScreenScale: 0 247 | androidSplashScreen: {fileID: 0} 248 | AndroidKeystoreName: 249 | AndroidKeyaliasName: 250 | AndroidTVCompatibility: 1 251 | AndroidIsGame: 1 252 | AndroidEnableTango: 0 253 | androidEnableBanner: 1 254 | androidUseLowAccuracyLocation: 0 255 | m_AndroidBanners: 256 | - width: 320 257 | height: 180 258 | banner: {fileID: 0} 259 | androidGamepadSupportLevel: 0 260 | resolutionDialogBanner: {fileID: 0} 261 | m_BuildTargetIcons: 262 | - m_BuildTarget: 263 | m_Icons: 264 | - serializedVersion: 2 265 | m_Icon: {fileID: 0} 266 | m_Width: 128 267 | m_Height: 128 268 | m_Kind: 0 269 | m_BuildTargetPlatformIcons: [] 270 | m_BuildTargetBatching: [] 271 | m_BuildTargetGraphicsAPIs: [] 272 | m_BuildTargetVRSettings: [] 273 | m_BuildTargetEnableVuforiaSettings: [] 274 | openGLRequireES31: 0 275 | openGLRequireES31AEP: 0 276 | m_TemplateCustomTags: {} 277 | mobileMTRendering: 278 | iPhone: 1 279 | tvOS: 1 280 | m_BuildTargetGroupLightmapEncodingQuality: 281 | - m_BuildTarget: Standalone 282 | m_EncodingQuality: 1 283 | - m_BuildTarget: XboxOne 284 | m_EncodingQuality: 1 285 | - m_BuildTarget: PS4 286 | m_EncodingQuality: 1 287 | playModeTestRunnerEnabled: 0 288 | runPlayModeTestAsEditModeTest: 0 289 | actionOnDotNetUnhandledException: 1 290 | enableInternalProfiler: 0 291 | logObjCUncaughtExceptions: 1 292 | enableCrashReportAPI: 0 293 | cameraUsageDescription: 294 | locationUsageDescription: 295 | microphoneUsageDescription: 296 | switchNetLibKey: 297 | switchSocketMemoryPoolSize: 6144 298 | switchSocketAllocatorPoolSize: 128 299 | switchSocketConcurrencyLimit: 14 300 | switchScreenResolutionBehavior: 2 301 | switchUseCPUProfiler: 0 302 | switchApplicationID: 0x01004b9000490000 303 | switchNSODependencies: 304 | switchTitleNames_0: 305 | switchTitleNames_1: 306 | switchTitleNames_2: 307 | switchTitleNames_3: 308 | switchTitleNames_4: 309 | switchTitleNames_5: 310 | switchTitleNames_6: 311 | switchTitleNames_7: 312 | switchTitleNames_8: 313 | switchTitleNames_9: 314 | switchTitleNames_10: 315 | switchTitleNames_11: 316 | switchTitleNames_12: 317 | switchTitleNames_13: 318 | switchTitleNames_14: 319 | switchPublisherNames_0: 320 | switchPublisherNames_1: 321 | switchPublisherNames_2: 322 | switchPublisherNames_3: 323 | switchPublisherNames_4: 324 | switchPublisherNames_5: 325 | switchPublisherNames_6: 326 | switchPublisherNames_7: 327 | switchPublisherNames_8: 328 | switchPublisherNames_9: 329 | switchPublisherNames_10: 330 | switchPublisherNames_11: 331 | switchPublisherNames_12: 332 | switchPublisherNames_13: 333 | switchPublisherNames_14: 334 | switchIcons_0: {fileID: 0} 335 | switchIcons_1: {fileID: 0} 336 | switchIcons_2: {fileID: 0} 337 | switchIcons_3: {fileID: 0} 338 | switchIcons_4: {fileID: 0} 339 | switchIcons_5: {fileID: 0} 340 | switchIcons_6: {fileID: 0} 341 | switchIcons_7: {fileID: 0} 342 | switchIcons_8: {fileID: 0} 343 | switchIcons_9: {fileID: 0} 344 | switchIcons_10: {fileID: 0} 345 | switchIcons_11: {fileID: 0} 346 | switchIcons_12: {fileID: 0} 347 | switchIcons_13: {fileID: 0} 348 | switchIcons_14: {fileID: 0} 349 | switchSmallIcons_0: {fileID: 0} 350 | switchSmallIcons_1: {fileID: 0} 351 | switchSmallIcons_2: {fileID: 0} 352 | switchSmallIcons_3: {fileID: 0} 353 | switchSmallIcons_4: {fileID: 0} 354 | switchSmallIcons_5: {fileID: 0} 355 | switchSmallIcons_6: {fileID: 0} 356 | switchSmallIcons_7: {fileID: 0} 357 | switchSmallIcons_8: {fileID: 0} 358 | switchSmallIcons_9: {fileID: 0} 359 | switchSmallIcons_10: {fileID: 0} 360 | switchSmallIcons_11: {fileID: 0} 361 | switchSmallIcons_12: {fileID: 0} 362 | switchSmallIcons_13: {fileID: 0} 363 | switchSmallIcons_14: {fileID: 0} 364 | switchManualHTML: 365 | switchAccessibleURLs: 366 | switchLegalInformation: 367 | switchMainThreadStackSize: 1048576 368 | switchPresenceGroupId: 369 | switchLogoHandling: 0 370 | switchReleaseVersion: 0 371 | switchDisplayVersion: 1.0.0 372 | switchStartupUserAccount: 0 373 | switchTouchScreenUsage: 0 374 | switchSupportedLanguagesMask: 0 375 | switchLogoType: 0 376 | switchApplicationErrorCodeCategory: 377 | switchUserAccountSaveDataSize: 0 378 | switchUserAccountSaveDataJournalSize: 0 379 | switchApplicationAttribute: 0 380 | switchCardSpecSize: -1 381 | switchCardSpecClock: -1 382 | switchRatingsMask: 0 383 | switchRatingsInt_0: 0 384 | switchRatingsInt_1: 0 385 | switchRatingsInt_2: 0 386 | switchRatingsInt_3: 0 387 | switchRatingsInt_4: 0 388 | switchRatingsInt_5: 0 389 | switchRatingsInt_6: 0 390 | switchRatingsInt_7: 0 391 | switchRatingsInt_8: 0 392 | switchRatingsInt_9: 0 393 | switchRatingsInt_10: 0 394 | switchRatingsInt_11: 0 395 | switchLocalCommunicationIds_0: 396 | switchLocalCommunicationIds_1: 397 | switchLocalCommunicationIds_2: 398 | switchLocalCommunicationIds_3: 399 | switchLocalCommunicationIds_4: 400 | switchLocalCommunicationIds_5: 401 | switchLocalCommunicationIds_6: 402 | switchLocalCommunicationIds_7: 403 | switchParentalControl: 0 404 | switchAllowsScreenshot: 1 405 | switchAllowsVideoCapturing: 1 406 | switchAllowsRuntimeAddOnContentInstall: 0 407 | switchDataLossConfirmation: 0 408 | switchSupportedNpadStyles: 3 409 | switchNativeFsCacheSize: 32 410 | switchSocketConfigEnabled: 0 411 | switchTcpInitialSendBufferSize: 32 412 | switchTcpInitialReceiveBufferSize: 64 413 | switchTcpAutoSendBufferSizeMax: 256 414 | switchTcpAutoReceiveBufferSizeMax: 256 415 | switchUdpSendBufferSize: 9 416 | switchUdpReceiveBufferSize: 42 417 | switchSocketBufferEfficiency: 4 418 | switchSocketInitializeEnabled: 1 419 | switchNetworkInterfaceManagerInitializeEnabled: 1 420 | switchPlayerConnectionEnabled: 1 421 | ps4NPAgeRating: 12 422 | ps4NPTitleSecret: 423 | ps4NPTrophyPackPath: 424 | ps4ParentalLevel: 1 425 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 426 | ps4Category: 0 427 | ps4MasterVersion: 01.00 428 | ps4AppVersion: 01.00 429 | ps4AppType: 0 430 | ps4ParamSfxPath: 431 | ps4VideoOutPixelFormat: 0 432 | ps4VideoOutInitialWidth: 1920 433 | ps4VideoOutBaseModeInitialWidth: 1920 434 | ps4VideoOutReprojectionRate: 120 435 | ps4PronunciationXMLPath: 436 | ps4PronunciationSIGPath: 437 | ps4BackgroundImagePath: 438 | ps4StartupImagePath: 439 | ps4StartupImagesFolder: 440 | ps4IconImagesFolder: 441 | ps4SaveDataImagePath: 442 | ps4SdkOverride: 443 | ps4BGMPath: 444 | ps4ShareFilePath: 445 | ps4ShareOverlayImagePath: 446 | ps4PrivacyGuardImagePath: 447 | ps4NPtitleDatPath: 448 | ps4RemotePlayKeyAssignment: -1 449 | ps4RemotePlayKeyMappingDir: 450 | ps4PlayTogetherPlayerCount: 0 451 | ps4EnterButtonAssignment: 1 452 | ps4ApplicationParam1: 0 453 | ps4ApplicationParam2: 0 454 | ps4ApplicationParam3: 0 455 | ps4ApplicationParam4: 0 456 | ps4DownloadDataSize: 0 457 | ps4GarlicHeapSize: 2048 458 | ps4ProGarlicHeapSize: 2560 459 | ps4Passcode: 5PN2qmWqBlQ9wQj99nsQzldVI5ZuGXbE 460 | ps4pnSessions: 1 461 | ps4pnPresence: 1 462 | ps4pnFriends: 1 463 | ps4pnGameCustomData: 1 464 | playerPrefsSupport: 0 465 | enableApplicationExit: 0 466 | restrictedAudioUsageRights: 0 467 | ps4UseResolutionFallback: 0 468 | ps4ReprojectionSupport: 0 469 | ps4UseAudio3dBackend: 0 470 | ps4SocialScreenEnabled: 0 471 | ps4ScriptOptimizationLevel: 3 472 | ps4Audio3dVirtualSpeakerCount: 14 473 | ps4attribCpuUsage: 0 474 | ps4PatchPkgPath: 475 | ps4PatchLatestPkgPath: 476 | ps4PatchChangeinfoPath: 477 | ps4PatchDayOne: 0 478 | ps4attribUserManagement: 0 479 | ps4attribMoveSupport: 0 480 | ps4attrib3DSupport: 0 481 | ps4attribShareSupport: 0 482 | ps4attribExclusiveVR: 0 483 | ps4disableAutoHideSplash: 0 484 | ps4videoRecordingFeaturesUsed: 0 485 | ps4contentSearchFeaturesUsed: 0 486 | ps4attribEyeToEyeDistanceSettingVR: 0 487 | ps4IncludedModules: [] 488 | monoEnv: 489 | psp2Splashimage: {fileID: 0} 490 | psp2NPTrophyPackPath: 491 | psp2NPSupportGBMorGJP: 0 492 | psp2NPAgeRating: 12 493 | psp2NPTitleDatPath: 494 | psp2NPCommsID: 495 | psp2NPCommunicationsID: 496 | psp2NPCommsPassphrase: 497 | psp2NPCommsSig: 498 | psp2ParamSfxPath: 499 | psp2ManualPath: 500 | psp2LiveAreaGatePath: 501 | psp2LiveAreaBackroundPath: 502 | psp2LiveAreaPath: 503 | psp2LiveAreaTrialPath: 504 | psp2PatchChangeInfoPath: 505 | psp2PatchOriginalPackage: 506 | psp2PackagePassword: WRK5RhRXdCdG5nG5azdNMK66MuCV6GXi 507 | psp2KeystoneFile: 508 | psp2MemoryExpansionMode: 0 509 | psp2DRMType: 0 510 | psp2StorageType: 0 511 | psp2MediaCapacity: 0 512 | psp2DLCConfigPath: 513 | psp2ThumbnailPath: 514 | psp2BackgroundPath: 515 | psp2SoundPath: 516 | psp2TrophyCommId: 517 | psp2TrophyPackagePath: 518 | psp2PackagedResourcesPath: 519 | psp2SaveDataQuota: 10240 520 | psp2ParentalLevel: 1 521 | psp2ShortTitle: Not Set 522 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 523 | psp2Category: 0 524 | psp2MasterVersion: 01.00 525 | psp2AppVersion: 01.00 526 | psp2TVBootMode: 0 527 | psp2EnterButtonAssignment: 2 528 | psp2TVDisableEmu: 0 529 | psp2AllowTwitterDialog: 1 530 | psp2Upgradable: 0 531 | psp2HealthWarning: 0 532 | psp2UseLibLocation: 0 533 | psp2InfoBarOnStartup: 0 534 | psp2InfoBarColor: 0 535 | psp2ScriptOptimizationLevel: 2 536 | splashScreenBackgroundSourceLandscape: {fileID: 0} 537 | splashScreenBackgroundSourcePortrait: {fileID: 0} 538 | spritePackerPolicy: 539 | webGLMemorySize: 256 540 | webGLExceptionSupport: 1 541 | webGLNameFilesAsHashes: 0 542 | webGLDataCaching: 0 543 | webGLDebugSymbols: 0 544 | webGLEmscriptenArgs: 545 | webGLModulesDirectory: 546 | webGLTemplate: PROJECT:ArUco 547 | webGLAnalyzeBuildSize: 0 548 | webGLUseEmbeddedResources: 0 549 | webGLCompressionFormat: 1 550 | webGLLinkerTarget: 0 551 | scriptingDefineSymbols: {} 552 | platformArchitecture: {} 553 | scriptingBackend: 554 | Android: 0 555 | Standalone: 0 556 | WebGL: 1 557 | WebPlayer: 0 558 | il2cppCompilerConfiguration: {} 559 | incrementalIl2cppBuild: {} 560 | allowUnsafeCode: 0 561 | additionalIl2CppArgs: 562 | scriptingRuntimeVersion: 0 563 | apiCompatibilityLevelPerPlatform: {} 564 | m_RenderingPath: 1 565 | m_MobileRenderingPath: 1 566 | metroPackageName: UnityCloudVision 567 | metroPackageVersion: 568 | metroCertificatePath: 569 | metroCertificatePassword: 570 | metroCertificateSubject: 571 | metroCertificateIssuer: 572 | metroCertificateNotAfter: 0000000000000000 573 | metroApplicationDescription: UnityCloudVision 574 | wsaImages: {} 575 | metroTileShortName: 576 | metroCommandLineArgsFile: 577 | metroTileShowName: 0 578 | metroMediumTileShowName: 0 579 | metroLargeTileShowName: 0 580 | metroWideTileShowName: 0 581 | metroDefaultTileSize: 1 582 | metroTileForegroundText: 1 583 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 584 | metroSplashScreenBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, 585 | a: 1} 586 | metroSplashScreenUseBackgroundColor: 1 587 | platformCapabilities: {} 588 | metroFTAName: 589 | metroFTAFileTypes: [] 590 | metroProtocolName: 591 | metroCompilationOverrides: 1 592 | tizenProductDescription: 593 | tizenProductURL: 594 | tizenSigningProfileName: 595 | tizenGPSPermissions: 0 596 | tizenMicrophonePermissions: 0 597 | tizenDeploymentTarget: 598 | tizenDeploymentTargetType: 1998599268 599 | tizenMinOSVersion: 1 600 | n3dsUseExtSaveData: 0 601 | n3dsCompressStaticMem: 1 602 | n3dsExtSaveDataNumber: 0x12345 603 | n3dsStackSize: 131072 604 | n3dsTargetPlatform: 2 605 | n3dsRegion: 7 606 | n3dsMediaSize: 0 607 | n3dsLogoStyle: 3 608 | n3dsTitle: GameName 609 | n3dsProductCode: 610 | n3dsApplicationId: 0xFF3FF 611 | XboxOneProductId: 612 | XboxOneUpdateKey: 613 | XboxOneSandboxId: 614 | XboxOneContentId: 615 | XboxOneTitleId: 616 | XboxOneSCId: 617 | XboxOneGameOsOverridePath: 618 | XboxOnePackagingOverridePath: 619 | XboxOneAppManifestOverridePath: 620 | XboxOnePackageEncryption: 0 621 | XboxOnePackageUpdateGranularity: 2 622 | XboxOneDescription: 623 | XboxOneLanguage: 624 | - enus 625 | XboxOneCapability: [] 626 | XboxOneGameRating: {} 627 | XboxOneIsContentPackage: 0 628 | XboxOneEnableGPUVariability: 0 629 | XboxOneSockets: {} 630 | XboxOneSplashScreen: {fileID: 0} 631 | XboxOneAllowedProductIds: [] 632 | XboxOnePersistentLocalStorageSize: 0 633 | XboxOneXTitleMemory: 8 634 | xboxOneScriptCompiler: 0 635 | vrEditorSettings: 636 | daydream: 637 | daydreamIconForeground: {fileID: 0} 638 | daydreamIconBackground: {fileID: 0} 639 | cloudServicesEnabled: {} 640 | facebookSdkVersion: 7.9.4 641 | apiCompatibilityLevel: 2 642 | cloudProjectId: 643 | projectName: 644 | organizationId: 645 | cloudEnabled: 0 646 | enableNativePlatformBackendsForNewInputSystem: 0 647 | disableOldInputManagerSupport: 0 648 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2018.1.6f1 2 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Fastest 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 2 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | blendWeights: 1 21 | textureQuality: 1 22 | anisotropicTextures: 0 23 | antiAliasing: 0 24 | softParticles: 0 25 | softVegetation: 0 26 | realtimeReflectionProbes: 0 27 | billboardsFaceCameraPosition: 0 28 | vSyncCount: 0 29 | lodBias: 0.3 30 | maximumLODLevel: 0 31 | particleRaycastBudget: 4 32 | asyncUploadTimeSlice: 2 33 | asyncUploadBufferSize: 4 34 | excludedTargetPlatforms: [] 35 | - serializedVersion: 2 36 | name: Fast 37 | pixelLightCount: 0 38 | shadows: 0 39 | shadowResolution: 0 40 | shadowProjection: 1 41 | shadowCascades: 1 42 | shadowDistance: 20 43 | shadowNearPlaneOffset: 2 44 | shadowCascade2Split: 0.33333334 45 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 46 | blendWeights: 2 47 | textureQuality: 0 48 | anisotropicTextures: 0 49 | antiAliasing: 0 50 | softParticles: 0 51 | softVegetation: 0 52 | realtimeReflectionProbes: 0 53 | billboardsFaceCameraPosition: 0 54 | vSyncCount: 0 55 | lodBias: 0.4 56 | maximumLODLevel: 0 57 | particleRaycastBudget: 16 58 | asyncUploadTimeSlice: 2 59 | asyncUploadBufferSize: 4 60 | excludedTargetPlatforms: [] 61 | - serializedVersion: 2 62 | name: Simple 63 | pixelLightCount: 1 64 | shadows: 1 65 | shadowResolution: 0 66 | shadowProjection: 1 67 | shadowCascades: 1 68 | shadowDistance: 20 69 | shadowNearPlaneOffset: 2 70 | shadowCascade2Split: 0.33333334 71 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 72 | blendWeights: 2 73 | textureQuality: 0 74 | anisotropicTextures: 1 75 | antiAliasing: 0 76 | softParticles: 0 77 | softVegetation: 0 78 | realtimeReflectionProbes: 0 79 | billboardsFaceCameraPosition: 0 80 | vSyncCount: 0 81 | lodBias: 0.7 82 | maximumLODLevel: 0 83 | particleRaycastBudget: 64 84 | asyncUploadTimeSlice: 2 85 | asyncUploadBufferSize: 4 86 | excludedTargetPlatforms: [] 87 | - serializedVersion: 2 88 | name: Good 89 | pixelLightCount: 2 90 | shadows: 2 91 | shadowResolution: 1 92 | shadowProjection: 1 93 | shadowCascades: 2 94 | shadowDistance: 40 95 | shadowNearPlaneOffset: 2 96 | shadowCascade2Split: 0.33333334 97 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 98 | blendWeights: 2 99 | textureQuality: 0 100 | anisotropicTextures: 1 101 | antiAliasing: 0 102 | softParticles: 0 103 | softVegetation: 1 104 | realtimeReflectionProbes: 1 105 | billboardsFaceCameraPosition: 1 106 | vSyncCount: 1 107 | lodBias: 1 108 | maximumLODLevel: 0 109 | particleRaycastBudget: 256 110 | asyncUploadTimeSlice: 2 111 | asyncUploadBufferSize: 4 112 | excludedTargetPlatforms: [] 113 | - serializedVersion: 2 114 | name: Beautiful 115 | pixelLightCount: 3 116 | shadows: 2 117 | shadowResolution: 2 118 | shadowProjection: 1 119 | shadowCascades: 2 120 | shadowDistance: 70 121 | shadowNearPlaneOffset: 2 122 | shadowCascade2Split: 0.33333334 123 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 124 | blendWeights: 4 125 | textureQuality: 0 126 | anisotropicTextures: 2 127 | antiAliasing: 2 128 | softParticles: 1 129 | softVegetation: 1 130 | realtimeReflectionProbes: 1 131 | billboardsFaceCameraPosition: 1 132 | vSyncCount: 1 133 | lodBias: 1.5 134 | maximumLODLevel: 0 135 | particleRaycastBudget: 1024 136 | asyncUploadTimeSlice: 2 137 | asyncUploadBufferSize: 4 138 | excludedTargetPlatforms: [] 139 | - serializedVersion: 2 140 | name: Fantastic 141 | pixelLightCount: 4 142 | shadows: 2 143 | shadowResolution: 2 144 | shadowProjection: 1 145 | shadowCascades: 4 146 | shadowDistance: 150 147 | shadowNearPlaneOffset: 2 148 | shadowCascade2Split: 0.33333334 149 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 150 | blendWeights: 4 151 | textureQuality: 0 152 | anisotropicTextures: 2 153 | antiAliasing: 2 154 | softParticles: 1 155 | softVegetation: 1 156 | realtimeReflectionProbes: 1 157 | billboardsFaceCameraPosition: 1 158 | vSyncCount: 1 159 | lodBias: 2 160 | maximumLODLevel: 0 161 | particleRaycastBudget: 4096 162 | asyncUploadTimeSlice: 2 163 | asyncUploadBufferSize: 4 164 | excludedTargetPlatforms: [] 165 | m_PerPlatformDefaultQuality: 166 | Android: 2 167 | BlackBerry: 2 168 | GLES Emulation: 5 169 | Nintendo 3DS: 5 170 | PS3: 5 171 | PS4: 5 172 | PSM: 5 173 | PSP2: 2 174 | Samsung TV: 2 175 | Standalone: 5 176 | Tizen: 2 177 | WP8: 5 178 | Web: 5 179 | WebGL: 3 180 | WiiU: 5 181 | Windows Store Apps: 5 182 | XBOX360: 5 183 | XboxOne: 5 184 | iPhone: 2 185 | tvOS: 5 186 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | CrashReportingSettings: 11 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 12 | m_Enabled: 0 13 | m_CaptureEditorExceptions: 1 14 | UnityPurchasingSettings: 15 | m_Enabled: 0 16 | m_TestMode: 0 17 | UnityAnalyticsSettings: 18 | m_Enabled: 0 19 | m_InitializeOnStartup: 1 20 | m_TestMode: 0 21 | m_TestEventUrl: 22 | m_TestConfigUrl: 23 | UnityAdsSettings: 24 | m_Enabled: 0 25 | m_InitializeOnStartup: 1 26 | m_TestMode: 0 27 | m_EnabledPlatforms: 4294967295 28 | m_IosGameId: 29 | m_AndroidGameId: 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # UnityCloudVision 2 | 3 | This is a [Google Cloud Vision API](https://cloud.google.com/vision/) client for [Unity](http://unity3d.com) 4 | 5 | ## Requirements 6 | 7 | A 'Server API key' or a 'Brower API key (with no referrer)' of Google Cloud Vision API is required. See the instructions: [Getting Started](https://cloud.google.com/vision/docs/getting-started) 8 | 9 | ## Note 10 | 11 | If you want to build a WebGL version, please choose the 'CloudVision' as WebGL Template. 12 | 13 | ## License 14 | 15 | Copyright (c) 2016 Akihiro Komori 16 | 17 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 18 | 19 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 20 | 21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | --------------------------------------------------------------------------------