<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Image Acquisition using SPI or I2C or USB on Different ARM families</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/29477/image-acquisition-using-spi-or-i2c-or-usb-on-different-arm-families</link><description> 
Hi all.. 

 
I have MCBSTM32c and LPC2478 based development boards. 
I need to perform an image processing algorithm on an image of
resolution 640 x 480 size 30Kb. 
Is this image acquisition possible through USB camera (we have iball
webcam), Please</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Image Acquisition using SPI or I2C or USB on Different ARM families</title><link>https://community.arm.com/thread/131950?ContentTypeID=1</link><pubDate>Wed, 06 Feb 2013 20:20:14 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1344b8ff-164e-43d8-9122-27b92e468e7a</guid><dc:creator>Niharika Jha</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thank you for your replies.&lt;br /&gt;
We have purchased a BeagleBone for our problem statement.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Image Acquisition using SPI or I2C or USB on Different ARM families</title><link>https://community.arm.com/thread/131193?ContentTypeID=1</link><pubDate>Wed, 06 Feb 2013 15:58:24 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:821484b8-c7e3-49f0-93c0-a3b4b6c51aca</guid><dc:creator>Alex Gibson</dc:creator><description>&lt;p&gt;&lt;p&gt;
Raspberry pi would also give you the capability to use the opencv
library for image processing and make your problem very easy to
implement&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Image Acquisition using SPI or I2C or USB on Different ARM families</title><link>https://community.arm.com/thread/140486?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2013 08:01:08 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4789b99d-976d-4322-afb7-3f66547b6a4f</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Note that it&amp;#39;s &amp;quot;Pi&amp;quot; - not &amp;quot;Pie&amp;quot;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Image Acquisition using SPI or I2C or USB on Different ARM families</title><link>https://community.arm.com/thread/136942?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2013 05:56:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c8061cb6-df27-43ff-b5d9-2f8d77b1f949</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
You can connect cameras.&lt;/p&gt;

&lt;p&gt;
And you can transfer the image to secondary memory - like a memory
card. But since you claim your image processing requires direct
access to all of image, the image processing will be very slow if you
then need to constantly read in different blocks of the image from
the memory card.&lt;/p&gt;

&lt;p&gt;
Space for code isn&amp;#39;t an issue - the code shouldn&amp;#39;t be stored in
RAM.&lt;/p&gt;

&lt;p&gt;
But it would probably be better to get a very cheap Raspberry Pie
card running Linux with 512 MB RAM and a serial camera interface (and
also USB host, I2C, ...) if you really want to do something
interesting.&lt;/p&gt;

&lt;p&gt;
Or you need to get a development board where the ARM chip have
internal or external RAM of enough quantity. But probably at least
256 kB RAM if your image is 150 kB.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Image Acquisition using SPI or I2C or USB on Different ARM families</title><link>https://community.arm.com/thread/127975?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2013 05:33:32 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e7d1ce41-27ad-4ec0-80c5-76bac65bbfb3</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
You still haven&amp;#39;t said what &amp;quot;processing&amp;quot; you need to do on this
image.&lt;/p&gt;

&lt;p&gt;
Image processing does tend to be a memory- and
processing-intensive task - so not generally something for
small(-ish) microcontrollers.&lt;/p&gt;

&lt;p&gt;
Wouldn&amp;#39;t you be better off with something like a
&lt;b&gt;Raspberry-Pi&lt;/b&gt;...?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Image Acquisition using SPI or I2C or USB on Different ARM families</title><link>https://community.arm.com/thread/117150?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2013 04:48:46 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e8373dfb-5bce-41bd-beb5-8231d9f67016</guid><dc:creator>Niharika Jha</dc:creator><description>&lt;p&gt;&lt;p&gt;
I am sorry if i seemed unclear about my problem earlier. However
this is my problem. If this image on its own is 150 Kb and the code +
its buffers take up around 20-25 Kb would it advisable to either
:&lt;br /&gt;
(a) transfer captured image to a USB or MMC/SD data card and then
access this memory to process it.&lt;br /&gt;
(b) look for a micro-controller which has sufficient RAM&lt;br /&gt;
It would help if you could also suggest a camera (even if of a lower
resolution) that is compatible with mcbstm32c.&lt;/p&gt;

&lt;p&gt;
The Main problem to which we are looking a solution for:&lt;br /&gt;
We have 2 development boards of which MCBSTM32C is one and the other
is embedded artists LPC2478 OEM QVGA BaseBoard.. Can we interface any
camera to these boards so that one image can be acquired and
processed. the results obtained from this processing will then be
used for actuation or decision of when the next image is to be
taken.&lt;/p&gt;

&lt;p&gt;
If anybody has worked on a similar problem and found the right
solution can you please send us a link to their webpage.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Image Acquisition using SPI or I2C or USB on Different ARM families</title><link>https://community.arm.com/thread/106789?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2013 03:55:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e7e12cc9-ea7b-4c4d-8239-4ec82c24e5ea</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Reading the first page of information for MCBSTM32c, the text says
&amp;quot;On-Chip Memory: 256KB Flash &amp;amp; 64KB RAM&amp;quot;.&lt;/p&gt;

&lt;p&gt;
Not sure what LPC2478-based board you have, but the processor
itself seems to have 98 kB RAM, according to NXP. Don&amp;#39;t ask _us_ if
your unknown board happens to have extra, external, memory to fit the
150kB of the image + the stack and variables of your program + any
transfer buffers etc.&lt;/p&gt;

&lt;p&gt;
What does it look like, based on your own evaluations of your
needs?&lt;/p&gt;

&lt;p&gt;
By the way - how come the image size suddenly becamse 320x240,
while the original post did specifically claim a _need_ to be able to
handle 640x480 pixels? The word &amp;quot;need&amp;quot; represents a hard &amp;quot;must&amp;quot;
requirement. Not a soft &amp;quot;it would be nice to&amp;quot; requirement.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Image Acquisition using SPI or I2C or USB on Different ARM families</title><link>https://community.arm.com/thread/80911?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2013 03:27:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3dcc9de0-8d4f-4e67-bff5-c456527504eb</guid><dc:creator>Niharika Jha</dc:creator><description>&lt;p&gt;&lt;p&gt;
Our image is 320 x 240 pixel with 16 bit color, so its size is
approx 150Kb uncompressed.&lt;br /&gt;
The image processing algorithm requires the whole image hence will it
be possible to interface a SPI or I2C compliant camera module with
MCBSTM32C and process one image at a time.&lt;br /&gt;
We dont want to store or display the image.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Image Acquisition using SPI or I2C or USB on Different ARM families</title><link>https://community.arm.com/thread/68020?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2013 02:30:43 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b146c483-31df-4881-a34b-1d1ebfd21825</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Sorry - too little information given.&lt;/p&gt;

&lt;p&gt;
640x480 is 307,200 pixels. So the full image is about 300k - not
30k - when decompressed. Assuming 8-bit grayscale or paletted colors.
It will be two or three times larger if 16-bit 5:6:5 color or 24-bit
color.&lt;/p&gt;

&lt;p&gt;
Can your image processing manage, seeing only a part of the image
at a time or does the image processing require that you have full
access to all pixels for random access?&lt;/p&gt;

&lt;p&gt;
Device driver? Sorry, but for this kind of microcontrollers you
don&amp;#39;t have any operating system that makes use of any device drivers.
Whatever interface you use, you must program the controller with a
program that contains both the communications code and the image
processing code. If using USB, then there are USB code available that
you can start modifying.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>