How to write this equation into Python code? [closed] - python

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 17 hours ago.
Improve this question
I am running a programme about Real-time Road Congestion Detection Based on Image Texture Analysis that calculates the traffic density which is added up by the average energy and average entropy from the GLCM of a greyscale.
I am using scikit-image to calculate the GLCM and the energy from greyscale but it cannot calculate the entropy.
skimage.feature.graycomatrix
skimage.feature.graycoprops
How can I write this equation of calculating entropy feature into Python code? I am not good at math and I am a beginner in Python.

Related

Constrained genetic algorithm dynamic optimization [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed yesterday.
Improve this question
I have data of 2 coloumns . 1st coloumn is data for Inflow of water reservoir with respect to time t and 2nd coloumn is demand with respect to time.
Objective function is to minimise spill of water.
Constraints are
Storage(t)=storage(t-1) +I(t)-D(t)-Spill(t) for all time t
Here storage and spill is unknown parameter.. and we have to minimize spill...
How can I do this in genetic algorithm optimization in python/matlab.
I am expecting the code to do this.

Difficulty in classification of roads from satellite images [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 days ago.
Improve this question
I am trying to create a machine learning algorithm which would help in categorizing the types(highway, city-road) of roads in a satellite image.
I've tried using image segmentation to extract the roads from satellite images, and thought of a process as follows:
Based on the color of the road, dirt roads can be predicted
Based on the thickness of the road, highways and city roads can be predicted
But the problem is I don't know how can differentiate the results based on the aforementioned criterion.

Character recognition from image with low contrast [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have images (about 1000) with different numbers. Using opencv I extracted ROI from these images. Here's a small sample:
And I don't know how to extract these numbers or identify them. For opencv have a small threshold. I tried VGGnet keras (I rotated each image 1 degree to create 360 images as input for tensorflow), but the control image was mostly not recognized. Does anyone have an idea?

Getting the y axis value(amplitude) on FFT [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am working on a FFT program, and I would like to get the frequency which has the largest amplitude or intensity in a sound. I checked out some codes on internet, but I couldn't find how to get the amplitude on a python program.
Check librosa.core.stft This gives magnitude of each frequency bin at given time. More details here:
https://librosa.github.io/librosa/generated/librosa.core.stft.html?highlight=stft#librosa.core.stft

I am taking CCD images through my telescope and am wondering what can I do analytically with those images? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
This weekend I'll be taking around 50 CCD images with my Celestron CPC 8in. telescope and would like to use python to analyzie the images. Does anyone have any experience doing this?
Check out the python wrapper for OpenCV:
http://docs.opencv.org/trunk/doc/py_tutorials/py_tutorials.html
This should provide all the power you need to do any image processing tasks you require.
And there are some great tutorials to help you get started.

Categories

Resources