ONNX
Ryan Lee commited on
Commit
a9ec92a
·
1 Parent(s): 0e7b643

Fix spelling, spacing, and unused variables (#236)

Browse files

* Fix spelling, spacing, and unused variables

* Fixed typo in 3 more models

* Added open back

* Remove setBackendAndTarget functions from C++ demos, which are unused functionality.

Files changed (2) hide show
  1. demo.cpp +1 -1
  2. demo.py +1 -1
demo.cpp CHANGED
@@ -224,7 +224,7 @@ int main(int argc, char** argv)
224
  else
225
  cap.open(0);
226
  if (!cap.isOpened())
227
- CV_Error(Error::StsError, "Cannot opend video or file");
228
  Mat originalImage;
229
  static const std::string kWinName = modelPath;
230
  while (waitKey(1) < 0)
 
224
  else
225
  cap.open(0);
226
  if (!cap.isOpened())
227
+ CV_Error(Error::StsError, "Cannot open video or file");
228
  Mat originalImage;
229
  static const std::string kWinName = modelPath;
230
  while (waitKey(1) < 0)
demo.py CHANGED
@@ -106,7 +106,7 @@ if __name__ == '__main__':
106
 
107
  # Save results if save is true
108
  if args.save:
109
- print('Resutls saved to result.jpg\n')
110
  cv.imwrite('result.jpg', original_image)
111
 
112
  # Visualize results in a new window
 
106
 
107
  # Save results if save is true
108
  if args.save:
109
+ print('Results saved to result.jpg\n')
110
  cv.imwrite('result.jpg', original_image)
111
 
112
  # Visualize results in a new window