Hikvision Hd Ipc H.264 Honeywell Hosafe Hootoo Herospeed Htc Heden Huacam Hiseeu H.264 Network Dvr Hiwatch Hunt Heimvision Huawei Hdipc Hipcam Hilook Hisilicon More.
Geovision Grandstream Gw Security General Genbolt Gadspot Generic Grandtec Grundig Goahead Guudgo Geeya Genius Ganz Grand Google Galaxy Gadnic Geeni Going More.
first argument will be the camera class, the second argument will be the jpeg image string.3g Ipcam 360 Eye 3svision 3xlogic 3com 3r 307 Hi Silicon 3eyes3Īxis Amcrest Acti Avtech Arecont Apexis Anran Abus Airlive Annke Adt Airsight Airlink Agasio Alhua Allnet Asix Android Alecto Amovision More.īosch Besder Brickcom Boavision Beward Bcs B-series Basler Bluestork Bionics Belkin Blitzwolf B Series Bascom Bipcam B-qtech Bl Ip-cam Black Buitencamera Bullet More.Ĭhina Cisco Cp Plus Ctronics Compro Cdr King Canon Cotier Conceptronic Cctv Chinavasion Cantonk Camhi Cooau Cloud Ip Camera Chacon Cctvhotdeals Choice Cloud Cnb More.ĭ-link Dahua Db Power Dericam Dm365 Ipnc Digitus Dvr Digoo Denver Digital Watchdog Dynacolor Defeway Doorbird Digimerge Dax Digicom Digisol Dvtel Dome Dinon More.Įasyn Edimax Elro Escam Ezviz Embedded Net Dvr Eminent Elp Eufy Everfocus Eyesight Ezcam Easyse Eneo Esky Esp32 Eyeplus Eyecam Ebode Eyespy247 More.įoscam Floureon Flir Fdt Fine F-series Flexwatch Funlux Faleemi Fisotech Focuscam Funxwe Falcon Falcon Eye Fenton Fujtech Fam Fayele Forticam Finesight More. Default: 80Ĭamera.onJpegReceived Callback that will be executed if a jpeg image is retrieved. If you put this number high you will get a higher quality image but it will take longer to retrieve.
The port information will have to be set before initialisation.Ĭamera.UDP_PORT_HOST Host udp port default: 5123Ĭamera.UDP_PORT_TARGET Target udp port default: 5000Ĭamera.SOCKET_TIMEOUT Sets the socket timeout in seconds.Ĭamera.NB_FRAGMENTS_TO_ACCUMULATE How many packets to get a full image. (if true requires numpy and cv2)Ĭbug If true prints out some debugging information.
(if true requires numpy and cv2)Ĭamera.addTimeStamp Add a timestamp to the image. (if true requires numpy and cv2)Ĭamera.vertical_flip Flip camera vertically. VariablesĬamera.horizontal_flip Flip camera horizontally. RGBImage = cv2.imdecode(np.fromstring(jpeg, dtype=np.uint8), cv2.IMREAD_COLOR)Ĭamera.initialize() Set some variables and attempt to connect to the camera for the first time.Ĭamera.retrieveImage() Retrieve a jpeg string from the camera.Ĭamera.start() Start a while true loop staying connected, this will not do anything if onJpegReceived isn't set.Ĭamera.loop() Start a while loop doing retrieveImage() until a socket error occurs. But i had since gotten into Home Asssistant and got the idea to get it working in there since my instance ran locally so it should be able to access the camera.
Which made owning this camera quite useless. However after a couple of years this brand dissappeared and with it their services so i couldn't connect to it outside of my own network using this app. So i had this chinese camera laying around, it had this feature that you could access it from outside your home without the need for port forwarding. I rewrote it to run as a class instead of an application. Class to retrieve camera images from cameras using the p2p protocolįirst of all i just wrote it to work as a class, the original connection and retrieval process has been made by Jheyman in his videosurveillance script.