# Resolution of readout window

**URL:** <https://forums.openmv.io/t/resolution-of-readout-window/6106>\
**Category:** OpenMV Boards\
**Created:** [July 16, 2021, 3:42am UTC](https://forums.openmv.io/t/resolution-of-readout-window/6106 "2021-07-16T03:42:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Osbert](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@Osbert](https://forums.openmv.io/u/Osbert)\
**Post date:** [July 16, 2021, 3:42am UTC](https://forums.openmv.io/t/resolution-of-readout-window/6106/1 "2021-07-16T03:42:23Z")

</div>

Hi, I’ve just watched this video, I have some questions about it.

[![](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/0/02eabf3b707888121b1a9b9b639a2eece6761a98.jpeg "AprilTag Tracking on 5MP Image Plane using Readout Control") ](https://www.youtube.com/watch?v=VnDCDVeTCJw)

1. The video sets the searching res with sensor.QVGA and the tracking res with sensor.QQVGA, is resolution and frame size actually the same? I checked the readout window with sensor.w & sensor.h, the readout window will change in 1280x960, 640x480, 320x240, so is the resolution of 1280x960 sensor.QQVGA?
2. About this video, can I get the depth by Tz to calculate actual distance? If not, any suggestions?

---

<div class="post-metadata">

**Author:** ![iabdalkader](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/iabdalkader/32/1169_2.png) [@iabdalkader](https://forums.openmv.io/u/iabdalkader)\
**Post date:** [July 16, 2021, 3:40pm UTC](https://forums.openmv.io/t/resolution-of-readout-window/6106/2 "2021-07-16T15:40:19Z")

</div>

> [@Osbert](#):
>
> is resolution and frame size actually the same

Yes resolution and frame size are the same, and I don’t understand the rest of your question.

> [@Osbert](#):
>
> About this video, can I get the depth by Tz to calculate actual distance? If not, any suggestions?

You can get the depth of the tag, depends on the sensor and lens though. Please see the comments in find\_apriltags\_3d\_pose.py example.

---

<div class="post-metadata">

**Author:** ![Osbert](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@Osbert](https://forums.openmv.io/u/Osbert)\
**Post date:** [July 19, 2021, 2:15am UTC](https://forums.openmv.io/t/resolution-of-readout-window/6106/3 "2021-07-19T02:15:40Z")

</div>

Thanks for replying, I copied the code and I got the readout window size, my question is, I have already set the resolution for the readout window, but in the code it also calculate the readout window size, has the resolution changed or it remained what I set?

readout window size (1280, 960)

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/2/2a80bb058c1354ddab0a072f2e7456b7db8e80b9.png)

readout window size (640, 480)

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/2/25b30ef3eedac57fe5885a620f4b5f24792a7b7a.png)

---

<div class="post-metadata">

**Author:** ![iabdalkader](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/iabdalkader/32/1169_2.png) [@iabdalkader](https://forums.openmv.io/u/iabdalkader)\
**Post date:** [July 19, 2021, 11:35pm UTC](https://forums.openmv.io/t/resolution-of-readout-window/6106/4 "2021-07-19T23:35:01Z")

</div>

The resolution changes every time set\_framesize is called. Changing the readout window does Not change the resolution/framesize it just crops the pixel array for faster reading (you’ll notice the image gets cropped, but still the same size). At some point in the script it does change both the window and resolution to center on the tag and read frames faster.

---

<div class="post-metadata">

**Author:** ![Osbert](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@Osbert](https://forums.openmv.io/u/Osbert)\
**Post date:** [April 1, 2022, 3:26am UTC](https://forums.openmv.io/t/resolution-of-readout-window/6106/5 "2022-04-01T03:26:26Z")

</div>

Hi again, I’m confused that is the resolution which set\_framesize called using logical pixel? And the pixel array is physical pixel? It’s hard to define both when using almost the same units (or exactly the same units?).

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [April 1, 2022, 3:38am UTC](https://forums.openmv.io/t/resolution-of-readout-window/6106/6 "2022-04-01T03:38:23Z")

</div>

set\_framesize() changes the output of the camera module. If the camera module does scaling then it’s unrelated to the physical pixel size.

---

<div class="post-metadata">

**Author:** ![Osbert](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@Osbert](https://forums.openmv.io/u/Osbert)\
**Post date:** [April 1, 2022, 3:46am UTC](https://forums.openmv.io/t/resolution-of-readout-window/6106/7 "2022-04-01T03:46:57Z")

</div>

Is there a unit of the output of set\_framesize()?  
Or is there a keyword that I can find on internet?  
Thanks for replying.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [April 2, 2022, 7:15pm UTC](https://forums.openmv.io/t/resolution-of-readout-window/6106/8 "2022-04-02T19:15:57Z")

</div>

I don’t know what you want to know here… the method sets the cameras scalers to produce an output image. It is not the pixel array size. If you want to do that math start from the camera datasheet and look at the pixel sizes.
