conda create -n keras_v4 python=3.7
pip install tensorflow==1.14.0
pip install keras==2.2.4
pip install numpy h5py pillow
pip install matplotlib
pip install h5py==2.10.0
conda install rotobuf-3.5.2-py36h6538335_0.tar.bz2
python convert.py yolov3.cfg weights/yolov3.weights model_data/yolo.h5
def detect_img(yolo):
while True:
# img = input('Input image filename:')
image_path = r"image\DOAX-VenusVacation_220627_162205.jpg"
try:
image = Image.open(image_path)
except:
print('Open Error! Try again!')
continue
else:
r_image = yolo.detect_image(image)
# r_image.show()
r_image.save('r_image.jpg', quality=95)
yolo.close_session()
image_path = r"image\DOAX-VenusVacation_220627_162205.jpg"
r_image.save('r_image.jpg', quality=95)
python yolo_video2.py --image