noodles8436 / THE-CROSS

A Smart Traffic Control System for the protection of the socially disadvantaged and rapid transport of emergency vehicles.
GNU General Public License v3.0
0 stars 3 forks source link

[BUG][PERFORMANCE] Camera Error in macOS #29

Open noodles8436 opened 3 years ago

noodles8436 commented 3 years ago

Please make sure that this is an issue related to performance of THE-CROSS

System information

Describe the current behavior After installing the program, I started the server. After that, Camera had a problem in the process of running the client and ended.

Describe the expected behavior 1) Follow the installation in ReadMe 2) Open DetectorServer 3) Open client 4) ERROR OCCURRED

Other info / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

(cross) ➜  THE-CROSS git:(main) ✗ python main.py
2021-10-24 21:58:58.451019: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
Traceback (most recent call last):
  File "main.py", line 650, in <module>
    window = Main()
  File "main.py", line 88, in __init__
    self.CAMERA_PREPARING_IMG_L = cvImgToQtImg(cv2.imread(IMAGE_PATH + "camera_preparing.png"), CAMERA_W)
  File "/Users/jlim/Projects/THE-CROSS/ImageUtils.py", line 9, in cvImgToQtImg
    cvImage = resizeCVIMG(cvImage, W)
  File "/Users/jlim/Projects/THE-CROSS/ImageUtils.py", line 18, in resizeCVIMG
    ratio = W / cvImage.shape[1]
AttributeError: 'NoneType' object has no attribute 'shape'