Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the output of RGB888 data #6

Open
Dwight-Choi opened this issue Oct 4, 2022 · 2 comments
Open

the output of RGB888 data #6

Dwight-Choi opened this issue Oct 4, 2022 · 2 comments

Comments

@Dwight-Choi
Copy link

Hi, thank you for your codes and explanation. It really helps for me to understand how to control ESP32-CAM.
Currently, I want to get raw data of 240*320 or little higher resolution images(preventing psram issue) for image processing.
So I tested with your code to get RGB888 data and sucess to get the rgb file.
But,

  1. I couldn't open the file because it looks like broken. Could you give me idea to handle this file?
  2. Is there any method to get the real raw data file from camera sensor(OV2640) with ESP32-CAM?
    Thank you in advance for your help.
@alanesq
Copy link
Owner

alanesq commented Oct 5, 2022

Hi,

I have a Processing sketch here which will take the rgb file and display it
https://github.com/alanesq/esp32cam-demo/blob/master/Misc/displayRGB.pde

The file is not a standard image file but just the raw RGB data (3 bytes per pixel) so you will not be able to load it in to a standard image viewer etc.

@Dwight-Choi
Copy link
Author

Thank you for kind reply.
I understand what you said and I've tried transform these 1 dimension array to 3 dimension(RGB channel) and display it.

So, do you have any idea to get raw data from camera sensor? or is there any mode to get that in this program?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants