Information About Spresense CAM_IMGSIZE

Asked 2 years ago, Updated 2 years ago, 89 views

I'm thinking of shooting 5M with the Presense CAM_IMGSIZE, but I can't.
I am using the code below, but could you please let me know if there is anything wrong?

include SDHCI.h
include SPI.h
include Camera.h

SDClass theSD;

void setup() {
 theSD.begin();
 the Camera.begin();
 pinMode (LED3, OUTPUT); 
 TheCamera.setStillPictureImageFormat(
    CAM_IMGSIZE_5M_H//5M Size Settings
    ,CAM_IMGSIZE_5M_V//5M size setting
    , CAM_IMAGE_PIX_FMT_JPG);
}

void loop() {
 CamImage img=theCamera.takePicture();
 if(img.isAvailable()){ 
  File myFile=theSD.open("TIMG2.JPG", FILE_WRITE);
  myFile.write(img.getImgBuff(), img.getImgSize());
  digitalWrite (LED3, HIGH); 
  delay(100); // Add
  digitalWrite (LED3, LOW); 
  myFile.close();
  while(1);
 }
}

spresense

2022-09-30 17:49

1 Answers

I am in charge of SPRESENSE support for Sony.

I will answer your inquiry about the 5M resolution shooting.

We apologize for the inconvenience, but with the current software
5M resolution shooting is not supported.
We are currently considering how to deal with this matter.

Thank you for your continued support at SPRESENSE.

SPRESENSE Support Team


2022-09-30 17:49

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.