久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      <legend id='5Q2R9'><style id='5Q2R9'><dir id='5Q2R9'><q id='5Q2R9'></q></dir></style></legend>
      <i id='5Q2R9'><tr id='5Q2R9'><dt id='5Q2R9'><q id='5Q2R9'><span id='5Q2R9'><b id='5Q2R9'><form id='5Q2R9'><ins id='5Q2R9'></ins><ul id='5Q2R9'></ul><sub id='5Q2R9'></sub></form><legend id='5Q2R9'></legend><bdo id='5Q2R9'><pre id='5Q2R9'><center id='5Q2R9'></center></pre></bdo></b><th id='5Q2R9'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='5Q2R9'><tfoot id='5Q2R9'></tfoot><dl id='5Q2R9'><fieldset id='5Q2R9'></fieldset></dl></div>
    1. <tfoot id='5Q2R9'></tfoot>

        <bdo id='5Q2R9'></bdo><ul id='5Q2R9'></ul>

      <small id='5Q2R9'></small><noframes id='5Q2R9'>

    2. 在 Kivy 中顯示 numpy/opencv/matplotlib 圖像

      Display numpy/opencv/matplotlib image in Kivy(在 Kivy 中顯示 numpy/opencv/matplotlib 圖像)
          <bdo id='zHHNp'></bdo><ul id='zHHNp'></ul>

              <legend id='zHHNp'><style id='zHHNp'><dir id='zHHNp'><q id='zHHNp'></q></dir></style></legend>
            • <small id='zHHNp'></small><noframes id='zHHNp'>

              <i id='zHHNp'><tr id='zHHNp'><dt id='zHHNp'><q id='zHHNp'><span id='zHHNp'><b id='zHHNp'><form id='zHHNp'><ins id='zHHNp'></ins><ul id='zHHNp'></ul><sub id='zHHNp'></sub></form><legend id='zHHNp'></legend><bdo id='zHHNp'><pre id='zHHNp'><center id='zHHNp'></center></pre></bdo></b><th id='zHHNp'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='zHHNp'><tfoot id='zHHNp'></tfoot><dl id='zHHNp'><fieldset id='zHHNp'></fieldset></dl></div>

                <tbody id='zHHNp'></tbody>
                <tfoot id='zHHNp'></tfoot>
                本文介紹了在 Kivy 中顯示 numpy/opencv/matplotlib 圖像的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                如何在 Kivy 中以標(biāo)準(zhǔn) numpy/opencv/matplotlib 格式顯示圖像?Kivy 使用不同的圖像內(nèi)存布局,我不知道是哪一個(gè).

                How to display image in standard numpy/opencv/matplotlib format in Kivy? Kivy uses different image memory layout and I can't figure out which one.

                以下代碼完全正常.使用 cv2 VideoCapture 捕獲圖像.我認(rèn)為圖像是 BGR,數(shù)組維度是 (360, 480, 3):

                The following code works totally fine. Image was captured using cv2 VideoCapture. I think image is BGR, array dimensions are (360, 480, 3):

                    ret, image = video_capture.read()
                    cv2.imshow('image', image)
                    cv2.waitKey()
                

                嘗試使用以下代碼顯示它會(huì)產(chǎn)生混亂的結(jié)果:

                Trying to display it with the following code produce messy results:

                    video_texture = Texture.create(size=image.shape[:2])
                    video_texture.blit_buffer(image.tostring(), colorfmt='rgb', bufferfmt='ubyte')
                
                    # ...
                
                    video_panel = self.ids['video_panel']
                    with video_panel.canvas:
                        Rectangle(texture=video_texture, pos=video_panel.pos, size=video_panel.size)
                

                推薦答案

                找到了正確的轉(zhuǎn)換.可能不是最理想的:

                Found the right transformation. Probably suboptimal:

                    ret, image = video_capture.read()
                    image = np.rot90(np.swapaxes(image, 0, 1))
                    video_texture = Texture.create(size=(image.shape[1], image.shape[0]), colorfmt='rgb')
                    video_texture.blit_buffer(image.tostring(), colorfmt='bgr', bufferfmt='ubyte')
                

                這篇關(guān)于在 Kivy 中顯示 numpy/opencv/matplotlib 圖像的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                How to make a discord bot that gives roles in Python?(如何制作一個(gè)在 Python 中提供角色的不和諧機(jī)器人?)
                Discord bot isn#39;t responding to commands(Discord 機(jī)器人沒有響應(yīng)命令)
                Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關(guān)于我嗎?Discord 機(jī)器人的功能?(不和諧.py))
                message.channel.id Discord PY(message.channel.id Discord PY)
                How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機(jī)器人?)
                discord.py - Automaticaly Change an Role Color(discord.py - 自動(dòng)更改角色顏色)

                      • <bdo id='8wxN6'></bdo><ul id='8wxN6'></ul>
                          <tbody id='8wxN6'></tbody>

                        <small id='8wxN6'></small><noframes id='8wxN6'>

                        <i id='8wxN6'><tr id='8wxN6'><dt id='8wxN6'><q id='8wxN6'><span id='8wxN6'><b id='8wxN6'><form id='8wxN6'><ins id='8wxN6'></ins><ul id='8wxN6'></ul><sub id='8wxN6'></sub></form><legend id='8wxN6'></legend><bdo id='8wxN6'><pre id='8wxN6'><center id='8wxN6'></center></pre></bdo></b><th id='8wxN6'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='8wxN6'><tfoot id='8wxN6'></tfoot><dl id='8wxN6'><fieldset id='8wxN6'></fieldset></dl></div>
                        <tfoot id='8wxN6'></tfoot>

                          <legend id='8wxN6'><style id='8wxN6'><dir id='8wxN6'><q id='8wxN6'></q></dir></style></legend>
                          主站蜘蛛池模板: 亚洲三级av| 亚洲色图婷婷 | 爱综合 | 日韩欧美在线视频 | 国精产品一区一区三区免费完 | 亚洲一区二区在线 | 日韩精品一区二区三区视频播放 | 久久久久久国产精品免费免费男同 | 日本三级在线 | 亚洲一av| 久久精品国产一区老色匹 | 色久电影 | 欧美xxxx网站| 午夜影院在线观看 | 日本高清不卡视频 | 亚洲精品在线视频 | 日韩中文在线观看 | 久久久综合 | 欧美亚洲国产一区 | 日韩精品一区在线观看 | 久久久免费电影 | 日韩久久综合 | 久久毛片| 国产乱码精品一品二品 | 日韩在线一区二区三区 | av日韩在线播放 | 日本黄色影片在线观看 | 亚洲第一视频网 | 欧美综合一区二区三区 | 色婷婷亚洲国产女人的天堂 | 中文字幕在线观看www | 99成人精品 | 久久久久久久久久久91 | 免费亚洲婷婷 | 一区二区三区精品 | 成人精品在线 | 欧美日韩国产一区二区三区 | 日韩精品久久久久久 | 伊人精品 | 亚洲成人av | www.788.com色淫免费 |