rehanguha / brisque Goto Github PK
View Code? Open in Web Editor NEWBlind/Referenceless Image Spatial QUality Evaluator (BRISQUE)
License: Apache License 2.0
Blind/Referenceless Image Spatial QUality Evaluator (BRISQUE)
License: Apache License 2.0
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
pip install brisque numpy scipy scikit-image Pillow
import imquality.brisque as brisque
import PIL.Image
path = 'page_22.png'
img = PIL.Image.open(path)
brisque.score(img)
Expected behavior
N/A
Screenshots
up
Log
AttributeError: Module 'scipy' has no attribute 'ndarray'
Additional context
Add any other context about the problem here.
Describe the bug
I have an error message during code run;
File "\Python311\site-packages\libsvm\svm.py", line 91, in gen_svm_nodearray elif scipy and isinstance(xi, scipy.ndarray): ^^^^^^^^^^^^^ File "\Python311\site-packages\scipy_init_.py", line 152, in getattr raise AttributeError( AttributeError: Module 'scipy' has no attribute 'ndarray'
To Reproduce
Steps to reproduce the behavior:
Expected behavior
get score
Is your feature request related to a problem? Please describe.
Often when performing operations on images our solution will greyscale an image on importing it. In my own project I have a set of images I want to run several image metrics on. So i have already turned the images from multi-channel to single-channel. However now when I call score(image) I get an error saying the image cannot be grayscaled.
Describe the solution you'd like
The 'Score' method should check the channels of an image and grayscale it only if the channels > 1. else it should proceed without attempting to grayscale the already single channel image.
Describe alternatives you've considered
Adding fake channels to my grayscale so it appears to be multichannel
Hi, wonderful job.
I was wondering if adding an input of Ndarray image would be more useful in practice. I personally use brisque to read images from videos, so that in this way using Ndarray image as input seems more friendly to users.
No worries, I already change the source code to achieve reading Ndarray, but I think for further improvement, maybe my suggestion could be helpful.
Hello, Thank you for providing this amazing repository.
I was wondering if there are min and max values for brisque score.
Thanks in advance.
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.