Cannyedge-detector is a project mainly written in Scala, it's free.
Canny edge detector implemented in Scala
This is an implementation of the famous Canny edge detection algorithm written in Scala. In order for the code to work, the javax.imageio classes are required. There are no other dependencies.
Simply type sbt compile
in the root project directory.
Here is the simplest working example:
import com.stephentu._
import java.io._
import javax.imageio._
val edges = EdgeDetector.detectEdges(ImageIO.read(new File("myimage.png")))