从Python中的JPG文件获取URL

发布于 2025-01-17 22:56:26 字数 297 浏览 3 评论 0原文

我正在制作一个面临检测的程序。当它检测到未知面时,它将保存框架并将文本发送到电话号码列表。我面临的问题是,我想将(该框架)保存的JPG文件附加到文本上。但是,我要发送文本的方式需要是URL。我没有在云托管方面做得太多,我认为这是获得URL的最简单方法。另外,它确实必须是HTTP/HTTPS URL,我尝试执行本地文件URL,但实际上确实必须是Web。云托管的选择是简单的选择,还是只托管持有图像的本地HTML网站会更容易?如果这是更容易的选择,我该如何在Python中托管?

我已经寻找了云托管选项,但是我不确定免费使用的是免费的,以及如何从Python那里进行。

I'm making a program that does face detection. When it detects an unknown face, it saves the frame and sends a text to a list of phone numbers. The issue I'm facing is that I would like to attach the jpg file that is saved (of that frame) to the text. However the way I'm sending the text it needs to be a url. I haven't done much with cloud hosting which I think would be the easiest way to get a url for it.. what would be a good place to do that that's free? Also, it does have to be a http/https url, I tried doing the local file url but it does actually have to be a web one. Would cloud hosting it be the easy option, or would it be easier to just host a local html site that holds the image? And how would I go about hosting it in python if that is the easier option?

I've looked for cloud hosting options, but I'm not really sure what to use that's free, and how to go about doing it from python.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

节枝 2025-01-24 22:56:26

我相信,本网站不允许使用服务的建议,但是您确实需要在线托管它,因为当您发送图像时,它通常不会发送实际文件。它只是告诉reciepiat在哪里寻找文件,因此您和Reveviver都需要在网站上加速。我知道可以工作的一种方法是获得Firebase子域,但这将是更多的工作,但是如果您不打算每天发送10多个或有50个,那应该是一个可靠的解决方案人们看着他们。

I believe that recommendation of services is not allowed on this site, but you do need to have it hosted online, because when you send an image it usualy doesn't send the actual file. It just tell the reciepiat where to look for the file, so both you and the reveiver need to have acces to the site. A way that I know could work is getting a firebase sub-domain, but that would probs be more work then needed, but it should be a solid solution if you aren't planning on sending over 10 of then a day or to have 50 people look at them.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文