Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image processing and Computer Vision

I would like to use Smalltalk (Pharo) to better refactor my image processing and computer vision code/algorithms, written in other languages. I have not found a lot of examples online where Smalltalk is used for processing images (or video frames). I would like to know whether

i) there is an opencv/image/computer vision library available for Smalltalk that is easily installed or

ii) someone could give an example of how to access the pixel data in an image and threshold it using Smalltalk.

like image 821
awyr_agored Avatar asked Apr 23 '16 00:04

awyr_agored


People also ask

What is computer vision in image processing?

Computer vision (CV) and image processing are two closely related fields that utilize techniques from artificial intelligence (AI) and pattern recognition to derive meaningful information from images, videos, and other visual inputs.

Is image processing important for computer vision?

However, Image Processing is also very important to prepare images for Computer Vision models, such as applying segmentation or labeling known objects. Computer Vision generally refers to the technologies involved in allowing computers to make sense of images.

Are computer vision and image processing same in AI?

Computer vision and image processing are two completely different tools used for various purposes, but both image processing and computer vision are always about an image.

What is digital image processing image analysis and computer vision?

Digital Image Processing deals with capturing and translating a visual signal into a digital image. As such, it can be viewed as the area that studies the process of obtaining a visual signal of the world and transforming it in order to make it interpretable.


2 Answers

For the first question, you can maybe write your own interface using FFI to the OpenCV C-API. For the second question, I think it's easy to use ImageReadWriter formFromFileNamed: and then can use pixelValueAt: to read the value, threshold, and then write back by pixelValueAt:put:.

like image 58
fireant Avatar answered Nov 06 '22 08:11

fireant


There is a recent binding to OpenCV (for Pharo 7 a.t.m.) at https://github.com/feenkcom/gt4opencv

like image 33
Stephan Eggermont Avatar answered Nov 06 '22 08:11

Stephan Eggermont