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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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 Blog #3: Image Acquisition
  • 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: Former Member
  • Date Created: 28 Sep 2015 4:00 AM Date Created
  • Views 522 views
  • Likes 0 likes
  • Comments 2 comments
  • question_sensor
  • teachers_pet
  • teachers pet robotics design challenge
Related
Recommended

Blog #3: Image Acquisition

Former Member
Former Member
28 Sep 2015

In any Computer Vision project, 'Image Acquisition' is considered as a very important stage. To many it sounds like a step which is the easiest, but if you don't give good attention to the details it can create lot of troubles later.

 

Some important aspects of this step are : image quality, frame rate, size considerations, blurring aspects, light conditions/changes, storage of frames.

 

In my project 'Raise  your Hands !' , this step is very crucial since I've to detect the hands as soon as they are raised in real-time. The system cannot wait for the camera to grab a big image frame and write it to the disk (SLOW!). Else the teacher would hear the system after a big latency which isn't good for anyone.

So, I need to focus on Medium Image Quality instead of a very high resolution image frames which would make the system slow.

 

Moreover, the process of raising hands by students isn't a sudden action and it happens over a couple of seconds. Most of the capturing by any modern camera is done at 25-30 frames per second (fps) which means that each frame is grabbed at 1/30th of a second. Now, in reality this is good for visual perception (else you would see jerky video) but for a system which needs to see an event which happens over 2-5 seconds it is an overkill. My system is modified to yield 1 FPS which just works in these scenarios and saves a lot of disk space (if you plan to store the frames somewhere).

 

I've kept most of the camera settings to default, as the recording happens in an indoor environment which is quite helpful in dealing with exposure and focal length settings. Other details of the settings are:

HP Digital Camera

Dimensions: 1920x1080

Resolution: 96 dpi

Bit depth : 24

Size: ~100-150 KB per frame

 

In windows system, we can use the following command to convert a video file to image frames (where -r sets fps)

ffpmeg -i vid.mp4 -r 1 frames%05d.jpg

  • Sign in to reply
  • Former Member
    Former Member over 10 years ago in reply to shabaz

    good question, it isn't possible to do all experiments with students sitting in the classroom hence I recorded .mp4 video and worked on that. But kept the settings which would help me process real-time scenarios. So I simulate the situation using my set-up.

    Ideally, we don't want to store the frames at all (maybe 1-2 previous frames only; i'm writing the blog on it). So the stream of frames at 1fps will be coming in and will have 1 second to process the frame before next one comes. Normally modules like face detection and others run comfortably at 15 fps, so it isn't much of a problem.

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

    Hi Rohit,

     

    The ffmpeg command line you refer to has an .mp4 file as an input, but how will this be done in real-time?

    Will you dump short mp4 files to disk and then quickly process them to see if a hand has been raised? Or something else?

    • 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