sipeed / MaixPy-v1

MicroPython for K210 RISC-V, let's play with edge AI easier
https://wiki.sipeed.com/maixpy
Other
1.68k stars 440 forks source link

Feature request: support for UXGA JPEG saving, add AVI frame, base resolution for windowing #285

Closed easy-and-simple closed 4 years ago

easy-and-simple commented 4 years ago

Hello Guys, Would you add UXGA support as base resolution for windowing mode, and also for taking JPEG images that then to be saved as JPEG image file or added as frames in AVI? OV2640 can make JPEG images so main problem here is ability to switch OV2640 between compressed JPEG mode and uncompressed RGB mode

junhuanchen commented 4 years ago

I don't know the implementation details, but it might work.

Can you describe the process of implementation?

easy-and-simple commented 4 years ago

UXGA is intentionally restricted by MAIXPY source code and JPEG image sensor option is not supported. Also windowing mode is not working if base resolution is set to values over 640x480 no matter that window is set to 320x240 and required RAM buffer is for image size 320x240 and it doesn't depend on base resolution If image resolution is limited by MAIXPY source code it is not possible to take pictures in UXGA resolution and store them as JPEG image files or add them as frames in AVI video recording Example usage is setting image sensor to 320x240 RGB mode running yolo object recognition or face recognition and at given condition switch image sensor to JPEG mode and UXGA resolution and taking picture in good resolution that is saved as JPEG image or UXGA video frame for security surveillance scenario. Then sensor is switched back to 320x240 RGB mode and object detection/face detection continue to next predefined event and so on. Here sensor mode switching should be implemented without issues. Other example usage is setting UXGA base resolution(that is default for OV2640 sensor) and 320x240 windowing mode for implementing 4x digital zoom and precise area scanning without loss for object detection needs. Here sensor switching between JPEG and RGB mode is not required

Neutree commented 4 years ago
AhmadPanogari commented 4 years ago

Any update for this Issue?

I also need that image size when taking pictures

and is the OV5640 already supported?

ZoneMR commented 1 year ago
  • K210 can not use JPEG mode of sensor, for hardware limitation, just can use RGB565 or YUV mode

What is the specific hardware limitation which would prevent using the JPEG output from the OV2640?