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

imdecode missing #20

Closed
shineworld opened this issue Jun 25, 2022 · 2 comments
Closed

imdecode missing #20

shineworld opened this issue Jun 25, 2022 · 2 comments

Comments

@shineworld
Copy link

shineworld commented Jun 25, 2022

Hi Laex,
Usually, with OpenCV, I use Python but primary I'm a Delphi programmer.
I'm testing Delphi-OpenCV-Class with an IP camera that returns MJPEG (JPEG) frames.
I can't use VideoCapture because the camera uses a proprietary UDP flow to return frames.
In Delphi-OpenCV-Class I was not able to find the cv::imdecode implementation to convert JPEG flow of bytes to TMat object,

Can you add it so I can continue to debug the library?
Unfortunately, my skills on so complex porting are not enough to try to modify the library by myself :(

Thank you for your support.

@shineworld
Copy link
Author

shineworld commented Jun 25, 2022

I've tried to change the library to support imdecode, at least one of 2 ways.
Seems to work but I'm not sure it is well done because I don't know enough about your library.

shineworld@5b446f1

Image (JPEG) received from UDP with the proprietary protocol are read,
translated to TMat monodimensional array, decoded from JPEG to a tree-dimensional array, and showed native (left) and after some filters (right).

image

@Laex
Copy link
Owner

Laex commented Dec 15, 2022

Thanks

@Laex Laex closed this as completed Dec 15, 2022
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

No branches or pull requests

2 participants