semvec/pypi-packages huggingface dataset:
my-mu3 0.0.3
A small project to grab and parse images from the MU3 Vision Sensor.
Requires Python: >=3.6

# my_mu3
A small project to grab and parse images from the MU3 Vision Sensor in a seperate process (to free up CPU).

## Installation
```
pip install my-mu3
```

## API Usage

Note the below relies on the camera being connected to the same WLAN (WIFI) network as the computer. Also note that
 it also relies on the ip address being known. See the section Connecting WLAN for help. It also relies on the camera
 being configured into image transmission mode, where both switches on the camera are in the up position. In this mode,
 the camera will show it is connected to a wifi network (and not broadcasting one) if both front lights are off. 
however, by default in this mode the camera will broadcast a network, this could be used though I haven't tested it. 

One point to note is that the below relies on `cv2.waitKey(1)` to exit, so if you are running headless it won't exit 
cleanly. Sorry.  

```python
import time

import cv2

from my_mu3.mu3_image_grabber import Mu3ImageGrabber

IP_ADDRESS = "192.168.1.183"

def main():

    my_mu3 = Mu3ImageGrabber(ip_address=IP_ADDRESS)

    exit_flag = False
    my_mu3.start()

    while not exit_flag:

        image = my_mu3.get_image()
        if image is not None:
            cv2.imshow('mu3 camera', image)

        if cv2.waitKey(1) == ord("q"):
            exit_flag = True
        time.sleep(0.01)

    my_mu3.stop()

if __name__ == "__main__":
    main()
```

## Connecting WLAN
The library relies on being connected to the same WLAN as the camera. To do so, AT commands can be sent to the camera
 via UDP or via Serial. A convenience script is included in this repository that sends AT commands to connect the
 camera to a WLAN network, that relies on having a serial port connected. One example of a repo that provides
 a "soft" serial port for the raspberry pi, ie you can use non-serial pins at a much lower speed,
 is [here](https://github.com/adrianomarto/soft_uart). I used this with 9600 baud rate, the default for the camera.  

```
setup-wlan MY_WIFI_NAME MY_PASSWORD /dev/ttyS0
```

## Using AT Commands/Chatting with the Camera

You can also use AT commands yourself. The camera will print AT commands if you send the below via serial. Note the 
space after the command, this is vital (or a combo of carriage return and new line).  
```
AT+HELP 
```

The output of this AT_HELP is included in this repo as the 'output_at_help.txt' file. Additionally, a program to
 chat via serial with the camera is included where it will let you type and send input in examples/serial_chat.py.
pythonSmallToolsByHanXu 1.1.1
This is a repo of some smallTools created by python.

﻿<!-- TOC -->
* [Content](#content)
* [`rename_files`](#rename_files)
  * [by order](#by-order)
  * [by `filename extension`](#by-filename-extension)
  * [result:](#result-)
* [`normalize_md`](#normalize_md)
  * [result:](#result-)
<!-- TOC -->
# Brief
This is a repo of some smallTools created by python.

# `rename_files`
- This tool could rename all the files in a directory decided by you. You have `2` choices to rename them.
## by order
- If you don't mind the `filename extension`, you could rename all of them at one time.**Given New name and order key**, the code will add the order automatically.

```python
import pythonSmallToolsByHanXu.rename_files as rename

if __name__ == '__main__':
    # replace the directory you want to rename
    ex=rename.renamer(r"D:\Desktop\C & C++")
    ex(new_name="demo",order_key=lambda x: int(x[ x.rfind(".")-1 : x.rfind(".")+1] ) )
```

## by `filename extension`
- For example, if you want to rename all the images, you may type in `jpg` or `png` as followed.

```python
import pythonSmallToolsByHanXu.rename_files as rename

if __name__ == '__main__':
    # replace the directory you want to rename
    ex=rename.renamer(r"D:\Desktop\C & C++")
    ex(new_name="demo",target_type="jpg")
```

## result:

![在这里插入图片描述](res/imgRes/2023-11-16-120758.png)

# `normalize_md`
- Usually, when we write the md file, the images in the md file are bundled with the internet. If you want to view the images offline, you should download the images at advanced and modify the image-urls in the md file, **which is awful and takes much time!** This tool allow you to download the internal images in the md file automatically so that you could view the md file without the internet anymore!
- **The algorithm is in-place!You'd better copy the md dir in advance.**

```python
import pythonSmallToolsByHanXu.normalize_md as normal

if __name__ == '__main__':
    # replace the directory you want to rename
    target_directory = r"D:\Desktop\demo"
    normal.normalizer(current_dir=target_directory)()
```
## result:
- before:

![在这里插入图片描述](res/imgRes/2023-11-16-121919.png)

![在这里插入图片描述](res/imgRes/2023-11-16-122550.png)

- after:

![在这里插入图片描述](res/imgRes/2023-11-16-121942.png)

![在这里插入图片描述](res/imgRes/2023-11-16-121930.png)
barmpy-vanboxel 1.0.0
Bayesian Additive Regression Models
Requires Python: >=3.8


# BARMPy

![text ignored, basic tests](https://github.com/dvbuntu/barmpy/actions/workflows/test-barmpy.yml/badge.svg)

![text ignored, docs](https://github.com/dvbuntu/barmpy/actions/workflows/pages/pages-build-deployment/badge.svg)

![text ignored, download count](https://img.shields.io/github/downloads/dvbuntu/barmpy/total.svg)

![HitCount to repo page](https://hits.dwyl.com/dvbuntu/barmpy/start-here.svg)


## Intro

`barmpy` is the Python implementation of Baeysian Additive Regression Models, a generalization of BART, currently being researched [1].  We hope this library is useful for practictioners, enabling Bayesian architecture search and model ensembling.

Skeleton repo adapted from [BartPy](https://github.com/JakeColtman/bartpy).

Check out the [Tutorial](https://drive.google.com/file/d/1FgpCyEUqqnihkfm-6nuV5RdZwAJlSJq5/view?usp=drive_link)

## References

 [1] https://meetings.ams.org/math/fall2022c/meetingapp.cgi/Paper/14985