jQuery网络摄像头插件-如何输出更大的图像? [英] jQuery webcam plugin - how to ouptut bigger images?

查看:100
本文介绍了jQuery网络摄像头插件-如何输出更大的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试确定jQuery Webcam插件是否能够输出大于320x240的图像.

I am trying to figure out if the jQuery Webcam Plugin is capable of outputting images that are bigger than 320x240.

我一直在使用文档中的示例代码( http://www.xarg .org/project/jquery-webcam-plugin/),没有运气.

I been using the example code from the documentation (http://www.xarg.org/project/jquery-webcam-plugin/) with no luck.

JPEGCam( http://code.google.com/p/jpegcam/)能够输出更大的图像,但不幸的是,它不能像jQuery插件那样使用ajax将图像上传到服务器.

JPEGCam (http://code.google.com/p/jpegcam/) is capable of outputting bigger images but unfortinately it can't use ajax to upload the image to the server like the jQuery plugin can.

推荐答案

我遇到了同样的问题:320x240的大小在 jscam.as (swf二进制文件的主文件)中进行了硬编码. 您只需要更改这些尺寸并重新编译swf.

I had the same problem: The 320x240 size is hardcoded in jscam.as (the main file for the swf binary). You simply need to change those dimensions and recompile the swf.

    // jscam.as
    166. for (var i = 0; i < 240; ++i) {
    becomes: for (var i = 0; i < Stage.height; ++i) {

    169. for (var j=0; j < 320; ++j) {
    becomes: for (var j=0; j < Stage.width; ++j) {

    166. for (var i = 0; i < 240; ++i) {
    becomes: for (var i = 0; i < Stage.height; ++i) {

    169. for (var j=0; j < 320; ++j) {
    becomes: for (var j=0; j < Stage.width; ++j) {

这篇关于jQuery网络摄像头插件-如何输出更大的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆