我正在尝试使用此jQuery webcam plugin更改网络摄像头捕获的图像的输出大小。但我无法让它工作
我尝试重新编译文件jscam.swf
。我已关注this instructions,我已阅读此issue。
所以我已经像这样更改了jscam.xml
文件
<?xml version="1.0" encoding="utf-8"?>
<movie width="640" height="480" framerate="24">
<background color="#ffffff" />
<DefineVideoStream width="640" height="480" objectID="1" frames="0" deblocking="0" smoothing="0" codec="0" />
<frame>
<library>
<clip id="clip" objectID="1" />
</library>
</frame>
</movie>
jscam.as
。我也读过this another question,他们也是这样做的:
for (var i = 0; i < 480; ++i) {
[...]
for (var j=0; j < 640; ++j) {
[...]
for (var i = 0; i < 480; ++i) {
[...]
for (var j=0; j < 640; ++j) {
在此之后,我重新编译了jscam.swf
,在
sudo apt-get install swfmill mtasc
make
这应该足够了,但我的图像尺寸相同
我还更改了jQuery插件的js
个文件,但结果相同。