Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Image Processing with Cellular Neural Networks in Python
| Date | Stars |
|---|---|
| 2026-07-24 | 545 |
| 2026-07-25 | 545 |
| 2026-07-28 | 545 |
| 2026-07-30 | 545 |
| 2026-07-31 | 545 |
| 2026-08-02 | 544 |
| 2026-08-11 | 544 |
| 2026-08-12 | 544 |
| 2026-08-18 | 544 |
| 2026-09-20 | 544 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# PyCNN: Image Processing with Cellular Neural Networks in Python
[](https://travis-ci.org/ankitaggarwal011/PyCNN)
[](https://codecov.io/gh/ankitaggarwal011/PyCNN)
**Cellular Neural Networks (CNN)** [[wikipedia]](https://en.wikipedia.org/wiki/Cellular_neural_network) [[paper]](http://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=7600) are a parallel computing paradigm that was first proposed in 1988. Cellular neural networks are similar to neural networks, with the difference that communication is allowed only between neighboring units. Image Processing is one of its [applications](https://en.wikipedia.org/wiki/Cellular_neural_network#Applications). CNN processors were designed to perform image processing; specifically, the original application of CNN processors was to perform real-time ultra-high frame-rate (>10,000 frame/s) processing unachievable by digital processors.
This python library is the implementation of CNN for the application of **Image Processing**.
**Note**: The library has been **cited** in the research published on [Using Python and Julia for Efficient Implementation of Natural Computing and Complexity Related Algorithms](http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=7168488), look for the reference #19 in the references section. I'm glad that this library could be of help to the community.
**Note**: Cellular neural network (CNN) must not be confused with completely different convolutional neural network (ConvNet).

As shown in the above diagram, imagine a control system with a feedback loop. f(x) is the piece-wise linear sigmoid function. The control (template B) and the feedback (template A) templates (coefficients) are configurable and controls the output of the system. Significant research had been done in determining the templates for common image processing techniques, these templates are published in this [Template Library](http://cnn-technology.itk.ppke.hu/Template_library_v4.0alpha1.pdf).
### Further reading:
- [Methods for image processing and pattern formation in Cellular Neural Networks: A Tutorial](http://ai.pku.edu.cn/aiwebsite/research.files/collected%20papers%20-%20others/Methods%20for%20image%20processing%20and%20pattern%20formation%20in%20Cellular%20Neural%20Networks%20-%20a%20tutorial.pdf)
## Motivation
This is an extension of a demo at 14th Cellular Nanoscale Networks and Applications (CNNA) Conference 2014. I have written a blog post, available at [Image Processing in CNN with Python on Raspberry Pi](http://blog.ankitaggarwal.me/technology/image-processing-with-cellular-neural-networks-in-python-on-raspberry-pi).
The library was used in my paper [B3: A plug-n-play internet enabled platform for real time image processing](http://ieeexplore.ieee.org/document/6888614/) published in IEEE Xplore.
## Dependencies
The library is supported for Python >= 2.7 and Python >= 3.3.
The python modules needed in order to use this library.
```
Pillow: 3.3.1
Scipy: 0.18.0
Numpy: 1.11.1 + mkl
```
Note: Scipy and Numpy can be installed on a Windows machines using binaries provided over [here](http://www.lfd.uci.edu/%7Egohlke/pythonlibs).
## Example 1
```sh
$ python example.py
```
#### OR
```python
from pycnn import PyCNN
cnn = PyCNN()
```
**Input:**


**Edge Detection:**
```python
cnn.edgeDetection('images/input1.bmp', 'images/output1.png')
```

**Grayscale Edge Detection**
```python
cnn.grayScaleEdgeDetection('images/input1.bmp', 'images/output2.png')
```
![](https://raw.githubusercontent.com/aExcerpt of 7,513 characters
Read on GitHub69
6
3
2
2
1
John Allen · United States
1
1
1
1
1
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:a0ecccfddc8ebb33, topic:neural-network
matched fp:a0ecccfddc8ebb33, topic:computer-vision