From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by c5ff346549e7 (Postfix) with ESMTP id F38B15D5 for ; Tue, 15 Jan 2019 01:32:31 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.56,479,1539640800"; d="scan'208";a="364055573" Received: from sympa.inria.fr ([193.51.193.213]) by mail2-relais-roc.national.inria.fr with ESMTP; 15 Jan 2019 02:32:30 +0100 Received: by sympa.inria.fr (Postfix, from userid 20132) id BD0B38256A; Tue, 15 Jan 2019 02:32:30 +0100 (CET) Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id AB72F7FEFC for ; Tue, 15 Jan 2019 02:32:21 +0100 (CET) Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=mlists@ligand.eu; spf=Pass smtp.mailfrom=mlists@ligand.eu; spf=None smtp.helo=postmaster@relay11.mail.gandi.net IronPort-PHdr: =?us-ascii?q?9a23=3ASbgKGB8utdculP9uRHKM819IXTAuvvDOBiVQ1KB3?= =?us-ascii?q?0escTK2v8tzYMVDF4r011RmVBdWds6oMotGVmpioYXYH75eFvSJKW713fDhBt/?= =?us-ascii?q?8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1?= =?us-ascii?q?Ifn+FpLPg8it2O2+557ebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+?= =?us-ascii?q?RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTF?= =?us-ascii?q?UACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMNboRr4oRzut86ZrSAfpiC?= =?us-ascii?q?gZMT457HrXgdF0gK5CvR6tuwBzz4vSbYqINvRxY7ndcMsVSmVdUchfWSxPDJ2h?= =?us-ascii?q?YYQNAeoPPulZoIfmqlsSrha+BxWgCP/1xzJKgHL9wK000/4mEQHDxAEuH8gOv2?= =?us-ascii?q?7SrNrpM6cSUPu1x7TVwDrddfNZxzH96IfWfRA7vPqBWrdwcc7QyUk0CwPFlU6d?= =?us-ascii?q?qYjkPzOazOsNtXWU4/B+WuKykmMqrRx6rDaoxscpkIbJh4QVx0jF9SV/2oY1JM?= =?us-ascii?q?e3RFR1Yd6+CJdQuCCaN5d2QsM/WG5kojo1yroDuZO9YSMEy4wnygbBZ/CacYWE?= =?us-ascii?q?+BDuWPqLLTtlhn9oe6iziwi8/ES9zOD3S9O630xQriVfl9nBrnAN2ALX6siAUv?= =?us-ascii?q?Z95Fmu2TKV2AHT9+1IPFo4la/BJJ4gxr48jJUTvl7FHiDrmUX6lqmWeVs4+uSw?= =?us-ascii?q?6uTnZKvppoOEOoNqlw3zML4il86jDegiLwQDXWuW9f6i2LDt4EH1WLBKgec3kq?= =?us-ascii?q?ndvpDaP8MbpquhDg9Q1oYj6g2/Dyu90NkDmXkHLV1FdwiBj4f0IV3BPu34Ae+l?= =?us-ascii?q?g1uwiDdr2+zGPrr5D5rRNHfDlbPhca95605d0woz0ctS54lUC7EEOPL8QFX9tN?= =?us-ascii?q?3eDh8jMgy72fzrCNtn1tBWZWXaIa6CMKTIvFyV4+s1a8+BaYscvTvyIv1ts/jt?= =?us-ascii?q?jGQ5nkUQVayk0pISLnG/SKdIOUKcNFT2i9EKFmYR9iAzVuHsh1CYGWpWY3epQ7?= =?us-ascii?q?kU4jA0AYSqS4reENP+yIed1Tu2S8UFLltNDUqBRDKxL93dCqU8LRmKK8okqQQq?= =?us-ascii?q?EL2oSosvzxar7Vaoz7toJ+zYvCAF58u6iIpFotbLnBR3zgRaStyH2jjUHWV1kW?= =?us-ascii?q?oOS3k7wfIn+BEv+hK4yaF9xsdgO5lT6vdOCFtoL5PYxv0jUpb3UwPFONiATlqn?= =?us-ascii?q?BNOrHWNpQw=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0ACAQD1Nj1ch+eyRtljHAEBAQQBAQcEA?= =?us-ascii?q?QGBZYJqTzOEKIh5ixJQAQEGUmOBIYgOkEgNI4RJAoI/GgcBBDQSAQMBAQIBAQE?= =?us-ascii?q?BARMBAQEIDQkIKSMMgjopAYJmAQEBAwEjDwEFQQULBAcOCgICJgICVwYbgxoBg?= =?us-ascii?q?XQFDAutJ4EvhUKEa4ELiBqDGhd4gQeDdS6DEwsChGqCNSICkHqRCgmHHIpkCBi?= =?us-ascii?q?CMY9OjwaLZoFdgXcfLiYSO4JtCIIeDgmDS4E+iSQwA4sPAQE?= X-IPAS-Result: =?us-ascii?q?A0ACAQD1Nj1ch+eyRtljHAEBAQQBAQcEAQGBZYJqTzOEKIh?= =?us-ascii?q?5ixJQAQEGUmOBIYgOkEgNI4RJAoI/GgcBBDQSAQMBAQIBAQEBARMBAQEIDQkIK?= =?us-ascii?q?SMMgjopAYJmAQEBAwEjDwEFQQULBAcOCgICJgICVwYbgxoBgXQFDAutJ4EvhUK?= =?us-ascii?q?Ea4ELiBqDGhd4gQeDdS6DEwsChGqCNSICkHqRCgmHHIpkCBiCMY9OjwaLZoFdg?= =?us-ascii?q?XcfLiYSO4JtCIIeDgmDS4E+iSQwA4sPAQE?= X-IronPort-AV: E=Sophos;i="5.56,479,1539640800"; d="scan'208";a="364055525" Received: from relay11.mail.gandi.net ([217.70.178.231]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jan 2019 02:32:21 +0100 Received: from webmail.gandi.net (webmail5.sd4.0x35.net [10.200.201.5]) (Authenticated sender: mlists@ligand.eu) by relay11.mail.gandi.net (Postfix) with ESMTPA id 65467100004; Tue, 15 Jan 2019 01:32:20 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Tue, 15 Jan 2019 10:32:20 +0900 From: Francois Berenger To: Kishorekumar Neelamegam Cc: caml-list@inria.fr In-Reply-To: References: Message-ID: <6cbad46cf4fb8d24005f23749d9d5a61@ligand.eu> X-Sender: mlists@ligand.eu User-Agent: Roundcube Webmail/1.1.2 Subject: Re: [Caml-list] Image processing like opencv in OCaml Reply-To: Francois Berenger X-Loop: caml-list@inria.fr X-Sequence: 17300 Errors-to: caml-list-owner@inria.fr Precedence: list Precedence: bulk Sender: caml-list-request@inria.fr X-no-archive: yes List-Id: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On 15/01/2019 03:25, Kishorekumar Neelamegam wrote: > Hello, > > I have a python code which i would like to convert it to OCaml. > > The library takes a PNG and removes the border, strips horizontal > lines, crops the image to pieces, denoises and resizes again. > > We use opencv. > > I searched around in opam, github to find the following link that > performs some functions that i need. > > * http://pauillac.inria.fr/camlimages/ 3 [1] > > The below two links demonstrate an FFI - “extern C” approach. > > * FFI interface to opencv https://github.com/tovbinm/ocaml-faces 2 > [2] > * FFI interface to opencv https://github.com/ChesleyTan/ascii-chat 2 > [3] > > Are there packages in OCaml for imageprocessing like opencv ? I did not use them, but there are bindings to ImageMagick in opam (imagemagick and magic), which might give you access to some of the operators your are looking for. This is not OpenCV though... > Should i take the FFI interface to opencv from OCaml ? > > Your thoughts are welcome. > > Kishore > > > > Links: > ------ > [1] http://pauillac.inria.fr/camlimages/ > [2] https://github.com/tovbinm/ocaml-faces > [3] https://github.com/ChesleyTan/ascii-chat -- Caml-list mailing list. Subscription management and archives: https://sympa.inria.fr/sympa/arc/caml-list https://inbox.ocaml.org/caml-list Forum: https://discuss.ocaml.org/ Bug reports: http://caml.inria.fr/bin/caml-bugs