mirror of
http://git.xinwangdao.com/cnnc-embedded-parts-detect/detect-gui.git
synced 2025-06-23 20:54:13 +08:00
1、image framework
This commit is contained in:
parent
934855af80
commit
747d110897
@ -10,7 +10,7 @@ import time
|
||||
import cv2
|
||||
|
||||
from core.edge_component import action, EdgeComponent, service
|
||||
from util import get_system_and_library_suffix
|
||||
from util import get_system_and_library_suffix, imgProcess
|
||||
|
||||
|
||||
# 给回调函数使用
|
||||
@ -354,4 +354,5 @@ class ImageFramework(EdgeComponent):
|
||||
if msg.msg_type == MSG_LOCATION_RECORD:
|
||||
# cv2.imshow("LOCATION", msg.im2D)
|
||||
# cv2.waitKey(1)
|
||||
msg = imgProcess.process(msg)
|
||||
self.signals.on_image_detect_result.emit(msg)
|
||||
|
3
req.txt
3
req.txt
@ -8,5 +8,4 @@ paho-mqtt==2.1.0
|
||||
dynaconf==3.2.5
|
||||
fastapi==0.111.0
|
||||
uvicorn==0.30.1
|
||||
SQLAlchemy==2.0.34
|
||||
opencv-python==4.10.0.84
|
||||
SQLAlchemy==2.0.34
|
14
util/imgProcess.py
Normal file
14
util/imgProcess.py
Normal file
@ -0,0 +1,14 @@
|
||||
import os
|
||||
import threading
|
||||
from ctypes import *
|
||||
import numpy as np
|
||||
from PyQt5.QtCore import QObject, pyqtSignal
|
||||
from dynaconf.base import Settings
|
||||
from numpy.ctypeslib import as_array
|
||||
import platform
|
||||
import time
|
||||
import cv2
|
||||
import imgProcess
|
||||
|
||||
def process(msg):
|
||||
return msg
|
Loading…
Reference in New Issue
Block a user