Skip to content
View aarshtalati's full-sized avatar
🎯
Focusing
🎯
Focusing

Block or report aarshtalati

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
aarshtalati/README.md

Hi there 👋

Hi, I am Aarsh, from Atlanta. Computer scientist, Coffee connoisseur, Hiker and, a foodie. Artificial Intelligence developer by profession. I have been a developer since 2011. Worked in different industries with companies of all shapes and sizes. Published a couple of books on-line and several open-source software utilities. I have researched with CDC, MIT, Google, NASA in the AI arena. In my spare (?) time, I like to work on my pet projects using Raspberry Pi. AI, Machine Learning, IoT, Computational Photography and Embedded software intrigue me. Bachelor’s and Master’s degrees in Computer Science, with a specialization in Interactive intelligence and a Microsoft Certified Professional. I have been running a Linux Users Group (LUG) since, 2007.

I enjoy Photography. My goal is to combine photography and computation, in other words combining the art and science of images. e.g. Dual Photography

Pinned Loading

  1. different ways to calculate black pi... different ways to calculate black pixel ratio in a binray image
    1
    >>> image
    2
    array([[1, 0, 0, 1, 0],
    3
           [0, 1, 0, 0, 1],
    4
           [0, 0, 1, 0, 0],
    5
           [1, 0, 0, 1, 0]])
  2. An alternative to numpy.argmin() An alternative to numpy.argmin()
    1
    >>> import numpy as np
    2
    >>> x = np.arange(127, 255, 50)
    3
    >>> x
    4
    array([127, 177, 227])
    5
    >>> x.argmin()
  3. Python: find most common element in ... Python: find most common element in corresponding two lists
    1
    import itertools
    2
    
                  
    3
    a = [7, 3]
    4
    b = [3, 1, 2]
    5
    c = [4, 3, 5]
  4. Reverse and splice python tuple Reverse and splice python tuple
    1
    """ About:
    2
    img is an OpenCV 2 object. img.shape prints a tuple as (height, width, channels) e.g. (512, 768, 3)
    3
    We need a tuple as (width, height) e.g. (768, 512)
    4
    """
    5
    
                  
  5. Python Compare two dictionaries Python Compare two dictionaries
    1
    def compareDicts(d1, d2):
    2
        differences = []
    3
    
                  
    4
        # present in d1 but not in d2
    5
        for key, value in ({k: d1[k] for k in set(d1) - set(d2)}).iteritems():
  6. Sort dictionary with values closest ... Sort dictionary with values closest to given value
    1
    >>> chooseFrom
    2
    {'1': 10.3438090737, '3': 7.73275047259, '2': 12.9046550095, '5': 10.3438090737, '4': 12.9046550095, '7': 7.88437303088, '6': 5.12169187146, '8': 0.0}
    3
    >>> gh
    4
    7.73275047259
    5