ldci / OpenCV-Xojo

Using OpenCV with Xojo
10 stars 1 forks source link

OpenCV for 64-bit Windows #3

Open rock1110 opened 2 years ago

rock1110 commented 2 years ago

Hi,

I was hoping to read IPL images using Xojo and wondered if there's any update to make OpenCV work in the 64-bit Windows environment.

Thank you.

ldci commented 2 years ago

Hi Rock1110 I made some tests last year without success. I’ll test with the last Xojo framework, but I’ve moved to Apple M1 processor. We keep in touch. Regards

@.***[cid:821090F2-5DB6-48D0-A2B5-1D21831DC919]

François Jouen École Pratique des Hautes Études Doyen de la section des Sciences de la Vie et de la Terre Chaire Psychobiologie du Développement Laboratoire Cognitions Humaine et Artificielle (CHArt) EA 4004 FED 4246 Patios Saint-Jacques 4-14, rue Ferrus - 75014 Paris 01 53 63 61 64 / 06 87 13 76 81 @.**@.> www.ephe.frhttp://www.ephe.fr

Le 3 mai 2022 à 19:22, rock1110 @.**@.>> a écrit :

Hi,

I was hoping to read IPL images using Xojo and wondered if there's any update to make OpenCV work in the 64-bit Windows environment.

Thank you.

— Reply to this email directly, view it on GitHubhttps://github.com/ldci/OpenCV-Xojo/issues/3, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAXI3IOTG3CRNXNKFXDKJRLVIFOGTANCNFSM5U7RN2VQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

rock1110 commented 2 years ago

Much appreciated, Francois! FYI Recently I also submitted a similar request to Xojo in hopes of finding a paid consultant to get this done. Not sure if you're able to see that but wanted to bring to your attention. Thank you.

ldci commented 2 years ago

Hello I made some tests this last night. Some good news: Xojo is fully functional on new M1 Apple processor. I can also talk to OpenCV library with Xojo. Now the problems. First, Xojo has a lot of changed functions. Second, the last version of OpenCV (4.5.5) removed a lot of basic C functions from the core framework. Thus, samples that should work are broken. I wrote this OpenCV port for Xojo 6 years ago. At that time, OpenCV was 32-bit and offered about 600 functions written in C and easily accessible with Xojo. OpenCV is written mostly in C++. Many C functions are now obsolete. Too much work to do and actually no time Regards form France

@.***[cid:821090F2-5DB6-48D0-A2B5-1D21831DC919]

François Jouen École Pratique des Hautes Études Doyen de la section des Sciences de la Vie et de la Terre Chaire Psychobiologie du Développement Laboratoire Cognitions Humaine et Artificielle (CHArt) EA 4004 FED 4246 Patios Saint-Jacques 4-14, rue Ferrus - 75014 Paris 01 53 63 61 64 / 06 87 13 76 81 @.**@.> www.ephe.frhttp://www.ephe.fr

Le 3 mai 2022 à 21:22, rock1110 @.**@.>> a écrit :

Much appreciated, Francois! FYI Recently I also submitted a similar request to Xojo in hopes of finding a paid consultant to get this done. Not sure if you're able to see that but wanted to bring to your attention. Thank you.

— Reply to this email directly, view it on GitHubhttps://github.com/ldci/OpenCV-Xojo/issues/3#issuecomment-1116474675, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAXI3IODL52CMWYEEWMBYKTVIF4HBANCNFSM5U7RN2VQ. You are receiving this because you commented.Message ID: @.***>

rock1110 commented 2 years ago

Thank you for looking into this, Francois. Knowing much has changed in the new OpenCV, I am still wondering if a 'simple' task such as converting a multi-layer IPL image to BMP is achievable with a reasonably smaller effort. If you could point out specific OpenCV functions that are minimally required for this task and I will try to look into them from my end (out of my depth, frankly)...

ldci commented 1 year ago

Hi rock1110

I made a lot of different tests on macOS with Xojo 2022 Release 1.1

For intel X86_64 with OpenCV 3.0 Does not work

[cid:939DE454-1974-4880-94B1-C157944FBDA4]

If using a 32-bit library, it’s OK

Now with ARM 64-bit, some basic OpenCV basic functions such as image loading, move events and trackbar are OK. But we need the OpenCV 3.4.16. For higher versions, most of C functions are removed.

[cid:264F724A-65D3-4994-951D-0ADBF45E0CD7] But other functions are unsupported, mainly functions that call pointers. I’ve to explore the Xojo changes to understand why.

Regards

@.***[cid:821090F2-5DB6-48D0-A2B5-1D21831DC919]

François Jouen École Pratique des Hautes Études Doyen de la section des Sciences de la Vie et de la Terre Chaire Psychobiologie du Développement Laboratoire Cognitions Humaine et Artificielle (CHArt) EA 4004 FED 4246 Patios Saint-Jacques 4-14, rue Ferrus - 75014 Paris 01 53 63 61 64 / 06 87 13 76 81 @.**@.> www.ephe.frhttp://www.ephe.fr

Le 4 mai 2022 à 21:16, rock1110 @.**@.>> a écrit :

Thank you for looking into this, Francois. Knowing much has changed in the new OpenCV, I am still wondering if a 'simple' task such as converting a multi-layer IPL image to BMP is achievable with a reasonably smaller effort. If you could point out specific OpenCV functions that are minimally required for this task and I will try to look into them from my end (out of my depth, frankly)...

— Reply to this email directly, view it on GitHubhttps://github.com/ldci/OpenCV-Xojo/issues/3#issuecomment-1117720314, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAXI3INRMC5Q6AGSKZIXHQDVILEHLANCNFSM5U7RN2VQ. You are receiving this because you commented.Message ID: @.***>