Commons:Bots/Requests/Robocito

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Robocito (talk · contribs)

Operator: Wilfredor (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought:

  • Add geographic information in the metadata of the images, based on geolocation in the description of the images or...
  • ...add geolocation template in the image description, based on the pre-existing information in the metadata

Automatic or manually assisted: Manually using Category name or image name to check

Edit type (e.g. Continuous, daily, one time run): Continuous

Maximum edit rate (e.g. edits per minute): 12

Bot flag requested: (Y/N): Y

Programming language(s): Python

Discussion

Are there any sanity checks? For example comparison of image coordinates with object coordinates? --EugeneZelenko (talk) 14:16, 16 March 2020 (UTC)[reply]

EugeneZelenko Thanks for your question, there are different types of location, in this case it is the camera location, which is the information that is saved in the image metadata --Wilfredor (talk) 14:40, 16 March 2020 (UTC)[reply]
My point was to check that camera location is not too far from object location. --EugeneZelenko (talk) 14:43, 16 March 2020 (UTC)[reply]
EugeneZelenko At the moment there is no way to know which object or objects are in an image, much less know its location unless the user writes it in the description. There are objects that are many kilometers away from the camera, for example, pictures of wild animals usually use 400mm telescopic lenses, for example, assuming a 22.5mm wide sensor, 400mm lens and 50 ft (15.24 km) subject distance, you will capture a subject and of course this changes in cut sensors that could calculate greater distances. With large bird you can shoot at 100 feet an get something decent, with small tiny birds you will need to be at about 20 to 25 feet. --Wilfredor (talk) 15:04, 16 March 2020 (UTC)[reply]
EugeneZelenko Additionally, when a camera takes a photo and has a built-in GPS, there is no way it is false information unless it has been manually edited by the user. It is not impossible but unlikely that the information in the image metadata is false --Wilfredor (talk) 23:19, 16 March 2020 (UTC)[reply]
Categories' Wikidata item or prominent depicts Structured Data statements are helpful for determine object location at least for architecture photos. --EugeneZelenko (talk) 14:27, 17 March 2020 (UTC)[reply]
EugeneZelenko Yes, I understand, that could be additional functionality, for the moment the scope is add only the camera location. The object location requires several verifications and resolve other problem, for example, in an image there can be several object categories for each object in the image and each category can have a different location in wikidata, so which location would be added? --Wilfredor (talk) 21:28, 17 March 2020 (UTC)[reply]
EugeneZelenko Yes, this information is being used to obtain the location information as well as the one placed directly in the image description. --Wilfredor (talk) 15:47, 17 March 2020 (UTC)[reply]
  • From my bot's cleanup task to remove implausible coordinates, I do know that users often add 0, 180 or 90 in location parameters when they do not know them. This is often when they use the upload wizard and they seem to feel forced to add anything. These do then translate to north or south pole and basically never make sense. Please exclude them as part of the sanity checks. Please see my unit test on examples [1] -- Schlurcher (talk) 09:50, 20 March 2020 (UTC)[reply]
Schlurcher Thanks for the test cases, I'm going to add them, please let me know if you know of others. --Wilfredor (talk) 14:22, 20 March 2020 (UTC)[reply]

Can you add new locations to SDC and than just add empty {{Location}} to the image to notify it to display it? See File:Seneca Rocks climbing - 13.jpg for example. Adding coordinates in wikitext and SDC is also OK. --Jarekt (talk) 19:23, 1 April 2020 (UTC)[reply]

Thanks for your idea, I had been thinking about it, however, at the moment the bot will not have that functionality because a human confirmation is necessary. Additionally, the location of the image metadata is more exact for this specific image and not for all those found in this category and respective information in SDC. I will add this to the list of future features, thank you very much --Wilfredor (talk) 12:37, 2 April 2020 (UTC)[reply]
Thanks for asking, it's not ready yet, I need to think about how to implement the suggestions. Some I do not know how to implement without human interaction. --Wilfredor (talk) 13:58, 10 April 2020 (UTC)[reply]
If you need assistance, please let me know. --Krd 14:36, 10 April 2020 (UTC)[reply]
I am trying to do this on my own, if I feel that I am blocked I will ask you for help. Thanks you so much --Wilfredor (talk) 16:25, 10 April 2020 (UTC)[reply]
  • Great work on this so far. Can you please introduce a throttle for edit speed? 1 edit per second/60 edits per minute is highly excessive for a non-priority task. Can you please reduce to 1 edit every 5 secods or 15 epm? ~riley (talk) 18:36, 10 April 2020 (UTC)[reply]
~riley done, thanks for your sugestion. --Wilfredor (talk) 18:41, 10 April 2020 (UTC)[reply]
@Wilfredor: Thank you for being receptive and prompt to make the change. Can you please update the edit rate above to reflect the change? ~riley (talk) 06:48, 18 April 2020 (UTC)[reply]
✓ Done sorry I did it in the code only Wilfredor (talk) 13:47, 18 April 2020 (UTC)[reply]

@Wilfredor: Please report status of your coding. Ready for test edits? --Krd 03:52, 10 May 2020 (UTC)[reply]

Yes sir, it's ready for test edits :) Wilfredor (talk) 19:10, 10 May 2020 (UTC)[reply]
Great, please do some test edits. --Krd 14:07, 12 May 2020 (UTC)[reply]
it was a test --Wilfredor (talk) 14:17, 12 May 2020 (UTC)[reply]
Please perform ~20 edits with the bot account. Thanks --Schlurcher (talk) 16:54, 12 May 2020 (UTC)[reply]
I have had some problems with images that exceed 50 MB with a library I was using called GPSPhoto, due to this I have been forced to use other lower level libraries but with more community support, however, it require additional work. I have also had problems with dependencies that are not available for windows, so I have been installing the latest stable version of ubuntu to have a simpler working environment. I only work on weekends so it takes so long and I apologize for the delay but I will tell you when the implementation is ready. --Wilfredor (talk) 13:34, 18 May 2020 (UTC)[reply]
No worries. Just report back once you are ready. Take your time. --Schlurcher (talk) 11:28, 19 May 2020 (UTC)[reply]

Closing as stale now. Please report when ready. --Krd 11:14, 6 July 2020 (UTC)[reply]