Pixy2 Camera - Image Recognition for Arduino & Raspberry Pi

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 พ.ค. 2024
  • Check out the Pixy2, a smart camera with image recognition capabilities!
    Pixy2 from DFRobot - www.dfrobot.com/product-1752....
    Full article with code at dronebotworkshop.com/pixy2-ca...
    More articles and tutorials: dronebotworkshop.com
    Join the conversation on the forum: forum.dronebotworkshop.com
    Subscribe to the newsletter and stay in touch: dronebotworkshop.com/subscribe/
    The Pixy2 is a low cost yet powerful camera that is capable of object recognition, line tracking, and simple barcode reading. The device is the latest iteration of the Pixy Cam, a project built by Charmed Labs in conjunction with the Robotics Institute at Carnegie Mellon University.
    With a variety of interfaces and lots of code libraries and samples, the Pixy2 can be used with an Arduino, Raspberry Pi, Beaglebone Black, or just about any computer, microcomputer, or microcontroller.
    In this video, I will show you how the Pixy2 works, how to hook it up, and how to train it using software called PixyMon which runs on Windows, Linux, and Mac OS X. I’ll then show you how to easily hook up your Pixy2 to an Arduino and run code to detect an object, lines, intersections, and simple barcodes.
    Thanks to its onboard processor the coding for Pixy2 is very simple. It provides a very easy method of adding vision to your next Arduino or Raspberry Pi project.
    Here is the table of contents for this video:
    00:00 - Introduction
    02:18 - Pixy2 Introduction
    05:53 - Pixy2 Unboxing
    08:02 - Using PixyMon
    14:01 - Color Signature Training
    20:32 - Arduino Hookup
    21:48 - CCC Hello World Demo
    27:44 - Line Tracking Intro
    29:24 - Line Hello World Demo
    As always there is a detailed article on the DroneBot Workshop website.
    And while you are there please consider joining my newsletter, it’s my way of keeping in touch - dbot.ws/dbnews.
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 292

  • @joeritchey4348
    @joeritchey4348 5 ปีที่แล้ว +4

    Great video! We’ll explained!! Also, I love the fight that you’re having with keeping your hands from moving around. Please keep the videos coming.

  • @MrJos2218
    @MrJos2218 5 ปีที่แล้ว +13

    I love the way you explain each introduction it makes me more confident in learning arduino.

  • @Mystic0Dreamer
    @Mystic0Dreamer 5 ปีที่แล้ว +6

    This is a great device for robotics! Thanks for making a video on it. I'll definitely be getting some of these for my robots. I especially like the barcode feature as those can be used to make certain the robot knows which room it's in for certain, etc. Thanks Bill.

  • @realhusky
    @realhusky 5 ปีที่แล้ว +11

    Thank you for taking the time to put together really clear and easy to understand content!

  • @rickrose2235
    @rickrose2235 5 ปีที่แล้ว +1

    This tutorial is awesome. Your tutorials just keep getting better and better, & I'm learning a lot.

  • @infinytower3317
    @infinytower3317 5 ปีที่แล้ว

    You are one huge treasure trove on the TH-cam planet! Thanks a lot for providing invaluable learning tools!

  • @AngryRamboShow
    @AngryRamboShow 5 ปีที่แล้ว

    Was hoping you'd be back in the workshop soon! Always a pleasant show!

  • @Ninjamstrboy
    @Ninjamstrboy 5 ปีที่แล้ว +7

    Awesome content! Please do a video on your workshop! It looks super organized and well stocked.

  • @user-hr5ts9vm8u
    @user-hr5ts9vm8u 5 ปีที่แล้ว +162

    I am Korean.
    I can't speak English.
    But I am still listening and listening hard.
    Thank you very much.

    • @Demirci91
      @Demirci91 5 ปีที่แล้ว +2

      Aaaaaaaaaaaaaaaaaaaaaaaaaa yeah you welcome

    • @technoking6636
      @technoking6636 5 ปีที่แล้ว +10

      I am Moroccan
      I can speak English
      so i'm learning a lot
      thank u very much

    • @user-hr5ts9vm8u
      @user-hr5ts9vm8u 5 ปีที่แล้ว +4

      @@technoking6636 These days, translation is easy so you can study as much as you like.
      I'd like some good information.

    • @sunwoosik
      @sunwoosik 5 ปีที่แล้ว

      언어를 떠나서 이분 말씀은 귀에 잘 들어오지 않나요?
      진행이나 표정도 편하고 설명도 상당한 준비로 꼼꼼하게 해 주시고,
      정말 멋진 분이라 생각 합니다.

    • @andymouse
      @andymouse 5 ปีที่แล้ว +1

      Welcome my friend

  • @tly7486
    @tly7486 5 ปีที่แล้ว +20

    you are a high school teacher that I've never had. Thank you!

    • @ColdHawk
      @ColdHawk ปีที่แล้ว +1

      Wouldn’t one be lucky to have this gentleman teaching tech in the local high school.

  • @Cptnbond
    @Cptnbond 5 ปีที่แล้ว

    As always well presented material and just at the right pace. Thank you for your work, you will soon reach 100k subscribers.

  • @swapshots4427
    @swapshots4427 3 ปีที่แล้ว

    I just tore apart my Blade 350QX which has no6 been able to bind since I crashed it. I have decided to build another, which led me to you, which led me to Arduino. My first kits should be in mailbox tomorrow and you will be in my daily routine. Thankyou for your concise content.!

  • @ryanruthrhona
    @ryanruthrhona 5 ปีที่แล้ว +1

    Could you please make a video of your workshop...the kinds of storage options you use and how your workbench and equipment is arranged. It looks super neat.

  • @TheSpyder19
    @TheSpyder19 5 ปีที่แล้ว

    SWEET ! Thank you !
    I just ordered one for my Omnibot 2000 upgrade project !
    You, Sir, are AWESOME !

    • @josephmelkin8209
      @josephmelkin8209 4 ปีที่แล้ว

      Where did you order pixy 2 cam?
      Pls do reply..thanks in advance

  • @johnroe4360
    @johnroe4360 5 ปีที่แล้ว +4

    Another brilliant vid. I think you are an amazing teacher. Wish i had teachers like you when I was at school and college 60 years ago.

    • @MindTrip888
      @MindTrip888 3 ปีที่แล้ว

      Agreed. Wish I had this tech 50 years ago. And now days its for under $20 for most things, and some of those sensors less than a few bucks! I am very excited about this now and have SUBSCRIBED with a passion to this YODA in his field. There is NO TRY, Just Do It! ;)

    • @MindTrip888
      @MindTrip888 3 ปีที่แล้ว

      Its also good to have come in late, as it were, as I am not hanging out for the next video. For the main ones I want for now are already done and ready to view. Timing is a lot of everything, and keep the ball rolling with the momentum. Hope you are enjoying yourself and expanding your ideas. With a good android phone with USB OTG, I think the software for an AI robot would all be able to fit nicely. Recognition like this Pixy2, and self learning.

  • @Eman6240
    @Eman6240 5 ปีที่แล้ว

    Very well presented. Looks like a very cool device. Gotta get one. By the way, I'm envious of your workshop. Very nice setup.

  • @HugBearWithAHat
    @HugBearWithAHat 5 ปีที่แล้ว +3

    Great video! Would like to see the Pixy2 in an actual line following robot. Could be a multi-episode project. Anyway, awesome video, keep them coming.

  • @artemyevtushenko8722
    @artemyevtushenko8722 3 ปีที่แล้ว

    Thank you for yet another amazing video. You deserve more subscribers!

  • @anubhavkalita675
    @anubhavkalita675 3 ปีที่แล้ว

    Your workshop is so much organised 😍

  • @DavidFernandez-bg6mv
    @DavidFernandez-bg6mv 3 ปีที่แล้ว

    This man is a legend, I would like him to be my teacher. plz never stop your videos!!

  • @BrianDressel
    @BrianDressel 3 ปีที่แล้ว

    I love all your videos, keep em coming! Thanks.

  • @benjidaniel5595
    @benjidaniel5595 2 ปีที่แล้ว

    This was such a fantastically informative video. The Pixy looks perfect for a project I have in mind.

  • @slashghero
    @slashghero 5 ปีที่แล้ว +1

    Wow, this is soo beautifully explained!!

  • @fabiolus2007
    @fabiolus2007 3 ปีที่แล้ว +1

    As always, amazing tutorial !!!

  • @johnacsyen
    @johnacsyen 5 ปีที่แล้ว

    Thanks for this tutorial. Your workshop is neat.

  • @thatgenzdev
    @thatgenzdev 4 ปีที่แล้ว

    All the information are presented with ease thanks and keep to teach us.

  • @ansarahmed3660
    @ansarahmed3660 4 ปีที่แล้ว

    very informative about the subject.
    Moreover, I love the workshop, so systematically arranged with all sorts of components there.

  • @lfmtube
    @lfmtube 3 ปีที่แล้ว

    Perfect instructional video! Congratulations!

  • @wallaceshackleton1889
    @wallaceshackleton1889 4 ปีที่แล้ว

    At the start of the video, I thought...what good is this to me and at the end I was thinking...this has some interesting possibilities. Thanks for an informative video.

  • @alijabari8715
    @alijabari8715 5 ปีที่แล้ว +5

    great great channel. thank you for sharing videos of your workshop

  • @Reach41
    @Reach41 5 ปีที่แล้ว

    After watching this, I decided that the Pixy2 is mature enough now for my needs.

  • @Hamad.Kuwaitt
    @Hamad.Kuwaitt 5 ปีที่แล้ว +1

    I love your channel and your teaching ❤️

  • @JustConquering
    @JustConquering 5 ปีที่แล้ว +12

    Awesome, I love your channel, very useful content ++ .

  • @tohcp5729
    @tohcp5729 2 ปีที่แล้ว +1

    I always support you . very good detail guide and impressive all presentation and essential info share . I had follow you more than 7 years..if I not wrong

  • @fabiolsmineiro
    @fabiolsmineiro 2 ปีที่แล้ว

    I was thinking about buying this camera, so, i decided watch some videos about, after watching this video i ordered in Amazon. Thanks for this video.

  • @TcMauricio
    @TcMauricio 4 ปีที่แล้ว

    Gotta get one of these, thank you!

  • @opalprestonshirley1700
    @opalprestonshirley1700 5 ปีที่แล้ว

    That is one awesome piece of hardware. Thanks.

  • @jackyli6716
    @jackyli6716 5 ปีที่แล้ว

    that's cool~ i love this tutorial so much~ thank you so much!

  • @eassil2495
    @eassil2495 3 ปีที่แล้ว

    this channel is very underrated

  • @YamamotoGenryusaiShigekuni
    @YamamotoGenryusaiShigekuni 5 ปีที่แล้ว

    Man, you're amazing! I love your videos. Very educational.

  • @mohamedramy8909
    @mohamedramy8909 5 ปีที่แล้ว

    thank you so much i really needed the help!!

  • @behm2211
    @behm2211 2 ปีที่แล้ว

    Great clip. Thank you!

  • @AnthonyYZebre
    @AnthonyYZebre 4 ปีที่แล้ว

    A lot to learn really. So amazing of course.

  • @makespace8483
    @makespace8483 5 ปีที่แล้ว

    Nice job. Very helpful!

  • @davethenerd42
    @davethenerd42 2 ปีที่แล้ว

    I'm getting into this stuff because I recently went to Disney World and "made" a BB "robot" at the Galaxy's Edge Droid Depot. This thing has zero autonomy and the interactive features are explored in a matter of minutes. Hopefully, I can use what I'm learning here to come up with some worthwhile mods. I'd love to see you rip one apart and experiment with it!

  • @DIYDaveT
    @DIYDaveT 4 ปีที่แล้ว +2

    Great video, perfectly understandable even at 1.75x playback speed. This is amazing tech, probably military grade from 10 years ago. In other words, bleeding edge to Amazon commodity in a decade. Just amazing.

  • @jameselliott9397
    @jameselliott9397 5 ปีที่แล้ว

    FYI... you could set your font in Arduino a good bit larger and add ample margin because it is off the edge of my screen.

  • @markestes570
    @markestes570 5 ปีที่แล้ว

    Excellent video. Thank you!

  • @ptawethe2nd
    @ptawethe2nd 4 ปีที่แล้ว

    Your channel is fantastic

  • @mihaiciornei5648
    @mihaiciornei5648 5 ปีที่แล้ว

    LOVE YOUR CALM. TNK S FOR YOUR VIDEOS.

  • @teammadmax4905
    @teammadmax4905 ปีที่แล้ว

    와우 픽시2캠 사용해서 색인식이랑 학습을 하던 도중에 궁금한게 생겨서 검색했따가 해결하고가네요 ...구조에 대해서 제가 잘못알고 있었네요 ... 비록 영어 설명이지만 잘 이해하고 갑니다 꽤좋은 모듈기계같습니다 픽시2캠은 ! 좋은영상감사합니다.!

  • @TechnoAutomation
    @TechnoAutomation 5 ปีที่แล้ว

    Very interesting products.
    I wish have one in my work shop

  • @ZupaTr00pa
    @ZupaTr00pa 5 ปีที่แล้ว

    Ok, so the part in the code that says 'pixy.ccc.blocks[i].print();' prints out the xy position, size etc. Is it possible to extract that specific data for use in other functions? For example, if block 1 moves below a certain y distance, then return a signal.

  • @qzorn4440
    @qzorn4440 3 ปีที่แล้ว

    gee, i have one of these in the box somewhere, got off on RPi-opencv... so much to do... need to use this wonderful info and get busy with the Pixy2 width measurement Low-OK-High_IO thanks :)

  • @redserpent
    @redserpent 5 ปีที่แล้ว

    mind blowing for a little over $50 bucks! Great video.

  • @faceprofesor
    @faceprofesor 3 ปีที่แล้ว

    Thank you very much for the videos you make. I have a question: Is there any function in the pixy library to capture a snapshot of the detected object? Thank you very much.

  • @mecommenting
    @mecommenting 5 ปีที่แล้ว +1

    Please make a tutorial about how to have a nice and clean workshop!!!

  • @abhishektiwari931
    @abhishektiwari931 3 ปีที่แล้ว

    Sir u R doing great work ...thanks alot

  • @jhlol3433
    @jhlol3433 5 ปีที่แล้ว

    Hello! May i ask if is it possible to modify the code for the Pixy to move towards the object? As i am doing a project on development of an accurate landing solution and had built a landing pad. I was thinking if isit possible to teach the pixy to read the pattern of the landing pad and write a code on arduino to execute the landing?

  • @pastelmakine5044
    @pastelmakine5044 5 ปีที่แล้ว

    Very nice presentation, clear and understandable speech. Excellent work. Thank you.

    • @Dronebotworkshop
      @Dronebotworkshop  5 ปีที่แล้ว

      You are very welcome Oguz.

    • @domenicomonteleone3055
      @domenicomonteleone3055 ปีที่แล้ว

      @@Dronebotworkshop Thank you kindly for your videos I follow you 💯 from #YSW respect back to you please keep making videos and help out as many people as you can with there projects excellent work you do Top Quality workmanship

  • @dr.marilouhaines4545
    @dr.marilouhaines4545 4 ปีที่แล้ว +2

    Can the pixy2 be trained to follow living things? For example recognize certain insects like cockroaches and detect their movements? This is very important for creating and keeping clean environments. If not what would would be another route?

  • @reverse_engineering
    @reverse_engineering 4 ปีที่แล้ว

    Is arduino leonardo works well just like arduino UNO ??
    connecting pixy2 with arduino leonardo same side? (connect pixy2 outwards of arduino leonardo board??)

  • @bimbomix9917
    @bimbomix9917 5 ปีที่แล้ว

    love this channel!

  • @dowtec-engineering4084
    @dowtec-engineering4084 3 ปีที่แล้ว

    Very cool vid!

  • @alrayahalsanhoory806
    @alrayahalsanhoory806 3 ปีที่แล้ว

    can we use it to recognize hand signs for example peace sign and others signs with our hands and if we can dose it possible to use what the pixy2 recognizes to make the Arduino give commands?
    thank you for ur videos it is very helpful.

  • @shinigamilee5915
    @shinigamilee5915 5 ปีที่แล้ว

    Great explanation.

  • @seeingdragons4319
    @seeingdragons4319 2 ปีที่แล้ว

    Excellent video and content

  • @MrWahjudi
    @MrWahjudi 5 ปีที่แล้ว

    Its very professional video ... Big thumbs up

  • @pymobileindo
    @pymobileindo 5 ปีที่แล้ว

    very good explanation sir

  • @unionse7en
    @unionse7en 5 ปีที่แล้ว

    I guess for non spherical objects (they look the same no matter how oriented), like the flashlight you would train using multiple orientations, then accept all of those different blocks as the same object ..

  • @teocerda5367
    @teocerda5367 2 ปีที่แล้ว

    I have a project to detect the house driveway, and external walls lines, and already cutted areas lines, do you think I can use Pixy2 to accomplish my project? Thank you!

  • @spicyunicornmilkfarmer
    @spicyunicornmilkfarmer 4 ปีที่แล้ว

    Suppose I want to track a hand, but I only want the object to be recognized when I see the palm. And, if I see the side of the hand, or the back, the object is not being tracked. Do I train the Pixy2 to track JUST the palm, or can I show the entire front of the hand?

  • @bluedeath996
    @bluedeath996 5 ปีที่แล้ว

    Is it entirely by colour or does it look at shape and proportion as well? If you put a blue golf ball in the image would it say it is a golf ball, a flashlight or not detect it? What are the 16 types of barcode it reads (UPC, EAN, Code 11, etc)? is QR one?

  • @emadabuhagag222
    @emadabuhagag222 3 ปีที่แล้ว

    thank you , very helpful

  • @mk48sz33
    @mk48sz33 5 ปีที่แล้ว

    What an awesome tutorial!!! Please make more videos! Can you make a video showing how to use the readings from the camera with the Arduino to turn on an LED for example when the camera finds a golf ball?

    • @joelapin953
      @joelapin953 2 ปีที่แล้ว +1

      th-cam.com/video/GnnFy0uFe3E/w-d-xo.html

  • @Don-vv5of
    @Don-vv5of 4 ปีที่แล้ว

    Hello, I'm wondering if you can get RGB values back from the Pixy. Now it's detecting block, but can it we just give a average color of an area. The idea is, to measure the color average temperate in a room, and the arduino could copy the given average color to an RGB LED ?

  • @natchi71
    @natchi71 5 ปีที่แล้ว

    is the pixy2 cam able to identify white objects ? it does not have white as one of the RGB led modes. The colour balls i wanted to train are 1. white 2. yellow, 3. light blue, 4. orange.

  • @doverivermedia3937
    @doverivermedia3937 2 ปีที่แล้ว

    Fantastic video. Very clear and well presented. Thank you. 🇬🇧

  • @Sven.W
    @Sven.W 5 ปีที่แล้ว

    Great video! Is it possible to combine the line following with shape identification?

  • @wingel82
    @wingel82 3 ปีที่แล้ว

    you are the best!!! thanks a lot!!!

  • @luisbaca5119
    @luisbaca5119 5 ปีที่แล้ว

    You think that i could use the 7 signatures plus with the color codes to track more objects?

  • @alexrydeen2987
    @alexrydeen2987 3 ปีที่แล้ว

    Could i use this for obstacle avoidance or make it work together with a ultra sonic sensor for the same result?

  • @Stubby0266
    @Stubby0266 3 ปีที่แล้ว

    What about using the Pixy2 for building a sentry? A fixed point sentry using airsoft or paint balls ?

  • @inayathussain9236
    @inayathussain9236 5 ปีที่แล้ว

    i was waiting for a video on esp8266. but this one is also excellent. i hope next time the video will be on esp8266

  • @vinceaikido
    @vinceaikido 5 ปีที่แล้ว

    Good video sir but i would like to know what is the max range for objects recognition with this camera ? And do you know if it recognyze well shiny object like a LED ?

  • @mohammadrezaakbari9960
    @mohammadrezaakbari9960 5 ปีที่แล้ว

    Hi.Thanks for full explanation. Does pixy camera can recognize black color (like a black ball)?

  • @japanesemarspathfind
    @japanesemarspathfind 5 ปีที่แล้ว

    In youtube, Some people uses rasbery-pie and open-cv (open-software ) to detect something. So Pixy2 joining into rasbery-pie with open-cv will produce more interesting project.

  • @Zhaymoor
    @Zhaymoor 5 ปีที่แล้ว

    amazing ,, thank you so much

  • @jangabrielbernardo3301
    @jangabrielbernardo3301 4 ปีที่แล้ว

    Can I use this camera to count how many objects have passed through its vision? Thank you for answering!

  • @prodbyrish
    @prodbyrish 3 ปีที่แล้ว

    Hi, Thanks a lot for the video!
    I would like to know how I can display the signature name for an object through the Arduino serial monitor.
    I would also like to know how I can make the Arduino do a specific action after detecting a specific object.
    Thanks again!

  • @devdharma3050
    @devdharma3050 5 ปีที่แล้ว

    Thank you so much :)

  • @robertlyttle2188
    @robertlyttle2188 5 ปีที่แล้ว

    love your videos

  • @KimberleyBianca
    @KimberleyBianca 4 ปีที่แล้ว

    Thanks so much

  • @surenbono6063
    @surenbono6063 4 ปีที่แล้ว

    ...can an arduino decode pre-defined color on a pic file in SD card without extra color decoding module...? Decoded GPS points to a location on map with color that points to its timezone

  • @greenteckgreece5180
    @greenteckgreece5180 5 ปีที่แล้ว

    The tx led on my arduino is open when i conect it on my laptop(the arduino is not running the scetch and when i upload a new scetch, the arduino is not reading it. )
    But if i only power the arduino the tx led is closed.
    Can you help me with that?

  • @sbrahma0
    @sbrahma0 2 ปีที่แล้ว

    Great video! How can we connect multiple pixy2 with the mega? Suggestions will be really appretiated.Thanks

  • @willydoesfighting
    @willydoesfighting 5 ปีที่แล้ว

    very nice video, thank you

  • @pokednaful
    @pokednaful 2 ปีที่แล้ว

    So we always need connect the pixy 2 to the computer to run the detection?

  • @KKMaity
    @KKMaity 3 ปีที่แล้ว

    I there any way this module with Arduino can give me x and y position in plane 2d paper from top view.. can it tell distance between two objects in 2d plane.. and clear straight path from a object to other object ..and also can it tell angle using Arduino... Are these things possible using Arduino? Or I have to use raspberry 3?

  • @whitekanyewestthebully1346
    @whitekanyewestthebully1346 3 ปีที่แล้ว

    Is there a way to add a oled that shows what the camera sees for the arduino