dev
This commit is contained in:
parent
2ee942b31c
commit
b3be2f47a3
36
init.sh
36
init.sh
|
|
@ -41,23 +41,23 @@ source "./venv/bin/activate" || source "./venv/Scripts/activate" || :
|
|||
# DOCKER_IMAGE="ubuntu:18.04" DOCKER_TARGETS=libedgetpu make docker-build
|
||||
# sudo make install
|
||||
# cd "$here"
|
||||
echo "---------- install gxlpy ----------"
|
||||
sudo apt-get install -y g++ libc-bin
|
||||
mkdir -p "$here/tmp"
|
||||
cd "$here/tmp"
|
||||
wget --continue --timestamping "http://downloads.get-cameras.com/Galaxy_Linux-x86_Gige-U3_32bits-64bits_1.2.1911.9122.tar.gz"
|
||||
7z x -y "Galaxy_Linux-x86_Gige-U3_32bits-64bits_1.2.1911.9122.tar.gz"
|
||||
7z x -y "Galaxy_Linux-x86_Gige-U3_32bits-64bits_1.2.1911.9122.tar"
|
||||
cd "Galaxy_Linux-x86_Gige-U3_32bits-64bits_1.2.1911.9122"
|
||||
chmod +x "Galaxy_camera.run"
|
||||
echo -en "\nY\nY\nEn\nY\n" | ./Galaxy_camera.run
|
||||
cd "$here/tmp"
|
||||
wget --continue --timestamping "http://downloads.get-cameras.com/Galaxy_Linux_Python_1.0.1905.9081.tar.gz"
|
||||
7z x -y "Galaxy_Linux_Python_1.0.1905.9081.tar.gz"
|
||||
7z x -y "Galaxy_Linux_Python_1.0.1905.9081.tar"
|
||||
cd "Galaxy_Linux_Python_1.0.1905.9081/api"
|
||||
python3 setup.py build
|
||||
python3 setup.py install
|
||||
cd "$here"
|
||||
#echo "---------- install gxlpy ----------"
|
||||
#sudo apt-get install -y g++ libc-bin
|
||||
#mkdir -p "$here/tmp"
|
||||
#cd "$here/tmp"
|
||||
#wget --continue --timestamping "http://downloads.get-cameras.com/Galaxy_Linux-x86_Gige-U3_32bits-64bits_1.2.1911.9122.tar.gz"
|
||||
#7z x -y "Galaxy_Linux-x86_Gige-U3_32bits-64bits_1.2.1911.9122.tar.gz"
|
||||
#7z x -y "Galaxy_Linux-x86_Gige-U3_32bits-64bits_1.2.1911.9122.tar"
|
||||
#cd "Galaxy_Linux-x86_Gige-U3_32bits-64bits_1.2.1911.9122"
|
||||
#chmod +x "Galaxy_camera.run"
|
||||
#echo -en "\nY\nY\nEn\nY\n" | ./Galaxy_camera.run
|
||||
#cd "$here/tmp"
|
||||
#wget --continue --timestamping "http://downloads.get-cameras.com/Galaxy_Linux_Python_1.0.1905.9081.tar.gz"
|
||||
#7z x -y "Galaxy_Linux_Python_1.0.1905.9081.tar.gz"
|
||||
#7z x -y "Galaxy_Linux_Python_1.0.1905.9081.tar"
|
||||
#cd "Galaxy_Linux_Python_1.0.1905.9081/api"
|
||||
#python3 setup.py build
|
||||
#python3 setup.py install
|
||||
#cd "$here"
|
||||
|
||||
cd "$here"
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import sys
|
|||
from itertools import cycle
|
||||
|
||||
import cv2
|
||||
import gxipy as gx
|
||||
from . import gxipy as gx
|
||||
import imutils
|
||||
import numpy as np
|
||||
from PyQt5.QtCore import QMutex, Qt, QThread, pyqtSignal
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
# -*- coding:utf-8 -*-
|
||||
# -*-mode:python ; tab-width:4 -*- ex:set tabstop=4 shiftwidth=4 expandtab: -*-
|
||||
|
||||
from gxiapi import *
|
||||
from gxidef import *
|
||||
from .gxiapi import *
|
||||
from .gxidef import *
|
||||
|
||||
|
||||
__all__ = ["gxwrapper", "dxwrapper", "gxiapi", "gxidef"]
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@
|
|||
# -*-mode:python ; tab-width:4 -*- ex:set tabstop=4 shiftwidth=4 expandtab: -*-
|
||||
|
||||
import numpy
|
||||
from gxwrapper import *
|
||||
from dxwrapper import *
|
||||
from gxidef import *
|
||||
from .gxwrapper import *
|
||||
from .dxwrapper import *
|
||||
from .gxidef import *
|
||||
import types
|
||||
|
||||
ERROR_SIZE = 1024
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import sys
|
|||
import traceback
|
||||
from configparser import ConfigParser
|
||||
from pathlib import Path
|
||||
import logging
|
||||
|
||||
import cv2
|
||||
import numpy as np
|
||||
|
|
@ -20,6 +21,8 @@ if "--no-edgetpu" not in sys.argv:
|
|||
try:
|
||||
from pycoral.utils.edgetpu import make_interpreter
|
||||
except (ImportError, ModuleNotFoundError):
|
||||
logging.exception(traceback.format_exc())
|
||||
|
||||
def make_interpreter(*args, **kwargs):
|
||||
raise ValueError("the 'pycoral' module is not available")
|
||||
else:
|
||||
|
|
@ -30,6 +33,8 @@ if "--no-tflite" not in sys.argv:
|
|||
try:
|
||||
from tflite_runtime.interpreter import Interpreter
|
||||
except (ImportError, ModuleNotFoundError):
|
||||
logging.exception(traceback.format_exc())
|
||||
|
||||
def Interpreter(*args, **kwargs):
|
||||
raise ValueError("the 'tflite-runtime' module is not available")
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user