Laex / Delphi-OpenCV

Project Delphi-OpenCV. Translation of OpenCV library header files in Delphi
500 stars 226 forks source link

Access Violation for video from 2 cameras #114

Closed StankevichSL closed 5 years ago

StankevichSL commented 5 years ago

Good day! It's my first project with openCV and I faced with a error of memory access. There are two cameras, web and IP. The image is obtained through the Tocvcamerasource component(s) and TocvIPCamSource and output to the corresponding Tocvviewfmx components. The components of the image output on the form are arranged so that one overlaps the other. Photo of components arrangement (https://cloud.mail.ru/public/DvXQ/QbeARbACN) When you start the program runs from 0.5-10 seconds, and then crashes with an error Link to the photo with an error(https://cloud.mail.ru/public/LAcA/h8FLJ5fUe) If you go on the chain first pulls in the System.pas @FwdLoop: FILD QWORD PTR [EAX+ECX] Next, in procedure TocvViewFMX.The Paint in the unit ocv.comp.ViewFMX IPLImageToFMXBitmap(FImage.IpImage, BackBuffer); I tried to spread the elements of the video display to different angles, so that they do not intersect, everything works stably. It is logical to assume that the problem is hidden in the rendering. My thoughts on the work of the program remain on the verge of mysticism and dancing with a tambourine. Any idea where to dig? The source code will be provide on demand.

Laex commented 5 years ago

Fixed [#114]