我使用是为了识别提供的图片中的对象,遵循这个并使用,我成功地使我的程序返回图片中的对象。例如,这是我用作输入的图片:
这是我的程序的输出:
我想要的只是得到被识别的物品的颜色(最后一种情况是红色球衣),这有可能吗?
下面是代码(来自最后一个链接,只是做了一些小改动)
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this
上下文
我试图在Keras中实现YOLO算法。到目前为止,我拥有的是以下网络:
i = Input(shape=(image_height,image_width, image_channels))
rescaled = Rescaling(1./255)(i)
x = Conv2D(16, (1, 1))(rescaled)
x = Conv2D(32, (3, 3))(x)
x = LeakyReLU(alpha=0.3)(x)
x = MaxPooling2D(pool_size=(2, 2))(x)
x = Conv2D(16, (3, 3))(x)
x = Conv2D(32, (3