我想为flappy bird创建一个AI,我想使用对象检测和神经网络(我知道它不是最有效的方法,但这是我需要这样做的方式) . 我使用了ImageAI python模块,但它并没有真正做我想做的事情 . 我的代码是:

from imageai.Detection import ObjectDetection
import os

execution_path = os.getcwd()

detector = ObjectDetection()
detector.setModelTypeAsRetinaNet()
detector.setModelPath( os.path.join(execution_path , "resnet50_coco_best_v2.0.1.h5"))
detector.loadModel()
detections = detector.detectObjectsFromImage(input_image=os.path.join(execution_path , "image.jpg"), output_image_path=os.path.join(execution_path , "imagenew.jpg"))

for eachObject in detections:
    print(eachObject["name"] , " : " , eachObject["percentage_probability"] )

我给它这个图像,看它是否知道这是一个对象:

pipe image

但它没有做任何事情 .

所以我的问题是:有什么东西可以用数据库检测对象吗?