Naming pictures based on values from the filled form

Hi Team,
Just wondering has a way been found of auto naming photos in odk collect
based on a variable in the form.

Thanks
Ayoub

··· -- **In sun set years education is not associated with standard of living and medical care access; it is the the financial myosin and actin!!!

**** Don't give me fish, teach me how to fish

Kayoub K
0772656158 / 0703516660
Data Manager
Mujhu Research Collaboration
Mulago Hosp
Msc Enterprise Architecture

Hi Ayoub,

What high-level problem are you trying to solve? Why do you need the
photos named by a variable in the form?

Thanks,

Yaw

··· On Mon, May 22, 2017 at 11:51 PM, Ayoub Kakande wrote: > Hi Team, > Just wondering has a way been found of auto naming photos in odk collect > based on a variable in the form. > > Thanks > Ayoub > > -- > **In sun set years education is not associated with standard of living and > medical care access; it is the the financial myosin and actin!!! > > **** Don't give me fish, teach me how to fish > > Kayoub K > 0772656158 / 0703516660 > Data Manager > Mujhu Research Collaboration > Mulago Hosp > Msc Enterprise Architecture > > -- > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "ODK Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to opendatakit+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.

Hi Yaw,
Am collecting data from 100 patients daily.
for each form am required to take a photo of the patients x-ray forms.
I download the data using briefcase, here it creates a media file and dumps
all pictures, I have to manually look at image url then search in media
folder.
I would like to have the photos named by patient name which is a variable
within the form so that lay users can tell which photo belongs to which form

Thanks Yaw

··· On 25 May 2017 at 17:20, Yaw Anokwa wrote:

Hi Ayoub,

What high-level problem are you trying to solve? Why do you need the
photos named by a variable in the form?

Thanks,

Yaw

On Mon, May 22, 2017 at 11:51 PM, Ayoub Kakande akakande@gmail.com wrote:

Hi Team,
Just wondering has a way been found of auto naming photos in odk collect
based on a variable in the form.

Thanks
Ayoub

--
**In sun set years education is not associated with standard of living
and
medical care access; it is the the financial myosin and actin!!!

**** Don't give me fish, teach me how to fish

Kayoub K
0772656158 / 0703516660
Data Manager
Mujhu Research Collaboration
Mulago Hosp
Msc Enterprise Architecture

--

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


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

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


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
**In sun set years education is not associated with standard of living and
medical care access; it is the the financial myosin and actin!!!

**** Don't give me fish, teach me how to fish

Kayoub K
0772656158 / 0703516660
Data Manager
Mujhu Research Collaboration
Mulago Hosp
Msc Enterprise Architecture

Hi Ayoub,

To my knowledge there is still no way to manually name photos on the device
(if there is, I'd LOVE to hear about it!). Seems you've been facing this
issue for some time, I still use the method I previously described to you
HERE
https://groups.google.com/forum/#!searchin/opendatakit/lloyd$20banwart$20photo|sort:relevance/opendatakit/fW4s7Px277Q/HhoQTlrdAAAJ.
But this is for largely 'one time' analysis, for an ongoing (daily)
activity, I can see how this could be very tedious.

Hoping someone in the community can come up with a better solution though
-- I can't help but think publishing to google fusion tables* may* provide
you with a quicker solution which could be much more automated

~Lloyd

··· On Thursday, May 25, 2017 at 10:31:04 AM UTC-4, Ayoub Kakande wrote: > > Hi Yaw, > Am collecting data from 100 patients daily. > for each form am required to take a photo of the patients x-ray forms. > I download the data using briefcase, here it creates a media file and > dumps all pictures, I have to manually look at image url then search in > media folder. > I would like to have the photos named by patient name which is a variable > within the form so that lay users can tell which photo belongs to which form > > Thanks Yaw > > On 25 May 2017 at 17:20, Yaw Anokwa <yan...@nafundi.com > wrote: > >> Hi Ayoub, >> >> What high-level problem are you trying to solve? Why do you need the >> photos named by a variable in the form? >> >> Thanks, >> >> Yaw >> >> On Mon, May 22, 2017 at 11:51 PM, Ayoub Kakande <akak...@gmail.com > wrote: >> > Hi Team, >> > Just wondering has a way been found of auto naming photos in odk collect >> > based on a variable in the form. >> > >> > Thanks >> > Ayoub >> > >> > -- >> > **In sun set years education is not associated with standard of living >> and >> > medical care access; it is the the financial myosin and actin!!! >> > >> > **** Don't give me fish, teach me how to fish >> > >> > Kayoub K >> > 0772656158 / 0703516660 >> > Data Manager >> > Mujhu Research Collaboration >> > Mulago Hosp >> > Msc Enterprise Architecture >> > >> > -- >> > -- >> > Post: opend...@googlegroups.com >> > Unsubscribe: opendatakit...@googlegroups.com >> > Options: http://groups.google.com/group/opendatakit?hl=en >> > >> > --- >> > You received this message because you are subscribed to the Google >> Groups >> > "ODK Community" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an >> > email to opendatakit...@googlegroups.com . >> > For more options, visit https://groups.google.com/d/optout. >> >> -- >> -- >> Post: opend...@googlegroups.com >> Unsubscribe: opendatakit...@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "ODK Community" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > **In sun set years education is not associated with standard of living and > medical care access; it is the the financial myosin and actin!!! > > **** Don't give me fish, teach me how to fish > > Kayoub K > 0772656158 / 0703516660 > Data Manager > Mujhu Research Collaboration > Mulago Hosp > Msc Enterprise Architecture >

Ayoub,

I think this is a very reasonable feature request.

I don't know exactly how we'll do it, but it has to start from the
spec level and work its way down into the tools. I've filed it at
https://github.com/opendatakit/xforms-spec/issues/128 so we can get
the discussions started. Lloyd, if you have this use-case, it'd be
good to add that to the issue.

Thanks,

Yaw

··· On Thu, May 25, 2017 at 6:39 PM, Lloyd Owen Banwart wrote: > Hi Ayoub, > > To my knowledge there is still no way to manually name photos on the device > (if there is, I'd LOVE to hear about it!). Seems you've been facing this > issue for some time, I still use the method I previously described to you > HERE. But this is for largely 'one time' analysis, for an ongoing (daily) > activity, I can see how this could be very tedious. > > Hoping someone in the community can come up with a better solution though -- > I can't help but think publishing to google fusion tables may provide you > with a quicker solution which could be much more automated > > ~Lloyd > > On Thursday, May 25, 2017 at 10:31:04 AM UTC-4, Ayoub Kakande wrote: >> >> Hi Yaw, >> Am collecting data from 100 patients daily. >> for each form am required to take a photo of the patients x-ray forms. >> I download the data using briefcase, here it creates a media file and >> dumps all pictures, I have to manually look at image url then search in >> media folder. >> I would like to have the photos named by patient name which is a variable >> within the form so that lay users can tell which photo belongs to which form >> >> Thanks Yaw >> >> On 25 May 2017 at 17:20, Yaw Anokwa wrote: >>> >>> Hi Ayoub, >>> >>> What high-level problem are you trying to solve? Why do you need the >>> photos named by a variable in the form? >>> >>> Thanks, >>> >>> Yaw >>> >>> On Mon, May 22, 2017 at 11:51 PM, Ayoub Kakande wrote: >>> > Hi Team, >>> > Just wondering has a way been found of auto naming photos in odk >>> > collect >>> > based on a variable in the form. >>> > >>> > Thanks >>> > Ayoub >>> > >>> > -- >>> > **In sun set years education is not associated with standard of living >>> > and >>> > medical care access; it is the the financial myosin and actin!!! >>> > >>> > **** Don't give me fish, teach me how to fish >>> > >>> > Kayoub K >>> > 0772656158 / 0703516660 >>> > Data Manager >>> > Mujhu Research Collaboration >>> > Mulago Hosp >>> > Msc Enterprise Architecture >>> > >>> > -- >>> > -- >>> > Post: opend...@googlegroups.com >>> > Unsubscribe: opendatakit...@googlegroups.com >>> > Options: http://groups.google.com/group/opendatakit?hl=en >>> > >>> > --- >>> > You received this message because you are subscribed to the Google >>> > Groups >>> > "ODK Community" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> > an >>> > email to opendatakit...@googlegroups.com. >>> > For more options, visit https://groups.google.com/d/optout. >>> >>> -- >>> -- >>> Post: opend...@googlegroups.com >>> Unsubscribe: opendatakit...@googlegroups.com >>> Options: http://groups.google.com/group/opendatakit?hl=en >>> >>> --- >>> You received this message because you are subscribed to the Google Groups >>> "ODK Community" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to opendatakit...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >> >> >> >> >> -- >> **In sun set years education is not associated with standard of living and >> medical care access; it is the the financial myosin and actin!!! >> >> **** Don't give me fish, teach me how to fish >> >> Kayoub K >> 0772656158 / 0703516660 >> Data Manager >> Mujhu Research Collaboration >> Mulago Hosp >> Msc Enterprise Architecture > > -- > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "ODK Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to opendatakit+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.

Thanks yaw
I appreciate

··· -----Original Message----- From: opendatakit@googlegroups.com [mailto:opendatakit@googlegroups.com] On Behalf Of Yaw Anokwa Sent: Thursday, June 1, 2017 10:46 To: ODK Community Subject: Re: [ODK Community] ODK picture naming

Ayoub,

I think this is a very reasonable feature request.

I don't know exactly how we'll do it, but it has to start from the spec level and work its way down into the tools. I've filed it at
https://github.com/opendatakit/xforms-spec/issues/128 so we can get the discussions started. Lloyd, if you have this use-case, it'd be good to add that to the issue.

Thanks,

Yaw

On Thu, May 25, 2017 at 6:39 PM, Lloyd Owen Banwart lloyd.banwart@gmail.com wrote:

Hi Ayoub,

To my knowledge there is still no way to manually name photos on the
device (if there is, I'd LOVE to hear about it!). Seems you've been
facing this issue for some time, I still use the method I previously
described to you HERE. But this is for largely 'one time' analysis,
for an ongoing (daily) activity, I can see how this could be very tedious.

Hoping someone in the community can come up with a better solution
though -- I can't help but think publishing to google fusion tables
may provide you with a quicker solution which could be much more
automated

~Lloyd

On Thursday, May 25, 2017 at 10:31:04 AM UTC-4, Ayoub Kakande wrote:

Hi Yaw,
Am collecting data from 100 patients daily.
for each form am required to take a photo of the patients x-ray forms.
I download the data using briefcase, here it creates a media file and
dumps all pictures, I have to manually look at image url then search
in media folder.
I would like to have the photos named by patient name which is a
variable within the form so that lay users can tell which photo
belongs to which form

Thanks Yaw

On 25 May 2017 at 17:20, Yaw Anokwa yan...@nafundi.com wrote:

Hi Ayoub,

What high-level problem are you trying to solve? Why do you need the
photos named by a variable in the form?

Thanks,

Yaw

On Mon, May 22, 2017 at 11:51 PM, Ayoub Kakande akak...@gmail.com wrote:

Hi Team,
Just wondering has a way been found of auto naming photos in odk
collect based on a variable in the form.

Thanks
Ayoub

--
**In sun set years education is not associated with standard of
living and medical care access; it is the the financial myosin and
actin!!!

**** Don't give me fish, teach me how to fish

Kayoub K
0772656158 / 0703516660
Data Manager
Mujhu Research Collaboration
Mulago Hosp
Msc Enterprise Architecture

--

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


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to opendatakit...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

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


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to opendatakit...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
**In sun set years education is not associated with standard of
living and medical care access; it is the the financial myosin and actin!!!

**** Don't give me fish, teach me how to fish

Kayoub K
0772656158 / 0703516660
Data Manager
Mujhu Research Collaboration
Mulago Hosp
Msc Enterprise Architecture

--

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


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

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


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hello everyone,

What if we add an extra button(optional) in the image widget for renaming the photo after it has been captured or selected from SD card. This name would be concatenated along with the system generated name, eg. 20384498114323-patient1.png.

Regards,
Shobhit

1 Like

What if we add an extra button(optional) in the image widget for renaming the photo after it has been captured or selected from SD card

I would prefer to add "rename option" to "Edit prompt menu" then if you click long you can see two options "Remove response" and "Rename file".

1 Like

In my experience, I would not trust enumerators to accurately enter the
correct meta data for each image. On large scale data collection activities
where enumerators are capturing multiple images per survey for continuous
days on end, requiring them to provide the accurate meta data would likely
result in very inconsistent naming conventions. A more systematic/automated
solution may be more appropriate. I'm a user, not a programmer, so I can't
gauge the difficulty of these suggested changes, but adding a prefix to the
android generated image name of the image ${Q#} concatenated with another
variable (likely a respondent unique ID), may be a more reliable option.

Lloyd Owen Banwart
414.759.5378
Lloyd.Banwart@gmail.com

2 Likes

@Shobhit_Agarwal
I'm seconding what Lloyd has said - having users set the filename is not reliable.
I think auto-populating based on a field is a better option.

1 Like

This is one feature even i would like to have. To have the images renamed using fields in the form. this can greatly help me in capturing the visual improvement in the subjects i am working upon.

1 Like

This would be awesome! I think that the name should be concatenated fields.
Thanks!

1 Like

Hi @Lloyd_Banwart,

I ran into this image rename problem today. I have tried accessing the solution you used but the Google Group is closed.

Seems the issue is also open on Github.

@uwanja, it is located HERE now.

There has been some in-depth conversation about what such a feature could look like in this thread. There is some complexity both to making this accurate and performant in Collect and to avoiding confusion on the download side. Some folks involved in the user-facing conversation may be interested in engaging over there.

Others looking into this general topic may be interested in some of @Florian_May's suggestions in Tag/link pictures with defined field - #3 by Florian_May

@LN ,

I just read the Spec Proposal and this is a lot more complicated than I initially thought. Was this ever resolved or implemented?

I appreciate all of the work that has been done on this. It actually expresses much of the frustration that I've had using forms with an enumorator that is not fully literate. My project is not a large scale implementation, but I'm working with trees and doing surveys over a period of time following hundreds (and hopefully in the future thousands) of trees. Every tree we're working with has a unique ID#, but I've had to add an extra photo to every survey that includes a photo of an actual tag with that ID# precisely to avoid the issues you all were talking about of incorrectly inputting data in a previous question and associating all of that forms data with the incorrect tree.

That being said, because there are so many different projects with different needs is this something where a set of "best practices" could be published in documentation with examples of HIGHLY RECOMMENDED conventions/combinations of photo timestamp and UUID and then examples where users could add additional variables to the name with a very large WARNING about how edits to form data would create mismatches in file names?

I think what @Lloyd_Banwart said regarding large scale data collection is very much true and that ultimately a single solution for large scale projects will be disadvantageous for small scale projects and vice versa. Therefore, letting form creators choose form variables (in addition to photo timestamp and UUID) will create the possibility for the most meaningful and accurate file names, but also create the high probability that some form creators are going to have meaningful, yet inaccurate file names.

Tyler

1 Like

Hello,
I am new here in this forum and I search for a solution like ODK collect. Iam not a developer but I search a developer for my idea: My suggestion to solve the problem of named files is to use the metadata of the file format (IPTC/EXIF / iptc.org/). So there would be no conflict with the given name of the picture in odk. In my opinion, a way could be, that the user can define two or three fields before picture will taken at the Survey to assign the values from specific fields to specific fields of the pictures. IPTC fields are many different like (Objectname; Headline; Caption....) so the user can assign Filed 1 to Objectname, Field 2 to Headline and Field 3 to Caption and so on. If the picture is taken and will saved (or at the export) a tool (like PERL: Exiftool or Exiftool Java: https://github.com/mjeanroy/exiftool) write the values of this selected fields in the IPTC Fields of the pictures. So the filename would not changed. To find the pictures after the export from ODK or after copy or move it, to a pc or other device, the user can find and search and filter the pictures with the most Image editing Apps/Tools. It is also possible to change the file names from the pictures with Image editing Apps/Tools automatic (like Exif Tool or Windows GUI of it geosetter / or Xnview) with batch processing. So if you want you can do it independend of odk..... So maybe it would solve the problem, I search for a while for a app that can do this or that it would connect o a exisitng app.... and a developer to implement such a function..... also I will give a donation, if it would possible, and it it takes not so much time.....