id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
picamera_basic_advanced_recipes/18461_6_0.txt
* [ Actions Automate any workflow ](https://github.com/features/actions) * [ Packages Host and manage packages ](https://github.com/features/packages) * [ Security Find and fix vulnerabilities ](https://github.com/features/security) * [ Codespaces Instant dev environments ](https://github.com/features/codespace...
picamera_basic_advanced_recipes/picamera_basic_recipes_8_0.txt
## 3.8. Capturing to a network stream ¶ This is a variation of Capturing timelapse sequences . Here we have two scripts: a server (presumably on a fast machine) which listens for a connection from the Raspberry Pi, and a client which runs on the Raspberry Pi and sends a continual stream of images to the server. We...
picamera_basic_advanced_recipes/18461_170_0.txt
Sorry, something went wrong.
picamera_basic_advanced_recipes/imshowpythonmacosnot_2_0.txt
[ ![OpenCV answers logo](/upfiles/logo_2.png) ](/questions/)
picamera_basic_advanced_recipes/18461_128_0.txt
[ ![@alalek](https://avatars.githubusercontent.com/u/4981219?s=40&v=4) ](/alalek) [ alalek ](/alalek) mentioned this issue Nov 6, 2020
picamera_basic_advanced_recipes/18461_363_0.txt
---
picamera_basic_advanced_recipes/imshowpythonmacosnot_40_0.txt
can you add cv2.namedWindow('Butterfly',cv2.WINDOW_NORMAL) before imshow ?
picamera_basic_advanced_recipes/18461_125_0.txt
---
picamera_basic_advanced_recipes/18461_252_0.txt
👍 1 GQster reacted with thumbs up emoji
picamera_basic_advanced_recipes/sshx11forwardingprob_29_0.txt
However, If you convert the numpy arrays (from your OpenCV images) to real RGB images, you will be able to display them using image.show():
picamera_basic_advanced_recipes/18461_238_0.txt
###
picamera_basic_advanced_recipes/18461_143_0.txt
###
picamera_basic_advanced_recipes/18461_347_0.txt
All reactions
picamera_basic_advanced_recipes/243406_31_0.txt
// Done handling output image, don't forget to unlock it. CHECK_STATUS(vpiImageUnlock(gradient));
picamera_basic_advanced_recipes/18461_194_0.txt
Copy link
picamera_basic_advanced_recipes/243406_27_0.txt
Then we can show the output with the following changes to the _01-convolve_2d_ sample,
picamera_basic_advanced_recipes/18461_210_0.txt
👍 2 alalek and changtimwu reacted with thumbs up emoji
picamera_basic_advanced_recipes/18461_257_0.txt
Copy link
picamera_basic_advanced_recipes/18461_129_0.txt
[ error: (-2:Unspecified error) Can't initialize GTK backend in function 'cvInitSystem' #18666 ](/opencv/opencv/issues/18666)
picamera_basic_advanced_recipes/picamera_advanced_recipes_9_0.txt
## 4.9. Rapid capture and streaming ¶ Following on from Rapid capture and processing , we can combine the video capture technique with [ Capturing to a network stream ](recipes1.html#streaming-capture) . The server side script doesn’t change (it doesn’t really care what capture technique is being used - it just re...
picamera_basic_advanced_recipes/18461_299_0.txt
---
picamera_basic_advanced_recipes/imshowpythonmacosnot_90_0.txt
[ OpenCV + CUDA + OSX (10.8.3) ](/question/13579/opencv-cuda-osx-1083/)
picamera_basic_advanced_recipes/18461_111_0.txt
**[ IstiakFahim28 ](/IstiakFahim28) ** commented Nov 1, 2020
picamera_basic_advanced_recipes/imshowpythonmacosnot_89_0.txt
[ Problem with imshow in opencv 2.4.5 and ubuntu 13.04 [closed] ](/question/13065/problem-with-imshow-in-opencv-245-and-ubuntu-1304/)
picamera_basic_advanced_recipes/18461_193_0.txt
[ ![@TVI- BIZ](https://avatars.githubusercontent.com/u/19244057?s=80&u=331fd1aa6887beab9f89ef89a7d33450a807b6ff&v=4) ](/TVI-BIZ)
picamera_basic_advanced_recipes/sshx11forwardingprob_21_0.txt
Registered: Jun 2010 Location: Wiltshire, UK Distribution: Void, Linux From Scratch, Slackware64 Posts: 3,152
picamera_basic_advanced_recipes/18461_44_0.txt
Additional navigation options
picamera_basic_advanced_recipes/18461_22_0.txt
Search or jump to...
picamera_basic_advanced_recipes/243406_39_0.txt
Copyright © 2024 NVIDIA Corporation
picamera_basic_advanced_recipes/imshowpythonmacosnot_39_0.txt
[ ![AnnaMP gravatar image](/m/default/media/images/nophoto.png?v=6) ](/users/414443/annamp/) [ AnnaMP ](/users/414443/annamp/) ( 2019-01-24 06:23:34 -0600 ) edit
picamera_basic_advanced_recipes/18461_300_0.txt
All reactions
picamera_basic_advanced_recipes/picamera_advanced_recipes_1_0.txt
## 4.1. Capturing to a numpy array ¶ Since 1.11, picamera can capture directly to any object which supports Python’s buffer protocol (including numpy’s [ ` ndarray ` ](https://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray "\(in NumPy v1.15\)") ). Simply pass the object as the destina...
picamera_basic_advanced_recipes/243406_5_0.txt
Hi, I’m trying to show the output image of vpi program. why can not make it successfully when i add imshow() of opencv to a vpi program, while imread() and imwrite() work well? Any help appriciated!——version vpi1.1, platform jetson tx2a , C++
picamera_basic_advanced_recipes/18461_348_0.txt
Sorry, something went wrong.
picamera_basic_advanced_recipes/243406_22_0.txt
[ AastaLLL ](https://forums.developer.nvidia.com/u/AastaLLL) February 20, 2023, 5:57am 13
picamera_basic_advanced_recipes/imshowpythonmacosnot_9_0.txt
edit
picamera_basic_advanced_recipes/243406_10_0.txt
[ ![vpi](https://global.discourse- cdn.com/nvidia/optimized/3X/4/d/4da677b17d251a280cdedd18d1ce68b9c3c1228b_2_690x460.png) vpi 898×599 51.2 KB ](https://global.discourse- cdn.com/nvidia/original/3X/4/d/4da677b17d251a280cdedd18d1ce68b9c3c1228b.png "vpi")
picamera_basic_advanced_recipes/imshowpythonmacosnot_60_0.txt
add a comment see more comments
picamera_basic_advanced_recipes/18461_214_0.txt
[ ![@erdemozc](https://avatars.githubusercontent.com/u/65570260?s=80&u=4016d7b54f2b9be7c3272fbd2f0b3cf71f331540&v=4) ](/erdemozc)
picamera_basic_advanced_recipes/imshowpythonmacosnot_17_0.txt
I'm literally just starting out, but already stuck .. I'm trying to get an image to display, but ` imshow() ` only opens an empty window. I don't get any errors, and the program doesn't hang (pressing a key closes the window just fine) - it's just that there is no image in the window.
picamera_basic_advanced_recipes/18461_247_0.txt
###
picamera_basic_advanced_recipes/picamera_basic_recipes_2_0.txt
## 3.2. Capturing to a stream ¶ Capturing an image to a file-like object (a [ ` socket() ` ](https://docs.python.org/3.4/library/socket.html#socket.socket "\(in Python v3.4\)") , a [ ` io.BytesIO ` ](https://docs.python.org/3.4/library/io.html#io.BytesIO "\(in Python v3.4\)") stream, an existing open file object, ...
picamera_basic_advanced_recipes/imshowpythonmacosnot_43_0.txt
[ ![LBerger gravatar image](/upfiles/avatars/LBerger/resized/16/Sans%20titre.png) ](/users/8129/lberger/) [ LBerger ](/users/8129/lberger/) ( 2019-01-24 06:50:40 -0600 ) edit
picamera_basic_advanced_recipes/18461_182_0.txt
[ ![@w4w4n78](https://avatars.githubusercontent.com/u/4031903?s=80&u=79c16e8fa58748b65dd59bddc7b5240dcb6494c1&v=4) ](/w4w4n78)
picamera_basic_advanced_recipes/18461_106_0.txt
All reactions
picamera_basic_advanced_recipes/imshowpythonmacosnot_44_0.txt
hm, that doesn't make any difference either ... :-( Sorry - overlooked the C++ question - idk ...
picamera_basic_advanced_recipes/18461_43_0.txt
* [ Code ](/opencv/opencv) * [ Issues 2.4k ](/opencv/opencv/issues) * [ Pull requests 142 ](/opencv/opencv/pulls) * [ Discussions ](/opencv/opencv/discussions) * [ Actions ](/opencv/opencv/actions) * [ Projects 2 ](/opencv/opencv/projects) * [ Wiki ](/opencv/opencv/wiki) * [ Security ](/opencv/opencv/securit...
picamera_basic_advanced_recipes/sshx11forwardingprob_8_0.txt
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you wa...
picamera_basic_advanced_recipes/picamera_basic_recipes_6_0.txt
## 3.6. Capturing timelapse sequences ¶ The simplest way to capture long time-lapse sequences is with the [ ` capture_continuous() ` ](api_camera.html#picamera.PiCamera.capture_continuous "picamera.PiCamera.capture_continuous") method. With this method, the camera captures images continually until you tell it to st...
picamera_basic_advanced_recipes/18461_86_0.txt
**[ BoShaoLi ](/BoShaoLi) ** commented Oct 29, 2020
picamera_basic_advanced_recipes/18461_32_0.txt
## Use saved searches to filter your results more quickly
picamera_basic_advanced_recipes/18461_87_0.txt
I have the same question. Did you solve the problem?
picamera_basic_advanced_recipes/18461_227_0.txt
Contributor
picamera_basic_advanced_recipes/18461_198_0.txt
docker run --privileged -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -u 0 --device /dev/dri:/dev/dri --device-cgroup- rule='c 189:* rmw' -v /dev/bus/usb:/dev/bus/usb --rm openvino/ubuntu18_dev:update_1904
picamera_basic_advanced_recipes/18461_291_0.txt
---
picamera_basic_advanced_recipes/imshowpythonmacosnot_26_0.txt
\-- Edit -- ` print(cv2.getBuildInformation()) ` gives me this:
picamera_basic_advanced_recipes/picamera_advanced_recipes_2_0.txt
## 4.2. Capturing to an OpenCV object ¶ This is a variation on Capturing to a numpy array . [ OpenCV ](http://opencv.org/) uses numpy arrays as images and defaults to colors in planar BGR. Hence, the following is all that’s required to capture an OpenCV compatible image: import time import picam...
picamera_basic_advanced_recipes/sshx11forwardingprob_34_0.txt
Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On
picamera_basic_advanced_recipes/243406_40_0.txt
* [ Legal Information ](https://www.nvidia.com/en-us/about-nvidia/legal-info/) * [ Terms of Use ](https://developer.nvidia.com/legal/terms) * [ Privacy Policy ](https://www.nvidia.com/en-us/about-nvidia/privacy-policy/) * [ Contact ](https://developer.nvidia.com/contact) * [ Cookie Policy ](https://www.nvidia.com/en-us...
picamera_basic_advanced_recipes/18461_93_0.txt
Author
picamera_basic_advanced_recipes/imshowpythonmacosnot_98_0.txt
[ ![ gravatar image]() ]() [ ]() ( 2024-05-02 16:33:22 -0600 ) edit
picamera_basic_advanced_recipes/243406_26_0.txt
ssh -X nvidia@[IP]
picamera_basic_advanced_recipes/18461_132_0.txt
Copy link
picamera_basic_advanced_recipes/imshowpythonmacosnot_68_0.txt
* *
picamera_basic_advanced_recipes/18461_3_0.txt
[ ](https://github.com/)
picamera_basic_advanced_recipes/18461_237_0.txt
Copy link
picamera_basic_advanced_recipes/18461_360_0.txt
**[ arielkantorovich ](/arielkantorovich) ** commented Nov 14, 2023
picamera_basic_advanced_recipes/18461_262_0.txt
1- at your terminal, before the docker run type ` xhost + `
picamera_basic_advanced_recipes/18461_191_0.txt
* 👍 1 reaction
picamera_basic_advanced_recipes/18461_7_0.txt
Explore
picamera_basic_advanced_recipes/18461_216_0.txt
###
picamera_basic_advanced_recipes/18461_150_0.txt
Copy link
picamera_basic_advanced_recipes/18461_249_0.txt
> > ashrc > > where do you get that .bashrc file? when i ` nano ~/.bashrc ` i didnt see > anything about display
picamera_basic_advanced_recipes/imshowpythonmacosnot_75_0.txt
## Question Tools
picamera_basic_advanced_recipes/18461_284_0.txt
Sorry, something went wrong.
picamera_basic_advanced_recipes/18461_315_0.txt
###
picamera_basic_advanced_recipes/18461_186_0.txt
> I managed to solve it by making sure when I ssh into aarch64 that I use ssh > -Y user@host. This gives authorization to allow cv2.imshow() to display the > window. > [ gtk_init_check error solved > ](https://unix.stackexchange.com/questions/94497/org-eclipse-swt-swterror- > no-more-handles-gtk-init-check-failed-whil...
picamera_basic_advanced_recipes/18461_38_0.txt
[ Sign up ](/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser- name%3E%2F%3Crepo- name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header- repo&source_repo=opencv%2Fopencv)
picamera_basic_advanced_recipes/picamera_advanced_recipes_7_2.txt
pool = [ImageProcessor(self) for i in range(4)] self.processor = None def write(self, buf): if buf.startswith(b'\xff\xd8'): # New frame; set the current processor going and grab # a spare one if self.processor: self...
picamera_basic_advanced_recipes/18461_288_0.txt
**[ phelix001 ](/phelix001) ** commented Oct 4, 2022
picamera_basic_advanced_recipes/imshowpythonmacosnot_28_0.txt
Extra modules: Location (extra): /tmp/opencv-20190105-31032-o160to/opencv-4.0.1/opencv_contrib/modules Version control (extra): unknown
picamera_basic_advanced_recipes/18461_264_0.txt
`Note: xhost + could do the job n
picamera_basic_advanced_recipes/sshx11forwardingprob_33_0.txt
Reply
picamera_basic_advanced_recipes/18461_324_0.txt
Copy link
picamera_basic_advanced_recipes/imshowpythonmacosnot_12_0.txt
* [ imshow ](/questions/scope:all/sort:activity-desc/tags:imshow/page:1/)
picamera_basic_advanced_recipes/18461_310_0.txt
---
picamera_basic_advanced_recipes/18461_20_0.txt
* [ Topics ](https://github.com/topics) * [ Trending ](https://github.com/trending) * [ Collections ](https://github.com/collections)
picamera_basic_advanced_recipes/18461_371_0.txt
Projects
picamera_basic_advanced_recipes/18461_342_0.txt
Copy link
picamera_basic_advanced_recipes/picamera_basic_recipes_16_0.txt
## 3.16. Controlling the LED ¶ In certain circumstances, you may find the V1 camera module’s red LED a hindrance (the V2 camera module lacks an LED). For example, in the case of automated close-up wild-life photography, the LED may scare off animals. It can also cause unwanted reflected red glare with close-up subje...
picamera_basic_advanced_recipes/243406_29_0.txt
+#include <opencv2/highgui/highgui.hpp> #include <vpi/OpenCVInterop.hpp>
picamera_basic_advanced_recipes/18461_383_0.txt
You can’t perform that action at this time.
picamera_basic_advanced_recipes/18461_0_0.txt
Skip to content
picamera_basic_advanced_recipes/18461_95_0.txt
**[ Namburger ](/Namburger) ** commented Oct 29, 2020
picamera_basic_advanced_recipes/18461_207_0.txt
I also had the same issue when running inside of a docker container. To fix the issue and gain access to the X server and the display I found this tutorial very helpful.
picamera_basic_advanced_recipes/18461_100_0.txt
[ ![@BoShaoLi](https://avatars.githubusercontent.com/u/38877000?s=80&u=47b93b47c1e5e0d4d1f115250ff38f6c85c9f287&v=4) ](/BoShaoLi)
picamera_basic_advanced_recipes/243406_7_0.txt
Moved to TX2 forum for better support.
picamera_basic_advanced_recipes/sshx11forwardingprob_2_0.txt
Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community.
picamera_basic_advanced_recipes/picamera_basic_recipes_13_1.txt
- | nc my_server 8000 However, this recipe does serve as a starting point for video streaming applications. It’s also possible to reverse the direction of this recipe relatively easily. In this scenario, the Pi acts as the server, waiting for a connection from the client. When it accepts a connection, it starts s...
picamera_basic_advanced_recipes/18461_317_0.txt
edited