Write a method that for a given image identifier

Assignment Help Programming Languages
Reference no: EM132186711

Task 1

a) For example, when you will write one or more words :

Cloud , slide , table , boy , girl, owl .........................58 tags.

The code will find out that images which content on these words.

In the figure there are 500 images define by names.
B , C , D , E , F , G , H , I ............................................................58 . This is tags.
B = helicopter
C= hotairballoon
D= cloud
E= sun
F= lightning
G= rain
H= rocket
I= airplane
J= bouncy
K= slide
.
.

BG = fire.

This method ignores input words that are not part of the predefined tag list(58).

Hint: you should test these words:
1- appletree cat.
2- baseballglove.
3- tree hat duck.

And list top 5 answers (images).

b) Method 2 extends method 1 , for example if you write wrong word as appeltree balloon will find the images have these words.
Hint: you should test these words:
1. appletree cat.
2. baseballglove.
3. tree hat duck.

And list top 5 answers (images).

c) Method 3: extends method 2 using the diagram in task 1. For example, I defined dog and cat as mammal this known synonyms. When I will write mammal should find the images contents dog and cat.
Hint: you should test these words:
1. appletree cat.
2. baseballglove.
3. tree hat duck.

And list top 5 answers (images).

d) Method 4 extends method 3 .For instance, given query "oaktree pie owl", pictures with these three objects should be ranked higher than pictures with an oak tree, a pizza and an owl, which in turn should be ranked higher than pictures with an oak tree and an owl, but no food at all.
Hint: you should test these words:
1. appletree cat.
2. baseballglove.
3. tree hat duck.

And list top 5 answers (images).

Task 2

a) As a first step in Task 2, write a method that, given an image identifier, constructs a textual query from that image's tags and uses the best method you developed in Task 2 to find similar images.

Hint :list the top 5 answers (image identifier and similarity) of each method for the images Scene339_0, Scene335_0 and Scene313_0, as well as precision and recall for the top 5 answers, using the image class as the ground truth, i.e., for image SceneX_Y, all images SceneX_* are considered similar, and all other images not similar.

b) Write a method that, for a given image identifier, combines the text-based similarity used in 3a) with a second similarity measure based on the spatial information. For instance, if the crown in the input image is close to the girl's head, the spatial similarity measure (on its own) should prefer images where the crown is close to the girl's head over those where it is far away. ?Hint: have a look at the closeness values of sunglasses and hats to get a better idea of the range of these values before defining your similarity measure.

Hint : list the top 5 answers (image identifier and similarity) of each method for the images Scene339_0, Scene335_0 and Scene313_0, as well as precision and recall for the top 5 answers, using the image class as the ground truth, i.e., for image SceneX_Y, all images SceneX_* are considered similar, and all other images not similar.

The file boy_hand.csv provides for each image a list of objects and their closeness to the boy's hands. Closeness is a number between 0 and 1, with 1 being the closest. Objects with closeness 0 are omitted from the file. The columns are: Scene Identifier, Object, Closeness.

Files boy_ head.csv, girl_hand.csv and girl_head.csv provide the same information with respect to the boy's head, girl's hands and girl's head, respectively.

Attachment:- Tasks.zip

Verified Expert

The task gives the understand-ability of the combination of text-based similarity with a second similarity measure based on the spatial information.For instance,the closeness values of sunglasses and hats to get a better idea of the range of these values before defining the similarity measure.

Reference no: EM132186711

Questions Cloud

IKEA invades America determine IKEAs critical priorities : According to the case study IKEA invades America determine IKEA’s critical priorities.
What are your strengths and weaknesses : When it comes to facilitating spiritual care for patients with worldviews different from your own, what are your strengths and weaknesses?
What is the journal entry : The Lakeside Market issued $10,000,000, 10%, 10-year debenture bonds on December 31, 2018, What is the journal entry
The entrepreneurial consumer decision-making process : Accounting software allows small business owners the capability to manage all of their business's financial transactions.
Write a method that for a given image identifier : Write a method that, for a given image identifier, combines the text-based similarity used in 3a) with a second similarity measure based on the spatial
Complete a comparative ethical analysis : The purpose of this paper is to complete a comparative ethical analysis of George's situation and decision from the perspective of two worldviews or religions.
What is the impact of medication errors to the patient : What is the impact of medication errors to the patient and the health care provider? What ways can doctors make mistakes in prescribing medication.
Determine the amount of depreciation expense : A company purchases a machine for $302,400 on January 1. Determine the amount of depreciation expense for the FOURTH year
Methods of managing team conflict described by mosser : Using one or more of the methods of managing team conflict described by Mosser (state which one you will use and why), formulate a response.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd