0

I have an adobe air app that runs on windows. I got it running on Mac but the webcam resolution is bad. Im using logitech quickcam pro 9000. on windows it is HD. in mac, it looks like a cheap webcam. surprisingly, the built in apple photo booth software displays a much better resolution using the same webcam. im using mac osx lion. is there hope? I dont see a mac driver for this particular webcam.

My code:

camera = Camera.getCamera();    
camera.setQuality(0, 100); 
camera.setMode(640, 480, 30, true);
camera.setMotionLevel(100);
4

2 回答 2

0

请检查我对这个类似问题的回答

如何使用 AS3 提高相机的质量?

尝试从相机中获取最大尺寸并将质量设置为最高值。希望有帮助。

PS:短代码

    private function connectCamera():void 
    {
        cam.setMode(640, 480, 25); 
        cam.setQuality(0,100);
        vid             = new Video();
        vid.width       = cam.width;
        vid.height      = cam.height; 
        vid.attachCamera(cam);
        addChild(vid);    

        stage.addEventListener(MouseEvent.CLICK, clickHandler);
    }

    private function clickHandler(e:MouseEvent):void 
    {

        return;

        switch (cam.width) {
            case 160:
                cam.setMode(320, 240, 10); 
                break;
            case 320:
                cam.setMode(640, 480, 5); 
                break;
            default:
                cam.setMode(160, 120, 15); 
                break;
        } 
        removeChild(vid);           
        connectCamera();
    }
于 2013-03-22T13:27:26.687 回答
0

您好尝试将视频宽度和高度设置为 camera.width 和 camera.height 属性还将 FPS 设置为 15 我认为 30 FPS 对于相机来说太多了。

于 2013-03-22T10:38:07.820 回答