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

  Create access keys for the buttons with the v underlined

Create access keys for the buttons with the "V" underlined for the Update Verse and the F underlined for the Update Font buttons. Create an access key for the "V" underlined on the Verify button

  Program to display the bonus

product receives a 5% bonus, otherwise, he receives a 4% bonus. Display the bonus, formatted with a dollar sign and two decimal places, in the bonusLabel.

  Display the sine cosine and tangent of the angle

Write a program that asks the user for an angle, entered in radians. The program should then display the sine, cosine, and tangent of the angle

  Super call for constructor to allot value of attribute

We have given a super call, which does some work of constructor. Your code must complete constructor by allotting the value of g to gpa attribute.

  Write program to print names of files with similarity

Write down the program which prints names of two files with highest similarity among files in collection, and names of two files with lowest similarity.

  Is this an example of head or tail recursion

Referring to the code in Part 1, use the substitution model to illustrate what the result of calling (add1-iter '(1 2 3)) will be. Why is the list reversed ?

  Prepare a presentation on backgrounds and fonts

Can you still read the text? Is it too narrow or thick? Is an icon hidden by the background? You should also include tips for choosing backgrounds and fonts.

  Calculate the average of the five grades passed in

Calculate the average of the 5 grades passed in and display the average with 1 decimal place and also display the letter grade.

  How data can be pulled from multiple web pages

This project will show how data can be pulled from multiple web pages, show flexible programming routines, minimize screen updates, and demonstrate some mathematical functions.

  Write the definitions for the classes described

Write the definitions for the classes described above and a program to test your classes. Create a typescript output (using the command script).

  Provide unoptimized-optimized prefix using recursive rule

Where the recursive rule uses concatenation of strings, so F2 is "ab", F3 is "aba". Note that the length of Fn is the nth Fibonacci number. Provide unoptimized and optimized ‘prefix' (fail) function for F7.

  A brief descriptionof the given project

A brief description, this is basically for my school final year project. So it need not to be very professional. I just need the outcome to be something like the ppt slides will do.

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