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

  Program to calculate amount person would earn over a period

Write a program that calculates the amount a person would earn over a period of time if his or her salary is one penny the first day.

  Draw flowchart or write psuedocode to represent logic

Draw a flowchart or write psuedocode to represent the logic of a program that alllows the user to enter three values . The values rpesent hourly pay rate.

  Write a mortgage calculator in perl

The following formula is used to calculate the fixed monthly payment (P) required to fully amortize a loan of L dollars over a term of n months at a monthly interest rate of c. [If the quoted rate is 6%, for example, c is .06/12 or .005].

  Write program to use text file to create relative file

Write a program that uses the text file to create a corresponding relative file. Translate the stock code to an appropriate relative record address.

  Develop a test application named testrental

Develop a test application named TestRental that tests your three classes. The test application must print at least three invoices.

  Print the nth line of pascal triangle

Design and implement a recursive program to determine and print the Nth line of Pascal's Triangle, as shown below. Each interior value is the sum of the two.

  Create a logical expression

Create a logical expression that corresponds to the following statement - Complete the truth table for the expression created.

  Write a perl subroutine that reads in a file containing two

write a perl subroutine that reads in a file containing two strings on each line and creates a hash with the first

  Complete the attached code and do junit testing

Complete the attached code and do junit testing. Can you help with this? Testing class tests Check Date methods serves as a "test plan" for developer's testing.

  Program asks for number of shares-whole dollar portion price

Program asks for number of shares held, whole dollar portion of price, and fraction portion. fraction portion is to be input as two integer values, one for numerator and one for the denominator.

  Design a superclass called shape that contains one function

Area of Shapes: Design a superclass called Shape that contains one function-getArea(). The getArea() function in the Shape class will simply return 0, you will derive from it in your subclasses mentioned below.

  Write recursive programs with lists and backtracking

Objectives: For this assignment, you'll learn how to use Prolog to write recursive programs with lists and backtracking. Problem: There are three parts to this assignment. They are all related

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