mercredi 6 novembre 2019

how to store an image captured on camera directly into a cloud server using qt?

I have to take a picture from the camera of the device and send the image directly into cloud server, i am very new to Cloud and storage so i need some help with this topic.

i am successfully able to open up the camera and take a picture and store the picture onto my local storage. please help me to expand this code.

Main_management::Main_management(QWidget *parent)
    : QWidget(parent)
{
    cam=new QCamera();
    cam->setCaptureMode(QCamera::CaptureStillImage);
    view=new QCameraViewfinder();
    view->show();
    cam->setViewfinder(view);
    vb1.addWidget(view,10,Qt::AlignTop);
    pb=new QPushButton("capture");
    vb1.addWidget(pb,0,Qt::AlignBottom);
    this->setLayout(&vb1);
    imageCapture=new QCameraImageCapture(cam);
    cam->start();
    connect(pb,SIGNAL(clicked()),SLOT(Capture_image()));
        cam->start();
}

Main_management::~Main_management()
{

}

void Main_management::Capture_image()
{
    qDebug()<<Q_FUNC_INFO<<endl;
        imageCapture->capture("C:/Users/vinay/Documents");
    }

as you can see in the slot i am storing the image onto the local storage please can somone guide me as how to use any cloud storage API's and push the image onto a server.

Aucun commentaire:

Enregistrer un commentaire