Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Photographing method and device based on Raspberry Pi

A camera device, Raspberry Pi technology, applied in the computer field, can solve problems such as program crash

Active Publication Date: 2020-05-08
优必选软件技术深圳有限公司
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The embodiment of the present application provides a method and device for taking photos based on Raspberry Pi, which can solve the problem that the program may crash during shooting

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Photographing method and device based on Raspberry Pi
  • Photographing method and device based on Raspberry Pi
  • Photographing method and device based on Raspberry Pi

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

[0038] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude one or more other Presence or addition of features, wholes, steps, operations, elements, components and / or collections thereof.

[0039] It should...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention is applicable to the technical field of computers, and provides a photographing method based on Raspberry Pi. The method comprises the steps of detecting a camera starting instruction, and obtaining a pre-recorded number of tasks using a photographing thread; if the number of the tasks using the photographing thread is greater than 1, carrying out photographing according to the started photographing thread, and updating the number of the tasks using the photographing thread; and detecting a camera closing instruction, updating the number of tasks using the photographing thread according to the camera closing instruction, and closing the camera when the number of tasks using the photographing thread is 0. According to the method, whether a photographing thread is created currently or not is judged according to the task data volume of the photographing thread; when the number of the tasks is greater than 1, it shows that the photographing thread exists, and the photographing thread does not need to be created again; and when the number of the tasks is 0, it shows that no task using the photographing threads exists at the moment, the camera can be closed, and thus the problem of program crash is avoided.

Description

technical field [0001] The present application belongs to the field of computer technology, and in particular relates to a method and device for taking pictures based on Raspberry Pi. Background technique [0002] When using the camera on the Raspberry Pi (RPi) to shoot, the shooting is done through the camera shooting instance. In order to ensure the normal operation of the program, the current shooting thread must be ended before starting a new shooting thread. However, in multi-threading, there is no guarantee that when the camera shooting instance is defined in this thread, the camera shooting instances of other threads have been closed. Therefore, the problem of program crash may occur when shooting. Contents of the invention [0003] The embodiment of the present application provides a method and device for taking photos based on Raspberry Pi, which can solve the problem that the program may crash during shooting. [0004] In the first aspect, the embodiment of the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04N5/232
CPCH04N23/60
Inventor 秦利福王轶丹崔宁熊友军
Owner 优必选软件技术深圳有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products