Open DayanaYuan opened 1 year ago
Hi @yangyangyang-github, I would be glad to answer you but I need more information about the issue. Could you please be more explicative about it?
My code is: import cv2 import numpy as np from netaddr import *
address = "fe80::76fe:48ff:fe43:e516" cap = cv2.VideoCapture("http://[%s]:8554/live/scene" % address) if (cap.isOpened()== False): print("Error opening video stream or file") while(cap.isOpened()): ret, frame = cap.read() if ret == True: cv2.imshow('Tobii Pro Glasses 2 - Live Scene',frame) if cv2.waitKey(1) & 0xFF == ord('q'): break else: break cap.release() cv2.destroyAllWindows() when the program are address = "192.168.71.50" and cap = cv2.VideoCapture("http://%s:8554/live/scene" % address) , it can run successfully. However, when it is address = "fe80::76fe:48ff:fe43:e516" and cap = cv2.VideoCapture("http://[%s]:8554/live/scene" % address), it it cannot run successfully.
------------------ 原始邮件 ------------------ 发件人: "ddetommaso/TobiiGlassesPyController" @.>; 发送时间: 2023年2月2日(星期四) 晚上8:16 @.>; @.**@.>; 主题: Re: [ddetommaso/TobiiGlassesPyController] IPV6 address (Issue #35)
Hi @yangyangyang-github, I would be glad to answer you but I need more information about the issue. Could you please be more explicative about it?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
Hi @yangyangyang-github
it's not easy to understand the situation from your snippet. It seems that IPv6 is not enabled in your network manager. I suggest you to check out the wiki and try a simple IPv6 connection test first.
https://github.com/ddetommaso/TobiiGlassesPyController/wiki/2.-Network-connection
An error occurred when I used an IPV6 address. I shall be glad to receive your reply