BookStudyDigest

Sunday, 30 April 2023

[New post] Machine vision project

Site logo image Tauno Erik posted: " My first goal was to test whether can I make machine vision projects that identify different sizes of these wooden bricks from Woodi. I had four different sizes of bricks. First I made a bunch of images separately of each brick on a different " Tauno Erik

Machine vision project

Tauno Erik

Apr 30

Machine vision classified outout, Tauno Erik

My first goal was to test whether can I make machine vision projects that identify different sizes of these wooden bricks from Woodi. I had four different sizes of bricks.

First I made a bunch of images separately of each brick on a different angle. Then many of them together. I used my two webcams and cell phones. After some testing, I started to add some similar sizes wooden objects to images so the model will separate the bricks from other stuff.

It would be good to use real situation pictures were it would be used. Same kind of camera, lighting and background.

I used trainyolo.com to label all the images. I Collected 770 images and labelled 5188 objects together. And trained 8 models until I was finally satisfied with the results.

My trainYOLO project is here.

My Colab to train the model. Almost the same as the example from trainYOLO.

And my Python code on GitHub

I used Yolo version 8.

Data examples

Sample images from the dataset. Segmented.

Counting different objects on a simulated conveyor line

In this example, it detects all four sizes of brick, tracks them and counts them when they cross the green line.

Recognize only in a predefined region

Detects objects only in the predefined zone (drawn box).

Set Up a Python Virtual Environment

 pip install virtualenv python3 --version python3.10 -m venv env source env/bin/activate pip list  ~ deactivate 

Save and instal requirements

 pip freeze > requirements.txt ~ pip install -r requirements.txt 

CUDA error out of memory

 nvidia-smi kill -KILL PID_number 

Links

  • https://www.youtube.com/watch?v=WgPbbWmnXJ8
  • https://www.youtube.com/watch?v=QV85eYOb7gk
  • https://ultralytics.com/
  • https://app.trainyolo.com/
  • https://blog.roboflow.com/yolov8-tracking-and-counting/
  • https://colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/how-to-track-and-count-vehicles-with-yolov8.ipynb?ref=blog.roboflow.com#scrollTo=Q9ppb7bFvWfc
Comment
Like
Tip icon image You can also reply to this email to leave a comment.

Unsubscribe to no longer receive posts from Tauno Erik.
Change your email settings at manage subscriptions.

Trouble clicking? Copy and paste this URL into your browser:
http://taunoerik.art/2023/04/30/machine-vision-project/

WordPress.com and Jetpack Logos

Get the Jetpack app to use Reader anywhere, anytime

Follow your favorite sites, save posts to read later, and get real-time notifications for likes and comments.

Download Jetpack on Google Play Download Jetpack from the App Store
WordPress.com on Twitter WordPress.com on Facebook WordPress.com on Instagram WordPress.com on YouTube
WordPress.com Logo and Wordmark title=

Learn how to build your website with our video tutorials on YouTube.


Automattic, Inc. - 60 29th St. #343, San Francisco, CA 94110  

at April 30, 2023
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

The Consecrated Eminence: Coming Home to the Archives: New Audiovisual Materials Available Through Amherst College Digital Collections

...

  • The Consecrated Eminence: 80 Years Later: Remembering Hiroshima and Nagasaki August 6 & 9, 1945
    ...
  • [New post] Mackintosh — Beyond the Swelkie (2021)
    peterson10 posted: "Mackintosh, Jim, and Paul S. Philippou, eds. Beyond the Swelkie: A Collection of Poems and Writings Cel...
  • PLDT Home honors mothers on their special day with a heartwarming video titled Backstage Moms
    Motherhood is definitely one of the hardest endeavors a woman can take in her li...

Search This Blog

  • Home

About Me

BookStudyDigest
View my complete profile

Report Abuse

Blog Archive

  • November 2025 (1)
  • August 2025 (2)
  • April 2025 (1)
  • September 2024 (859)
  • August 2024 (946)
  • July 2024 (879)
  • June 2024 (843)
  • May 2024 (875)
  • April 2024 (1018)
  • March 2024 (1239)
  • February 2024 (1135)
  • January 2024 (934)
  • December 2023 (923)
  • November 2023 (818)
  • October 2023 (743)
  • September 2023 (712)
  • August 2023 (722)
  • July 2023 (629)
  • June 2023 (566)
  • May 2023 (584)
  • April 2023 (629)
  • March 2023 (551)
  • February 2023 (399)
  • January 2023 (514)
  • December 2022 (511)
  • November 2022 (455)
  • October 2022 (530)
  • September 2022 (418)
  • August 2022 (412)
  • July 2022 (452)
  • June 2022 (467)
  • May 2022 (462)
  • April 2022 (516)
  • March 2022 (459)
  • February 2022 (341)
  • January 2022 (385)
  • December 2021 (596)
  • November 2021 (1210)
Powered by Blogger.