Image Capture Select With Annotations Widget shrinks/crops photo

I apologize if this has been covered somewhere. I'm using ODK for a tree
inventory and find the Image Capture - Select With Annotations widget very
useful, especially for pointing out individual trees in a group.

I am finding that when I use the widget to markup the image taken, the
resulting image with annotations is shrunk inside the original image size
and the rest of the image is filled with grey. This is occurring both on
Google Nexus S phones and HTC Legend phones. Also, if I rotate the phone
while the markup application is open, the image is shrunk even more, and a
larger percentage of the final saved image is filled in with grey. Is this
a bug with ODK or the widget, or am I missing something in my phone's
settings?

Additionally with the Google Nexus S (with Jelly Bean), any photos taken in
portrait mode are automatically rotated 90 degrees and saved sideways in
portrait mode. This does not occur with the HTC Legend (Android 2.2). It
is useful to take photos in portrait mode for large trees, but it would be
preferable not to have to rotate all of the images accordingly after data
collection, especially if it is only some of the phones that are doing it.
Is this a known issue with the Nexus S or Jelly Bean?

Also I would like to thank the ODK Developers and Community for all of the
excellent work on this remarkable program.

Cheers,

Jason

W.r.t. photo orientation, that is an issue/quirk of the phone. We're just
passing on the images as given to us.

W.r.t. the annotation widget.

The original image is resized to be the size of your device screen, so it
is a greatly reduced resolution. However, it should only be that size and
not have extra grey areas around it. Are you displaying the image in
another app that is perhaps assuming the image is full-size instead of
resized smaller?

Markup on top of the original full-size image would be tricky to do because
of the rescaling and device memory challenges, but if someone figured out a
reasonable way to do it, we would welcome the code contribution.

Mitch

··· On Sun, Oct 7, 2012 at 4:44 PM, JasonM wrote:

I apologize if this has been covered somewhere. I'm using ODK for a tree
inventory and find the Image Capture - Select With Annotations widget very
useful, especially for pointing out individual trees in a group.

I am finding that when I use the widget to markup the image taken, the
resulting image with annotations is shrunk inside the original image size
and the rest of the image is filled with grey. This is occurring both on
Google Nexus S phones and HTC Legend phones. Also, if I rotate the phone
while the markup application is open, the image is shrunk even more, and a
larger percentage of the final saved image is filled in with grey. Is this
a bug with ODK or the widget, or am I missing something in my phone's
settings?

Additionally with the Google Nexus S (with Jelly Bean), any photos taken
in portrait mode are automatically rotated 90 degrees and saved sideways in
portrait mode. This does not occur with the HTC Legend (Android 2.2). It
is useful to take photos in portrait mode for large trees, but it would be
preferable not to have to rotate all of the images accordingly after data
collection, especially if it is only some of the phones that are doing it.
Is this a known issue with the Nexus S or Jelly Bean?

Also I would like to thank the ODK Developers and Community for all of the
excellent work on this remarkable program.

Cheers,

Jason

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

When developing I noticed the grey area on it as well. The problem comes
from the screen size not matching the camera resolution. Stretching the
image obviously distorts it so I didn't want to do that.

I think the solution is:

  1. if there is grey area, center image.
  2. crop the grey area out when saving the image so you do not get the grey
    area on the output image
··· On Monday, October 8, 2012 10:19:52 AM UTC-6, Mitch wrote: > > W.r.t. photo orientation, that is an issue/quirk of the phone. We're just > passing on the images as given to us. > > W.r.t. the annotation widget. > > The original image is resized to be the size of your device screen, so it > is a greatly reduced resolution. However, it should only be that size and > not have extra grey areas around it. Are you displaying the image in > another app that is perhaps assuming the image is full-size instead of > resized smaller? > > Markup on top of the original full-size image would be tricky to do > because of the rescaling and device memory challenges, but if someone > figured out a reasonable way to do it, we would welcome the code > contribution. > > Mitch > > On Sun, Oct 7, 2012 at 4:44 PM, JasonM <ja...@greencrown.ca >wrote: > >> I apologize if this has been covered somewhere. I'm using ODK for a tree >> inventory and find the Image Capture - Select With Annotations widget very >> useful, especially for pointing out individual trees in a group. >> >> I am finding that when I use the widget to markup the image taken, the >> resulting image with annotations is shrunk inside the original image size >> and the rest of the image is filled with grey. This is occurring both on >> Google Nexus S phones and HTC Legend phones. Also, if I rotate the phone >> while the markup application is open, the image is shrunk even more, and a >> larger percentage of the final saved image is filled in with grey. Is this >> a bug with ODK or the widget, or am I missing something in my phone's >> settings? >> >> Additionally with the Google Nexus S (with Jelly Bean), any photos taken >> in portrait mode are automatically rotated 90 degrees and saved sideways in >> portrait mode. This does not occur with the HTC Legend (Android 2.2). It >> is useful to take photos in portrait mode for large trees, but it would be >> preferable not to have to rotate all of the images accordingly after data >> collection, especially if it is only some of the phones that are doing it. >> Is this a known issue with the Nexus S or Jelly Bean? >> >> Also I would like to thank the ODK Developers and Community for all of >> the excellent work on this remarkable program. >> >> Cheers, >> >> Jason >> >> -- >> Post: opend...@googlegroups.com >> Unsubscribe: opendatakit...@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

OK. I've created an issue:
http://code.google.com/p/opendatakit/issues/detail?id=699

Please star this to be notified of updates.
This is unlikely to be fixed by me anytime soon. Code contributions welcome.

Mitch

··· On Tue, Oct 9, 2012 at 10:00 AM, Ryan Behr Atherton wrote:

When developing I noticed the grey area on it as well. The problem comes
from the screen size not matching the camera resolution. Stretching the
image obviously distorts it so I didn't want to do that.

I think the solution is:

  1. if there is grey area, center image.
  2. crop the grey area out when saving the image so you do not get the grey
    area on the output image

On Monday, October 8, 2012 10:19:52 AM UTC-6, Mitch wrote:

W.r.t. photo orientation, that is an issue/quirk of the phone. We're just
passing on the images as given to us.

W.r.t. the annotation widget.

The original image is resized to be the size of your device screen, so it
is a greatly reduced resolution. However, it should only be that size and
not have extra grey areas around it. Are you displaying the image in
another app that is perhaps assuming the image is full-size instead of
resized smaller?

Markup on top of the original full-size image would be tricky to do
because of the rescaling and device memory challenges, but if someone
figured out a reasonable way to do it, we would welcome the code
contribution.

Mitch

On Sun, Oct 7, 2012 at 4:44 PM, JasonM ja...@greencrown.ca wrote:

I apologize if this has been covered somewhere. I'm using ODK for a
tree inventory and find the Image Capture - Select With Annotations widget
very useful, especially for pointing out individual trees in a group.

I am finding that when I use the widget to markup the image taken, the
resulting image with annotations is shrunk inside the original image size
and the rest of the image is filled with grey. This is occurring both on
Google Nexus S phones and HTC Legend phones. Also, if I rotate the phone
while the markup application is open, the image is shrunk even more, and a
larger percentage of the final saved image is filled in with grey. Is this
a bug with ODK or the widget, or am I missing something in my phone's
settings?

Additionally with the Google Nexus S (with Jelly Bean), any photos taken
in portrait mode are automatically rotated 90 degrees and saved sideways in
portrait mode. This does not occur with the HTC Legend (Android 2.2). It
is useful to take photos in portrait mode for large trees, but it would be
preferable not to have to rotate all of the images accordingly after data
collection, especially if it is only some of the phones that are doing it.
Is this a known issue with the Nexus S or Jelly Bean?

Also I would like to thank the ODK Developers and Community for all of
the excellent work on this remarkable program.

Cheers,

Jason

--
Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@**googlegroups.com
Options: http://groups.google.com/**group/opendatakit?hl=enhttp://groups.google.com/group/opendatakit?hl=en

--
Mitch Sundt
Software Engineer
University of Washington
mitche...@gmail.com

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com