我一直在尝试使用tensorflow的对象检测来尝试建立一个体面的存在检测。我正在使用tensorflow的预训练模型和代码示例在网络摄像头上执行对象检测。有什么方法可以从模型中删除对象或从人员类中过滤掉对象?这是我目前拥有的代码。
import numpy as np
import os
import six.moves.urllib as urllib
import sys
import tarfile
import tensorflow as tf
import zipfile
from collections import defaultdict
from io import StringIO
from matplotlib import pyplot as plt
from PIL import Image
from utils import label_map_util
from utils import visualization_utils as vis_util
# # Model preparation
# Any model exported using the `export_inference_graph.py` tool can be loaded here simply by changing `PATH_TO_CKPT` to point to a new .pb file.
# By default we …Run Code Online (Sandbox Code Playgroud)