Take a movie of a location and a movie shot in front of a green screen and use chromakey to blend the two movies together.

What will be an ideal response?


```
import os
def combineTwoVideos(directory, videoDirectoryOne, videoDirectoryTwo):
frames = []
#Grab all the frames of the first video
for frameFile in os.listdir(videoDirectoryOne):
if frameFile.endswidth(".jpg"):
frames.append(makePicture(videoDirectoryOne+"//"+frameFile))

num = 0
for frameFile in os.listdir(videoDirectoryTwo):
num = num + 1
printNow("Frame: "+str(num))
if frameFile.endswith(".jpg"):
frame=makePicture(videoDirectoryTwo+"//"+frameFile)
for p in getPixels(frame):
if distance(getColor(p),green) <= 100:
setColor(p,getColor(getPixel(frames[num],getX(p),getY(p))))
writeFrame(num,directory ,frame)
```

Computer Science & Information Technology

You might also like to view...

Generally, what are the three components for establishing one's credentials for a profession?

What will be an ideal response?

Computer Science & Information Technology

You cannot apply a table style to an existing table

Indicate whether the statement is true or false

Computer Science & Information Technology

By default the Offline Files feature is disabled on the client computer

Indicate whether the statement is true or false

Computer Science & Information Technology

When reading a lengthy, prepared response to a user, the best strategy is to tell the user you a reading a passage to them.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology