vision-agent / lib /constants.ts
MingruiZhang's picture
feat: tips and new example (#119)
2fc64b7 unverified
raw
history blame contribute delete
No virus
1.38 kB
export const EXAMPLES = [
{
title: 'Counting workers hearing helmets',
mediaUrl:
'https://vision-agent-dev.s3.us-east-2.amazonaws.com/examples/workers.png',
prompt:
'Can you write a program to check if each person is wearing a helmet? First detect all the people in the image, then detect the helmets, check whether or not a person is wearing a helmet if the helmet is on the worker. Return a dictionary with the count of people with helmets and people without helmets. Visualize the result',
},
{
title: 'Detecting sharks in video',
mediaUrl:
'https://vision-agent-dev.s3.us-east-2.amazonaws.com/examples/shark3_short.mp4',
prompt:
'Can you detect any surfboards or sharks in the video, draw a green line between the shark and the nearest surfboard and add the distance between them in meters assuming 30 pixels is 1 meter. Make the line red if the shark is within 10 meters of a surfboard. Sample the video at 1 frames per second and save the output video as output.mp4.',
},
];
export const PLAN_TITLE = 'Creating instructions';
export const TOOLS_TITLE = 'Retrieving tools';
export const GENERATE_CODE_TITLE = 'Generating code';
export const EXECUTE_CODE_TITLE = 'Executing code';
export const EXECUTE_CODE_SUCCESS_TITLE = 'Code execution success';
export const EXECUTE_CODE_FAILURE_TITLE = 'Code execution failure';