Raspberry Pi 2 and OpenCV 3 Tutorial Part 1

Поділитися
Вставка
  • Опубліковано 2 жов 2024
  • GitHub site for this project:
    github.com/Mic...
    Table of Contents
    01:27 Introduction and Raspberry Pi ESD Precautions
    10:58 Making the Raspbian SD Card
    16:05 First Time Boot-up
    23:55 PuTTY and Xming
    32:55 Verify Webcam Works
    37:24 Get a LED Blinking
    51:18 Using the Raspbian Provided OpenCV Pre-compiled Binaries
    54:22 OpenCV Compile From Source
    1:03:59 Test OpenCV Programs
    1:08:10 Example Servo Motor Control Program
    1:24:00 Finale (putting it all together) - Pan and Tilt Tracker
    If you found this video helpful please consider supporting me on Patreon:
    www.patreon.co...

КОМЕНТАРІ • 214

  • @nick26408
    @nick26408 7 років тому

    This was incredibly useful - I had struggled to get OpenCV installed for two days before I found this! You're a great teacher & I love the pace of the videos. A very small thing I noticed is that 1:22:04 I believe you need to divide by the period (rather than multiply), and then multiply by 100 to get the duty cycle in %.

  • @tchuynh24
    @tchuynh24 8 років тому

    Excellent tutorial. I've tried several guides to installing opencv on the raspi and this is the only one that works. I'll be following your others and donating. Thanks!

  • @RichardBronosky
    @RichardBronosky 8 років тому

    WOW! You cover a LOT of stuff in this one video. Great work!

  • @erdalkaras347
    @erdalkaras347 9 років тому +14

    humanity needs people like you :) .thank you very much for this nice tutorials.

  • @pirateman1966
    @pirateman1966 8 років тому

    Fantastic write up. Super easy explanations. Worked the first time.
    I love you man.

  • @oldjd7745
    @oldjd7745 9 років тому

    This is the most detailed and comprehensive explanation of how to address setting up Open CV on the Rasberry Pi. Thank you for your efforts and your attention to detail. I really appreciate your attention to Linux, since I can never seem to quite get into the Linux mindset. After growing up with MS-DOS the commands are similar but not quite. Is there a part 2 or did I miss it in my search. Again, thank you for your time and trouble in creating such a worthwile video.

    • @18F4550videos
      @18F4550videos  9 років тому +1

      Thanks for the interest in the video. There is currently not a part 2. I may record a part 2 (possibly a part 3 as well) depending on how many views this video gets. It will be a while though as I'm currently working on an Atmel tutorial series that I expect to have out in a month or so.

  • @leonenaj
    @leonenaj 7 років тому

    wow, this is very in-depth. great tutorial!

  • @kowboy11
    @kowboy11 8 років тому

    Love your work, would love to see more on rpi/openCV

  • @khounslow
    @khounslow 8 років тому +28

    Great post, thanks!

    • @18F4550videos
      @18F4550videos  8 років тому +16

      Wow! I'm honored you're visiting my channel, I've been a fan of your channel for years!

    • @khounslow
      @khounslow 8 років тому +7

      +Chris Dahms That's awesome! I'll PM you to exchange emails.

    • @muhammadadeel1150
      @muhammadadeel1150 5 років тому

      I have been fan of both of you

  • @extradrones8343
    @extradrones8343 8 років тому

    great tutorial, easy to follow, many thanks

  • @kentribunal4747
    @kentribunal4747 8 років тому +13

    is there a part 2 for this video?

  • @freeflaminginfinite917
    @freeflaminginfinite917 8 років тому +4

    You my friend, just got another subscriber!!

  • @pappi4190
    @pappi4190 2 роки тому

    thank you so much! do you by chance have a link for element 3d for windows? I have tried a ton of links but they’re broken and yt has been taking down videos with links left and right. You’re the only UA-camr I trust when it comes to downloading these things. Thank you!

  • @mustaphatoo
    @mustaphatoo 8 років тому

    thanks man you did a great job you helped a lot of students thanks again

  • @etudejanssens3771
    @etudejanssens3771 6 років тому

    Thank you a lot for your work ! here and now in 2017.. still 100% usefull !!
    everything is working nicelly; and your post are still totally up to date ^.^
    realy nice

  • @rezwannibir7139
    @rezwannibir7139 8 років тому +1

    i am using camera pi to track red ball....there "videoCapture(0) " is counting as error. i know this is for webCam..but what should i do for "camera pi" any help??

    • @muhammadadeel1150
      @muhammadadeel1150 5 років тому

      rezwan nibir May I have your email address please? I need some help

  • @jonathanflores3748
    @jonathanflores3748 6 років тому

    Great tutorial!! thank you Sir!!

  • @agoldfish9239
    @agoldfish9239 7 років тому +1

    if anyone is having any problems with SSH "Connection refuesed "
    type "sudo raspi-config"
    then go to "Interfacing options"
    then to "SSH"
    then ""
    and it should fix it

  • @JohnSmith-rn3vl
    @JohnSmith-rn3vl 8 років тому +3

    It's common to add a link to "Part 2" in your comments below the video. Now I have to see if it exists in your library somewhere.

  • @rz1359
    @rz1359 8 років тому

    that's cover everything. Thanks

  • @zidanefm
    @zidanefm 7 років тому +2

    hi
    can tha Programm work with Raspberry pi Camera???????

  • @henrikolsson7799
    @henrikolsson7799 6 років тому

    Thank you!

  • @noahorosw
    @noahorosw 6 років тому

    What did I miss here anyone know ? python save_snapshots.py --dwidth 640 --dheight 480 --raspi true
    Setting the custom Width and Height
    Traceback (most recent call last):
    File "save_snapshots.py", line 101, in
    main()
    File "save_snapshots.py", line 96, in main
    save_snaps(width=args.dwidth, height=args.dheight, name=args.name, folder=args.folder, raspi=args.raspi)
    File "save_snapshots.py", line 35, in save_snaps
    cap.set(cv2.CAP_PROP_FRAME_WIDTH, width)
    AttributeError: 'module' object has no attribute 'CAP_PROP_FRAME_WIDTH'

  • @MuertoChango
    @MuertoChango 8 років тому +1

    Adafruit makes a cheap PWM Sheild, it makes this a lot easier. But great video!

  • @MatthewDouglasT
    @MatthewDouglasT 7 років тому

    Just an idea, when tracking red objects dont' held them with pink hands :P

  • @filou1999
    @filou1999 8 років тому

    FYI: the newest OpenCV version today (june 16) is 3.1.0
    wget sourceforge.net/projects/opencvlibrary/files/opencv-unix/3.1.0/opencv-3.1.0.zip
    unzip opencv-3.1.0.zip
    cd opencv-3.1.0
    thanks a lot for this Tutorial!
    edit: don't take this version. is not working!

  • @victormspeixoto
    @victormspeixoto 8 років тому

    Hi. Great tutorial. Though I'm having some problem with CMake, maybe you can help me. I followed all the steps, however, when I try to use the 'cmake' command, I receive several erros, such as "CMake Error: Error in cmake code at
    /usr/share/cmake-3.0/Modules/CMakeUnixFindMake.cmake:21: Parse error. Function missing ending ")". End of file reached."
    Do you know how to fix it?
    Thanks.

  • @tgk3944
    @tgk3944 8 років тому

    Luvcview error message when : luvcview -s 320x240 # test webcam
    luvcview 0.2.6
    SDL information:
    Video driver: x11
    A window manager is available
    Device information:
    Device path: /dev/video0
    Stream settings:
    ERROR: Requested frame format MJPG is not available and no fallback format was found.
    Init v4L2 failed !! exit fatal

  • @LRTOTAL
    @LRTOTAL 8 років тому

    LEDs don't have a drop voltage of 0.7V like regular diodes, more like 1.8-3V, depending mostly on the color:
    www.sentex.ca/~mec1995/tutorial/Leds/fig13.gif
    www.lumex.com/article/led-color-guide

  • @daniellongo2912
    @daniellongo2912 8 років тому

    I'm getting the following error when trying to capture video with luvcview -s 320x240:
    Requested frame format MJPG is not available and no fallback format was found.
    -bash: Requested: command not found
    Can anyone help?

  • @HowItWorks
    @HowItWorks 8 років тому

    nice work

  • @joncroucher7855
    @joncroucher7855 7 років тому

    Well done Chris, a high quality and concise tutorial, a rare thing on the internet.
    Worked on the RPi3, but not with OpenCV 3.1.0, cmake complained.
    One very minor thing, 55:14 you didn't tell us how to exit from less. -CTRL z ?

  • @Raspberry2IOT998
    @Raspberry2IOT998 8 років тому +1

    Super Video, vielen Dank. Ich habe es genau so gemacht:)
    Kleine Ergänzung von mir:
    ua-cam.com/video/Unolh4RQ2qk/v-deo.html

  • @akanksh422
    @akanksh422 6 років тому

    Guys!
    Just in case your Putty window doesn't get a prompt like Chris got and it doesn't ask for initials like login and password
    Open terminal window on NOOBs and type sudo service ssh restart
    works!!!

  • @Kangsrwoong
    @Kangsrwoong 7 років тому +1

    if you use pi camera module instead webcam, you have to write to terminal "sudo modprobe bcm2835-v4l2" . good luck :0

    • @ZlGZ4G
      @ZlGZ4G 6 років тому

      This totally worked. Thank you! I was about to go out and buy a webcam, haha

  • @theviewlab3560
    @theviewlab3560 7 років тому

    Is it possible if we do not use webcamera....and we use raspberry pi camera modul itself....how about the coding?where do we should change the coding?

  • @MrMytubevidmaker
    @MrMytubevidmaker 7 років тому +2

    What if I want to use the raspberry pi camera module? I can only find examples of that in Python, but I want to use C++.

    • @hugoespinoza2398
      @hugoespinoza2398 7 років тому

      you found the tutorial to use with C++?

    • @MrMytubevidmaker
      @MrMytubevidmaker 7 років тому +1

      Sorry, my project had a hard deadline, so I just used Python.

    • @muhammadadeel1150
      @muhammadadeel1150 5 років тому

      I also want to use with C++. May any one please guide ?

  • @lilbastards7885
    @lilbastards7885 8 років тому +1

    I'm pretty comfortable with the copy and paste part of this tutorial. =)

  • @zidanefm
    @zidanefm 7 років тому +1

    hi
    this is a haert work thank u but
    I've done everything right but for example (OpenCV_test1.py)
    I got this error
    File "OpenCV_test1.py", line 4
    import cv2 import numpy as np import os
    ^
    SyntaxError: invalid syntax

    • @RobDawsonjr
      @RobDawsonjr 7 років тому

      import cv2
      import numpy as np
      This will work :)
      Make sure all imports are on new lines

  • @PABLOSAMANO94
    @PABLOSAMANO94 8 років тому

    I have problems with the command cmake, Lxterminal shows me a message and saying that the cmake was not found. what I should do?

  • @carloslavadoresgraniel5175
    @carloslavadoresgraniel5175 8 років тому

    hello my friend, the raspberry and opencv can work without the computer ???
    only these 2 things

  • @007cryano
    @007cryano 7 років тому

    Hey I'm using the raspberry pi camera instead of a USB camera. What changed do i need to make for this to work?

  • @kemagorar
    @kemagorar 7 років тому

    -DENABLE_PRECOMPILED_HEADERS=OFF
    this line needs to be included after cmake in my opinion to fix the issues like below:
    /usr/local/include/c++/6.2.0/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
    #include_next

  • @luminax_gce
    @luminax_gce 6 років тому

    Nice tutorial, just a quick note although somebody probably already mentioned, and you probably already know by now:
    - LED uses different type of semiconductor junction
    - Typical colour LED Vf (Forward Voltage) is in the region of 2V (1.85V~2.4V depending on colour etc)
    - One way to find out for sure is check the datasheet where it mentions nominal Vf, and also nominal If(Forward current) for the wanted brightness, or
    - Failing the above, use a Constant Current supply, set it at some average LED current (usually around 15mA) and the Voltage display will drop to match the nominal Forward Voltage at that current
    - The calculation will then be :
    -- Vr = V - Vled (where Vr is the voltage drop we want across the resistor, and V the supply voltage)
    -- R can then be calculated by Ir = Vr/R; R = Vr/ Ir, in case of nominal 15mA and LED Vf of 2.2, that'll be 3.3-2.2 = 1.1;
    1.1/15mA = roughly 73Ohm.
    TL;DR, R = (3.3 / 2.2) / 0.015 = 73 Ohm
    Cheers

  • @alishibli4720
    @alishibli4720 6 років тому

    GREAT, THANKS

  • @kalelcracker783
    @kalelcracker783 8 років тому

    Hi cool tutorial,, im currently checking out the codes if there's a way to change the target of instead of the red ball into any other things?

  • @basantashah4238
    @basantashah4238 6 років тому

    hey, I got a problem
    [ 21%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o
    while following sudo make, could you please help me

  • @alibouzidi3176
    @alibouzidi3176 8 років тому

    Hello, thanks for your videos, i would like to know is it possible process images that came from a HDMI source (not a camera) with raspberry pi and openCV, even by using the hdmi to csi-2 bridge (b102) or by using hdmi to usb ? knowing that the HDMI source is NOT encripted.

  • @YouMockMe
    @YouMockMe 7 років тому +2

    Is this the same for Pi 3?

  • @jensbehrens7896
    @jensbehrens7896 8 років тому +1

    Just a note, I got this error:
    ImportError: No module named cv2
    I had to find the cv2.so manually with "find / -name cv2.so"
    Whis was here:
    /home/pi/opencv-3.0.0/build/lib/cv2.so
    And then added this line to the end of 'bash.bashrc'
    export PYTHONPATH=/home/pi/opencv-3.0.0/build/lib:$PYTHONPATH
    Samples worked after reboot. Note that the samples can't run in Putty. You need a monitor, or TightVNC (or similar) to view the samples.

  • @Kenteshimodo
    @Kenteshimodo 7 років тому

    Strange, I seem to be getting a 'module' object has no attribute CAP_PROP_FRAME_WIDTH in test2
    Anyone got any ideas?

  • @matthewborgcarr1345
    @matthewborgcarr1345 8 років тому

    Hi Chris. Well done on creating such an informative and useful video! Everything is explained very well and spoon fed.
    I wanted to ask you whether part 2 is in the pipe line? if so when will it be released for us? :)
    I also wanted to ask you whether it is possible for you to create a video where explaining how multiple raspberry pis can be connected together on the same network and send data to a single computer / laptop / server.
    Looking forward to hear from you.
    Thanks again and keep up the good work.
    Matthew

  • @stevegale4215
    @stevegale4215 8 років тому

    Hi, great video,
    I have got a pan and tilt servo and have been wondering about how to power it so I will use your circuit.
    If you are stuck for ideas about future tutorials, how about streaming the video to a web page, in particular an opencv processed
    Image, e.g. One show in the edges in a video. There are lots of tutorials out there on streaming a jpeg video but not a processed video , something I have been struggling with for a long while for setting to work a robot!

  • @fernandomolina2896
    @fernandomolina2896 6 років тому

    Muy buen trabajo, mis felicidades desde España. Voy a probar gracias a tu ayuda. Tnak You.

  • @negriin69
    @negriin69 7 років тому

    Hi, I am using an EOS 600D dslr instead of a webcam. Whats the procedure? (to do next after the ftwebcam instalation?)

  • @obaidahmedkhan3151
    @obaidahmedkhan3151 6 років тому

    Great effort Chris I am following this tutorial for object detection it works pretty well but there is an issue I am facing that when I move the object from left to right the servo respond in opposite direction and moving away from the object rather than following the object can you please suggest something on that Thank you

  • @Moment_Captured
    @Moment_Captured 8 років тому

    Outstanding tutorial. I am grateful for your sharing this.

  • @anvithapinisetti6417
    @anvithapinisetti6417 8 років тому

    can u tell me the part how to install the raspbian in the computer using putty

  • @murshedulhasan699
    @murshedulhasan699 7 років тому

    Subscribed. An excellent piece of work. Very helpful. Thank you very much.

  • @chosop25
    @chosop25 7 років тому

    Hi Chris, do you know how to run a c++ program using OpenCV and a RaspiCam? I cmake . and make the .cpp file on Raspberry pi and type ./folerName and nothing happens. Could you help?

  • @fabiano8888
    @fabiano8888 8 років тому

    Very well explained! I don't get how some people disliked this wonderful material. Thank you for all your tutorials! You're awesome!

  • @sudheerpula
    @sudheerpula 7 років тому

    Very good tutorial. Nicely explained with good information. Please send me links for next tutorials on this topic.

  • @RajaKajiev
    @RajaKajiev 7 років тому

    guys, does this tutorial has only "part 1" in fact?

  • @The_Unobtainium
    @The_Unobtainium 6 років тому

    it was so nice to watch the video until 27:57 ... "network error: connection refused". done. what now?

  • @vaibhav02kadam
    @vaibhav02kadam 8 років тому

    hey I got errror while installing opencv that was while sudo make
    /home/pi/opencv-3.0.0/modules/highgui/src/window_gtk.cpp:54:6: warning: "GTK_MAJOR_VERSION" is not defined [-Wundef]
    help me out...!!!

    • @RickBeacham
      @RickBeacham 8 років тому

      Install GTK. Or confirm GTK is installed already. developer.gnome.org/gtk3/stable. docs.opencv.org/3.0-beta/doc/tutorials/introduction/linux_install/linux_install.html
      sudo apt-get update and sudo apt-get install libgtk-3-dev

  • @navidfarjad
    @navidfarjad 8 років тому

    I am really thankful about your video , good job

  • @mfmusic7035
    @mfmusic7035 7 років тому

    I cant get ssh putty to log into PI. windows 10. I start putty, configure it. "open" it... in the command window(putty) type username, slight lag after enter.... then I type in password and after 1 minute I get "NETWORK ERROR: Software caused connection abort".
    I have searched for a fix but nothing seems to work... brand new install of raspian. I have formatted and reinstalled twice. can you point me in a direction? or maybe suggest another ssh handler to try?
    other that this issues I'm having though, its a fantastic rundown on Raspi and openCV thank you for the information
    EDIT: and I can connect in the pi terminal with "ssh xxx.xxx.xxx.xx" so ssh is enabled and working it would seem

    • @LundBrandon
      @LundBrandon 7 років тому

      Mike Flanagan try turning off your firewall in windows

  • @Scapegoat303
    @Scapegoat303 8 років тому

    @2:13 i was like 'I HEARD A NOTIFICATION WHERE IS IT..??!..oh.' -- awesome tut, thanks!!

  • @TerminallyConfused
    @TerminallyConfused 8 років тому

    Hi. How would I need to modify the pan and tilt tracker to use the pi camera?
    Great Vid. Where is Pt 2?
    Thanks again.

  • @zakaryamotea4760
    @zakaryamotea4760 8 років тому

    It seems Very helpful video (all your videos )
    once I open such videos and hear your voice, i say it must be helpful.
    ********
    could you please advice me on what software and hardware as well to use for background subtraction ?
    shall i use raspberry pi with python or c++?
    I already installed c++ visual 2010 and opencv 2.3.1 and worked on processing images not videos , did i make the right decision?
    Thanks in advance

    • @18F4550videos
      @18F4550videos  8 років тому +2

      It may better to start with desktop development, then port to an embedded device if you are trying something new. If you are using Windows I would recommend using Visual Studio 2015 and OpenCV 3.1.0, my video on getting started with those is here ua-cam.com/video/7SM5OD2pZKY/v-deo.html&lc=z12qd1n4lpagfzg2q22uhnl5lymtufcny . I'm in the process of making a background subtraction project and video now but it won't be out for a while, until then try Googling "OpenCV absdiff example" and "OpenCV MOG2 example" to get you started.

  • @sampetrenko4105
    @sampetrenko4105 5 років тому

    hey chris, i got some Q can i contact with you by email?

  • @purushottomdutta
    @purushottomdutta 6 років тому

    Can you please explain the program pan_and_tilt_tracker.py ?
    I'm having some trouble while understanding the program.

  • @TheRcbthree
    @TheRcbthree 9 років тому

    Can you walk us through using OpenCV with the Pi in C++ or C and the speed advantages (if any)?

    • @18F4550videos
      @18F4550videos  9 років тому +1

      I'm not planning on doing another RPi video in the immediate future due to other projects, however I would suggest checking out the following for C++ examples:ua-cam.com/play/PLS1lqxOwNjOaE0gy_Q6tzU_QhZOB593TvThat.html said, here are some points of caution I should mention:1) By default Raspbian does not have GPIO pin hardware support for C++. There are add-in libraries (some Googling will lead you to them quickly) but this involves additional steps and potential problems, and every time you make a new SD card or upgrade Raspbian you may have to perform the config steps again to get C++ to work with the GPIO pins. This is the main reason I recommend staying with the RPi default language of Python.2) Although Python is interpreted, it calls the OpenCV functions which are compiled, and executing the OpenCV functions takes most of the time of the program, therefore you may not notice a significant performance benefit.Best wishes if you choose to go the C++ route but for the above reasons I'm staying with Python on the RPi for the moment.

    • @TheRcbthree
      @TheRcbthree 9 років тому

      I appreciate the information! Thanks! I ended up doing the cone project that you completed in your other video on the Pi. It worked great. Says a lot about the quality of your videos as I didn't have any experience with Python / the Pi or OpenCV!

  • @alexandrepv
    @alexandrepv 7 років тому

    A very helpful video indeed! Many thanks! Btw, which camera did you use to record the board?

  • @Patorespect
    @Patorespect 8 років тому

    -How do you run pan_and_tilt_tracker.py without workon cv
    -I try to do that but it's show "no module named gpio"
    -but if I only use gpio to control a LED it can be use
    -what should I do? please answer me soon.

    • @Patorespect
      @Patorespect 8 років тому

      i can fix it now :)
      just pip install GPIO in virtualenv opencv

  • @abdouchouf440
    @abdouchouf440 8 років тому

    hi
    great post thanks
    How do I change my program picks up the color blue or green
    thanks and thanks

  • @charitoamio3140
    @charitoamio3140 5 років тому

    Great video! Help us program our project

  • @ottokuusimaki2765
    @ottokuusimaki2765 8 років тому

    Hi. I do just like in video about blinking led but when I type sudo python my_blink.py it gives me " SyntaxError: invalid syntax " so what I have to do if I want the led is blinking?

    • @18F4550videos
      @18F4550videos  8 років тому

      Various things could cause that error. I can assure you the code on the GitHub site is good, as you saw in the video it runs without a problem. Without being there in person there is not much I can say, other than you must have done one of the steps differently than the video, I would suggest to watch the video again and verify the steps are being performed exactly as shown.

  • @rajudev_
    @rajudev_ 8 років тому

    Best Tutorial on the web for OpenCV. Thanks a lot for your time and work that you put in to make this video.

  • @karthie003
    @karthie003 6 років тому

    I'm getting "Select Timeout" error when I use the OpenCv examples.

  • @yehia_tageldin
    @yehia_tageldin 7 років тому

    Greaaaat video , you are awesome, Thanks a lot, Waiting for next Tutorial parts

  • @sebasrivera96
    @sebasrivera96 8 років тому

    Awesome video, thanks alot!

  • @MrMedicaluser
    @MrMedicaluser 9 років тому

    Don't have 3 hours? Try
    sudo make -j4 #uses all 4 pi cores to speed up make process (Be Careful of Overheating)

    • @18F4550videos
      @18F4550videos  9 років тому

      Thanks for the suggestion, but I suggest extreme caution if going this route as the RPi already gets very hot following the steps in the video. Also, the -j4 option does speed up the OpenCV compile, but not 4x as fast. Once you've stepped away from your bench and are already doing something else, why not wait another hour or so? In any case if anybody out there is desperate enough for time to use the -j4 option I would suggest taking the RPi out of the case entirely first and pointing a fan directly at the RPi throughout the OpenCV compilation process.

  • @MrKartos1
    @MrKartos1 8 років тому

    Hey @Chris is there a Raspberry pi 2 model B Kit you recommend off of eBay?

  • @jimrummy1300
    @jimrummy1300 6 років тому

    Wonderful video Chris. Very comprehensive. Great work!

  • @GuyTechLab
    @GuyTechLab 8 років тому

    Super tutorial, félicitations et merci pour votre excellent travail.

  • @TheMihirj
    @TheMihirj 8 років тому

    thank you so much sir...best tutorial on youtube to get introduced with pi...

  • @rumidom
    @rumidom 7 років тому

    that's the best tutorial i've ever seen, fast, complete and direct to the point, thanks!

  • @MrMedicaluser
    @MrMedicaluser 9 років тому

    When I run any of the tests I get back these errors.
    test 1
    (imgOriginal:703): Gtk-WARNING **: cannot open display:
    test 2
    (imgOriginal:702): Gtk-WARNING **: cannot open display:
    test 3
    (imgOriginal:713): Gtk-WARNING **: cannot open display:
    Either on Putty w Windows 7 or directly off of the raspberrypi 2 B
    Any Ideas?

    • @MrMedicaluser
      @MrMedicaluser 9 років тому

      +MrMedicaluser
      Used sudo python OpenCVTest1.py and it worked

    • @18F4550videos
      @18F4550videos  9 років тому

      Thanks for the feedback. For almost any command on the RPi that is not using "sudo", the first trouble shooting step after checking for typos is to try again with "sudo", this is common.

  • @juanmanuelalcortavillarrea9098
    @juanmanuelalcortavillarrea9098 7 років тому

    Best video ever, nice and smooth, from basic to complex, great job!

  • @EdanCain
    @EdanCain 8 років тому

    Hi Chris, great tutorial, thank you. I successfully ran OpenCVTest2 and 3, however when I attempted to run them again I get a VIDIOC_DQBUF: No such device error. Any tips you could give me. It works for a couple of seconds before I get that error message. Thank you

    • @18F4550videos
      @18F4550videos  8 років тому

      I've never seen that error before so I'm not sure, I Googled "raspberry pi VIDIOC_DQBUF: No such device error" and got these, perhaps these will give you some direction:
      stackoverflow.com/questions/11756794/webcam-libv4l2-vidioc-dqbuf-no-such-device
      www.raspberrypi.org/forums/viewtopic.php?f=53&t=7435
      www.raspberrypi.org/forums/viewtopic.php?f=53&t=7435

    • @EdanCain
      @EdanCain 8 років тому

      Hi Chris. Suspected it was caused by the remote forwarding to my Windows 10 machine, so I ran it directly off the Pi and attached monitor, no issue. Thank you for the fast reply and the links posted.

  • @VideonMedia
    @VideonMedia 6 років тому

    Thanks! But why it says connection refused when I open it on putty?

    • @VideonMedia
      @VideonMedia 6 років тому

      Oh it works! I followed the instructions from
      askubuntu.com/questions/30080/how-to-solve-connection-refused-errors-in-ssh-connection#123831
      and it worked! People who has the same problem should try this.

  • @SonuKumarcyberhacker
    @SonuKumarcyberhacker 7 років тому

    where is the part 2?

  • @Abbhishhek
    @Abbhishhek 8 років тому

    Hey!! one of the best tutorials.Great work...
    Waiting for Part 2....

  • @orseenypi3937
    @orseenypi3937 6 років тому

    internet explorer? really???

  • @carolinerxs
    @carolinerxs 7 років тому

    Can I use a Raspberry Pi Zero? Will it be too slow?

  • @huynguyentuan3745
    @huynguyentuan3745 6 років тому

    excellent video, Sir...

  • @qzorn4440
    @qzorn4440 9 років тому

    This is by far the best RPi, webcam, Linux, OpenCV, GPIO instructions that I have watched. There are endless Raspberry Pi videos that only explains limited project information. Thank you, this really helps with my Pi knowledge. :-D Rated 5 stars *****

    • @18F4550videos
      @18F4550videos  9 років тому

      Thanks for the feedback. Depending on how many views this video gets I may do a RPi part 2 & 3 in the foreseeable future. However, my next video mini-series will be on programming Atmel chips, starting with a 1st programming to blink a LED and working through USB communication with a Visual Studio program, stay tuned!

  • @db7314
    @db7314 5 років тому

    Great video, thank you for taking time to explain stuff clearly :)

  • @massimilianoforte5342
    @massimilianoforte5342 8 років тому

    congratulations, simply complete and linear