Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http jpg streaming #161

Merged
merged 11 commits into from
Dec 27, 2024
Merged

http jpg streaming #161

merged 11 commits into from
Dec 27, 2024

Conversation

nihui
Copy link
Owner

@nihui nihui commented Nov 1, 2024

stream camera image over http 🥹

  • get ip
  • exclude android
  • doc update
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>

int main()
{
    cv::VideoCapture cap;
    cap.open(0);

    cv::VideoWriter http;
    http.open("httpjpg", 7766);

    cv::Mat bgr;
    while (1)
    {
        cap >> bgr;
        http << bgr;
    }

    return 0;
}

图片

@nihui nihui mentioned this pull request Dec 26, 2024
@nihui nihui merged commit 8b1a95d into master Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant