element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
STEM Projects
  • Learn
  • Learning Center
  • STEM Academy
  • STEM Projects
  • More
  • Cancel
STEM Projects
Blog Book Carrying Robot #5 How to setup MATLAB and Simulink to run a standalone Image Processing script on Raspberry PI using Raspberry PI Camera
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join STEM Projects to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mohanedessam
  • Date Created: 5 Sep 2015 4:30 AM Date Created
  • Views 1468 views
  • Likes 3 likes
  • Comments 9 comments
  • image_processing
  • teachers_pet_robotics_design_challenge
  • teachers_pet
  • matlab_raspberry_pi
  • raspberry-pi
  • matlab
  • teachers pet robotics design challenge
  • digital_imaging
  • book_carrying_robot
  • simulink
Related
Recommended

Book Carrying Robot #5 How to setup MATLAB and Simulink to run a standalone Image Processing script on Raspberry PI using Raspberry PI Camera

mohanedessam
mohanedessam
5 Sep 2015

I showed in my previous post that I was able to run a standalone user defined MATLAB script on Raspberry PI, that can take images from Raspberry PI Camera and control two motors using GPIO pins.

 

In this Post I will explain how to this, so please refer to my video:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

First, if your "mex -setup" command is giving an error, please try to install Microsoft SDK from this link:

http://www.mathworks.com/matlabcentral/answers/101105-how-do-i-install-microsoft-windows-sdk-7-1

 

However, I had some problems installing that, but it worked after I followed the instructions in this video:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

To configure the Raspberry Pi camera to run on V4L2 video capture block, please refer to this link:

Use Camera Board with V4L2 Video Capture Block - MATLAB & Simulink

 

I have attached the Simulink model I developed in the video, and also a separate m-file that contains the function script in case you can't view the function in simulink.

 

After this post I have made some updates to my model and code please check this post for the updated version.

Attachments:
processing_separate_function.m.zip
show_progress.rar
  • Sign in to reply

Top Comments

  • DAB
    DAB over 10 years ago +1
    Could you boost the audio a little? I can just barely hear your voice on the video. Thanks DAB
  • aljazimag
    aljazimag over 7 years ago

    السلام عليكم ورحمة الله وبركاته، استاذ مهند

     

    حاليًا اقوم بتصميم Vein Viewing system,

    هو مشروع يلتقط صورة بواسطة الرازبري كاميرا ،، ثم تتم معالجة الصورة بواسطة الماتلاب

     

    هل يمكنك مساعدتي في جزئية معالجة الصورة وخاصة في استخدام خواص مثل Image contarst

    & adoptive histogram & binary image

     

    شكرًا جزيلًا انتظر ردك بالموافقة أو الرفض mohaned essam's Blog

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 9 years ago

    السلام عليكم بش مهندس مهند ممكن تواصل معاك عن طريق الايميل او الفيس بوك .. انا اعمل على مشروع UGV ROBOT وكنت محتاج مساعدة في جزء معين من الماتلاب واللراسبيري باي

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mohanedessam
    mohanedessam over 10 years ago in reply to Former Member

    شكرا .. إن شاء الله يكون مفيد ليك 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 10 years ago

    شكرا جزيلاُ ماتلاب برنامج رائع

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to mohanedessam

    Thank you for the references. will browse on it. When I get my free time from my duty. Very much appreciated.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube