Sony's Developer World forum

    • Home
    • Forum guidelines

    Upcoming maintenance 

     

    Dear Customers and Partners.

    This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.

    This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.

    We apologize for any inconvenience.

     

     

    Reading images in spresense

    Spresense
    3
    5
    616
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Bhalaji Kharthik last edited by

      I would like to know the ways in which images are read in spresense, the format in which they are read and also is there any function to load images in spresense using the in-built image processing library?

      K 1 Reply Last reply Reply Quote
      • K
        KamilTomaszewski DeveloperWorld @Bhalaji Kharthik last edited by

        Hi @bhalaji-kharthik,

        The best option to see how to read images from the Spresense camera is this example: https://github.com/sonydevworld/spresense-nuttx-apps/tree/1a501330f462e8d433c31fd6f6b7822a70ed0c26/examples/camera

        You can also see the documentation here:
        https://developer.sony.com/develop/spresense/docs/sdk_developer_guide_en.html#_camera

        The image formats you can get with the Spresense camera are JPEG and YUV4:2:2.

        You have an image processing library here: https://github.com/sonydevworld/spresense-nuttx/blob/b02a66b25bccdaeece1ba4aaf5ba53f427b3bdc2/boards/arm/cxd56xx/spresense/include/cxd56_imageproc.h. It can convert image to RGB or gray scale. It can also resize and clip the image.

        Best Regards,
        Kamil Tomaszewski

        1 Reply Last reply Reply Quote
        • Deleted by  B Bhalaji Kharthik 
        • Restored by  B Bhalaji Kharthik 
        • B
          Bhalaji Kharthik last edited by Bhalaji Kharthik

          @KamilTomaszewski Can we adjust the resolution of spresense camera and capture images with different resolutions in spresense?

          K B 2 Replies Last reply Reply Quote
          • K
            KamilTomaszewski DeveloperWorld @Bhalaji Kharthik last edited by

            Hi @Bhalaji-Kharthik,

            You can change the resolution. You just need to pass other values here: https://github.com/sonydevworld/spresense-nuttx-apps/blob/1a501330f462e8d433c31fd6f6b7822a70ed0c26/examples/camera/camera_main.c#L522

            The possible values are defined here: https://github.com/sonydevworld/spresense-nuttx/blob/b02a66b25bccdaeece1ba4aaf5ba53f427b3bdc2/include/nuttx/video/video.h#L193

            Here you can find information about the limitations:
            https://developer.sony.com/develop/spresense/docs/sdk_developer_guide_en.html#_restrictions_of_image_size_and_frame_rate

            Best Regards,
            Kamil Tomaszewski

            1 Reply Last reply Reply Quote
            • B
              Bhalaji Kharthik @Bhalaji Kharthik last edited by

              @KamilTomaszewski Thank you!

              1 Reply Last reply Reply Quote
              • First post
                Last post
              Developer World
              Copyright © 2021 Sony Group Corporation. All rights reserved.
              • Contact us
              • Legal