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 program to show percentage of calories come from fat

Write a program which asks user to enter number of calories and fat grams in a food item. The program must display percentage of the calories that come from fat.

  Write an application to calculate the factorials

Write an application that calculates the factorials of 1 through 20. use type long. Display the results in tabular format. What difficulty might prevent you from calculating the factorial of 100?

  Explain online ordering system application

Develop 3 proposals for your development strategy, which include outsourcing (buy), insourcing (make), or a combination of both. You will present the pros and cons of each, along with a financial analysis. Finally, you will make a recommendation o..

  Create artefacts to encapsulate the steps needed

How to create your own functions - Create a program named InvestmentCal, which will read and write values from the Terminal - Pass Task 2.4: My Functions

  Assume the filling process is so slow that the tank air

a large compressed air storage tank with a volume of 100 m3is initially at 200 kpa and 288 k. the supply line valve is

  Define the steam flow control loop

Sketch the root locus diagram for the loops of Problem. Use the first-order Padt approximation to the dead time when necessary.

  Evaluate the fibonacci series

Write a program to evaluate the first 20 numbers of Fibonacci series.

  Write an application that prints out the receipt

Write an application that prints out the receipt details for these shopping baskets...

  Write down a program which asks user to type of series of

write a program that asks user to type of series of positive integers. when the user types a negative value the program

  Write procedure to scan string for first occurrence

Write procedure called Str_nextword to scan string for first occurrence of a certain delimiter character and replaces the delimiter with a null byte.

  Function to count number of times the given number occured

Write a main function to input 20 integers in the range of 1 to 6. Write a function to count the number of times the numbers 2 and 5 occur. The function should declare static variables count2 and count5.

  Create a windows form application project.

After these two selections are made the user will click the Selection Complete button that will compute the total price of rental

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