- Sort Posts
- 14 replies
- Last post
how to setting camera profiles for my HD webcam 101
how to setting camera profiles for my HD webcam 101
Hi sir, I don't have web camera in laptop.I have installed droid can and unity suggest to create profile in profile.XML. Please tell me code to paste in profile. xml. sir, I use both Redmi 3s and cool 8x 1020 model android phones camera by droid can....please suggest codes for each....please sir my email id
how to setting camera profiles for my HD webcam 101
Running Unity3d on arch linux, I'm also facing this issue.
I tried the solutions offered in this thread, but my problem is that the Vuforia WebCamBehaviour class seems to only manage a webcam in Windows or Mac.
On the other side, I have no issue using my webcam on Unity3D with WebCamTexture.Play.
Vuforia seems to handle mappings to Unity3D in Vuforia.UnityExtensions.Editor.dll, hence I cannot read the code and adapt it for linux ...
I tried to disable the "Webcam Behaviour (script)" and attach my unity script instead in the ARCamera, without success.
I tried to update the WebCamBehaviour.cs file as follow:
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using UnityEngine; using System.Collections; namespace Vuforia { public class WebCamBehaviour : MonoBehaviour { void Start() { WebCamTexture webcamTexture = new WebCamTexture(); Renderer renderer = GetComponent<Renderer>(); renderer.material.mainTexture = webcamTexture; webcamTexture.Play(); } } }
Without success either, getting a new error
NullReferenceException: Object reference not set to an instance of an object Vuforia.VuforiaRuntimeUtilities.IsVuforiaEnabled () Vuforia.TurnOffBehaviour.Awake () (at Assets/Vuforia/Scripts/TurnOffBehaviour.cs:21)
Please let me know of a way to use the webcam with Vuforia, since it is supported by Unity3D in linux. Thanks in advance.
how to setting camera profiles for my HD webcam 101
my Microsoft LifeCam Studio Not working
No Profiles show up and i have renamed a profiles with the Driver name "Microsoft LifeCam Studio"
in both
Project/editor/QCAR/WebcamProfiles/profiles.xml
&
Project/Vuforia/editor/webcamProfiles
no result ?
Thanks for any help
how to setting camera profiles for my HD webcam 101
how to setting camera profiles for my HD webcam 101
how to setting camera profiles for my HD webcam 101
how to setting camera profiles for my HD webcam 101
I figured it out. The path displayed in the warning message of the Web Cam Behaviour inspector is wrong. The correct profile path is:
Assets/Vuforia/Editor/WebcamProfiles/profiles.xml
It contains a list of config settings for webcams. I simply added my device to the bottom of the list, ensuring that the name matched exactly as displayed in the Web Cam Behaviour inspector.
<webcam deviceName="HD Pro Webcam C920 #2">
<windows>
<!-- size of the web cam texture requested from Unity -->
<requestedTextureWidth>1920</requestedTextureWidth>
<requestedTextureHeight>1080</requestedTextureHeight>
<!-- size of the texture Unity's web cam texture will be rescaled to -->
<resampledTextureWidth>1920</resampledTextureWidth>
<resampledTextureHeight>1080</resampledTextureHeight>
</windows>
<osx>
<!-- size of the web cam texture requested from Unity -->
<requestedTextureWidth>1920</requestedTextureWidth>
<requestedTextureHeight>1080</requestedTextureHeight>
<!-- size of the texture Unity's web cam texture will be rescaled to -->
<resampledTextureWidth>1920</resampledTextureWidth>
<resampledTextureHeight>1080</resampledTextureHeight>
</osx>
</webcam>
how to setting camera profiles for my HD webcam 101
I have the same problem, but in the last version of Vuforia, this folder dosn't exist. I try to copy the folder 'Webcam Profiles', from 'Vuforia' to 'QCAR', and I add my webcam profile in the file 'profiles.xml' but it don't give me any result.
How must I do?
Same problem here.
how to setting camera profiles for my HD webcam 101
You can add your web cam to profiles.xml in the Editor/QCAR/WebCamProfiles folder. Copy an existing profile and revise the deviceName attribute; use the name that appears in the WebCamBehaviour Inspector panel for your cam. The default resolution values should be correct for your cam, but you can experiment w/ the resampled resolution if you like. Changing the requested resolution won't improve detection or tracking, so there's no reason to change that. After you've added your web cam, it should be recognized by the WebCamBehaviour. If it's not, that indicates that the name you're using is incorrect.
<webcam deviceName="[ you device name ]"> <windows> <!-- size of the web cam texture requested from Unity --> <requestedTextureWidth>640</requestedTextureWidth> <requestedTextureHeight>480</requestedTextureHeight> <!-- size of the texture Unity's web cam texture will be rescaled to --> <resampledTextureWidth>640</resampledTextureWidth> <resampledTextureHeight>480</resampledTextureHeight> </windows> <osx> <!-- size of the web cam texture requested from Unity --> <requestedTextureWidth>640</requestedTextureWidth> <requestedTextureHeight>360</requestedTextureHeight> <!-- size of the texture Unity's web cam texture will be rescaled to --> <resampledTextureWidth>640</resampledTextureWidth> <resampledTextureHeight>360</resampledTextureHeight> </osx> </webcam>
i have the same problem on Unity 2017.3.1f1 and vuforia 7.0.47...
i can't find this famous profile.xml file.
When i look the texture in the material of the BackgroundPlane of the ARCamera, resolution is 640x480 (NPOT) RGB 24bit and i have an AUKEY PC-LM1 USB Camera connected on my computed (1920x1080,30fps)
How can i use the full resolution of my webcam with vuforia?