LPRNet_Pytorch icon indicating copy to clipboard operation
LPRNet_Pytorch copied to clipboard

执行test_LPRNet.py异常。cv2.destroyAllWindows()

Open Dreamskya opened this issue 4 years ago • 1 comments

Testing started at 16:14 ... C:\Users\Administrator\anaconda3\python.exe "F:\pycharm\PyCharm Community Edition 2020.1.2\plugins\python-ce\helpers\pycharm_jb_pytest_runner.py" --path F:/LPRNet_Pytorch-master/test_LPRNet.py Launching pytest with arguments F:/LPRNet_Pytorch-master/test_LPRNet.py in F:\LPRNet_Pytorch-master

============================= test session starts ============================= platform win32 -- Python 3.7.6, pytest-5.3.5, py-1.8.1, pluggy-0.13.1 -- C:\Users\Administrator\anaconda3\python.exe cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('F:\LPRNet_Pytorch-master\.hypothesis\examples') rootdir: F:\LPRNet_Pytorch-master plugins: hypothesis-5.5.4, arraydiff-0.3, astropy-header-0.1.2, doctestplus-0.5.0, openfiles-0.4.0, remotedata-0.3.2 collecting ... collected 1 item

test_LPRNet.py::test PASSED [100%]Successful to build network! load pretrained model successful! [Info] Test Accuracy: 0.9 [900:58:42:1000] [Info] Test Speed: 0.0016093027591705322s 1/1000]

============================= 1 passed in 10.34s ==============================

Process finished with exit code 0

Dreamskya avatar Jun 20 '20 08:06 Dreamskya

If you use in ubuntu, follow the tip "cv2.error: OpenCV(3.4.11) /opencv-3.4.11/modules/highgui/src/window.cpp:652: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvDestroyAllWindows'".

Or just comment this sentence "cv2.destroyAllWindows()".

feitianhouren avatar Sep 13 '22 02:09 feitianhouren