Update: Save Images To a Folder with OV7670 and Arduino

Sdílet
Vložit
  • čas přidán 8. 09. 2024
  • This is update to the "Color Images to PC with OV7670 and Arduino" video.
    I have updated my ArduinoImageCapture. Now you can select a folder and all captured images are automatically saved to that folder.
    Previous video:
    • OV7670 Camera Module w...
    LiveOV7670 project (Arduino):
    github.com/ind...
    Arduino image capture project (Java):
    github.com/ind...
    Buy from AliExpress.com:
    OV7670: s.click.aliexp...
    Uno clone: s.click.aliexp...
    Breadboard: s.click.aliexpr...
    Jumper Wires: s.click.aliexpr...
    Disclosure: Bear in mind that some of the links in this post are affiliate links and if you go through them to make a purchase I will earn a commission. Keep in mind that I link these companies and their products because of their quality and not because of the commission I receive from your purchases. The decision is yours, and whether or not you decide to buy something is completely up to you.
    Music from CZcams audio library.

Komentáře • 35

  • @richmondbautista3334
    @richmondbautista3334 Před 5 lety +3

    That's awesome sir! I hope for the success of your channel ☺️

  • @abhiramvankayala5665
    @abhiramvankayala5665 Před 3 lety +1

    hello bro,,i had a doubt
    can we do the same with nodemcu and get images through web?

  • @urieljose2382
    @urieljose2382 Před 4 lety

    hello sir. i am trying to use this for a school project, and I was wondering if it is possible to trigger with a button or PIR sensor, and save into a micro SD OR normal SD card. any help is VERY appreciated! thank you

    • @IndrekL
      @IndrekL  Před 4 lety +2

      The problem with SD card is that it is not fast enough to save the image directly from the camera to the SD card. You probably should look for the OV7670 with FIFO. The Fifo chip on the camera board will buffer the image and then you have enough time to write it onto the SD card.

    • @urieljose2382
      @urieljose2382 Před 4 lety

      @@IndrekL ok. thank you very much. i shall research a little about it(i am starting arduino just a little whille ago) thank you so much and keep going with your channel! it is really fun and informative! thank you!

  • @user-vw8lf1he3h
    @user-vw8lf1he3h Před 5 lety

    com port is not for video strim.

    • @IndrekL
      @IndrekL  Před 5 lety +2

      Yes, it is really bad for that but it is the easiest way to get it working with Arduino since it doesn't require any additional hardware...
      Basically you only need Arduino, OV7670, four resistors and a bunch of wires.

  • @mishayakubchuk4192
    @mishayakubchuk4192 Před 5 lety

    I have an arduino, a camera and a button. I want to save image from camera to a computer by pressing a button. Can this be done without running the Java application, like sketch?

    • @IndrekL
      @IndrekL  Před 5 lety

      Arduino just sends a stream of bytes to computer over serial communication. There has to be something on the computer that receives those bytes and saves them as an image file. Arduino doesn't have direct access to the computer.

    • @mishayakubchuk4192
      @mishayakubchuk4192 Před 5 lety

      @@IndrekL So, can I add in Java, event of click button that connected to arduino and take one photo?Sorry for my English, I hope I clearly wrote.

    • @IndrekL
      @IndrekL  Před 5 lety

      @@mishayakubchuk4192 Yes. The Arduino program can be modified so that it only sends out an image frame if button is pressed. Then the Java application saves if it receives an image.

    • @mishayakubchuk4192
      @mishayakubchuk4192 Před 5 lety

      @@IndrekL Thank you very much!)

    • @deenuhd7562
      @deenuhd7562 Před 3 lety

      @@mishayakubchuk4192 Hi ,did it worked. I am also trying to do similar to yours. Pls help me.

  • @terlumunjoseph6779
    @terlumunjoseph6779 Před 5 lety

    please make one that saves photo to sd card

  • @sifattanvir5651
    @sifattanvir5651 Před 5 lety

    Can this be done using msp430?

    • @IndrekL
      @IndrekL  Před 5 lety

      You can't use my code directly since it is Arduino (Atmel) hardware specific. But it should be possible to port it over to any processor that is fast enough.

  • @AThatZhAng
    @AThatZhAng Před 5 lety

    please, can you make a language program vb.net or C#

    • @IndrekL
      @IndrekL  Před 5 lety

      I don't have enough experience with .net.

    • @AThatZhAng
      @AThatZhAng Před 5 lety

      @@IndrekL if you make a language program with python? I don't have enough experience with java :(

    • @IndrekL
      @IndrekL  Před 5 lety

      @@AThatZhAng If you know C# or Phyton it shouldn't be very hard to write the application yourself. You just have to know the data format that Arduino is sending.
      Basically each image frame starts with bytes:
      00, 01, XX, XX, YY, YY, PP
      Where:
      XX, XX is two byte integer for image width
      YY, YY is two byte integer for image height
      PP is pixel format (1=RGB565, 2=Grayscale)
      Then there will be pixel bytes for one line of image. Two bytes per pixel if format is RGB565 or one byte per pixel if grayscale.
      And then end of line indicator:
      00 02
      Pixel bytes will never be with value 00. It will always be slightly over zero.
      After reading the image data you can construct an image from it and save it to disk or display in a window.

    • @AThatZhAng
      @AThatZhAng Před 5 lety

      I do not understand what data is sent by Arduino, which I tried to capture from baud 1000000 he sent the number -75 25 135 100 67 -86 atc ... I do not understand how to change it into a string to get the RGB number generated, can u help me translate u code java to working logic?? I try make to use vb net

    • @IndrekL
      @IndrekL  Před 5 lety

      @@AThatZhAng Try to do it one step at the time.
      First. Try to detect the beginning of a new image frame. Can you do console log in VB? Read incoming bytes and when you see 00 01 log out "NEW FRAME". If it works correctly you should see message "NEW FRAME" after every couple of seconds.
      If you get that working then the next step is to try to read width and height of the image.
      If you get that working then we can continue with actual pixel data.

  • @user-cc1hn8dv8x
    @user-cc1hn8dv8x Před 5 lety

    Can it save video?

    • @IndrekL
      @IndrekL  Před 5 lety

      It saves all the frames into separate png files. It should be possible to use some other program to merge those image files into a video file.

    • @user-cc1hn8dv8x
      @user-cc1hn8dv8x Před 5 lety

      @@IndrekL So why you draw ever frame? Can arduino simple send information from ov to pc? We dont have pre-olaying, but have speed video

    • @IndrekL
      @IndrekL  Před 5 lety

      @@user-cc1hn8dv8x The serial communication from Arduino isn't fast enough to send video with high frame rate.

    • @user-cc1hn8dv8x
      @user-cc1hn8dv8x Před 5 lety

      @@IndrekL but it can 20 fps?

    • @IndrekL
      @IndrekL  Před 5 lety

      @@user-cc1hn8dv8x It is directly to the screen over SPI connection. Serial communication to PC is much slower.
      Normal Arduino Nano that runs at 16Mhz has 8Mhz SPI. But maximum reliable communication the PC is only at 1Mhz baudrate.