Skip to content

Commit

Permalink
add face recognizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed May 27, 2024
1 parent 4feeded commit f3977b1
Show file tree
Hide file tree
Showing 14 changed files with 855 additions and 29 deletions.
7 changes: 7 additions & 0 deletions components/basic/include/maix_fs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,13 @@ namespace maix::fs
*/
std::string *readline();

/**
* End of file or not
* @return 0 if not reach end of file, else eof.
* @maixpy maix.fs.File.eof
*/
int eof();

/**
* Write data to file
* @param buf buffer to write
Expand Down
10 changes: 10 additions & 0 deletions components/basic/src/maix_fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,16 @@ namespace maix::fs
return line;
}

/**
* End of file or not
* @return 0 if not reach end of file, else eof.
* @maixpy maix.fs.File.eof
*/
int File::eof()
{
return std::feof((FILE*)_fp);
}

int File::write(const void *buf, int size)
{
// write data to file use std::fwrite
Expand Down
Loading

0 comments on commit f3977b1

Please sign in to comment.