国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

python的opencv錯誤The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon

這篇具有很好參考價值的文章主要介紹了python的opencv錯誤The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

1、出現(xiàn)問題:

cv2.error: OpenCV(4.5.4-dev) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:1274: error: (-2:Unspecified e
rror) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvShowImage'

2、原因分析:

1、安裝包問題,需要安裝以下安裝包

the function is not implemented. rebuild the library with windows, gtk+ 2.x,opencv,python,人工智能,計算機視覺

?文章來源地址http://www.zghlxwxcb.cn/news/detail-838662.html

2、路徑問題 ,相對路徑和絕對路徑都可以,參考如下:image=cv2.imread("D:\\01xiangmu\\43tesseract\\IMG\\01.png")?

以上均沒問題,一看網(wǎng)上面均說的是這兩種情況,均無法解決筆者問題,搞得筆者直接懷疑是不是安裝包有問題,直接想下載源碼編譯,仍無法正常運行,筆者遇到了最棘手的問題,最后竟然發(fā)現(xiàn)是安裝包沖突問題:

3、安裝包沖突問題

the function is not implemented. rebuild the library with windows, gtk+ 2.x,opencv,python,人工智能,計算機視覺

the function is not implemented. rebuild the library with windows, gtk+ 2.x,opencv,python,人工智能,計算機視覺

筆者原先有opencv包,沒有卸載干凈,就安裝opencv-contrib-python包和opencv-contrib-python-headless包,可能導(dǎo)致python識別錯誤,導(dǎo)致無法正常識別運行,出現(xiàn)上述問題。

但是筆者的opencv包竟然無法正常卸載,無論通過Pycham或者Anaconda環(huán)境房間pip?uninstall、conda uninstall、conda remove?均無法卸載。。。。

最后直接到C:\ProgramData\Anaconda3\envs\pytorch中查找opencv,發(fā)現(xiàn)無法卸載,conda list卻顯示opencv的原因是C:\ProgramData\Anaconda3\envs\pytorch\conda-meta中的opencv殘留,如下:

the function is not implemented. rebuild the library with windows, gtk+ 2.x,opencv,python,人工智能,計算機視覺

將其手動刪除,conda list,發(fā)現(xiàn)已經(jīng)不存在opencv。

the function is not implemented. rebuild the library with windows, gtk+ 2.x,opencv,python,人工智能,計算機視覺

同時,將base環(huán)境下的opencv包刪除,直接搜索

?

the function is not implemented. rebuild the library with windows, gtk+ 2.x,opencv,python,人工智能,計算機視覺

刪除干凈后,再次安裝

?the function is not implemented. rebuild the library with windows, gtk+ 2.x,opencv,python,人工智能,計算機視覺

?然后pycham運行程序,

the function is not implemented. rebuild the library with windows, gtk+ 2.x,opencv,python,人工智能,計算機視覺

終于正常運行!

?

?

?

?

?

?

到了這里,關(guān)于python的opencv錯誤The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • cv2.imshow error: (-2:Unspecified error) The function is not implemented.問題解決

    cv2.imshow error: (-2:Unspecified error) The function is not implemented.問題解決

    在運行opencv的python代碼時,調(diào)用cv2.imshow時報錯,如下所示 cv2.imshow(opencv_title, out) cv2.error: OpenCV(4.5.5) D:aopencv-pythonopencv-pythonopencvmoduleshighguisrcwindow.cpp:1268: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Deb

    2024年02月16日
    瀏覽(21)
  • 【Unity細(xì)節(jié)】關(guān)于NotImplementedException: The method or operation is not implemented

    【Unity細(xì)節(jié)】關(guān)于NotImplementedException: The method or operation is not implemented

    ?????個人主頁 :@元宇宙-秩沅 hallo 歡迎 點贊?? 收藏? 留言?? 加關(guān)注?! 本文由 秩沅 原創(chuàng) 收錄于專欄 :unity細(xì)節(jié)和bug 中文翻譯:代表沒有實現(xiàn)操作或方法 對應(yīng)代碼塊中不存在相應(yīng)的方法,是API混淆了,檢查一下對應(yīng)類中有沒有你想要的API 檢查是否混淆了類中API,對

    2024年02月15日
    瀏覽(18)
  • 記錄opencv的 QObject::moveToThread: Current thread(...) is not the object`s thread 錯誤

    記錄opencv的 QObject::moveToThread: Current thread(...) is not the object`s thread 錯誤

    這個錯誤主要是在qt庫的加載上,在安裝的opencv-python工具包下有個qt文件夾,這個文件夾里面的文件估計是要來加載qt的,要是這個里面的qt庫的版本和pip install pyqt5所使用的qt庫的版本一樣估計是沒什么問題,要是不一樣。就會出現(xiàn)核心轉(zhuǎn)移的錯誤。(這里為什么這么說,是因

    2024年02月12日
    瀏覽(17)
  • 使用vue/cli出現(xiàn)defineConfig is not function 錯誤

    使用vue/cli出現(xiàn)defineConfig is not function 錯誤

    ?原因是vue3語法,vue/cli版本太低不支持;需要升級vue/cli版本 然后使用 ?安裝新的包或是升級 ?然后查詢vue/cli的版本都沒有變 ?npm list -g查看全局配置后,發(fā)現(xiàn)vue/cli安裝在UsersAdministratorAppDataRoamingnpm目錄 ?和我node配置的環(huán)境變量路徑不同 D:nodenode_globalnode_modules 解決辦法

    2024年02月16日
    瀏覽(14)
  • 前端date.locale is not a function錯誤解決辦法

    前端date.locale is not a function錯誤解決辦法

    在使用antd組件DatePicker時,修改數(shù)據(jù)之前做數(shù)據(jù)回顯,但是在數(shù)據(jù)回顯時總是會報一個錯誤:date.locale is not a function。經(jīng)過一步步的排錯,最終確定是使用antd中DatePicker(日期選擇器)組件的問題,此時我只在表單中寫了一個DatePicker組件,并在表單中進(jìn)行了數(shù)據(jù)綁定 查閱了很

    2024年02月11日
    瀏覽(25)
  • 微信小程序錯誤-TypeError: this.setData is not a function

    微信小程序錯誤-TypeError: this.setData is not a function

    微信小程序在與后臺獲取數(shù)據(jù)的時候遇到: TypeError: this.setData is not a function錯誤。 產(chǎn)生原因: 輸出結(jié)果能輸出,會產(chǎn)生警告,原因是this不能直接在請求的回調(diào)函數(shù)里寫this, 解決方法: ? ? 在請求外聲明一個變量,接收onload函數(shù)的this。 ?

    2024年02月16日
    瀏覽(25)
  • 解決錯誤:pip is configured with locations that require TLS/SSL,the ssl module in Python is not available

    解決錯誤:pip is configured with locations that require TLS/SSL,the ssl module in Python is not available。 pip安裝包出現(xiàn)錯誤類似如下: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting protobuf=4.25.2 (fr

    2024年02月19日
    瀏覽(26)
  • ssh : The term ‘ssh‘ is not recognized as the name of a cmdlet, function, script file, or opera

    ssh : The term ‘ssh‘ is not recognized as the name of a cmdlet, function, script file, or opera

    廢了很長時間才解決這問腿。在PowerShell中輸入ssh報: ssh : The term ‘ssh’ is not recognized as the name of a cmdlet, function, script file, or operable programssh:術(shù)語“ssh”未被識別為 cmdlet、函數(shù)、腳本文件或可運行程序的名稱。 復(fù)盤一下是問題是因為裝hightec,需要裝java,配置java環(huán)境變量,

    2024年02月07日
    瀏覽(21)
  • 解決 “Function not implemented“, 為 arm64 架構(gòu)宿主機重新構(gòu)建 Nacos 鏡像

    官方的 Nacos 鏡像在 arm64 架構(gòu)的系統(tǒng)上運行容器會出現(xiàn) “Function not implemented” 的相關(guān)異常日志以致于容器內(nèi) Nacos 無法正常啟動. 原因是官方鏡像基于的 CentOS 7.x 的基礎(chǔ)鏡像版本并不支持 arm64 架構(gòu)的系統(tǒng). 其實 7.x 版本是有 arm64 支持的, 只是官方鏡像并沒有采用那個 platform (

    2024年02月08日
    瀏覽(22)
  • python selenium報錯:Message: javascript error: arguments[0].click is not a function

    python selenium報錯:Message: javascript error: arguments[0].click is not a function

    ? 這是selenium比較常見的報錯,所以記錄一下解決方法,避免總是忘記。 代碼示例: 分析原因 通過debug可以發(fā)現(xiàn),click1并不是一個WebElement,而是一個list 解決方法: 所以把click1改成click1[0],就可以了 ? ?

    2024年02月15日
    瀏覽(30)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包