<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: ZBar bindings for C#</title>
	<atom:link href="http://jopsen.dk/blog/2009/12/zbar-bindings-for-c-sharp/feed/" rel="self" type="application/rss+xml" />
	<link>http://jopsen.dk/blog/2009/12/zbar-bindings-for-c-sharp/</link>
	<description>Thoughts mixed with random memory dumps...</description>
	<lastBuildDate>Fri, 13 Jan 2012 08:11:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jopsen.dk/blog</title>
		<link>http://jopsen.dk/blog/2009/12/zbar-bindings-for-c-sharp/comment-page-1/#comment-15855</link>
		<dc:creator>Jopsen.dk/blog</dc:creator>
		<pubDate>Sat, 19 Mar 2011 17:51:01 +0000</pubDate>
		<guid isPermaLink="false">http://jopsen.dk/blog/?p=161#comment-15855</guid>
		<description>[...] previously caused applications to crash at random. A thanks to the nameless commentor by the name thedarkking, who&#8217;s comment finally gave me a clue as to where the bug [...]</description>
		<content:encoded><![CDATA[<p>[...] previously caused applications to crash at random. A thanks to the nameless commentor by the name thedarkking, who&#8217;s comment finally gave me a clue as to where the bug [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas Finnemann Jensen</title>
		<link>http://jopsen.dk/blog/2009/12/zbar-bindings-for-c-sharp/comment-page-1/#comment-14593</link>
		<dc:creator>Jonas Finnemann Jensen</dc:creator>
		<pubDate>Thu, 17 Feb 2011 11:22:05 +0000</pubDate>
		<guid isPermaLink="false">http://jopsen.dk/blog/?p=161#comment-14593</guid>
		<description>@steveo

Okay, if you&#039;re running that high resolution I see that performance might be an issue...
But there&#039;s a lot of memory copying in zbar-sharp, so you might want to do the croping in zbar-img.exe, and then maybe extend the program to loop through all files in the folder (to avoid spawning new processes).</description>
		<content:encoded><![CDATA[<p>@steveo</p>
<p>Okay, if you&#8217;re running that high resolution I see that performance might be an issue&#8230;<br />
But there&#8217;s a lot of memory copying in zbar-sharp, so you might want to do the croping in zbar-img.exe, and then maybe extend the program to loop through all files in the folder (to avoid spawning new processes).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steveo</title>
		<link>http://jopsen.dk/blog/2009/12/zbar-bindings-for-c-sharp/comment-page-1/#comment-14570</link>
		<dc:creator>steveo</dc:creator>
		<pubDate>Thu, 17 Feb 2011 04:58:30 +0000</pubDate>
		<guid isPermaLink="false">http://jopsen.dk/blog/?p=161#comment-14570</guid>
		<description>@Jonas
I did manage to we write my program.

Using the same 5 600dpi jpg images.

1. My program using command line zbar = 20 seconds.
2. My program using your library = 27 seconds.
3. My program using your library with cropping = 10 seconds.

Because we are feeding the documents through a document feeder the barcode is always aprox in the same spot in the images.

so 10 hours of processing will now be 5 hours hopefully :D</description>
		<content:encoded><![CDATA[<p>@Jonas<br />
I did manage to we write my program.</p>
<p>Using the same 5 600dpi jpg images.</p>
<p>1. My program using command line zbar = 20 seconds.<br />
2. My program using your library = 27 seconds.<br />
3. My program using your library with cropping = 10 seconds.</p>
<p>Because we are feeding the documents through a document feeder the barcode is always aprox in the same spot in the images.</p>
<p>so 10 hours of processing will now be 5 hours hopefully <img src='http://jopsen.dk/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas Finnemann Jensen</title>
		<link>http://jopsen.dk/blog/2009/12/zbar-bindings-for-c-sharp/comment-page-1/#comment-14548</link>
		<dc:creator>Jonas Finnemann Jensen</dc:creator>
		<pubDate>Wed, 16 Feb 2011 20:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://jopsen.dk/blog/?p=161#comment-14548</guid>
		<description>@steveo
zbar is LGPL, I don&#039;t see why you don&#039;t just distribute it with your application. LGPL is easy to comply with (zbar-sharp is also LGPL).

Also, if you performance in an issue why don&#039;t you do it in C? Or at least the core functionality... Using ImageMagick for gray conversation might also yield better results.

But you&#039;ll probably also experience a small performance improvement from using zbar-sharp... Because, unlike Linux, launching process on Windows is inherently slow.
(Do consider using latest sources from the master branch at github, they have fewer bugs).</description>
		<content:encoded><![CDATA[<p>@steveo<br />
zbar is LGPL, I don&#8217;t see why you don&#8217;t just distribute it with your application. LGPL is easy to comply with (zbar-sharp is also LGPL).</p>
<p>Also, if you performance in an issue why don&#8217;t you do it in C? Or at least the core functionality&#8230; Using ImageMagick for gray conversation might also yield better results.</p>
<p>But you&#8217;ll probably also experience a small performance improvement from using zbar-sharp&#8230; Because, unlike Linux, launching process on Windows is inherently slow.<br />
(Do consider using latest sources from the master branch at github, they have fewer bugs).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steveo</title>
		<link>http://jopsen.dk/blog/2009/12/zbar-bindings-for-c-sharp/comment-page-1/#comment-14520</link>
		<dc:creator>steveo</dc:creator>
		<pubDate>Wed, 16 Feb 2011 12:15:42 +0000</pubDate>
		<guid isPermaLink="false">http://jopsen.dk/blog/?p=161#comment-14520</guid>
		<description>I just finished a project for work that batch scans 3 of 9 barcodes from jpg files.

1. try to read zbar installdir key from the regestry
2. if i can read it, show message that zbar isnt installed and launch zbar installer.
3. use that information to make a path from zbarimg.exe
4. have a way to select a folder on the UI.
5. for each file in the selected folder.
6. if its a jpg
7. make a new process 
8. set the path to zbar that we worked out from the regestry
9. create the command line arguments including filename of the current file (including --raw command)
10. redirect both standard output and error output to textboxes on the form.

I guess i could have just used this.... oh well, i might rewrite it tomorrow at work to see if there is any speed increase.</description>
		<content:encoded><![CDATA[<p>I just finished a project for work that batch scans 3 of 9 barcodes from jpg files.</p>
<p>1. try to read zbar installdir key from the regestry<br />
2. if i can read it, show message that zbar isnt installed and launch zbar installer.<br />
3. use that information to make a path from zbarimg.exe<br />
4. have a way to select a folder on the UI.<br />
5. for each file in the selected folder.<br />
6. if its a jpg<br />
7. make a new process<br />
8. set the path to zbar that we worked out from the regestry<br />
9. create the command line arguments including filename of the current file (including &#8211;raw command)<br />
10. redirect both standard output and error output to textboxes on the form.</p>
<p>I guess i could have just used this&#8230;. oh well, i might rewrite it tomorrow at work to see if there is any speed increase.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas Finnemann Jensen</title>
		<link>http://jopsen.dk/blog/2009/12/zbar-bindings-for-c-sharp/comment-page-1/#comment-13571</link>
		<dc:creator>Jonas Finnemann Jensen</dc:creator>
		<pubDate>Sat, 29 Jan 2011 13:59:33 +0000</pubDate>
		<guid isPermaLink="false">http://jopsen.dk/blog/?p=161#comment-13571</guid>
		<description>@Daniel,
Sorry, for the reply time...

I&#039;m thinking that maybe zbar can consume color images... Maybe even RGB3 (24bit BMP), see:
http://sourceforge.net/apps/mediawiki/zbar/index.php?title=Supported_image_formats

&lt;strong&gt;Update:&lt;/strong&gt; I had a look at the code and zbarimg uses ImageMagick for conversation to greyscale... Which is better than the greyscale conversation in zbar...</description>
		<content:encoded><![CDATA[<p>@Daniel,<br />
Sorry, for the reply time&#8230;</p>
<p>I&#8217;m thinking that maybe zbar can consume color images&#8230; Maybe even RGB3 (24bit BMP), see:<br />
<a href="http://sourceforge.net/apps/mediawiki/zbar/index.php?title=Supported_image_formats" rel="nofollow">http://sourceforge.net/apps/mediawiki/zbar/index.php?title=Supported_image_formats</a></p>
<p><strong>Update:</strong> I had a look at the code and zbarimg uses ImageMagick for conversation to greyscale&#8230; Which is better than the greyscale conversation in zbar&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://jopsen.dk/blog/2009/12/zbar-bindings-for-c-sharp/comment-page-1/#comment-13079</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Thu, 20 Jan 2011 17:18:26 +0000</pubDate>
		<guid isPermaLink="false">http://jopsen.dk/blog/?p=161#comment-13079</guid>
		<description>Hi thank you for your reply,

i took the latest master version from github from the link you have posted (13. January). in combination with the latest zbar (0.10).

The Bitmap scanner is the example you published at github as well. The core code is this:

System.Drawing.Image img = System.Drawing.Image.FromFile(file);

List symbols = scanner.Scan(img);
foreach (Symbol symbol in symbols)
  Console.WriteLine(&quot;\t&quot; + symbol.ToString());

the file is the bitmap i send. The output is empty, so no symbols where found. The zbarimg.exe detects it and i also looked into that code (zbarimg.exe) and did not see any fancy stuff like configuration settings or similar things. so i assume the only different thing is the way how the image is converted. i was also not able to scan the following image too (an example image from zbar which also works with zbarimg which is an normal bar code): http://dl.dropbox.com/u/17637020/Just_right.png

besides the image conversion i do not see where the problem might be.</description>
		<content:encoded><![CDATA[<p>Hi thank you for your reply,</p>
<p>i took the latest master version from github from the link you have posted (13. January). in combination with the latest zbar (0.10).</p>
<p>The Bitmap scanner is the example you published at github as well. The core code is this:</p>
<p>System.Drawing.Image img = System.Drawing.Image.FromFile(file);</p>
<p>List symbols = scanner.Scan(img);<br />
foreach (Symbol symbol in symbols)<br />
  Console.WriteLine(&#8220;\t&#8221; + symbol.ToString());</p>
<p>the file is the bitmap i send. The output is empty, so no symbols where found. The zbarimg.exe detects it and i also looked into that code (zbarimg.exe) and did not see any fancy stuff like configuration settings or similar things. so i assume the only different thing is the way how the image is converted. i was also not able to scan the following image too (an example image from zbar which also works with zbarimg which is an normal bar code): <a href="http://dl.dropbox.com/u/17637020/Just_right.png" rel="nofollow">http://dl.dropbox.com/u/17637020/Just_right.png</a></p>
<p>besides the image conversion i do not see where the problem might be.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas Finnemann Jensen</title>
		<link>http://jopsen.dk/blog/2009/12/zbar-bindings-for-c-sharp/comment-page-1/#comment-13056</link>
		<dc:creator>Jonas Finnemann Jensen</dc:creator>
		<pubDate>Thu, 20 Jan 2011 11:47:48 +0000</pubDate>
		<guid isPermaLink="false">http://jopsen.dk/blog/?p=161#comment-13056</guid>
		<description>@Daniel,
I assume you&#039;re using latest version of zbar (0.10), right? and zbar-sharp master from github (not the one available for download as tarball).
Support for QR codes is very new, I haven&#039;t tested it, and it&#039;s only recently made it to master branch at github.com/jopsen/zbar-sharp

When, you say the bitmap scanner, is that the one in example/bmp-scanner ?
And what is the result? Does find anything, or what? bmp-scanner, doesn&#039;t really print anything useful, it&#039;s just an example...</description>
		<content:encoded><![CDATA[<p>@Daniel,<br />
I assume you&#8217;re using latest version of zbar (0.10), right? and zbar-sharp master from github (not the one available for download as tarball).<br />
Support for QR codes is very new, I haven&#8217;t tested it, and it&#8217;s only recently made it to master branch at github.com/jopsen/zbar-sharp</p>
<p>When, you say the bitmap scanner, is that the one in example/bmp-scanner ?<br />
And what is the result? Does find anything, or what? bmp-scanner, doesn&#8217;t really print anything useful, it&#8217;s just an example&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://jopsen.dk/blog/2009/12/zbar-bindings-for-c-sharp/comment-page-1/#comment-13013</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Wed, 19 Jan 2011 17:18:49 +0000</pubDate>
		<guid isPermaLink="false">http://jopsen.dk/blog/?p=161#comment-13013</guid>
		<description>Hi,

i like this approach a lot and would also like to use it. I am facing some problems. I am using the bitmap scanner and was expecting similar results to what zbarimg is producing. But the result i am getting are rather frustrating. I use another component to capture a video stream and take an image and scan it afterwards. Uploaded an image which is working fine in a zbarimg and does not have a result with the bitmap scanner http://dl.dropbox.com/u/17637020/test.bmp.

am i missing something here?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>i like this approach a lot and would also like to use it. I am facing some problems. I am using the bitmap scanner and was expecting similar results to what zbarimg is producing. But the result i am getting are rather frustrating. I use another component to capture a video stream and take an image and scan it afterwards. Uploaded an image which is working fine in a zbarimg and does not have a result with the bitmap scanner <a href="http://dl.dropbox.com/u/17637020/test.bmp" rel="nofollow">http://dl.dropbox.com/u/17637020/test.bmp</a>.</p>
<p>am i missing something here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas Finnemann Jensen</title>
		<link>http://jopsen.dk/blog/2009/12/zbar-bindings-for-c-sharp/comment-page-1/#comment-12662</link>
		<dc:creator>Jonas Finnemann Jensen</dc:creator>
		<pubDate>Thu, 13 Jan 2011 22:22:14 +0000</pubDate>
		<guid isPermaLink="false">http://jopsen.dk/blog/?p=161#comment-12662</guid>
		<description>Nice... I recently pushed a new method that lets you create an image from an instance of System.Drawing.Image, but it uses some drawing stuff and is rather expensive...
The UnlockBits thing look really neat... I&#039;ll try that and add a specific overload for System.Drawing.Bitmap

In case anybody wonders the source is maintained here:
http://github.com/jopsen/zbar-sharp</description>
		<content:encoded><![CDATA[<p>Nice&#8230; I recently pushed a new method that lets you create an image from an instance of System.Drawing.Image, but it uses some drawing stuff and is rather expensive&#8230;<br />
The UnlockBits thing look really neat&#8230; I&#8217;ll try that and add a specific overload for System.Drawing.Bitmap</p>
<p>In case anybody wonders the source is maintained here:<br />
<a href="http://github.com/jopsen/zbar-sharp" rel="nofollow">http://github.com/jopsen/zbar-sharp</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

