Using the same method recommended to change text in a label (previous post), I am now trying to change an image based on a photo taken by the camera. The program tries, but returns a blank image to the UI. The image is definitely being taken, because I can display it to the console - just not in the ImageView image on the UI.
Here's the code:
v=ui.load_view('MyUI')
v.present('sheet')
@ui.in_background
def getimage():
…myimage=photos.capture_image()
…imageview1=v['imageview1']
…myimage = myimage.resize((50,50),Image.BILINEAR)
…imageview.image=ui.Image(myImage)
getimage()