Jump to content

alvise

Members
  • Posts

    209
  • Joined

  • Last visited

Posts posted by alvise

  1. 7 minutes ago, dadreamer said:

    There exists an easier callback variation, that doesn't involve calling PostLVUserEvent. I have used it few times in the projects with VLC video streaming from several cameras. It's an asynchronous method too, but it works for sure. The main point is that on the diagram we call DSNewPtr and pass new pointer to the library. When the callback is called, it just writes data by that pointer. In LabVIEW we just read the data by the pointer constantly and process it, if necessary. It's good for common video translation or for simple image processing, when not each video frame is required. Still needs the DLL to be written/compiled though.

    I have no idea how to do this, if anyone guides me I can go step by step :)

  2. Dadreamer, if you're talking about something like this, I tested it and couldn't get a picture.

     

    image.png.9ec35d9a758bb5138aa5b68479670fbb.png

     

    38 minutes ago, Rolf Kalbermatter said:

    The LabVIEW Get Image method may look slightly better since LabVIEW has minimal control over when someone may draw into that control. But it most likely won't avoid the problem completely.

    With get image, I get the image of the VI that I am trying to get the image from, everything works fine, but it does not get the image. If I take a numeric and change it on the viewing screen, the change is immediately visible on the 2D picture screen, but the camera image is not visible.

    image.png.f74811ab1622ed430829f27ef30699fb.png

    image.png.abf7bad99b3d0def66f7e3bfca6fdaea.png

     

  3. In 2D picture, the image of the camera is not taken, if I add different while loops, it still does not solve the problem because it cannot read the video from the picturebox.

    If I press the quit button, I get an error as follows.

    image.png.4edfb232980068f19b1a515868fbafe6.png

     

    image.png.fb40dec9336a70c50ac7725f44a9ee92.png

    The picturebox only works once and then there is no visible data exchange. Because of this, no picture can be taken from here. What I don't understand is how does this happen?

  4. As I understand from you, I made an arrangement like the one below, but I did not add the event structure to read the picture because the event structure only works once when the start button is pressed.
    But this shouldn't be a problem. Also, I can't read a picture from the picturebox at the moment, I'm just adding a picture to the picturebox. What is the reason for this?

    image.png.75279184373279dc508913e49aed9e35.png

    it tries to show the photo I added on the display screen (picturebox) and the image from the camera at the same time.I just want to convert the image in the picturebox to an IMAQ image :)

    image.png.e8c0f75c079fada9ba1f39ff9dfe2b30.png

     

  5. In this example, I want to use the stream displayed in the pictureBox with IMAQ, but I can't get the picture from the picture box. I tried many ways, but I'm encountering problems.
    I've gone through the examples in the forum and tested, but haven't been able to find the exact solution.I read the discussion here, I did some tests, but I didn't get any results.

    In the examples here, I just added a picture to the Picturebox. I couldn't read the video from the Picturebox.

    I am getting an error like in the picture, what could be the reason?

    image.png.9de5b7beec70df4097c987fe560f3d9c.png

    Can you help with this ?

     

    Get Image Data From PictureBox.vi

  6. I'm currently struggling with PTZ control and I haven't really figured out how to implement it.

    image.png.5fdc1306ea3f0e69585df88ae9cb8120.png

    image.png.6d888db787ca89366a08e624e671d2fb.png

    I have come to the final stage of this ip camera.

    Here it says that the LPVOID structure receives PTZ_POS information, but I don't know if I am giving it correctly. It wants as buffersize(byte) how these values should be given. I am controlling the zoom with the code below, but I think I made a mistake and the motors are making noise. Can someone help me before I burn the motors :)

    PTZ POS SET.vi

  7. I created it as you said, now I can get images from two channels at the same time. I turn it off and on every time, there is no problem. Of course, I don't know if there is still a problem.It detects two users at each login. Each user uses a different channel.

    Session values are based on one channel opening earlier than the other.login count 12-11/12-13

    image.png.dbb08fa96034dc1596d519588d9318bf.png

    image.png.47508cfc9b690ed76879af59cd851709.png

    Your comment is important in this regard.If that's good I'll switch to PTZ control.

     

    113624656_Hikvision-labviewSDK-v1.0.1.rar

  8. 1 hour ago, Rolf Kalbermatter said:

    I was afraid you would say something like this! Good luck on that! You will need it! And you do not want to use IMAQdx here but the IMAQ Vision library. Still, you will need a lot of patience. This so far was just foreplay in comparison to what expects you to get that one working! And I'm absolutely not kidding here, or even slightly exaggerating. Expect to suffer and feel a lot of pain on the path there.

    Sometimes when I can't remember the names of some jobs, I remember the names of the functions inside, I say it right away, it's not a problem because it's mostly clear what I mean :)

    I realize I have a lot more work to do since I'm trying to build an SDK exactly.I am aware of the mountain standing in front of me :)
    -Reading 2 channels of video from one ip address at the same time.
    -Using reading videos with NI-VISION.
    -Control the PTZ.

  9. for the dadreamer I took on what he said :) and created an example using System.windows.form and picturebox and it works too.I do not know if it is the right way.
    When I test the sample you sent, sometimes random numbers appear on the screen.What could be the reason for this?

    The camera I'm using right now has 2 channel video. I think there is a need for a callback when trying to read both channels at the same time.

    What I need is to use this image with IMAQdx afterwards.

    Really thanks for everything.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.