UPDATE Vision 更新openvino模型

This commit is contained in:
HJW
2024-12-02 17:20:40 +08:00
parent e2821f7e48
commit dc640f461d
8 changed files with 172 additions and 140 deletions

30
Vision/find_img_point.py Normal file
View File

@ -0,0 +1,30 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
# @Time : 2024/12/2 15:55
# @Author : hjw
# @File : find_img_point.py
'''
import cv2
import numpy as np
img = cv2.imread('./model/data/0925_01_28.png')
img2 = img[:600, 380:]
cv2.imshow('img2',img2)
cv2.imshow('img',img)
cv2.waitKey(0)
def on_EVENT_LBUTTONDOWN(event, x, y, flags, param):
if event == cv2.EVENT_LBUTTONDOWN:
xy = "%d,%d" % (x, y)
cv2.circle(img, (x, y), 1, (255, 0, 0), thickness = -1)
cv2.putText(img, xy, (x, y), cv2.FONT_HERSHEY_PLAIN,
1.0, (0,0,0), thickness = 1)
cv2.imshow("image", img)
cv2.namedWindow("image")
cv2.setMouseCallback("image", on_EVENT_LBUTTONDOWN)
while(1):
cv2.imshow("image", img)
if cv2.waitKey(0)&0xFF==27:
break
cv2.destroyAllWindows()