espressif / esp-iot-solution

Espressif IoT Library. IoT Device Drivers, Documentations and Solutions.
Apache License 2.0
1.98k stars 785 forks source link

uvc strean to lcd with lovyanGFX (AEGHB-343) #288

Open nadeem268 opened 1 year ago

nadeem268 commented 1 year ago

----------------------------- Delete below -----------------------------

If your issue is a general question, starts similar to "How do I..", or is related to 3rd party development kits/libs, please discuss this on our community forum at esp32.com instead.

INSTRUCTIONS

Before submitting a new issue, please follow the checklist and try to find the answer.

If the issue cannot be solved after the steps before, please follow these instructions so we can get the needed information to help you in a quick and effective fashion.

  1. Fill in all the fields under Environment marked with [ ] by picking the correct option for you in each case and deleting the others.
  2. Describe your problem.
  3. Include debug logs on the monitor or the coredump.
  4. Provide more items under Other items if possible can help us better locate your problem.
  5. Use markup (buttons above) and the Preview tab to check what the issue will look like.
  6. Delete these instructions from the above to the below marker lines before submitting this issue.

----------------------------- Delete above -----------------------------

Environment

Problem Description

Live streaming is work properly but resolution is not properly How to set the live streaming resolution in lovyangfx library function tft.pushImage()

//Detailed problem description goes here.

Expected Behavior

How to set the resolution in lovyanGFX library tft.pushImage () function

Actual Behavior

lcd is working good but little bit problem with resolution

Steps to repropduce

  1. step1
  2. ...

// It helps if you attach a picture of your setup/wiring here.

Code to reproduce this issue

// the code should be wrapped in the ```cpp tag so that it will be displayed better.
#include "esp_log.h"

void app_main()
{
    static bool lcd_cb(uint16_t x, uint16_t y, uint32_t w, uint32_t h, uint8_t *data)
{  
    //tft.setCursor(tft.width() / 2 - 100, tft.height()/2 - 100);
    tft.pushImage(0+10,0+40, 160 ,120 , (uint16_t *)data);
    return true;
}
}

// If your code is longer than 30 lines, GIST is preferred.

Debug Logs

Debug log goes here, should contain the backtrace, as well as the reset source if it is a crash.
Please copy the plain text here for us to search the error log. Or attach the complete logs but leave the main part here if the log is *too* long.

Other items if possible

Lzw655 commented 1 year ago

Hi @nadeem268, what is the resolution of your LCD and live streaming? Which resolution would you like to modify?

nadeem268 commented 1 year ago

LCD resolution 320480! Me getting 320240 from usb camera ! but i want resolution 320*480