Log in or register to post comments

how to setting camera profiles for my HD webcam 101

October 18, 2013 - 11:00pm #1

can anyone teach me, how to seting webcam profiles? cz in my unity editor my HD webcam 101 not in profile for play mode, please help me.

how to setting camera profiles for my HD webcam 101

March 15, 2018 - 4:41pm #15

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?

 

how to setting camera profiles for my HD webcam 101

January 5, 2018 - 1:21am #14

Hi, same problem,Unity 2017.3.0.3 and Vuforia 7.036,  it's work in Unity Editor, but it's not work in UWP,  look like 640X480, but I set camera resolution 1920X1080, someone can help me :(

how to setting camera profiles for my HD webcam 101

August 8, 2017 - 3:12pm #13

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

July 26, 2016 - 12:30pm #12

Where/how do you change the path name to the correct one?

how to setting camera profiles for my HD webcam 101

May 15, 2016 - 3:17am #11

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

March 28, 2016 - 4:17am #10

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

March 28, 2016 - 4:09am #9

Haveing big trouble in unity 5.0.2f1 64bit windows version.
using vuforia-unity-5-5-9.unitypackage (34.50 MB)

pls have a look into the images with full deails there.

AttachmentSize
Image icon 1.png298.29 KB
Image icon 2.png149.27 KB

how to setting camera profiles for my HD webcam 101

March 28, 2016 - 4:05am #8

I have corrected all those setting but in all cases I am ending with the error.
I am giving detail wth screen shot. Please check and give me a solution.

Regurds.

AttachmentSize
Image icon 1.png298.29 KB
Image icon 2.png149.27 KB

how to setting camera profiles for my HD webcam 101

February 27, 2016 - 3:19pm #7

Hi,

I have same problem about my USB2.0 HD UVC WebCam.

I make all of your advices but problem is not solved. Anyone know how its working?

I have unity 4.6.1f1

how to setting camera profiles for my HD webcam 101

January 4, 2016 - 4:14pm #6

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

December 19, 2015 - 3:04am #5

WalterGolluscio wrote:

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

December 18, 2015 - 3:22am #4

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?  

how to setting camera profiles for my HD webcam 101

December 11, 2015 - 7:48pm #3

Having the same problem. wish I could help. The current uploaded sdk doesnt include that folder webcamprofiles. At least for me :(

how to setting camera profiles for my HD webcam 101

October 19, 2013 - 8:31am #2

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>

 

Log in or register to post comments