MADCON 2017 Talk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #-------------------------- | |
| # USER-SPECIFIED DATA | |
| #-------------------------- | |
| # Tune these parameters | |
| num_classes = 2 | |
| image_shape = (160, 576) | |
| EPOCHS = 40 | |
| BATCH_SIZE = 16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #-------------------------- | |
| # USER-SPECIFIED DATA | |
| #-------------------------- | |
| # Tune these parameters | |
| num_classes = 2 | |
| image_shape = (160, 576) | |
| EPOCHS = 40 | |
| BATCH_SIZE = 16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| X = np.array([[0.0], [1.0], [2.0], [3.0]]) | |
| y = np.array([0.0, 2.0, 4.0, 6.0]) | |
| model_parameters = {'b': 0.0, 'w': np.array([0.5])} | |
| y_predicted = [predict(x, model_parameters) for x in X] | |
| plt.figure(figsize=(8, 5)) | |
| plt.yticks(np.arange(0, 7, 0.5)) | |
| plt.xticks(np.arange(0, 4, 1)) | |
| plt.ylabel("y") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cv2 | |
| import numpy as np | |
| cap = cv2.VideoCapture('vtest.avi') | |
| frame_width = int( cap.get(cv2.CAP_PROP_FRAME_WIDTH)) | |
| frame_height =int( cap.get( cv2.CAP_PROP_FRAME_HEIGHT)) | |
| fourcc = cv2.VideoWriter_fourcc('X','V','I','D') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| début CompteurBonbons (réel argent, réel prix) | |
| nbBonbons ← 0 | |
| Si argent>0 ET prix>0 | |
| Tant que argent >= prix | |
| argent ← argent - prix | |
| nbBonbons ← nbBonbons + 1 | |
| Fin tant que | |
| Sinon | |
| retourner “argent ou prix est inferieur à 0” |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| début CompteurBonbons (réel argent, réel prix) | |
| nbBonbons ← 0 | |
| Si argent>0 ET prix>0 | |
| Tant que argent >= prix | |
| argent ← argent - prix | |
| nbBonbons ← nbBonbons + 1 | |
| Fin tant que | |
| Sinon | |
| retourner “argent ou prix est inferieur à 0” |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| début CompteurBonbons (réel argent, réel prix) | |
| nbBonbons ← 0 | |
| Si argent>0 ET prix>0 | |
| Tant que argent >= prix | |
| argent ← argent - prix | |
| nbBonbons ← nbBonbons + 1 | |
| Fin tant que | |
| Sinon | |
| retourner “argent ou prix est inferieur à 0” |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| début CompteurBonbons (réel argent, réel prix) | |
| nbBonbons ← 0 | |
| Si argent>0 ET prix>0 | |
| Tant que argent >= prix | |
| argent ← argent - prix | |
| nbBonbons ← nbBonbons + 1 | |
| Fin tant que | |
| Sinon | |
| retourner “argent ou prix est inferieur à 0” |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| début CompteurBonbons (réel argent, réel prix) | |
| nbBonbons ← 0 | |
| Si argent>0 ET prix>0 | |
| Tant que argent >= prix | |
| argent ← argent - prix | |
| nbBonbons ← nbBonbons + 1 | |
| Fin tant que | |
| Sinon | |
| retourner “argent ou prix est inferieur à 0” |
NewerOlder