element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
Eye On Intelligence Challenge
  • Challenges & Projects
  • Design Challenges
  • Eye On Intelligence Challenge
  • More
  • Cancel
Eye On Intelligence Challenge
Blog Final Blog - Digital Image Porosity Enhancement
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Eye On Intelligence Challenge to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: pandoramc
  • Date Created: 18 Nov 2024 2:46 PM Date Created
  • Views 231 views
  • Likes 6 likes
  • Comments 0 comments
  • image processing
  • Eye on Intelligence Challenge
  • zynq-7000
  • amd
Related
Recommended

Final Blog - Digital Image Porosity Enhancement

pandoramc
pandoramc
18 Nov 2024

One of the critical factors in determining the quality of a material is the porosity present in it. In order to detect the porosity in the material based on image processing there is a wide catalog of heterogeneity detectors such as Canny or Laplacian filters. These operators take a region of the image and apply a convolution with a kernel to detect a defined pattern as points or lines.

{gallery}Kernels

image

3x3 kernel: Horizontal Derivative in Sobel detector

image

Gaussian kernel: Kernel for point detector

image

Gabor Kernel: Kernel for texture pattern detection

This time, in order to reduce the processing time and reduce the  pattern complexity reduction, a statistical filter is used. The statistical filter consists in the use of variance and squared mean for the detection of high value deviation regions. This  operation enhances highly heterogeneous regions for porosity and scratch detection. The entire process is shown below,

image

The firs code associated to it is

frame = hdmi_in.readframe()
kernel = (5, 5)
frmMain = (frame/255.0).astype(np.float32)
cv2.cvtColor(frmMain,cv2.COLOR_RGB2GRAY,dst=grayscale)
cv2.blur(grayscale, kernel, dst = mu)
cv2.blur(grayscale*grayscale, kernel, dst = mu2)
cv2.sqrt(mu2 - mu*mu, dst = std)
cv2.cvtColor((std/np.max(std)*255).astype(np.uint8), cv2.COLOR_GRAY2RGB, dst=outframe)
hdmi_out.writeframe(outframe)

The Filezilla software was used to send the files to the board. and the el gato pro board is used to capture the images from the HDMI out port in the board. The el gato board allows you to validate of the processing path and verify that each component of the project transmits video.

The selected sample must be located in the center of the camera and must be properly illuminated in order to avoid poor acquisition

Sample

Finally, the processing path is shown in the next gallery

{gallery}Processing Path

Original

Acquired Image: Image acquired from the HDMI in port

Mean Image

Mean Image: Change to gray scale and applied 5x5 mean filter

Squared

Squared Image: Change to gray scale, squared values and applied 5x5 mean filter

root difference

Root of difference: Enhanced features of the image

To reduce the temperature inside the processor for a long processing time, I added an aluminum heat sink for the IC, since the processor raises its temperature when the processing demand is high.

heat sink

These were my preliminary results, I would like to continue the processing, but in my last test I had a problem with the video port. I am not able to continue the capture and I am trying to solve it.

HDMI Error

  • Sign in to reply
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