# Transmitting image from a wifi camera

**URL:** <https://forum.opencv.org/t/transmitting-image-from-a-wifi-camera/2295>\
**Category:** Python\
**Tags:** videoio\
**Created:** [March 22, 2021, 10:44am UTC](https://forum.opencv.org/t/transmitting-image-from-a-wifi-camera/2295 "2021-03-22T10:44:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/mike/32/4250_2.png) [@mike](https://forum.opencv.org/u/mike)\
**Post date:** [March 22, 2021, 10:44am UTC](https://forum.opencv.org/t/transmitting-image-from-a-wifi-camera/2295/1 "2021-03-22T10:44:40Z")

</div>

Hey there, can anyone tell me how to transmit the image from action camera SJ8air (or similar) via WIFI in my python code? cv.VideoCapture(0) is not working. I’ve tried to add some arguments like: cv.CAP\_DSHOW and so on and it’s still not working.

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [March 22, 2021, 12:53pm UTC](https://forum.opencv.org/t/transmitting-image-from-a-wifi-camera/2295/2 "2021-03-22T12:53:26Z")

</div>

[see here for a wonderful explanation](http://sj4000programming.sourceforge.net/0.7.0/html/book.html#wirelessconn)

chapter 3 tells us, that you can connect to a webserver via http (so you could try : `VideoCapture("rtsp://192.168.1.254:554")` and hope they use some known protocol)

chapter 2 shows, that you can also connect it via usb, which would make `VideoCapture(some_number)` work

good luck !

---

<div class="post-metadata">

**Author:** ![mike](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/mike/32/4250_2.png) [@mike](https://forum.opencv.org/u/mike)\
**Post date:** [March 22, 2021, 5:07pm UTC](https://forum.opencv.org/t/transmitting-image-from-a-wifi-camera/2295/3 "2021-03-22T17:07:11Z")

</div>

Thanks a lot! It works

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [March 22, 2021, 7:29pm UTC](https://forum.opencv.org/t/transmitting-image-from-a-wifi-camera/2295/4 "2021-03-22T19:29:55Z")

</div>

@mike , could you please make another reply with what worked _exactly_, so we got some 1st hand experience here ?

---

<div class="post-metadata">

**Author:** ![mike](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/mike/32/4250_2.png) [@mike](https://forum.opencv.org/u/mike)\
**Post date:** [March 23, 2021, 7:10am UTC](https://forum.opencv.org/t/transmitting-image-from-a-wifi-camera/2295/5 "2021-03-23T07:10:21Z")

</div>

Well, I’ve just used:  
capture = cv.VideoCapture(“rtsp://192.168.1.254:554”)  
and then I worked with the video in while loop

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [April 21, 2021, 7:42pm UTC](https://forum.opencv.org/t/transmitting-image-from-a-wifi-camera/2295/6 "2021-04-21T19:42:31Z")

</div>

2 posts were split to a new topic: [DSHOW VideoCapture from USB device shows garbage data](https://forum.opencv.org/t/dshow-videocapture-from-usb-device-shows-garbage-data/2901)
