<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flexmaniak.pl &#187; camera</title>
	<atom:link href="http://blog.flexmaniak.pl/tag/camera/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.flexmaniak.pl</link>
	<description>Flex, Papervision3D, PHP, Symfony</description>
	<lastBuildDate>Sun, 02 Oct 2011 08:36:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Black screen instead of video stream from camera</title>
		<link>http://blog.flexmaniak.pl/wrrors-and-warnings/flex-errors/black-screen-instead-of-video-stream-from-camera</link>
		<comments>http://blog.flexmaniak.pl/wrrors-and-warnings/flex-errors/black-screen-instead-of-video-stream-from-camera#comments</comments>
		<pubDate>Sat, 09 Jul 2011 20:51:19 +0000</pubDate>
		<dc:creator>Piotr Wierzgała</dc:creator>
				<category><![CDATA[Flex Errors]]></category>
		<category><![CDATA[camera]]></category>

		<guid isPermaLink="false">http://blog.flexmaniak.pl/?p=1315</guid>
		<description><![CDATA[What caused the error? The error happened when I tried to display view from my web camera in a VideoDisply object but insted I got black screen. I was sure that camera was connected and it was working with other applications (e.g. Skype). What is the solution? Right click on any Flash content and choose [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What caused the error?</strong><br />
The error happened when I tried to display view from my web camera in a VideoDisply object but insted I got black screen. I was sure that camera was connected and it was working with other applications (e.g. Skype).</p>
<p><strong>What is the solution?</strong><br />
Right click on any Flash content and choose &#8220;Settings&#8221;, then go to the &#8220;Camera&#8221; tab (section) and check if your camera is listed there. It should. In my case there were two additional cameras &#8220;Google Camera Adapter&#8221; and one of them was selected. They probably came with Google Talk plugin.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[0]: Creative WebCam Vista Plus #2<br />
[1]: Google Camera Adapter 0<br />
[2]: Google Camera Adapter 1</div></div>
<p>As soon as I selected &#8220;Creative WebCam&#8221; everything started to work.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flexmaniak.pl/wrrors-and-warnings/flex-errors/black-screen-instead-of-video-stream-from-camera/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to capture image from web camera?</title>
		<link>http://blog.flexmaniak.pl/flex/how-to-capture-image-from-web-camera</link>
		<comments>http://blog.flexmaniak.pl/flex/how-to-capture-image-from-web-camera#comments</comments>
		<pubDate>Sat, 09 Jul 2011 20:30:48 +0000</pubDate>
		<dc:creator>Piotr Wierzgała</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[VideoDisplay]]></category>

		<guid isPermaLink="false">http://blog.flexmaniak.pl/?p=1306</guid>
		<description><![CDATA[If you have a web camera connected to your computer and you want to capture image from it then in the following text you will see how to do it. Create VideoDisplay object and a button &#60;mx:VideoDisplay id=&#34;videoDisplay&#34; width=&#34;640&#34;&#160; height=&#34;480&#34; &#160; &#160; creationComplete=&#34;videoDisplay_CREATION_COMPLETE()&#34;/&#62; &#60;s:Button id=&#34;captureImageButton&#34; label=&#34;Capture image&#34; &#160; &#160; click=&#34;captureImageButton_CLICK()&#34;/&#62; Attach camera to the VideoDisplay [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a web camera connected to your computer and you want to capture image from it then in the following text you will see how to do it.<br />
<span id="more-1306"></span></p>
<h4>Create VideoDisplay object and a button</h4>
<div class="codecolorer-container mxml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="mxml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VideoDisplay</span> id=<span style="color: #ff0000;">&quot;videoDisplay&quot;</span> width=<span style="color: #ff0000;">&quot;640&quot;</span>&nbsp; height=<span style="color: #ff0000;">&quot;480&quot;</span> </span><br />
<span style="color: #000000;">&nbsp; &nbsp; creationComplete=<span style="color: #ff0000;">&quot;videoDisplay_CREATION_COMPLETE()&quot;</span><span style="color: #7400FF;">/&gt;</span></span><br />
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Button</span> id=<span style="color: #ff0000;">&quot;captureImageButton&quot;</span> label=<span style="color: #ff0000;">&quot;Capture image&quot;</span> </span><br />
<span style="color: #000000;">&nbsp; &nbsp; click=<span style="color: #ff0000;">&quot;captureImageButton_CLICK()&quot;</span><span style="color: #7400FF;">/&gt;</span></span></div></div>
<h4>Attach camera to the VideoDisplay</h4>
<div class="codecolorer-container actionscript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> videoDisplay_CREATION_COMPLETE<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">camera</span> = <span style="color: #0066CC;">Camera</span>.<span style="color: #006600;">getCamera</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">camera</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; videoDisplay.<span style="color: #006600;">attachCamera</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">camera</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; Alert.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Your camera is not detected.&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></div></div>
<p>On this stage you shoud be able to see on the VideoDisplay the view registered by your camera .</p>
<h4>Capture image from the camera</h4>
<div class="codecolorer-container actionscript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> captureImageButton_CLICK<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> bitmapData:BitmapData = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span>videoDisplay.<span style="color: #0066CC;">width</span>, videoDisplay.<span style="color: #0066CC;">height</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; bitmapData.<span style="color: #006600;">draw</span><span style="color: #66cc66;">&#40;</span>videoDisplay<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span></div></div>
<p>Note that the maximum resolution registered by the camera is camera.width <em>x</em> camera.height. You can adjust it with <strong>setMode() </strong>method from Camera class.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flexmaniak.pl/flex/how-to-capture-image-from-web-camera/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

