Computer Engineer currently working as Solution Support Engineer @ SAP
- ๐ญ Iโm currently working on ABAP
- ๐ฑ Iโm currently learning Go, Image Processing & Data Science
- โก Technologies: Python, C, C++, ABAP, Image Processing, S/4HANA, SAP ECC
Content-Aware Scaling using Seam Carving method with different algorithms for energy mapping
License: MIT License
I'm trying to implement the Canny edge detector in the BackwardEnergy class for energy mapping by adapting the code from https://github.com/FienSoP/canny_edge_detector.
I've made some adjustments to call the edge detector by using the 'be.canny(img)' statement in the main program sc.py but I'm getting an 'AttributeError' when trying to run the program:
foo@bar ~ % python3 sc.py -in image.jpg -scale 0.5 -seam h -energy c
0%| | 0/320 [00:00<?, ?it/s]
Traceback (most recent call last):
File "sc.py", line 236, in <module>
img = resize(img, SCALE)
File "sc.py", line 40, in resize
img = seamCarving(img)
File "sc.py", line 127, in calculateEnergy
energy_map = be.canny(img)
File "~/src/backward_energy.py", line 154, in canny
self.energy_map = self.canny_edge_detector.detect(img, sigma=1.4, kernel_size=5, lowthreshold=0.09, highthreshold=0.17, weak_pixel=100)
AttributeError: 'CannyEdgeDetector' object has no attribute 'detect'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.