support non avx cpu, csv_extract_resistance.py
This commit is contained in:
parent
a8b2c6f7c8
commit
39cb673824
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -15,3 +15,4 @@ __pycache__/
|
|||
/src/lib/db/*imports*/
|
||||
/tmp/
|
||||
/venv*/
|
||||
runme_custom.sh
|
||||
|
|
|
|||
4
runme_custom.sh
Executable file
4
runme_custom.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash -e
|
||||
cd "$(dirname "$0")"
|
||||
source "./venv/bin/activate" || source "./venv/Scripts/activate" || :
|
||||
python -O "./src/main.py" --no-edgetpu --no-tflite $*
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
import sys
|
||||
|
||||
from .archive_synchronizer import ArchiveSynchronizer
|
||||
from .consumer import Consumer
|
||||
from .galaxy_camera import GalaxyCamera
|
||||
|
|
@ -11,5 +13,6 @@ from .tecna_marposs_provaset_t3 import TecnaMarpossProvasetT3
|
|||
from .tecna_screwdriver import TecnaScrewdriver
|
||||
from .test_component import TestComponent
|
||||
from .uvc_camera import UVCCamera
|
||||
from .vision import Vision
|
||||
if "--vision" in sys.argv:
|
||||
from .vision import Vision
|
||||
from .vision_saver import VisionSaver
|
||||
|
|
|
|||
11
src/main.py
11
src/main.py
|
|
@ -55,13 +55,16 @@ try:
|
|||
from components import (ArchiveSynchronizer, GalaxyCamera, Multicomp730424,
|
||||
NeoPixels, Os_Label_Printer, RemoteAPI,
|
||||
TecnaMarpossProvasetT3, TecnaScrewdriver,
|
||||
UVCCamera, Vision, VisionSaver)
|
||||
UVCCamera, VisionSaver)
|
||||
from lib.db import Users
|
||||
from lib.helpers import ConfigReader
|
||||
from PyQt5.QtCore import QObject, QThread, pyqtSignal
|
||||
from PyQt5.QtWidgets import QApplication, QMessageBox
|
||||
from ui import About, Archive, Login, Main_Window, Test, Users_Management
|
||||
|
||||
if "--vision" in sys.argv:
|
||||
from components import Vision
|
||||
|
||||
class Main(QObject):
|
||||
do = pyqtSignal(dict)
|
||||
|
||||
|
|
@ -87,9 +90,11 @@ try:
|
|||
"screwdriver": {"c": TecnaScrewdriver, "k": {"paused": True}},
|
||||
"tecna_t3": {"c": TecnaMarpossProvasetT3, "k": {"paused": True}},
|
||||
"uvc_camera": {"c": UVCCamera, "k": {"paused": True}},
|
||||
"vision_saver": {"c": VisionSaver, "t": False},
|
||||
"vision": {"c": Vision, "k": {"paused": True}},
|
||||
"vision_saver": {"c": VisionSaver, "t": False}
|
||||
}
|
||||
if "--vision" in sys.argv:
|
||||
self.components_specs["vision"] = {"c": Vision, "k": {"paused": True}}
|
||||
|
||||
for component_name in list(self.components_specs):
|
||||
if self.config.get("hardware_config", {}).get(component_name, None) != "present":
|
||||
self.components_specs.pop(component_name, None)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user