You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The HKA Social Media Bot is a tool capable of posting images and messages to various social media websites. ~~Keep your workflow steady with scheduled posts and automatic image generation!~~
86
-
87
-
<!-- The HKA Social Media Bot is a command line tool, capable of sending or posting various messages to social media websites. Keep your workflow steady with scheduled posts and automatic image generation! -->
82
+
MeshroomDFM is a Meshroom Node that employs a Convolutional Neural Network to generate and refine feature matches between multiple images.
83
+
The goal of this project is to replace the classical Photogrammetry Pipeline Nodes for Feature Extraction, Image Matching and Feature Matching with an all-in-one solution.
84
+
Since Developer Documentation for creating custom Meshroom Nodes is hard to come by, the documentation for this project also demonstrates how to build and deploy binaries build with python and pyinstaller.
88
85
89
86
<palign="right">(<ahref="#readme-top">back to top</a>)</p>
90
87
@@ -105,174 +102,71 @@ The HKA Social Media Bot is a tool capable of posting images and messages to var
105
102
<!-- GETTING STARTED -->
106
103
## Getting Started
107
104
108
-
### Installation
109
-
* Creating a new virtual environment
105
+
You can simply install the precompiled binaries for linux in the <ahref="#installation">Installation</a> step.
106
+
If you wish to build the binaries yourself, follow <ahref="#building-from-source">Building from Source</a>
110
107
111
-
This app is built on [Flask][flask], which recommends creating a new conda environment
For more information about the dependencies see [requirements][requirements]
112
+
* copy the binaries into the Meshroom binaries directory
113
+
```sh
114
+
cp dist path/to/bin
115
+
```
130
116
131
-
### Creating a Facebook Business Account
117
+
* download the Mehsroom Nodes
132
118
133
-
```
134
-
HOW TO CREATE OR CONVERT TO A FACEBOOK BUSINESS ACCOUNT
135
-
```
119
+
* copy the nodes into the Meshroom nodes directory
120
+
```sh
121
+
cp nodes path/to/nodes
122
+
```
136
123
137
-
### Creating an Instagram Business Account
138
124
139
-
```
140
-
HOW TO CREATE OR CONVERT TO AN INSTAGRAM BUSINESS ACCOUNT
141
-
```
125
+
### Building from Source
142
126
143
-
### Linking to Facebook
144
-
```
145
-
HOW TO LINK WHATSAPP AND INSTAGRAM ACCOUNTS TO FACEBOOK
146
-
```
127
+
To build the binaries yourself, you can use pyinstaller to export the project.
147
128
148
-
### Getting an Access Token
129
+
>**Note**
130
+
> Pyinstaller only allows to build binaries for the platform you're running on.
131
+
> If you wish to build the binaries for windows, you will have to execute pyinstaller on a windows machine.
149
132
150
-
<!-- This program needs your authorization in order to publish to Instagram and Whatsapp. To grant access, login to your Facebook Account and search for HKA SocialMediaBot.
151
-
Click add and grant access to the requested rights.
133
+
* Creating a new virtual environment
152
134
153
-
Once you've granted the required permissions, you will receive an Access Token. Copy this Token and continue with <a href="#usage">Usage</a> -->
135
+
It is recommended to create a virtual environment with the required packages
136
+
```sh
137
+
conda env create -f environment.yml
138
+
```
154
139
155
-
```
156
-
HOW TO ADD FACEBOOK APP TO ACCOUNT AND RECEIVE ACCESS TOKEN
157
-
```
140
+
* Execute pyinstaller to build binaries
141
+
```sh
142
+
pyinstaller dfm_wrapper.spec --onefile # build the Deep Feature Matching Program
143
+
pyinstaller dfm_analyzer.spec --onefile # build Deep Feature Matching Analyzer
144
+
```
158
145
159
-
<p align="right">(<a href="#readme-top">back to top</a>)</p>
146
+
* After building the binaries, you can continue with the installation steps 3 and 4
160
147
148
+
<p align="right">(<a href="#readme-top">back to top</a>)</p>
161
149
162
150
<!-- USAGE EXAMPLES -->
163
151
## Usage
164
152
165
-
### Starting the app
166
-
* Starting the app
167
-
```sh
168
-
python main.py
169
-
```
170
-
Once the app has started, it will output an ip adress (usually 127.0.0.1:5000), copy and paste it in your browser
171
-
172
-
### Sign up
173
-
You will be redirected to a Login Page, create a new user account and log in with your email and password.
174
-
175
-
> **Note**
176
-
> The website is running locally on your machine. Email adresses and passwords are stored in a local database at ```socialmedia-bot/instance/database.db```
153
+
### Implementing the DFM Node
177
154
178
-
### Updating credentials
179
-
You will have to update your credentials.
180
-
Go to ```Settings```→```Whatsapp```, enter your access token and phone number and click ```Update```.
181
-
Repeat this step with your other social media accounts.
155
+
* start Meshroom
182
156
183
-
### Creating a contact list
184
-
Sending messages to whatsapp contacts requires their phone number.
185
-
Go to ```Settings```→```Contacts``` and enter the contacts, you wish to message through whatsapp.
157
+
* right click and type "DeepFeatureMatching" to add the Deep Feature Matching Node
186
158
187
-
### Creating your first post
188
-
Go back to ```Home``` and type in a text, you wish to post.
189
-
Add an image to the post by clicking on ```Select File``` or drag and drop it.
190
-
Select the websites, you wish to post to and click on ```Post```.
191
-
192
-
> **Note**
193
-
> You can have up to 1000 free whatsapp conversations per month, for more information about pricing, see [pricing][whatsapp-pricing]
194
-
195
-
> **Note**
196
-
> You can post up to 25 pictures on instagram per day
197
-
198
-
> **Warning**
199
-
> In order to post an image through the Graph-API, this program publishes the image on [imgbox.com][imgbox]. This means, your photos will be available on the internet, even after you delete them from Instagram.
159
+
* The node has inputs and outputs. Connect them as follows.
200
160
201
161
<p align="right">(<a href="#readme-top">back to top</a>)</p>
202
162
203
163
204
-
<!-- PROFESSIONAL USAGE / NEXT STEPS -->
205
-
## Next steps
206
-
207
-
### Running the app on the local network
208
-
You can run this application locally on your network, start it as follows
209
-
```sh
210
-
python main.py --host=0.0.0.0
211
-
```
212
-
Any other device on the network can now open the website by typing the returned ip adress.
213
-
214
-
> **Note**
215
-
> The default port is 5000. In some cases this port might be used by different applications. You can specify a different port with the ```--port``` argument
216
-
217
-
> **Warning**
218
-
> Multiple users shouldn't access the same account simultaneously
219
-
220
-
### Publishing the app to the internet
221
-
Cloud hosting providers like [DigitalOcean][digital-ocean] can host websites for you, making your app available on the internet.
222
-
223
-
> **Warning**
224
-
> Additional security measures might need to be implemented
225
-
226
-
<palign="right">(<ahref="#readme-top">back to top</a>)</p>
227
-
228
-
229
-
<!-- ROADMAP -->
230
-
## Roadmap
231
-
232
-
-[ ] Proof of Concept
233
-
-[x] Whatsapp
234
-
-[x] Instagram
235
-
-[ ] Facebook
236
-
-[ ] Twitter
237
-
-[ ] Snapchat
238
-
-[ ] LinkedIn
239
-
-[ ] Webapp
240
-
-[x] Rewrite as webapp using Flask
241
-
-[x] HTML GUI
242
-
-[ ] Database
243
-
-[x] password access
244
-
-[x] storing contacts
245
-
-[ ] storing posts
246
-
-[ ] Publishing to the internet
247
-
-[ ] Security improvements
248
-
-[ ] Deploy using Digital Ocean or other webhost
249
-
-[ ] Publishing the facebook app
250
-
-[ ] Image Generator using templates
251
-
-[ ] Scheduling Posts
252
-
253
-
254
-
<!-- See the [open issues](https://github.com/mirkosprojects/socialmedia-bot/issues) for a full list of proposed features (and known issues). -->
255
-
256
-
<palign="right">(<ahref="#readme-top">back to top</a>)</p>
257
-
258
164
259
165
<!-- PICTURES AND VIDEOS -->
260
-
## Pictures and Videos
261
-
262
-
### Sending a whatsapp message and posting to instagram using Socialbot
166
+
<!-- ## Pictures and Videos
263
167
264
-
![Sending a Whatsapp message][whatsapp-instagram-demo]
265
168
266
-
### Changing the whatsapp access token and phone number
267
-
268
-
![Changing Whatsapp settings][whatsapp-settings]
269
-
270
-
### Editing the contacts
271
-
272
-
![Editing Contact][contact-settings]
273
-
274
-
275
-
<palign="right">(<ahref="#readme-top">back to top</a>)</p>
169
+
<p align="right">(<a href="#readme-top">back to top</a>)</p> -->
0 commit comments